4G dongle keeps debouncing

HI All,
I have a 4G dongle which keep on denouncing between two interfaces
Kernel version “3.8.13-bone80” (Sorry we are stuck with this)

here is dmesg for the dongle behavior:
[ 1764.764123] usb 1-1.1: Product: HUAWEI_MOBILE
[ 1764.764133] usb 1-1.1: Manufacturer: HUAWEI_MOBILE
[ 1764.764573] usb 1-1.1: usb_probe_device
[ 1764.764589] usb 1-1.1: configuration #1 chosen from 1 choice
[ 1764.815748] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
[ 1764.816114] cdc_ether 1-1.1:1.0: usb_probe_interface
[ 1764.816185] cdc_ether 1-1.1:1.0: usb_probe_interface - got id
[ 1764.842656] cdc_ether 1-1.1:1.0 eth1: register ‘cdc_ether’ at usb-musb-hdrc.1.auto-1.1, CDC Ethernet Device, 00:1e:10:1f:00:00
[ 1764.842806] usb 1-1.1: adding 1-1.1:1.1 (config #1, interface 1)
[ 1764.843398] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 1767.309575] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 1767.309715] hub 1-1:1.0: port 1, status 0100, change 0001, 12 Mb/s
[ 1767.309734] usb 1-1.1: USB disconnect, device number 95
[ 1767.309745] usb 1-1.1: unregistering device
[ 1767.309757] usb 1-1.1: unregistering interface 1-1.1:1.0
[ 1767.309972] cdc_ether 1-1.1:1.0 eth1: unregister ‘cdc_ether’ usb-musb-hdrc.1.auto-1.1, CDC Ethernet Device
[ 1767.316709] usb 1-1.1: unregistering interface 1-1.1:1.1
[ 1767.317000] usb 1-1.1: usb_disable_device nuking all URBs
[ 1767.535142] hub 1-1:1.0: debounce: port 1: total 200ms stable 100ms status 0x101
[ 1767.601538] usb 1-1.1: new high-speed USB device number 96 using musb-hdrc
[ 1767.615236] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
[ 1767.695706] usb 1-1.1: default language 0x0409
[ 1767.695919] usb 1-1.1: udev 96, busnum 1, minor = 95
[ 1767.695933] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1f01
[ 1767.695945] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1767.695955] usb 1-1.1: Product: HUAWEI_MOBILE
[ 1767.695964] usb 1-1.1: Manufacturer: HUAWEI_MOBILE
[ 1767.695973] usb 1-1.1: SerialNumber: 0123456789ABCDEF
[ 1767.696417] usb 1-1.1: usb_probe_device
[ 1767.696434] usb 1-1.1: configuration #1 chosen from 1 choice
[ 1767.696943] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
[ 1767.697360] usb-storage 1-1.1:1.0: usb_probe_interface
[ 1767.697387] usb-storage 1-1.1:1.0: usb_probe_interface - got id
[ 1767.700483] scsi418 : usb-storage 1-1.1:1.0
[ 1767.701194] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 1768.368244] usb-storage 1-1.1:1.0: disconnect by usbfs
[ 1768.589625] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 1768.589777] hub 1-1:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 1768.589863] usb 1-1.1: USB disconnect, device number 96
[ 1768.589875] usb 1-1.1: unregistering device
[ 1768.589887] usb 1-1.1: unregistering interface 1-1.1:1.0
[ 1768.590231] usb 1-1.1: usb_disable_device nuking all URBs
[ 1768.699418] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 1768.765758] usb 1-1.1: new high-speed USB device number 97 using musb-hdrc
[ 1768.779445] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
[ 1768.859861] usb 1-1.1: skipped 1 descriptor after configuration
[ 1768.859886] usb 1-1.1: skipped 3 descriptors after interface
[ 1768.859995] usb 1-1.1: default language 0x0409
[ 1768.860170] usb 1-1.1: udev 97, busnum 1, minor = 96
[ 1768.860184] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=14db
[ 1768.860196] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1768.860206] usb 1-1.1: Product: HUAWEI_MOBILE
[ 1768.860215] usb 1-1.1: Manufacturer: HUAWEI_MOBILE
[ 1768.860673] usb 1-1.1: usb_probe_device
[ 1768.860692] usb 1-1.1: configuration #1 chosen from 1 choice
[ 1768.912011] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
[ 1768.912540] cdc_ether 1-1.1:1.0: usb_probe_interface
[ 1768.912557] cdc_ether 1-1.1:1.0: usb_probe_interface - got id
[ 1768.939763] cdc_ether 1-1.1:1.0 eth1: register ‘cdc_ether’ at usb-musb-hdrc.1.auto-1.1, CDC Ethernet Device, 00:1e:10:1f:00:00
[ 1768.939972] usb 1-1.1: adding 1-1.1:1.1 (config #1, interface 1)
[ 1768.940562] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002

This keep on repeating forever.
Any help is appreciated

How do you supply power to the 4G dongle? It’s not connected directly to the Beagle’s USB port, is it?

I tried both ways, direct connection with beaglebone and using a powered usb hub.

don’t know about this dongle, but a quick google, this device seems to have several modes of operation. your log shows it changing pid which implies it is changing modes. see the following link, they seemed to have had the same issue and have posted a possible solution.

https://gist.github.com/jfstenuit/13becfe728046074f5aaa0cb7f899ab9

That link is not very helpful for me.

Have you created a udev rule for this device on the BB?
This seems to indicate it keeps creating a new device.

[ 1768.860170] usb 1-1.1: udev 97, busnum 1, minor = 96
[ 1768.860184] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=14db
[ 1768.860196] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1768.860206] usb 1-1.1: Product: HUAWEI_MOBILE
[ 1768.860215] usb 1-1.1: Manufacturer: HUAWEI_MOBILE

Ex:https://wiki.debian.org/udev

https://linuxconfig.org/tutorial-on-how-to-write-basic-udev-rules-in-linux

Did the device come with a driver that is supported on the kernel you are running?

What USB hub are you using? I found that not all work the same on the BB.
At the bottom of this link is a list of Hubs that are known to work.
https://elinux.org/Beagleboard:BeagleBone_Black_Accessories

I’ve had good luck with the Belkin F4U041 7-port hub:
https://www.belkin.com/us/p/P-F4U041/

Cheers,

Jon

Jon