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
There is no "official" way. You're expected to use fields of hid_device_info do distinguish your devices (all, but path), and serial_number is primary for this purpose.
Unofficial way: if you know exactly the version of hidapi library you use (and not relying on a system-installed instance), you may try to parse the path. See https://github.com/libusb/hidapi/blob/master/libusb/hid.c#L487
But I strongly do not recommend doing so, if you could use serial_numbers instead. path is platform/backend - specific, and it won't work, for instance, if you choose to switch from libusb to hidraw backend.
we have two board A and B connected to one PC, with the same chip, the same vid and pid, no serial number info.
How to get usb port information for each board?
libusb/libusb#885
The text was updated successfully, but these errors were encountered: