This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: USB tethering issue

Part Number: AM3352


Tool/software: Linux

Hi All,

We have BBB custom board and running with TI-SDK8, which has OTG port to connect mobile devices. The problem is when the USB mobile is connected to the board, the mobile is started charging,it's working fine and when we enable tethering, the usb is disconnecting and connecting back. Is there a possible way to not disconnect USB when the tethering is enabled.

Logs for your reference:

[ 8923.999987] usb 1-1: New USB device found, idVendor=17ef, idProduct=7999
[ 8924.007049] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 8924.014600] usb 1-1: Product: Lenovo
[ 8924.018365] usb 1-1: Manufacturer: Lenovo
[ 8924.022609] usb 1-1: SerialNumber: 8549AUY5UCSCRKJV
[ 8927.087210] usb 1-1: USB disconnect, device number 44
[ 8927.549240] usb 1-1: new high-speed USB device number 45 using musb-hdrc
[ 8927.689953] usb 1-1: New USB device found, idVendor=17ef, idProduct=799d
[ 8927.697013] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 8927.704564] usb 1-1: Product: ********
[ 8927.708329] usb 1-1: Manufacturer: *****
[ 8927.712574] usb 1-1: SerialNumber: *****************
[ 8927.732171] rndis_host 1-1:1.0 usb0: register 'rndis_host' at usb-musb-hdrc.0.auto-1, RNDIS device, e2:d4:cc:5d:f5:bb --> Tethering is enabled.
[ 9282.803829] usb 1-1: USB disconnect, device number 45 -->  USB is disconnected and connected back 
[ 9282.811066] rndis_host 1-1:1.0 usb0: unregister 'rndis_host' usb-musb-hdrc.0.auto-1, RNDIS device
[ 9283.379254] usb 1-1: new high-speed USB device number 46 using musb-hdrc
[ 9283.519963] usb 1-1: New USB device found, idVendor=17ef, idProduct=7999
[ 9283.527021] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 9283.534572] usb 1-1: Product: ********
[ 9283.538337] usb 1-1: Manufacturer: *******
[ 9283.542583] usb 1-1: SerialNumber: *********

-Pavan

  • Hi,

    The USB experts have been notified. They will respond here.
  • Thank You for forwarding.
  • Pavan,

    pavan krishna said:
    [ 8927.732171] rndis_host 1-1:1.0 usb0: register 'rndis_host' at usb-musb-hdrc.0.auto-1, RNDIS device, e2:d4:cc:5d:f5:bb --> Tethering is enabled.
    [ 9282.803829] usb 1-1: USB disconnect, device number 45 -->  USB is disconnected and connected back 

    I am not familiar with the technical detail of tethering, but the log shows the disconnect happens about 6 minutes after the tethering.

    Only a debug could tell the root cause of the disconnect, then to find the solution.
     

  • Thank You Bin for the reply,

    Tethering is to access internet from the mobile device, so when ever tethering is enabled in mobile device, usb is disconnected and connected back. I dont think so it is 6 mnts, probably 6 seconds?.

    As per my understanding, when ever tethering is enabled, the USB driver is unloading and re-loading, Is that correct?

    Can you please explain, what is the driver code flow when tethering is enabled?

  • pavan krishna said:
    I dont think so it is 6 mnts, probably 6 seconds?.

    The log you provided shows the timestamp difference is ~355 seconds before and after tethering.

    pavan krishna said:
    As per my understanding, when ever tethering is enabled, the USB driver is unloading and re-loading, Is that correct?

    Reloading the USB drivers or not is up to the tethering protocol, which I am not familiar with.

    pavan krishna said:
    Can you please explain, what is the driver code flow when tethering is enabled?

    Tethering over USB is an application of kernel USB framework, it is out of our support scope, so I am unable to explain the driver call flow for tethering.