Sunday, August 08, 2021

libusb1 and Yoctopuce USB sensors

I've been trying to get a yoctopuce (https://www.yoctopuce.com/) USB
sensor to work on OpenBSD, but have run into problems.

The sensor has Linux code
(https://github.com/yoctopuce/yoctolib_cpp.git) that uses libusb, but
on OpenBSD using the libusb1 package, libusb_kernel_driver_active() and
libusb_detach_kernel_driver() are returning error code -12
(LIBUSB_ERROR_NOT_SUPPORTED).

I found some rather old advice saying that these errors can be
ignored (https://github.com/apple/cups/issues/4088), but then i get an
error -12 from libusb_submit_transfer().

I notice that 'pkg_info -R libusb1' shows just 9 ports depend on
libusb1, so i'm wondering whether the libusb1 port is expected to work
generally on OpenBSD, or whether it be better to try to use the usb(4)
ioctl API?

Thanks for any advice,

- Jules

--
http://op59.net

No comments:

Post a Comment