receipt-print-hq / chrome-raw-print

Chrome app to enable raw printing from a browser
MIT License
67 stars 23 forks source link

Problems with the API #7

Open henry-proappss opened 7 years ago

henry-proappss commented 7 years ago

I want to print using my TM-T20II printer and it does not recognize it. I also want to know where I can find the vendorId AND productId

mike42 commented 7 years ago

It's not possible to enumerate USB devices using the Chrome API, so the vendor and product ID must be listed in the manifest for this code to be able to detect it.

The way to find vendor/product ID's for USB devices depends on the platform. I use the lsusb command on Linux. If you are on some other platform, you can find instructions via a web search.