From: Ludovic R. <lud...@gm...> - 2016-07-04 20:35:34
|
Hello, I have a similar problem on my Debian GNU/Linux 4.6.0-1-amd64. dmesg reports: [ 1.737388] usb 1-10: config 0 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64 [ 1.737396] usb 1-10: config 0 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64 [ 1.737401] usb 1-10: config 0 interface 1 altsetting 0 bulk endpoint 0x82 has invalid maxpacket 64 [ 1.737404] usb 1-10: config 0 interface 1 altsetting 0 bulk endpoint 0x2 has invalid maxpacket 64 [ 1.737408] usb 1-10: config 0 interface 2 altsetting 0 bulk endpoint 0x83 has invalid maxpacket 64 [ 1.737411] usb 1-10: config 0 interface 2 altsetting 0 bulk endpoint 0x3 has invalid maxpacket 64 [ 1.737414] usb 1-10: config 0 interface 3 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64 [ 1.737418] usb 1-10: config 0 interface 3 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64 [ 1.753532] usb 1-10: New USB device found, idVendor=0a5c, idProduct=5805 [ 1.753539] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1.753543] usb 1-10: Product: 5880 [ 1.753546] usb 1-10: Manufacturer: Broadcom Corp [ 1.753549] usb 1-10: SerialNumber: 0123456789ABCD [ 1.753913] usb 1-10: config 0 descriptor?? The problem is not just the kernel "warnings". I also get transfer issues. For example libusb_bulk_transfer() returns only the first 64 bytes of data when I am expecting much more. The USB device is from Broadcom with 2 smart cards interfaces (and other interfaces) internal in a Dell laptop E5570. Is the USB device buggy? Is it possible to make the communication work? The device descriptor is: Bus 001 Device 003: ID 0a5c:5805 Broadcom Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0a5c Broadcom Corp. idProduct 0x5805 bcdDevice 1.01 iManufacturer 1 Broadcom Corp iProduct 2 5880 iSerial 3 0123456789ABCD bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 269 bNumInterfaces 4 bConfigurationValue 0 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 254 Application Specific Interface bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 4 Broadcom USH w/touch sensor ** UNRECOGNIZED: 10 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 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 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x85 EP 5 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 11 Chip/SmartCard bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 5 Contacted SmartCard ChipCard Interface Descriptor: bLength 54 bDescriptorType 33 bcdCCID 1.00 nMaxSlotIndex 0 bVoltageSupport 7 5.0V 3.0V 1.8V dwProtocols 3 T=0 T=1 dwDefaultClock 4000 dwMaxiumumClock 4000 bNumClockSupported 0 dwDataRate 9600 bps dwMaxDataRate 250000 bps bNumDataRatesSupp. 0 dwMaxIFSD 247 dwSyncProtocols 00000000 dwMechanical 00000000 dwFeatures 000102BA Auto configuration based on ATR Auto voltage selection Auto clock change Auto baud rate change Auto PPS made by CCID NAD value other than 0x00 accepted TPDU level exchange dwMaxCCIDMsgLen 271 bClassGetResponse 00 bClassEnvelope 00 wlcdLayout none bPINSupport 0 bMaxCCIDBusySlots 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x86 EP 6 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 11 Chip/SmartCard bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 6 Contactless SmartCard ChipCard Interface Descriptor: bLength 54 bDescriptorType 33 bcdCCID 1.01 (Warning: Only accurate for version 1.0) nMaxSlotIndex 0 bVoltageSupport 1 5.0V dwProtocols 3 T=0 T=1 dwDefaultClock 3580 dwMaxiumumClock 3580 bNumClockSupported 1 dwDataRate 9600 bps dwMaxDataRate 9600 bps bNumDataRatesSupp. 1 dwMaxIFSD 254 dwSyncProtocols 00000000 dwMechanical 00000000 dwFeatures 000204BA Auto configuration based on ATR Auto voltage selection Auto clock change Auto baud rate change Auto PPS made by CCID Auto IFSD exchange Short APDU level exchange dwMaxCCIDMsgLen 512 bClassGetResponse 00 bClassEnvelope 00 wlcdLayout none bPINSupport 0 bMaxCCIDBusySlots 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x87 EP 7 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 8 Broadcom NFP ** UNRECOGNIZED: 10 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x04 EP 4 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x88 EP 8 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 1 Device Status: 0x0000 (Bus Powered) Thanks 2014-07-29 22:42 GMT+02:00 Colin Jermain <cl...@co...>: > Hi, > > I'm trying to connect to a USB device on openSUSE 12.2 (kernel 3.4.63-2.44, > 32-bit) and getting a error about "invalid maxpacket 64". This seems similar > to a previous post on the mailing list, where the device was supposed to > register 512 for high-speed mode. Its a Ametek Signal Recovery 7270 and > never gets a /dev/ttyUSB connection assigned, but seems to find the ehci_hcd > driver. The system messages are listed below. > > Any ideas how to fix this? > > Thanks, > > Colin > > > dmesg | grep usb > > usb 2-4: new high-speed USB device number 5 using ehci_hcd > usb 2-4: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid > maxpacket 64 > usb 2-4: config 1 interface 0 altsetting 0 bulk endpoint 0x82 has invalid > maxpacket 64 > usb 2-4: New USB device found, idVendor=0a2d, idProduct=001b > usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 2-4: Product: 7270 Lock-in Amplifier > usb 2-4: Manufacturer: SIGNAL RECOVERY > usb 2-4: SerialNumber: 14169873 > > lsusb -v -d 0a2d:001b > > Bus 002 Device 005: ID 0a2d:001b > Couldn't open device, some information will be missing > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 2.00 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 64 > idVendor 0x0a2d > idProduct 0x001b > bcdDevice 0.00 > iManufacturer 1 > iProduct 2 > iSerial 3 > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 32 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 0 > bmAttributes 0xc0 > Self Powered > MaxPower 2mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 2 > bInterfaceClass 255 Vendor Specific Class > bInterfaceSubClass 255 Vendor Specific Subclass > bInterfaceProtocol 0 > 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 0 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x82 EP 2 IN > bmAttributes 2 > Transfer Type Bulk > Synch Type None > Usage Type Data > wMaxPacketSize 0x0040 1x 64 bytes > bInterval 0 > -- Dr. Ludovic Rousseau |