B
B
Bogdan Fil2018-06-04 22:18:14
JavaScript
Bogdan Fil, 2018-06-04 22:18:14

Why doesn't the COM port reconnect in Chrome?

I'm making a small extension in Chrome to work with a barcode scanner. It is connected as a COM device. To work with the scanner, a separate application was written in Chrome, which communicates with the main extension with messages. Everything works fine until the USB comes off and the scanner can't reconnect until Chrome is rebooted. It happens that the scanner does not reconnect at all, it says {message: "Failed to connect to the port."}. Or sometimes it says that it is connected, but it still does not work. Can you tell me what to do with reconnecting to the scanner. Maybe there is an option in Chrome to reset the connection to the COM port and reconnect.

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