M
M
Michael2018-11-26 22:54:02
Google Chrome
Michael, 2018-11-26 22:54:02

How to receive data from scanner via chrome.usb?

It is necessary to implement the opening of the page by the scanned code. There is a scanner that reads barcode 128 (1d). There was an idea to create an extension in chrome, as a kind of driver. Usb support via chrome.usb is in newer versions.
Itself never worked with devices, especially through the browser. So far I have dug up a couple of simple examples and was able to count usb devices and even open the right one. Everything else is not clear. It seems like you need to request interfaces and already transmit and receive data on them. And the data is binary.
I want to know this:
1. Is it possible to solve the problem as described above?
2. I did not understand how to "subscribe" to an event in usb. Need to constantly try to read data?
3. Are there any standard programs for scanners in Linux / Windows where you can simply add a conditional plugin to open links by reading the code?
Usb turned out to be quite complicated if you try to work with it directly.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question