linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Tell linux-usb@vger.kernel.org to add your device to a proper  driver.
@ 2023-07-19  1:26 administrator
  0 siblings, 0 replies; 5+ messages in thread
From: administrator @ 2023-07-19  1:26 UTC (permalink / raw)
  To: linux-usb

Hello,

I have an Infiray Micro III Lite that seems to need adding to some driver.

Here's a snippet of my lsusb --verbose command:

Bus 001 Device 003: ID 3474:750e
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 ?
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x3474
idProduct 0x750e
bcdDevice 0.00
iManufacturer 1 IRay
iProduct 2 M3Lite
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 272
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bFunctionProtocol 0
iFunction 2 M3Lite
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
bInterfaceProtocol 0
iInterface 2 M3Lite
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdUVC 1.10
wTotalLength 81
dwClockFrequency 48.000000MHz
bInCollection 1
baInterfaceNr( 0) 1
VideoControl Interface Descriptor:
bLength 18
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Camera Sensor
bAssocTerminal 0
iTerminal 0
wObjectiveFocalLengthMin 1
wObjectiveFocalLengthMax 10
wOcularFocalLength 1
bControlSize 3
bmControls 0x00000200
Zoom (Absolute)
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 5 (PROCESSING_UNIT)
bUnitID 2
bSourceID 1
wMaxMultiplier 16384
bControlSize 3
bmControls 0x00000000
iProcessing 0
bmVideoStandards 0x 0
VideoControl Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 6 (EXTENSION_UNIT)
bUnitID 3
guidExtensionCode {ffffffff-ffff-ffff-ffff-ffffffffffff}
bNumControl 0
bNrPins 1
baSourceID( 0) 2
bControlSize 3
bmControls( 0) 0x00
bmControls( 1) 0x00
bmControls( 2) 0x00
iExtension 0
VideoControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 4
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 3
iTerminal 0
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 8
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceProtocol 0
iInterface 0
VideoStreaming Interface Descriptor:
bLength 14
bDescriptorType 36
bDescriptorSubtype 1 (INPUT_HEADER)
bNumFormats 1
wTotalLength 71
bEndPointAddress 131
bmInfo 0
bTerminalLink 4
bStillCaptureMethod 1
bTriggerSupport 0
bTriggerUsage 0
bControlSize 1
bmaControls( 0) 27
VideoStreaming Interface Descriptor:
bLength 27
bDescriptorType 36
bDescriptorSubtype 4 (FORMAT_UNCOMPRESSED)
bFormatIndex 1
bNumFrameDescriptors 1
guidFormat {59555932-0000-1000-8000-00aa00389b71}
bBitsPerPixel 16
bDefaultFrameIndex 1
bAspectRatioX 8
bAspectRatioY 6
bmInterlaceFlags 0x00
Interlaced stream or variable: No
Fields per frame: 2 fields
Field 1 first: No
Field pattern: Field 1 only
bCopyProtect 0
VideoStreaming Interface Descriptor:
bLength 30
bDescriptorType 36
bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)
bFrameIndex 1
bmCapabilities 0x01
Still image supported
wWidth 1280
wHeight 512
dwMinBitRate 832000000
dwMaxBitRate 832000000
dwMaxVideoFrameBufferSize 1310720
dwDefaultFrameInterval 400000
bFrameIntervalType 1
dwFrameInterval( 0) 400000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 2
bInterfaceCount 2
bFunctionClass 2 Communications
bFunctionSubClass 2 Abstract (modem)
bFunctionProtocol 1 AT-commands (v.25ter)
iFunction 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
CDC Header:
bcdCDC 1.10
CDC ACM:
bmCapabilities 0x02
line coding and serial state
CDC Union:
bMasterInterface 2
bSlaveInterface 1
CDC Call Management:
bmCapabilities 0x00
bDataInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 2
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)

Here's an output from lsusb --tree --verbose:

/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
ID 1a40:0101 Terminus Technology Inc. Hub
|__ Port 1: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 480M
ID 03e7:f63d Intel
|__ Port 1: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
ID 03e7:f63d Intel
|__ Port 1: Dev 4, If 2, Class=Video, Driver=uvcvideo, 480M
ID 03e7:f63d Intel
|__ Port 2: Dev 3, If 3, Class=CDC Data, Driver=usbserial_generic, 480M
ID 3474:750e
|__ Port 2: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
ID 3474:750e
|__ Port 2: Dev 3, If 2, Class=Communications, Driver=, 480M
ID 3474:750e
|__ Port 2: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
ID 3474:750e

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Tell linux-usb@vger.kernel.org to add your device to a proper driver
@ 2024-02-07 12:48 Mike Miller
  2024-03-04 10:21 ` Johan Hovold
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Miller @ 2024-02-07 12:48 UTC (permalink / raw)
  To: linux-usb

Hello,

I am only doing this because dmesg has told me to :).

I am struggling to get a cheap arse Chinese knock-off Arduino Nano 
working on my

Linux MyLinux 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC 
Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

and I get the message

[ 2840.099780] usb 2-1.2: new low-speed USB device number 8 using ehci-pci
[ 2840.210523] usb 2-1.2: New USB device found, idVendor=16d0, 
idProduct=0753, bcdDevice= 2.02
[ 2840.210537] usb 2-1.2: New USB device strings: Mfr=0, Product=0, 
SerialNumber=0
[ 2840.211335] usbserial_generic 2-1.2:1.0: The "generic" usb-serial 
driver is only for testing and one-off prototypes.
[ 2840.211338] usbserial_generic 2-1.2:1.0: Tell 
linux-usb@vger.kernel.org to add your device to a proper driver.
[ 2840.211340] usbserial_generic 2-1.2:1.0: device has no bulk endpoints
mike@MyLinux:~/Arduino$

This something you really can address?

Cheers

Mike



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tell linux-usb@vger.kernel.org to add your device to a proper driver
  2024-02-07 12:48 Tell linux-usb@vger.kernel.org to add your device to a proper driver Mike Miller
@ 2024-03-04 10:21 ` Johan Hovold
  2024-03-05 13:50   ` Mike Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Johan Hovold @ 2024-03-04 10:21 UTC (permalink / raw)
  To: Mike Miller; +Cc: linux-usb

On Wed, Feb 07, 2024 at 08:48:12PM +0800, Mike Miller wrote:
> I am only doing this because dmesg has told me to :).

Thanks for the report.
 
> I am struggling to get a cheap arse Chinese knock-off Arduino Nano 
> working on my
> 
> Linux MyLinux 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC 
> Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
> 
> and I get the message
> 
> [ 2840.099780] usb 2-1.2: new low-speed USB device number 8 using ehci-pci
> [ 2840.210523] usb 2-1.2: New USB device found, idVendor=16d0, 
> idProduct=0753, bcdDevice= 2.02
> [ 2840.210537] usb 2-1.2: New USB device strings: Mfr=0, Product=0, 
> SerialNumber=0
> [ 2840.211335] usbserial_generic 2-1.2:1.0: The "generic" usb-serial 
> driver is only for testing and one-off prototypes.
> [ 2840.211338] usbserial_generic 2-1.2:1.0: Tell 
> linux-usb@vger.kernel.org to add your device to a proper driver.
> [ 2840.211340] usbserial_generic 2-1.2:1.0: device has no bulk endpoints

Hmm. Without bulk endpoints you shouldn't be able to actually use the
device with the generic driver.

> This something you really can address?

Can you please post the output of lsusb -v for this device?

Johan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tell linux-usb@vger.kernel.org to add your device to a proper driver
  2024-03-04 10:21 ` Johan Hovold
@ 2024-03-05 13:50   ` Mike Miller
  2024-03-05 15:17     ` Johan Hovold
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Miller @ 2024-03-05 13:50 UTC (permalink / raw)
  To: Johan Hovold; +Cc: linux-usb

Johan,

Thank you for getting back, it is appreciated and unexpected.

Since sending you the email, a couple of things I have also noticed.

1. If I run the Audrino IDE (on windows), I have to plug in the device 
after I initiate the upload of the script (it actally tells me to do it).

2. I have to use a specific cable (1 of 3 I have tried).

3. It doesnt create the ACM0 device I was expecting and ttyS0 doesnt 
work (not ttys4, which are the only 2 options).

Anyway, to your particular request, with the "right" cable, the lsusb -v 
output is

mike@MyLinux:~$ lsusb -v

Bus 001 Device 022: ID 16d0:0753 MCS Digistump DigiSpark
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               1.10
   bDeviceClass          255 Vendor Specific Class
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0         8
   idVendor           0x16d0 MCS
   idProduct          0x0753 Digistump DigiSpark
   bcdDevice            2.02
   iManufacturer           0
   iProduct                0
   iSerial                 0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0012
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0x80
       (Bus Powered)
     MaxPower              100mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           0
       bInterfaceClass         0
       bInterfaceSubClass      0
       bInterfaceProtocol      0
       iInterface              0
Device Status:     0x0067
   Self Powered
   Remote Wakeup Enabled
   Test Mode
   Debug Mode

Bus 001 Device 003: ID 0bda:0181 Realtek Semiconductor Corp. USB2.0-CRW
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            0
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0        64
   idVendor           0x0bda Realtek Semiconductor Corp.
   idProduct          0x0181
   bcdDevice           81.97
   iManufacturer           1 Generic
   iProduct                2 USB2.0-CRW
   iSerial                 3 20060413092100000
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0020
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          4
     bmAttributes         0x80
       (Bus Powered)
     MaxPower              500mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           2
       bInterfaceClass         8 Mass Storage
       bInterfaceSubClass      6 SCSI
       bInterfaceProtocol     80 Bulk-Only
       iInterface              5
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x01  EP 1 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 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     0x0200  1x 512 bytes
         bInterval               0

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            9 Hub
   bDeviceSubClass         0
   bDeviceProtocol         1 Single TT
   bMaxPacketSize0        64
   idVendor           0x8087 Intel Corp.
   idProduct          0x0024 Integrated Rate Matching Hub
   bcdDevice            0.00
   iManufacturer           0
   iProduct                0
   iSerial                 0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0019
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower                0mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      0 Full speed (or root) hub
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0002  1x 2 bytes
         bInterval              12

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            9 Hub
   bDeviceSubClass         0
   bDeviceProtocol         0 Full speed (or root) hub
   bMaxPacketSize0        64
   idVendor           0x1d6b Linux Foundation
   idProduct          0x0002 2.0 root hub
   bcdDevice            6.05
   iManufacturer           3 Linux 6.5.0-21-generic ehci_hcd
   iProduct                2 EHCI Host Controller
   iSerial                 1 0000:00:1d.0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0019
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower                0mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      0 Full speed (or root) hub
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0004  1x 4 bytes
         bInterval              12

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               3.00
   bDeviceClass            9 Hub
   bDeviceSubClass         0
   bDeviceProtocol         3
   bMaxPacketSize0         9
   idVendor           0x1d6b Linux Foundation
   idProduct          0x0003 3.0 root hub
   bcdDevice            6.05
   iManufacturer           3 Linux 6.5.0-21-generic xhci-hcd
   iProduct                2 xHCI Host Controller
   iSerial                 1 0000:02:00.0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x001f
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower                0mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      0 Full speed (or root) hub
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0004  1x 4 bytes
         bInterval              12
         bMaxBurst               0

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            9 Hub
   bDeviceSubClass         0
   bDeviceProtocol         1 Single TT
   bMaxPacketSize0        64
   idVendor           0x1d6b Linux Foundation
   idProduct          0x0002 2.0 root hub
   bcdDevice            6.05
   iManufacturer           3 Linux 6.5.0-21-generic xhci-hcd
   iProduct                2 xHCI Host Controller
   iSerial                 1 0000:02:00.0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0019
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower                0mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      0 Full speed (or root) hub
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0004  1x 4 bytes
         bInterval              12

Bus 002 Device 006: ID 2357:0108 TP-Link TL-WN822N Version 4 RTL8192EU
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.10
   bDeviceClass            0
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0        64
   idVendor           0x2357 TP-Link
   idProduct          0x0108 TL-WN822N Version 4 RTL8192EU
   bcdDevice            2.00
   iManufacturer           1 Realtek
   iProduct                2 802.11n NIC
   iSerial                 3 00e04c000001
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0035
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower              500mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           5
       bInterfaceClass       255 Vendor Specific Class
       bInterfaceSubClass    255 Vendor Specific Subclass
       bInterfaceProtocol    255 Vendor Specific Protocol
       iInterface              2
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x84  EP 4 IN
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x05  EP 5 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x06  EP 6 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 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     0x0040  1x 64 bytes
         bInterval               3
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x08  EP 8 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0

Bus 002 Device 005: ID 0409:0238 NEC Corp.
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            9 Hub
   bDeviceSubClass         0
   bDeviceProtocol         2 TT per port
   bMaxPacketSize0        64
   idVendor           0x0409 NEC Corp.
   idProduct          0x0238
   bcdDevice            1.00
   iManufacturer           0
   iProduct                0
   iSerial                 0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0029
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower                2mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      1 Single TT
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0001  1x 1 bytes
         bInterval              12
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       1
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      2 TT per port
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0001  1x 1 bytes
         bInterval              12

Bus 002 Device 004: ID 046d:c05b Logitech, Inc. M-U0004 810-001317 [B110 
Optical USB Mouse]
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            0
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0         8
   idVendor           0x046d Logitech, Inc.
   idProduct          0xc05b M-U0004 810-001317 [B110 Optical USB Mouse]
   bcdDevice           54.00
   iManufacturer           1 Logitech
   iProduct                2 USB Optical Mouse
   iSerial                 0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0022
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xa0
       (Bus Powered)
       Remote Wakeup
     MaxPower               98mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         3 Human Interface Device
       bInterfaceSubClass      1 Boot Interface Subclass
       bInterfaceProtocol      2 Mouse
       iInterface              0
         HID Device Descriptor:
           bLength                 9
           bDescriptorType        33
           bcdHID               1.11
           bCountryCode            0 Not supported
           bNumDescriptors         1
           bDescriptorType        34 Report
           wDescriptorLength      67
          Report Descriptors:
            ** UNAVAILABLE **
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0006  1x 6 bytes
         bInterval              10

Bus 002 Device 003: ID 413c:2107 Dell Computer Corp. KB212-B Quiet Key 
Keyboard
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               1.10
   bDeviceClass            0
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0         8
   idVendor           0x413c Dell Computer Corp.
   idProduct          0x2107 KB212-B Quiet Key Keyboard
   bcdDevice            1.78
   iManufacturer           1 DELL
   iProduct                2 Dell USB Entry Keyboard
   iSerial                 0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0022
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xa0
       (Bus Powered)
       Remote Wakeup
     MaxPower              100mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         3 Human Interface Device
       bInterfaceSubClass      1 Boot Interface Subclass
       bInterfaceProtocol      1 Keyboard
       iInterface              0
         HID Device Descriptor:
           bLength                 9
           bDescriptorType        33
           bcdHID               1.10
           bCountryCode            0 Not supported
           bNumDescriptors         1
           bDescriptorType        34 Report
           wDescriptorLength      65
          Report Descriptors:
            ** UNAVAILABLE **
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0008  1x 8 bytes
         bInterval              10

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            9 Hub
   bDeviceSubClass         0
   bDeviceProtocol         1 Single TT
   bMaxPacketSize0        64
   idVendor           0x8087 Intel Corp.
   idProduct          0x0024 Integrated Rate Matching Hub
   bcdDevice            0.00
   iManufacturer           0
   iProduct                0
   iSerial                 0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0019
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower                0mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      0 Full speed (or root) hub
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0001  1x 1 bytes
         bInterval              12

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            9 Hub
   bDeviceSubClass         0
   bDeviceProtocol         0 Full speed (or root) hub
   bMaxPacketSize0        64
   idVendor           0x1d6b Linux Foundation
   idProduct          0x0002 2.0 root hub
   bcdDevice            6.05
   iManufacturer           3 Linux 6.5.0-21-generic ehci_hcd
   iProduct                2 EHCI Host Controller
   iSerial                 1 0000:00:1a.0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x0019
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0xe0
       Self Powered
       Remote Wakeup
     MaxPower                0mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass         9 Hub
       bInterfaceSubClass      0
       bInterfaceProtocol      0 Full speed (or root) hub
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x81  EP 1 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0004  1x 4 bytes
         bInterval              12

Cheers

Mike



On 4/3/24 18:21, Johan Hovold wrote:
> On Wed, Feb 07, 2024 at 08:48:12PM +0800, Mike Miller wrote:
>> I am only doing this because dmesg has told me to :).
> Thanks for the report.
>   
>> I am struggling to get a cheap arse Chinese knock-off Arduino Nano
>> working on my
>>
>> Linux MyLinux 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC
>> Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
>>
>> and I get the message
>>
>> [ 2840.099780] usb 2-1.2: new low-speed USB device number 8 using ehci-pci
>> [ 2840.210523] usb 2-1.2: New USB device found, idVendor=16d0,
>> idProduct=0753, bcdDevice= 2.02
>> [ 2840.210537] usb 2-1.2: New USB device strings: Mfr=0, Product=0,
>> SerialNumber=0
>> [ 2840.211335] usbserial_generic 2-1.2:1.0: The "generic" usb-serial
>> driver is only for testing and one-off prototypes.
>> [ 2840.211338] usbserial_generic 2-1.2:1.0: Tell
>> linux-usb@vger.kernel.org to add your device to a proper driver.
>> [ 2840.211340] usbserial_generic 2-1.2:1.0: device has no bulk endpoints
> Hmm. Without bulk endpoints you shouldn't be able to actually use the
> device with the generic driver.
>
>> This something you really can address?
> Can you please post the output of lsusb -v for this device?
>
> Johan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tell linux-usb@vger.kernel.org to add your device to a proper driver
  2024-03-05 13:50   ` Mike Miller
@ 2024-03-05 15:17     ` Johan Hovold
  0 siblings, 0 replies; 5+ messages in thread
From: Johan Hovold @ 2024-03-05 15:17 UTC (permalink / raw)
  To: Mike Miller; +Cc: linux-usb

On Tue, Mar 05, 2024 at 09:50:09PM +0800, Mike Miller wrote:

> Since sending you the email, a couple of things I have also noticed.
> 
> 1. If I run the Audrino IDE (on windows), I have to plug in the device 
> after I initiate the upload of the script (it actally tells me to do it).
> 
> 2. I have to use a specific cable (1 of 3 I have tried).
> 
> 3. It doesnt create the ACM0 device I was expecting and ttyS0 doesnt 
> work (not ttys4, which are the only 2 options).

The generic USB serial driver, which you tried to use and which printed
the message about reporting this upstream, would have created a ttyUSB0
character device if it worked.

But as I mentioned below, and as is clear from the lsusb output you
posted, the device in question does not have any bulk endpoints, which
the USB serial driver requires.

I don't know how this device is expected to work, but it does not look
like a serial device in its current (default) configuration. Perhaps it
needs to be reconfigured before you can use it somehow.

> Anyway, to your particular request, with the "right" cable, the lsusb -v 
> output is

> Bus 001 Device 022: ID 16d0:0753 MCS Digistump DigiSpark
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               1.10
>    bDeviceClass          255 Vendor Specific Class
>    bDeviceSubClass         0
>    bDeviceProtocol         0
>    bMaxPacketSize0         8
>    idVendor           0x16d0 MCS
>    idProduct          0x0753 Digistump DigiSpark
>    bcdDevice            2.02
>    iManufacturer           0
>    iProduct                0
>    iSerial                 0
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength       0x0012
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0x80
>        (Bus Powered)
>      MaxPower              100mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           0
>        bInterfaceClass         0
>        bInterfaceSubClass      0
>        bInterfaceProtocol      0
>        iInterface              0
> Device Status:     0x0067
>    Self Powered
>    Remote Wakeup Enabled
>    Test Mode
>    Debug Mode

> On 4/3/24 18:21, Johan Hovold wrote:
> > On Wed, Feb 07, 2024 at 08:48:12PM +0800, Mike Miller wrote:
 
> >> I am struggling to get a cheap arse Chinese knock-off Arduino Nano
> >> working on my
> >>
> >> Linux MyLinux 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC
> >> Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
> >>
> >> and I get the message
> >>
> >> [ 2840.099780] usb 2-1.2: new low-speed USB device number 8 using ehci-pci
> >> [ 2840.210523] usb 2-1.2: New USB device found, idVendor=16d0,
> >> idProduct=0753, bcdDevice= 2.02
> >> [ 2840.210537] usb 2-1.2: New USB device strings: Mfr=0, Product=0,
> >> SerialNumber=0
> >> [ 2840.211335] usbserial_generic 2-1.2:1.0: The "generic" usb-serial
> >> driver is only for testing and one-off prototypes.
> >> [ 2840.211338] usbserial_generic 2-1.2:1.0: Tell
> >> linux-usb@vger.kernel.org to add your device to a proper driver.
> >> [ 2840.211340] usbserial_generic 2-1.2:1.0: device has no bulk endpoints

> > Hmm. Without bulk endpoints you shouldn't be able to actually use the
> > device with the generic driver.

Johan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-05 15:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07 12:48 Tell linux-usb@vger.kernel.org to add your device to a proper driver Mike Miller
2024-03-04 10:21 ` Johan Hovold
2024-03-05 13:50   ` Mike Miller
2024-03-05 15:17     ` Johan Hovold
  -- strict thread matches above, loose matches on Subject: below --
2023-07-19  1:26 administrator

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).