I have created a printing module, which work with printer connected at serial port using printer.Serial("COM5")
interface provided by python-escpos.
But now, I have to switch to USB printer rather than serial. My USB printer is connected at virtual printer port (USB001). Now, printer.USB()
requires vendorID and productID but in my case when I see Device Instance Path, it does't contain vendorID and productID (screenshot is attached below). I am stuck here that how can I connect with this USB printer.
Please note that my printer is R290 thermal printer and I have downloaded its driver from http://itambition.com/printer.html. The printer is connected at USB001 and test page is being printed successfully.
I have resolved the issue using following steps: