Somehow the test program for pyusb does nothing under FreeBSD 8.0-RELEASE-p2. Strange.
I have the pyusb test device plugged in and the examples work nicely under Linux. The libusb 0.1 and 1.0 wrapper under FreeBSD 8 seems to work fine. http://svn.freebsd.org/viewvc/base/head/lib/libusb/ The build process went smoothly. But the test program does nothing. [mc...@myfreebsd ~/Desktop/build/pyusb/pyusb/trunk]$ sudo python setup.py install running install running build running build_py creating build creating build/lib creating build/lib/usb copying usb/core.py -> build/lib/usb copying usb/util.py -> build/lib/usb copying usb/__init__.py -> build/lib/usb copying usb/_interop.py -> build/lib/usb copying usb/legacy.py -> build/lib/usb creating build/lib/usb/backend copying usb/backend/openusb.py -> build/lib/usb/backend copying usb/backend/__init__.py -> build/lib/usb/backend copying usb/backend/libusb01.py -> build/lib/usb/backend copying usb/backend/libusb10.py -> build/lib/usb/backend running install_lib running install_egg_info Removing /usr/local/lib/python2.6/site-packages/PyUSB-1.0.0_a0-py2.6.egg-info Writing /usr/local/lib/python2.6/site-packages/PyUSB-1.0.0_a0-py2.6.egg-info [mc...@myfreebsd ~/Desktop/build/pyusb/pyusb/trunk/tests]$ sudo python testall.py ....... ---------------------------------------------------------------------- Ran 7 tests in 0.023s OK It also does nothing for the older test program in 0.4.2. [mc...@myfreebsd ~/Desktop/build/pyusb/pyusb-0.4.2/samples]$ python usbenum.py [mc...@myfreebsd ~/Desktop/build/pyusb/pyusb-0.4.2/samples]$ python usbprint.py [mc...@myfreebsd ~/Desktop/build/pyusb/pyusb/trunk]$ lsusb -d fffe:0001 Bus /dev/usb Device /dev/ugen0.5: ID fffe:0001 [mc...@myfreebsd ~/Desktop/build/pyusb/pyusb/trunk]$ lsusb -d fffe:0001 -vvv Bus /dev/usb Device /dev/ugen0.5: ID fffe:0001 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0xfffe idProduct 0x0001 bcdDevice 0.01 iManufacturer 1 Mxyzp7lk iProduct 2 PyUSB iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 60 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 6 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 32 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 32 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 32 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 32 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 32 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 32 can't get device qualifier: Input/output error can't get debug descriptor: Input/output error Device Status: 0x0000 (Bus Powered) -- Xiaofan http://mcuee.blogspot.com ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users