If anyone can give me a clue as to how to fix this, I'd sure appreciate
it. When I cat /proc/bus/usb/devices, the NXT shows up (on bus 4) with
the expected vendor (0x0694) and product (0x0002) numbers, but not when
I run a modified usbenum program.
The data follows.
Thanks,
- Mike
usbenum program:
---------------
#!/usr/bin/env python
#
# Enumerate usb devices
#
#Copyright 2005 Wander Lairson Costa
import usb
busses = usb.busses()
for bus in busses:
devices = bus.devices
print "=== new bus ==="
for dev in devices:
print "Device:", dev.filename
print " Device class:",dev.deviceClass
print " Device sub class:",dev.deviceSubClass
print " Device protocol:",dev.deviceProtocol
print " Max packet size:",dev.maxPacketSize
print " idVendor: %d (0x%x)" % (dev.idVendor,dev.idVendor)
print " idProduct: %d (0x%x)" % (dev.idProduct,dev.idProduct)
print " Device Version:",dev.deviceVersion
for config in dev.configurations:
print " Configuration:", config.value
print " Total length:", config.totalLength
print " selfPowered:", config.selfPowered
print " remoteWakeup:", config.remoteWakeup
print " maxPower:", config.maxPower
for intf in config.interfaces:
print " Interface:",intf[0].interfaceNumber
for alt in intf:
print " Alternate Setting:",alt.alternateSetting
print " Interface class:",alt.interfaceClass
print " Interface sub class:",alt.interfaceSubClass
print " Interface protocol:",alt.interfaceProtocol
for ep in alt.endpoints:
print " Endpoint:",hex(ep.address)
print " Type:",ep.type
print " Max packet size:",ep.maxPacketSize
print " Interval:",ep.interval
usbenum output:
--------------
=== new bus ===
Device: 004
Device class: 0
Device sub class: 0
Device protocol: 0
Max packet size: 64
idVendor: 3034 (0xbda)
idProduct: 273 (0x111)
Device Version: 11.37
Configuration: 1
Total length: 32
selfPowered: 0
remoteWakeup: 0
maxPower: 232
Interface: 0
Alternate Setting: 0
Interface class: 8
Interface sub class: 6
Interface protocol: 80
Endpoint: 0x1L
Type: 2
Max packet size: 512
Interval: 0
Endpoint: 0x82L
Type: 2
Max packet size: 512
Interval: 0
Device: 001
Device class: 9
Device sub class: 0
Device protocol: 0
Max packet size: 64
idVendor: 7531 (0x1d6b)
idProduct: 2 (0x2)
Device Version: 02.06
Configuration: 1
Total length: 25
selfPowered: 1
remoteWakeup: 1
maxPower: 0
Interface: 0
Alternate Setting: 0
Interface class: 9
Interface sub class: 0
Interface protocol: 0
Endpoint: 0x81L
Type: 3
Max packet size: 4
Interval: 12
=== new bus ===
Device: 001
Device class: 9
Device sub class: 0
Device protocol: 0
Max packet size: 64
idVendor: 7531 (0x1d6b)
idProduct: 1 (0x1)
Device Version: 02.06
Configuration: 1
Total length: 25
selfPowered: 1
remoteWakeup: 1
maxPower: 0
Interface: 0
Alternate Setting: 0
Interface class: 9
Interface sub class: 0
Interface protocol: 0
Endpoint: 0x81L
Type: 3
Max packet size: 2
Interval: 255
=== new bus ===
Device: 001
Device class: 9
Device sub class: 0
Device protocol: 0
Max packet size: 64
idVendor: 7531 (0x1d6b)
idProduct: 1 (0x1)
Device Version: 02.06
Configuration: 1
Total length: 25
selfPowered: 1
remoteWakeup: 1
maxPower: 0
Interface: 0
Alternate Setting: 0
Interface class: 9
Interface sub class: 0
Interface protocol: 0
Endpoint: 0x81L
Type: 3
Max packet size: 2
Interval: 255
=== new bus ===
Device: 004
Device class: 0
Device sub class: 0
Device protocol: 0
Max packet size: 8
idVendor: 2278 (0x8e6)
idProduct: 1074 (0x432)
Device Version: 01.00
Configuration: 1
Total length: 32
selfPowered: 0
remoteWakeup: 0
maxPower: 200
Interface: 0
Alternate Setting: 0
Interface class: 255
Interface sub class: 0
Interface protocol: 0
Endpoint: 0x85L
Type: 2
Max packet size: 64
Interval: 255
Endpoint: 0x6L
Type: 2
Max packet size: 64
Interval: 255
Device: 003
Device class: 0
Device sub class: 0
Device protocol: 0
Max packet size: 8
idVendor: 1183 (0x49f)
idProduct: 14 (0xe)
Device Version: 01.02
Configuration: 1
Total length: 59
selfPowered: 0
remoteWakeup: 1
maxPower: 200
Interface: 0
Alternate Setting: 0
Interface class: 3
Interface sub class: 1
Interface protocol: 1
Endpoint: 0x81L
Type: 3
Max packet size: 8
Interval: 10
Interface: 1
Alternate Setting: 0
Interface class: 3
Interface sub class: 1
Interface protocol: 2
Endpoint: 0x82L
Type: 3
Max packet size: 8
Interval: 10
Device: 002
Device class: 9
Device sub class: 0
Device protocol: 0
Max packet size: 8
idVendor: 1105 (0x451)
idProduct: 8246 (0x2036)
Device Version: 01.01
Configuration: 1
Total length: 25
selfPowered: 0
remoteWakeup: 1
maxPower: 200
Interface: 0
Alternate Setting: 0
Interface class: 9
Interface sub class: 0
Interface protocol: 0
Endpoint: 0x81L
Type: 3
Max packet size: 1
Interval: 255
Device: 001
Device class: 9
Device sub class: 0
Device protocol: 0
Max packet size: 64
idVendor: 7531 (0x1d6b)
idProduct: 1 (0x1)
Device Version: 02.06
Configuration: 1
Total length: 25
selfPowered: 1
remoteWakeup: 1
maxPower: 0
Interface: 0
Alternate Setting: 0
Interface class: 9
Interface sub class: 0
Interface protocol: 0
Endpoint: 0x81L
Type: 3
Max packet size: 2
Interval: 255
=== new bus ===
Device: 002
Device class: 0
Device sub class: 0
Device protocol: 0
Max packet size: 8
idVendor: 1133 (0x46d)
idProduct: 50177 (0xc401)
Device Version: 02.10
Configuration: 1
Total length: 34
selfPowered: 0
remoteWakeup: 1
maxPower: 100
Interface: 0
Alternate Setting: 0
Interface class: 3
Interface sub class: 1
Interface protocol: 2
Endpoint: 0x81L
Type: 3
Max packet size: 8
Interval: 10
Device: 001
Device class: 9
Device sub class: 0
Device protocol: 0
Max packet size: 64
idVendor: 7531 (0x1d6b)
idProduct: 1 (0x1)
Device Version: 02.06
Configuration: 1
Total length: 25
selfPowered: 1
remoteWakeup: 1
maxPower: 0
Interface: 0
Alternate Setting: 0
Interface class: 9
Interface sub class: 0
Interface protocol: 0
Endpoint: 0x81L
Type: 3
Max packet size: 2
Interval: 255
/proc/bus/usb/devices
---------------------
T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.19-170.2.35.fc10.i686.PAE uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.19-170.2.35.fc10.i686.PAE uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0694 ProdID=0002 Rev= 0.00
S: SerialNumber=00165301DB1E
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 29/900 us ( 3%), #Int= 3, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.19-170.2.35.fc10.i686.PAE uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 2
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0451 ProdID=2036 Rev= 1.01
S: Product=General Purpose USB Hub
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms
T: Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=049f ProdID=000e Rev= 1.02
S: Manufacturer=Chicony
S: Product=Compaq Internet Keyboard
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
T: Bus=03 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=08e6 ProdID=0432 Rev= 1.00
S: Manufacturer=GEMPLUS
S: Product=Visa Usb Smart Card Reader GCR432
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 14/900 us ( 2%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.19-170.2.35.fc10.i686.PAE uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c401 Rev= 2.10
S: Manufacturer=Logitech
S: Product=USB-PS/2 Trackball
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 50mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 2.06
S: Manufacturer=Linux 2.6.27.19-170.2.35.fc10.i686.PAE ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=0111 Rev=11.37
S: Manufacturer=Generic
S: Product=USB2.0-CRW
S: SerialNumber=20021111153705700
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users