You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can you outline the sort of device you are trying to detect? HID devices are often claimed by the OS on windows, so things like mice/keyboards/printers etc. may not appear.
Ideally, the interface class type of the device would be helpful.
Hmm, I am assuming the OS is claiming the COM interface.
Some things to try:
If you have access to the firmware, you could potentially expose another interface with custom class (0xFF) which the OS doesn't claim and this library can detect.
Activity
thegecko commentedon Jan 3, 2024
Please provide some versions (node-usb, electron), your OS and repro steps.
RosiersRobin commentedon Jan 8, 2024
OS: Windows 10 Home
node-usb: ^2.11.0
electron: ^24.0.0
Steps to reproduce
npm inpm startExpected behavior
USB list should change with the new added device.
Example screenshot of the application:

thegecko commentedon Jan 8, 2024
Thanks,
can you outline the sort of device you are trying to detect? HID devices are often claimed by the OS on windows, so things like mice/keyboards/printers etc. may not appear.
Ideally, the interface class type of the device would be helpful.
RosiersRobin commentedon Jan 8, 2024
I don't know if you're familliar with ESP32? It's just a dev board.
Sillicon Labs CP210x USB to UART Bridge. So a COM port.
thegecko commentedon Jan 8, 2024
For COM ports on desktop, I recommend using https://serialport.io/
I doubt the UART is wired up in any way to be easily accessible via the low-level USB interfaces
RosiersRobin commentedon Jan 8, 2024
I'm using that library, but there is no hotplug event thing (for as far as I know?)
thegecko commentedon Jan 8, 2024
Hmm, I am assuming the OS is claiming the COM interface.
Some things to try:
RosiersRobin commentedon Nov 27, 2024
So I've tried with the deprecated package, it didn't work.
Seems like windows doesn't like to tell electron 'hey, there is a new device', since the thing I did currently works perfectly on macos.