Re: Adding new usbserial device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've tried 
modprobe cdc-acm
echo fff0 0100 > /sys/bus/usb/drivers/cdc_acm/new_id 

But it didn't show as a device. 
Here is the relevant output of dmesg:
[  379.300082] cdc_acm 4-2:1.0: Zero length descriptor references
[  379.300112] cdc_acm: probe of 4-2:1.0 failed with error -22
[  379.300134] cdc_acm 4-2:1.1: Zero length descriptor references
[  379.300141] cdc_acm: probe of 4-2:1.1 failed with error -22

And here is the output of lsusb -v -d fff0:0100

Bus 004 Device 002: ID fff0:0100  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.01
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0xfff0 
  idProduct          0x0100 
  bcdDevice            1.00
  iManufacturer           1 DATECS
  iProduct                2 Fiscal Printer FP-2000
  iSerial                 3 DT653794
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           48
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      0 None
      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     0x0008  1x 8 bytes
        bInterval             255
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              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     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0001
  Self Powered

Best regards.

В 10:56 +0200 на 12.07.2017 (ср), Johan Hovold написа:
> On Tue, Jul 11, 2017 at 01:32:00PM +0300, Anton Avramov wrote:
> > 
> > Hello, 
> > 
> > I have a new device in my possession that works with usbserial
> > generic
> > driver. 
> > In order for it to work I execute: 
> > modprobe usbserial
> > echo fff0 0100 > /sys/bus/usb-serial/drivers/generic/new_id 
> > 
> > I'm writing to you since dmesg reads: 
> > [ 1674.626941] usbserial_generic 4-2:1.0: Generic device with no
> > bulk
> > out, not allowed.
> > [ 1674.626972] usbserial_generic: probe of 4-2:1.0 failed with
> > error -5
> > [ 1674.626991] usbserial_generic 4-2:1.1: The "generic" usb-serial
> > driver is only for testing and one-off prototypes.
> > [ 1674.626997] usbserial_generic 4-2:1.1: Tell linux-usb@vger.kerne
> > l.or
> > g to add your device to a proper driver.
> > [ 1674.627002] usbserial_generic 4-2:1.1: generic converter
> > detected
> > [ 1674.627276] usb 4-2: generic converter now attached to ttyUSB0
> Thanks for reporting this to us.
> 
> > 
> > query the device pins: 
> > 
> > /usr/bin/statserial -d /dev/ttyUSB0
> > statserial: TIOCMGET failed: Invalid argument
> Yeah, that's not expected to work with the generic driver.
> 
> > 
> >   looking at parent device
> > '/devices/pci0000:00/0000:00:04.0/usb4/4-
> > 2/4-2:1.1':
> >     KERNELS=="4-2:1.1"
> >     SUBSYSTEMS=="usb"
> >     DRIVERS=="usbserial_generic"
> >     ATTRS{bInterfaceClass}=="0a"
> >     ATTRS{bInterfaceSubClass}=="00"
> >     ATTRS{bInterfaceProtocol}=="00"
> >     ATTRS{bNumEndpoints}=="02"
> >     ATTRS{supports_autosuspend}=="1"
> >     ATTRS{bAlternateSetting}==" 0"
> >     ATTRS{bInterfaceNumber}=="01"
> > 
> >   looking at parent device
> > '/devices/pci0000:00/0000:00:04.0/usb4/4-2':
> >     KERNELS=="4-2"
> >     SUBSYSTEMS=="usb"
> >     DRIVERS=="usb"
> >     ATTRS{bDeviceSubClass}=="00"
> >     ATTRS{bDeviceProtocol}=="00"
> >     ATTRS{devpath}=="2"
> >     ATTRS{idVendor}=="fff0"
> >     ATTRS{speed}=="12"
> >     ATTRS{bNumInterfaces}==" 2"
> >     ATTRS{bConfigurationValue}=="1"
> >     ATTRS{bMaxPacketSize0}=="64"
> >     ATTRS{busnum}=="4"
> >     ATTRS{devnum}=="2"
> >     ATTRS{configuration}==""
> >     ATTRS{bMaxPower}=="0mA"
> >     ATTRS{authorized}=="1"
> >     ATTRS{bmAttributes}=="c0"
> >     ATTRS{bNumConfigurations}=="1"
> >     ATTRS{maxchild}=="0"
> >     ATTRS{bcdDevice}=="0100"
> >     ATTRS{avoid_reset_quirk}=="0"
> >     ATTRS{quirks}=="0x0"
> >     ATTRS{serial}=="DT653794"
> >     ATTRS{version}==" 1.01"
> >     ATTRS{urbnum}=="42"
> >     ATTRS{ltm_capable}=="no"
> >     ATTRS{manufacturer}=="DATECS"
> >     ATTRS{removable}=="unknown"
> >     ATTRS{idProduct}=="0100"
> >     ATTRS{bDeviceClass}=="02"
> >     ATTRS{product}=="Fiscal Printer FP-2000"
> This looks like you should be using the cdc-acm driver instead, but
> please provide the output of "lsusb -v" for this device first (as
> that
> is a bit easier to parse).
> 
> Thanks,
> Johan
-- 
Anton Avramov <lukav@xxxxxxxxx>



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux