using devel/libusb to access USB

Dan Langille dan at langille.org
Mon Nov 24 06:26:00 PST 2003


Travis Campbell and I are looking at apcupsd to get it working with 
the APC RS/XS series of USB capable UPSs.  We're concentrating on 
4.x.

Some work has been done in this area by Riccardo Torrini.  See 
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=57225+0+archive/2003/free
bsd-hardware/20030608.freebsd-hardware

We have been looking at the devel/libusb port and experimenting with 
testlibusb which is a part of that port.  We have noticed that 
usb_find_devices() does not find any devices.  Looking at the usb.c 
code within libusb, we found that usb_os_find_devices() does not 
return any devices, and therefore the while loop is never entered.

We tracked the problem down to usb_os_find_devices() (within bsd.c) 
and found that various things were preventing the list from being 
created.

We're wondering if anyone has had success with devel/libusb for 
similar things.
-- 
Dan Langille : http://www.langille.org/



More information about the freebsd-hackers mailing list