In a web page am able to find the device, but when I attempt to open the connection with .open() I get "access denied". Through research I came across the winUsb driver, which allows me to open a connection to the device. Unfortunately, when I use that driver that I can no longer use the Arduino IDE to communicate with the device. It does not list the port as being available. In the Windows device manager the device moves under Universal Serial Bus devices.
Asked
Active
Viewed 642 times
1 Answers
1
For devices using the CH340 my recommendation is to use the Web Serial API instead of the WebUSB API. This will leverage the CH340 driver that is already installed and is used by the Arduino IDE, so there won't be any conflicts when trying to access the device with either application.
See web.dev/serial for some documentation on how to use the API.

Reilly Grant
- 5,590
- 1
- 13
- 23
-
Great thanks I'll check it out – CarbonMan Jul 25 '21 at 09:36
-
unfortunately serial API does not support by Android browsers :( – Sergey S Nov 13 '22 at 12:05