usbip failure with ttyACM0 device

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

 



Hi,
some time ago, I wrote a script, which binds, attach and detach USB device plugged into certain ports of Raspberry Pi (run via udev).
It worked, I used HID devices and mass storage with no problems.
Now I connected 3D printer (CEL Robox) and something strange happened.
It will not bind.

----------------------------------------------------------------
pi@raspberrypi:/ $ usbip list -l
 - busid 1-1.1 (0424:ec00)
   Standard Microsystems Corp. : SMSC9512/9514 Fast Ethernet Adapter (0424:ec00)

 - busid 1-1.3.1 (16d0:081b)
   MCS : unknown product (16d0:081b)

pi@raspberrypi:/ $ sudo usbip --debug bind --busid 1-1.3.1
usbip: debug: usbip.c:141:[run_command] running command: `bind'
usbip: info: bind device on busid 1-1.3.1: complete

pi@raspberrypi:/ $ usbip list -r 127.0.0.1
usbip: info: no exportable devices found on 127.0.0.1
----------------------------------------------------------------

Printer introduce itself like that (dmesg)

----------------------------------------------------------------
[32827.741143] usb 1-1.3: new high-speed USB device number 47 using dwc_otg
[32827.871427] usb 1-1.3: New USB device found, idVendor=0424, idProduct=2512 [32827.871439] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[32827.872282] hub 1-1.3:1.0: USB hub found
[32827.872378] hub 1-1.3:1.0: 2 ports detected
[32828.191153] usb 1-1.3.1: new high-speed USB device number 48 using dwc_otg [32828.321621] usb 1-1.3.1: New USB device found, idVendor=16d0, idProduct=081b [32828.321633] usb 1-1.3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[32828.321641] usb 1-1.3.1: Product: Robox
[32828.323952] cdc_acm 1-1.3.1:1.0: ttyACM0: USB ACM device
----------------------------------------------------------------

I can't bind USB hub, but shouldn't I be able to bind devices connected via hub? How to handle this? Now, whe I use port watched by udev, which attemp to bind device with usbip, it gets reconnected:

----------------------------------------------------------------
[10451.868375] usbip-host 1-1.5.1: usbip-host: register new device (bus 1 dev 35)
[10451.896587] usbip-host 1-1.5.1: USB disconnect, device number 35
[10452.203165] usb 1-1.5.1: new high-speed USB device number 36 using dwc_otg [10452.333631] usb 1-1.5.1: New USB device found, idVendor=16d0, idProduct=081b [10452.333643] usb 1-1.5.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[10452.333651] usb 1-1.5.1: Product: Robox
[10452.335629] cdc_acm 1-1.5.1:1.0: ttyACM0: USB ACM device
[10457.381730] usbip-host 1-1.5.1: usbip-host: register new device (bus 1 dev 36)
[10457.528593] usbip-host 1-1.5.1: USB disconnect, device number 36
[10457.823186] usb 1-1.5.1: new high-speed USB device number 37 using dwc_otg [10457.953654] usb 1-1.5.1: New USB device found, idVendor=16d0, idProduct=081b [10457.953666] usb 1-1.5.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[10457.953674] usb 1-1.5.1: Product: Robox
[10457.956388] cdc_acm 1-1.5.1:1.0: ttyACM0: USB ACM device
[10473.064229] usbip-host 1-1.5.1: usbip-host: register new device (bus 1 dev 37)
[10473.144594] usbip-host 1-1.5.1: USB disconnect, device number 37
[10473.443253] usb 1-1.5.1: new high-speed USB device number 38 using dwc_otg [10473.573715] usb 1-1.5.1: New USB device found, idVendor=16d0, idProduct=081b [10473.573727] usb 1-1.5.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[10473.573735] usb 1-1.5.1: Product: Robox
[10473.575705] cdc_acm 1-1.5.1:1.0: ttyACM0: USB ACM device
[10488.652347] usbip-host 1-1.5.1: usbip-host: register new device (bus 1 dev 38)
[10488.760502] usbip-host 1-1.5.1: USB disconnect, device number 38
[10489.053282] usb 1-1.5.1: new high-speed USB device number 39 using dwc_otg [10489.183557] usb 1-1.5.1: New USB device found, idVendor=16d0, idProduct=081b [10489.183563] usb 1-1.5.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[10489.183567] usb 1-1.5.1: Product: Robox
[10489.184682] cdc_acm 1-1.5.1:1.0: ttyACM0: USB ACM device
[10504.260336] usbip-host 1-1.5.1: usbip-host: register new device (bus 1 dev 39)
[10504.376601] usbip-host 1-1.5.1: USB disconnect, device number 39
[10504.673382] usb 1-1.5.1: new high-speed USB device number 40 using dwc_otg [10504.803851] usb 1-1.5.1: New USB device found, idVendor=16d0, idProduct=081b [10504.803864] usb 1-1.5.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[10504.803872] usb 1-1.5.1: Product: Robox
[10504.805795] cdc_acm 1-1.5.1:1.0: ttyACM0: USB ACM device
----------------------------------------------------------------

BR,
Marcin


---
Ta wiadomość została sprawdzona na obecność wirusów przez oprogramowanie antywirusowe Avast.
https://www.avast.com/antivirus




[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux