Hi,Trying to use a Brymen BM869S DMM and its BU-86X USB interface with libsigrok master branch on Linux results in a "sr: serial-hid: Failed to open HID device." error.
libsigrok 0.5.2 $ sigrok-cli --scan The following devices were found: brymen-bm86x - Brymen BM869 with 2 channels: P1 P2 demo - Demo device with 12 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 libsigrok 395ac73 $ sigrok-cli --scan sr: serial-hid: Failed to open HID device. sr: serial-hid: Failed to open HID device. sr: serial-hid: Failed to open HID device. The following devices were found: demo - Demo device with 13 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 A4I bisected the issue to a8fcee15e0308042143c21e531f470110968bc68 'serial_hid: improve and tighten "find USB" for the HID transport'.
Simply reverting this commit solves the issue.Digging inside this change a little bit, the hid path is now "hid/bu86x/raw=/dev/hidraw3" instead of just "/dev/hidraw3", which causes hidapi's `hid_open_path()` to fail with a "No such file or directory" error when calling `open()` on this path.
This is probably a bug but maybe I'm overlooking something since this change is a year old and I can't find any report.
Best regards, -- //piernov
OpenPGP_0x46A3C65C574D3CDA.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel