Lego NXT brick communication error with libusb
Rene Ladan
rene at freebsd.org
Mon Dec 13 20:42:22 UTC 2010
Op 13-12-2010 11:51, Hans Petter Selasky schreef:
> On Sunday 12 December 2010 23:40:54 Rene Ladan wrote:
>> Hi,
>>
>> I am writing a port [1] to control the Lego NXT brick with ROS, but when
>> I run a test program it fails (permissions for the USB device are 666).
>> This is on:
>>
>
> What dmesg is shown? Are other [kernel] drivers hooking into the USB
> interfaces used by your user-land driver?
>
dmesg shows just:
ugen3.2: <vendor 0x0694> at usbus3
Vendor 0x0694 is Lego.
I don't have other drivers hooking into the USB device I think:
% kldstat -v | grep usb
276 usbus/uhub
275 uhub/usb_linux
273 uss820/usbus
272 musbotg/usbus
271 at91_udp/usbus
270 xhci/usbus
269 ehci/usbus
268 uhci/usbus
267 ohci/usbus
> What is output from usbconfig -d X.Y dump_device_desc dump_curr_config_desc
>
Attached.
Rene
--
http://www.rene-ladan.nl/
GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC
(subkeys.pgp.net)
-------------- next part --------------
ugen3.2: <product 0x0002 vendor 0x0694> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0008
idVendor = 0x0694
idProduct = 0x0002
bcdDevice = 0x0000
iManufacturer = 0x0000 <no string>
iProduct = 0x0000 <no string>
iSerialNumber = 0x0001 <0016530CA81C>
bNumConfigurations = 0x0001
Configuration index 0
bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0020
bNumInterfaces = 0x0001
bConfigurationValue = 0x0001
iConfiguration = 0x0000 <no string>
bmAttributes = 0x00c0
bMaxPower = 0x0000
Interface 0
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0000
bAlternateSetting = 0x0000
bNumEndpoints = 0x0002
bInterfaceClass = 0x00ff
bInterfaceSubClass = 0x00ff
bInterfaceProtocol = 0x00ff
iInterface = 0x0000 <no string>
Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001 <OUT>
bmAttributes = 0x0002 <BULK>
wMaxPacketSize = 0x0040
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000
Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0082 <IN>
bmAttributes = 0x0002 <BULK>
wMaxPacketSize = 0x0040
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000
More information about the freebsd-usb
mailing list