[A64] USB ACM ports seldom disconnect

Started by vikas, December 28, 2020, 01:02:44 AM

Previous topic - Next topic

vikas

Hello,

I am using  A64-OLinuXino-bionic-base-20201008-215447.img through eMMC to boot A64. Package has been updated through apt-get. SIMCOMM 7000 modem is connected over USB. Sometimes it disconnect and reconnect. I checked with two modems. A64 Rev E board is supplied with 5V 2A adapter.

logs are below:
[  170.103687] qmi_wwan 3-1:1.5 wwan0: unregister 'qmi_wwan' usb-1c1b000.usb-1, WWAN/QMI device
[  170.417010] usb 3-1: new high-speed USB device number 5 using ehci-platform
[  170.575052] usb 3-1: New USB device found, idVendor=1e0e, idProduct=9001, bcdDevice= 0.00
[  170.575065] usb 3-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[  170.575072] usb 3-1: Product: SimTech SIM7000
[  170.575078] usb 3-1: Manufacturer: SimTech, Incorporated
[  170.575084] usb 3-1: SerialNumber: 1234567890ABCDEF
[  170.578163] option 3-1:1.0: GSM modem (1-port) converter detected
[  170.579361] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[  170.579967] option 3-1:1.1: GSM modem (1-port) converter detected
[  170.581558] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[  170.582161] option 3-1:1.2: GSM modem (1-port) converter detected
[  170.583545] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
[  170.584139] option 3-1:1.3: GSM modem (1-port) converter detected
[  170.585695] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB3
[  170.586329] option 3-1:1.4: GSM modem (1-port) converter detected
[  170.587711] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB4
[  170.590186] qmi_wwan 3-1:1.5: cdc-wdm0: USB WDM device
[  170.591277] qmi_wwan 3-1:1.5 wwan0: register 'qmi_wwan' at usb-1c1b000.usb-1, WWAN/QMI device, 0a:cb:cd:ca:e8:ab
[  171.320545] usb usb3-port1: disabled by hub (EMI?), re-enabling...
[  171.326812] usb 3-1: USB disconnect, device number 5
[  171.327847] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  171.327930] option 3-1:1.0: device disconnected
[  171.332137] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  171.332245] option 3-1:1.1: device disconnected
[  171.336328] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[  171.336437] option 3-1:1.2: device disconnected
[  171.340850] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[  171.340956] option 3-1:1.3: device disconnected
[  171.345502] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[  171.345619] option 3-1:1.4: device disconnected
[  171.345974] qmi_wwan 3-1:1.5 wwan0: unregister 'qmi_wwan' usb-1c1b000.usb-1, WWAN/QMI device
[  171.657016] usb 3-1: new high-speed USB device number 6 using ehci-platform
[  171.815055] usb 3-1: New USB device found, idVendor=1e0e, idProduct=9001, bcdDevice= 0.00
[  171.815069] usb 3-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[  171.815076] usb 3-1: Product: SimTech SIM7000
[  171.815082] usb 3-1: Manufacturer: SimTech, Incorporated
[  171.815088] usb 3-1: SerialNumber: 1234567890ABCDEF
[  171.817177] option 3-1:1.0: GSM modem (1-port) converter detected
[  171.818427] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[  171.819089] option 3-1:1.1: GSM modem (1-port) converter detected
[  171.820642] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[  171.821334] option 3-1:1.2: GSM modem (1-port) converter detected
[  171.822823] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
[  171.823399] option 3-1:1.3: GSM modem (1-port) converter detected
[  171.824797] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB3
[  171.825511] option 3-1:1.4: GSM modem (1-port) converter detected
[  171.826959] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB4
[  171.829359] qmi_wwan 3-1:1.5: cdc-wdm0: USB WDM device
[  171.830601] qmi_wwan 3-1:1.5 wwan0: register 'qmi_wwan' at usb-1c1b000.usb-1, WWAN/QMI device, 0a:cb:cd:ca:e8:ab
[  173.527418] usb usb3-port1: disabled by hub (EMI?), re-enabling...
[  173.533714] usb 3-1: USB disconnect, device number 6
[  173.534750] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  173.534845] option 3-1:1.0: device disconnected


Please suggest possible solution.

LubOlimex

It is power-hungry module with spikes up to 2A, might have trouble powering it via the USB since the high spikes might make it looks like short-circuit, maybe try adding capacitors or something like USB-CAP:

https://www.olimex.com/Products/USB-Modules/USB-CAP/
Technical support and documentation manager at Olimex

vikas

Hello,

Thanks for reply.

1.) [  171.320545] usb usb3-port1: disabled by hub (EMI?), re-enabling...

2.) [    3.357204] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.06
[    3.357212] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.357218] usb usb1: Product: EHCI Host Controller
[    3.357224] usb usb1: Manufacturer: Linux 5.6.14-olimex ehci_hcd
[    3.357230] usb usb1: SerialNumber: 1c1a000.usb
[    3.357717] hub 1-0:1.0: USB hub found
[    3.357755] hub 1-0:1.0: 1 port detected

[    3.421294] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.06
[    3.421302] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.421308] usb usb2: Product: Generic Platform OHCI controller
[    3.421314] usb usb2: Manufacturer: Linux 5.6.14-olimex ohci_hcd
[    3.421320] usb usb2: SerialNumber: 1c1a400.usb
[    3.421746] hub 2-0:1.0: USB hub found

[    3.725629] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.06
[    3.725639] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.725646] usb usb4: Product: Generic Platform OHCI controller
[    3.725652] usb usb4: Manufacturer: Linux 5.6.14-olimex ohci_hcd
[    3.725658] usb usb4: SerialNumber: 1c1b400.usb
[    3.726125] hub 4-0:1.0: USB hub found

[    3.728028] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.06
[    3.728036] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.728042] usb usb5: Product: MUSB HDRC host driver
[    3.728048] usb usb5: Manufacturer: Linux 5.6.14-olimex musb-hcd
[    3.728054] usb usb5: SerialNumber: musb-hdrc.4.auto
[    3.728511] hub 5-0:1.0: USB hub found
[    3.728553] hub 5-0:1.0: 1 port detected


Please provide information for below points:
1) How many USB ports are supported by A64? In case these ports are actually supported through USB HUB, could you share documentation regarding USB HUB design in A64 processor/board.
2.) For official bionic release (http://images.olimex.com/release/a64/), please share the source code git path.