Re: nabíječka a linux

Jindrich Fucik fulda na seznam.cz
Středa Květen 5 22:20:05 CEST 2021


Není to náhodou případ jako s analyzátorem Saleae?
Po připojení se ohlásí generickej chip a ovládací program mu nahraje 
správný firmware?

Product: C8051F3xx Development Board


Dne 5.5.2021 v 21:14 Aleš Filip napsal(a):
> 
> Dobrý den,
> 
> Snažím se připojit nabíječku ImaxB6 k linuxu přes USB, a nějak se mi 
> nedaří.
> Potřeboval bych z toho nějak dostat /dev/ttyUSB, aby ji program viděl, 
> ale nevím co s tím. Když připojím nějaký CH340 nebo CP2102 převodník, 
> tak ho v /dev vidím, ale tohle se mi tam neobjeví.
> 
> V syslogu vidím tohle:
> May  5 20:43:47 raspberrypi kernel: [ 2825.407881] Indeed it is in host 
> mode hprt0 = 00021501
> May  5 20:43:47 raspberrypi kernel: [ 2825.617849] usb 1-1: device 
> descriptor read/64, error -110
> May  5 20:43:48 raspberrypi kernel: [ 2825.738224] Indeed it is in host 
> mode hprt0 = 00021501
> May  5 20:43:48 raspberrypi kernel: [ 2826.020250] usb 1-1: New USB 
> device found, idVendor=0000, idProduct=0001, bcdDevice= 0.00
> May  5 20:43:48 raspberrypi kernel: [ 2826.020283] usb 1-1: New USB 
> device strings: Mfr=1, Product=2, SerialNumber=0
> May  5 20:43:48 raspberrypi kernel: [ 2826.020299] usb 1-1: Product: 
> C8051F3xx Development Board
> May  5 20:43:48 raspberrypi kernel: [ 2826.020317] usb 1-1: 
> Manufacturer: SILICON LABORATORIES
> May  5 20:43:48 raspberrypi kernel: [ 2826.034914] input: SILICON 
> LABORATORIES C8051F3xx Development Board as 
> /devices/platform/soc/20980000.usb/usb1/1-1/1-1:1.0/0003:0000:0001.0002/input/input1
> May  5 20:43:48 raspberrypi kernel: [ 2826.048135] hid-generic 
> 0003:0000:0001.0002: input,hidraw0: USB HID v1.01 Device [SILICON 
> LABORATORIES C8051F3xx Development Board] on usb-20980000.usb-1/input0
> May  5 20:43:48 raspberrypi mtp-probe: checking bus 1, device 3: 
> "/sys/devices/platform/soc/20980000.usb/usb1/1-1"
> May  5 20:43:48 raspberrypi mtp-probe: bus: 1, device: 3 was not an MTP 
> device
> May  5 20:43:49 raspberrypi systemd-udevd[1409]: Process 
> '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed 
> with exit code 1.
> May  5 20:43:49 raspberrypi mtp-probe: checking bus 1, device 3: 
> "/sys/devices/platform/soc/20980000.usb/usb1/1-1"
> May  5 20:43:49 raspberrypi mtp-probe: bus: 1, device: 3 was not an MTP 
> device
> 
> a lsusb:
> Bus 001 Device 002: ID 0000:0001
> Device Descriptor:
>    bLength                18
>    bDescriptorType         1
>    bcdUSB               1.10
>    bDeviceClass            0
>    bDeviceSubClass         0
>    bDeviceProtocol         0
>    bMaxPacketSize0        64
>    idVendor           0x0000
>    idProduct          0x0001
>    bcdDevice            0.00
>    iManufacturer           1 SILICON LABORATORIES
>    iProduct                2 C8051F3xx Development Board
>    iSerial                 0
>    bNumConfigurations      1
>    Configuration Descriptor:
>      bLength                 9
>      bDescriptorType         2
>      wTotalLength       0x0029
>      bNumInterfaces          1
>      bConfigurationValue     1
>      iConfiguration          0
>      bmAttributes         0x80
>        (Bus Powered)
>      MaxPower               64mA
>      Interface Descriptor:
>        bLength                 9
>        bDescriptorType         4
>        bInterfaceNumber        0
>        bAlternateSetting       0
>        bNumEndpoints           2
>        bInterfaceClass         3 Human Interface Device
>        bInterfaceSubClass      1 Boot Interface Subclass
>        bInterfaceProtocol      2 Mouse
>        iInterface              0
>          HID Device Descriptor:
>            bLength                 9
>            bDescriptorType        33
>            bcdHID               1.01
>            bCountryCode            0 Not supported
>            bNumDescriptors         1
>            bDescriptorType        34 Report
>            wDescriptorLength      36
>           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     0x0040  1x 64 bytes
>          bInterval              10
>        Endpoint Descriptor:
>          bLength                 7
>          bDescriptorType         5
>          bEndpointAddress     0x01  EP 1 OUT
>          bmAttributes            3
>            Transfer Type            Interrupt
>            Synch Type               None
>            Usage Type               Data
>          wMaxPacketSize     0x0040  1x 64 bytes
>          bInterval              10
> can't get debug descriptor: Resource temporarily unavailable
> Device Status:     0x0000
>    (Bus Powered)
> 
> S pozdravem,
> 
> -- 
>   Aleš Filip
>   Kutná Hora
>   http://xanadu.khnet.info
> 
> 
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
> 


Další informace o konferenci Hw-list