EM05 USB negotiation at first boot for 11 times

Hi, I have EM05-E module connected to USB2 on STM32mp1 linux board.
I have integrated the driver according your Guide(Quectel_LTE&5G_Linux_USB_Driver_User_Guide_V2.0)
The module working but I have one specific issue with the boot sequence.
when i start up the board after power off the EM05-E module doing this for 11 times until it stables:

[   39.672515] usb 2-1: USB disconnect, device number 6
[   39.682640] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   39.706149] option 2-1:1.0: device disconnected
[   39.735443] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   39.757300] option 2-1:1.1: device disconnected
[   39.773662] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   39.820131] option 2-1:1.2: device disconnected
[   39.848212] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   39.879592] option 2-1:1.3: device disconnected
[   40.477067] usb 2-1: new high-speed USB device number 7 using ehci-platform
[   40.701322] option 2-1:1.0: GSM modem (1-port) converter detected
[   40.707951] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[   40.724471] option 2-1:1.1: GSM modem (1-port) converter detected
[   40.737268] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[   40.744205] option 2-1:1.2: GSM modem (1-port) converter detected
[   40.756400] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[   40.773061] option 2-1:1.3: GSM modem (1-port) converter detected
[   40.784793] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[   45.291610] usb 2-1: USB disconnect, device number 7
[   45.296345] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   45.337220] option 2-1:1.0: device disconnected
[   45.347482] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   45.361764] option 2-1:1.1: device disconnected
[   45.398472] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   45.417253] option 2-1:1.2: device disconnected
[   45.422849] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   45.467233] option 2-1:1.3: device disconnected
[   46.096996] usb 2-1: new high-speed USB device number 8 using ehci-platform
[   46.321386] option 2-1:1.0: GSM modem (1-port) converter detected
[   46.328470] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[   46.342252] option 2-1:1.1: GSM modem (1-port) converter detected
[   46.357801] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[   46.377123] option 2-1:1.2: GSM modem (1-port) converter detected
[   46.383394] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[   46.399099] option 2-1:1.3: GSM modem (1-port) converter detected
[   46.405175] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[   50.911378] usb 2-1: USB disconnect, device number 8
[   50.919373] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   50.929206] option 2-1:1.0: device disconnected
[   50.942532] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   50.959400] option 2-1:1.1: device disconnected
[   50.980421] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   50.996786] option 2-1:1.2: device disconnected
[   51.016284] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   51.027582] option 2-1:1.3: device disconnected
[   51.686985] usb 2-1: new high-speed USB device number 9 using ehci-platform
[   51.901551] option 2-1:1.0: GSM modem (1-port) converter detected
[   51.910008] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[   51.919847] option 2-1:1.1: GSM modem (1-port) converter detected
[   51.928821] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[   51.935310] option 2-1:1.2: GSM modem (1-port) converter detected
[   51.941868] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[   51.948494] option 2-1:1.3: GSM modem (1-port) converter detected
[   51.954257] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[   55.191789] wlcore: WARNING no fw rx ba on tid 3
[   56.533120] usb 2-1: USB disconnect, device number 9
[   56.541832] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   56.566660] option 2-1:1.0: device disconnected
[   56.587180] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   56.594052] option 2-1:1.1: device disconnected
[   56.641426] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   56.671163] option 2-1:1.2: device disconnected
[   56.702211] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   56.730685] option 2-1:1.3: device disconnected
[   57.367019] usb 2-1: new high-speed USB device number 10 using ehci-platform
[   57.591173] option 2-1:1.0: GSM modem (1-port) converter detected
[   57.596560] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[   57.611307] option 2-1:1.1: GSM modem (1-port) converter detected
[   57.616732] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[   57.630186] option 2-1:1.2: GSM modem (1-port) converter detected
[   57.635594] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[   57.648810] option 2-1:1.3: GSM modem (1-port) converter detected
[   57.654218] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[   62.155340] usb 2-1: USB disconnect, device number 10
[   62.162080] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   62.170553] option 2-1:1.0: device disconnected
[   62.183396] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   62.197364] option 2-1:1.1: device disconnected
[   62.223382] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   62.259861] option 2-1:1.2: device disconnected
[   62.279152] wlcore: WARNING no fw rx ba on tid 1
[   62.321318] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   62.343537] option 2-1:1.3: device disconnected
[   62.946951] usb 2-1: new high-speed USB device number 11 using ehci-platform
[   63.161108] option 2-1:1.0: GSM modem (1-port) converter detected
[   63.180682] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[   63.189321] option 2-1:1.1: GSM modem (1-port) converter detected
[   63.196092] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[   63.214028] option 2-1:1.2: GSM modem (1-port) converter detected
[   63.223839] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[   63.236421] option 2-1:1.3: GSM modem (1-port) converter detected
[   63.243919] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3

only then I can connect to the network .
if I only reboot the linux without power off the board conects on the first time:

[    3.210434] option 2-1:1.0: GSM modem (1-port) converter detected
[    3.215621] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[    3.222702] option 2-1:1.1: GSM modem (1-port) converter detected
[    3.228541] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[    3.235470] option 2-1:1.2: GSM modem (1-port) converter detected
[    3.241766] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[    3.248419] option 2-1:1.3: GSM modem (1-port) converter detected
[    3.254584] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3

Is this some HW issue or may be old firmware?
Firmware: AT+GMR
EM05EFAR06A04M4G
tnx for advance.
Sergey.M

Looks like a power issue with your board. Try using a different power supply or a separate power source for the modem, like a powered USB hub.

We checked the power and we tried to power with external power source and it behaves the same

Have you tried it with another host?
What USB adapter are you using?

Yes I tried with raspberry pi (debian) also :

n Feb 20 14:01:49 2023] cdc_mbim 1-1.3:1.4 wwan0: register 'cdc_mbim' at usb-3f980000.usb-1.3, CDC MBIM, 8e:ab:da:ab:9c:15
[Mon Feb 20 14:01:50 2023] 8021q: adding VLAN 0 to HW filter on device wwan0
[Mon Feb 20 14:01:54 2023] usb 1-1.3: USB disconnect, device number 11
[Mon Feb 20 14:01:54 2023] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[Mon Feb 20 14:01:54 2023] option 1-1.3:1.0: device disconnected
[Mon Feb 20 14:01:54 2023] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[Mon Feb 20 14:01:54 2023] option 1-1.3:1.1: device disconnected
[Mon Feb 20 14:01:54 2023] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[Mon Feb 20 14:01:54 2023] option 1-1.3:1.2: device disconnected
[Mon Feb 20 14:01:54 2023] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[Mon Feb 20 14:01:54 2023] option 1-1.3:1.3: device disconnected
[Mon Feb 20 14:01:54 2023] cdc_mbim 1-1.3:1.4 wwan0: unregister 'cdc_mbim' usb-3f980000.usb-1.3, CDC MBIM
[Mon Feb 20 14:01:55 2023] usb 1-1.3: new high-speed USB device number 12 using dwc_otg
[Mon Feb 20 14:01:55 2023] usb 1-1.3: New USB device found, idVendor=2c7c, idProduct=0125, bcdDevice= 3.18
[Mon Feb 20 14:01:55 2023] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Mon Feb 20 14:01:55 2023] usb 1-1.3: Product: LTE Module
[Mon Feb 20 14:01:55 2023] usb 1-1.3: Manufacturer: Quectel Incorporated
[Mon Feb 20 14:01:55 2023] option 1-1.3:1.0: GSM modem (1-port) converter detected
[Mon Feb 20 14:01:55 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[Mon Feb 20 14:01:55 2023] option 1-1.3:1.1: GSM modem (1-port) converter detected
[Mon Feb 20 14:01:55 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[Mon Feb 20 14:01:55 2023] option 1-1.3:1.2: GSM modem (1-port) converter detected
[Mon Feb 20 14:01:55 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[Mon Feb 20 14:01:55 2023] option 1-1.3:1.3: GSM modem (1-port) converter detected
[Mon Feb 20 14:01:55 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[Mon Feb 20 14:01:55 2023] cdc_mbim 1-1.3:1.4: cdc-wdm0: USB WDM device
[Mon Feb 20 14:01:55 2023] cdc_mbim 1-1.3:1.4 wwan0: register 'cdc_mbim' at usb-3f980000.usb-1.3, CDC MBIM, 8e:ab:da:ab:9c:15
[Mon Feb 20 14:01:55 2023] 8021q: adding VLAN 0 to HW filter on device wwan0
[Mon Feb 20 14:02:00 2023] usb 1-1.3: USB disconnect, device number 12
[Mon Feb 20 14:02:00 2023] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[Mon Feb 20 14:02:00 2023] option 1-1.3:1.0: device disconnected
[Mon Feb 20 14:02:00 2023] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[Mon Feb 20 14:02:00 2023] option 1-1.3:1.1: device disconnected
[Mon Feb 20 14:02:00 2023] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[Mon Feb 20 14:02:00 2023] option 1-1.3:1.2: device disconnected
[Mon Feb 20 14:02:00 2023] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[Mon Feb 20 14:02:00 2023] option 1-1.3:1.3: device disconnected
[Mon Feb 20 14:02:00 2023] cdc_mbim 1-1.3:1.4 wwan0: unregister 'cdc_mbim' usb-3f980000.usb-1.3, CDC MBIM
[Mon Feb 20 14:02:01 2023] usb 1-1.3: new high-speed USB device number 13 using dwc_otg
[Mon Feb 20 14:02:01 2023] usb 1-1.3: New USB device found, idVendor=2c7c, idProduct=0125, bcdDevice= 3.18
[Mon Feb 20 14:02:01 2023] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Mon Feb 20 14:02:01 2023] usb 1-1.3: Product: LTE Module
[Mon Feb 20 14:02:01 2023] usb 1-1.3: Manufacturer: Quectel Incorporated
[Mon Feb 20 14:02:01 2023] option 1-1.3:1.0: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:01 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[Mon Feb 20 14:02:01 2023] option 1-1.3:1.1: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:01 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[Mon Feb 20 14:02:01 2023] option 1-1.3:1.2: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:01 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[Mon Feb 20 14:02:01 2023] option 1-1.3:1.3: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:01 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[Mon Feb 20 14:02:01 2023] cdc_mbim 1-1.3:1.4: cdc-wdm0: USB WDM device
[Mon Feb 20 14:02:01 2023] cdc_mbim 1-1.3:1.4 wwan0: register 'cdc_mbim' at usb-3f980000.usb-1.3, CDC MBIM, 8e:ab:da:ab:9c:15
[Mon Feb 20 14:02:01 2023] 8021q: adding VLAN 0 to HW filter on device wwan0
[Mon Feb 20 14:02:05 2023] usb 1-1.3: USB disconnect, device number 13
[Mon Feb 20 14:02:05 2023] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[Mon Feb 20 14:02:05 2023] option 1-1.3:1.0: device disconnected
[Mon Feb 20 14:02:05 2023] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[Mon Feb 20 14:02:05 2023] option 1-1.3:1.1: device disconnected
[Mon Feb 20 14:02:05 2023] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[Mon Feb 20 14:02:05 2023] option 1-1.3:1.2: device disconnected
[Mon Feb 20 14:02:05 2023] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[Mon Feb 20 14:02:05 2023] option 1-1.3:1.3: device disconnected
[Mon Feb 20 14:02:05 2023] cdc_mbim 1-1.3:1.4 wwan0: unregister 'cdc_mbim' usb-3f980000.usb-1.3, CDC MBIM
[Mon Feb 20 14:02:06 2023] usb 1-1.3: new high-speed USB device number 14 using dwc_otg
[Mon Feb 20 14:02:06 2023] usb 1-1.3: New USB device found, idVendor=2c7c, idProduct=0125, bcdDevice= 3.18
[Mon Feb 20 14:02:06 2023] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Mon Feb 20 14:02:06 2023] usb 1-1.3: Product: LTE Module
[Mon Feb 20 14:02:06 2023] usb 1-1.3: Manufacturer: Quectel Incorporated
[Mon Feb 20 14:02:06 2023] option 1-1.3:1.0: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:06 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[Mon Feb 20 14:02:06 2023] option 1-1.3:1.1: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:06 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[Mon Feb 20 14:02:06 2023] option 1-1.3:1.2: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:06 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[Mon Feb 20 14:02:06 2023] option 1-1.3:1.3: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:06 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[Mon Feb 20 14:02:06 2023] cdc_mbim 1-1.3:1.4: cdc-wdm0: USB WDM device
[Mon Feb 20 14:02:06 2023] cdc_mbim 1-1.3:1.4 wwan0: register 'cdc_mbim' at usb-3f980000.usb-1.3, CDC MBIM, 8e:ab:da:ab:9c:15
[Mon Feb 20 14:02:07 2023] 8021q: adding VLAN 0 to HW filter on device wwan0
[Mon Feb 20 14:02:11 2023] usb 1-1.3: USB disconnect, device number 14
[Mon Feb 20 14:02:11 2023] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[Mon Feb 20 14:02:11 2023] option 1-1.3:1.0: device disconnected
[Mon Feb 20 14:02:11 2023] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[Mon Feb 20 14:02:11 2023] option 1-1.3:1.1: device disconnected
[Mon Feb 20 14:02:11 2023] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[Mon Feb 20 14:02:11 2023] option 1-1.3:1.2: device disconnected
[Mon Feb 20 14:02:11 2023] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[Mon Feb 20 14:02:11 2023] option 1-1.3:1.3: device disconnected
[Mon Feb 20 14:02:11 2023] cdc_mbim 1-1.3:1.4 wwan0: unregister 'cdc_mbim' usb-3f980000.usb-1.3, CDC MBIM
[Mon Feb 20 14:02:12 2023] usb 1-1.3: new high-speed USB device number 15 using dwc_otg
[Mon Feb 20 14:02:12 2023] usb 1-1.3: New USB device found, idVendor=2c7c, idProduct=0125, bcdDevice= 3.18
[Mon Feb 20 14:02:12 2023] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Mon Feb 20 14:02:12 2023] usb 1-1.3: Product: LTE Module
[Mon Feb 20 14:02:12 2023] usb 1-1.3: Manufacturer: Quectel Incorporated
[Mon Feb 20 14:02:12 2023] option 1-1.3:1.0: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:12 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[Mon Feb 20 14:02:12 2023] option 1-1.3:1.1: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:12 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[Mon Feb 20 14:02:12 2023] option 1-1.3:1.2: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:12 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[Mon Feb 20 14:02:12 2023] option 1-1.3:1.3: GSM modem (1-port) converter detected
[Mon Feb 20 14:02:12 2023] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[Mon Feb 20 14:02:12 2023] cdc_mbim 1-1.3:1.4: cdc-wdm0: USB WDM device
[Mon Feb 20 14:02:12 2023] cdc_mbim 1-1.3:1.4 wwan0: register 'cdc_mbim' at usb-3f980000.usb-1.3, CDC MBIM, 8e:ab:da:ab:9c:15
[Mon Feb 20 14:02:12 2023] 8021q: adding VLAN 0 to HW filter on device wwan0

I was more interested in hardware details, I don’t think the issue is OS related.
From my perspective Raspberry is not a good candidate for testing and troubleshooting, I recall having similar issues with my RPi 3B and a comparable modem.

so what did you mean by saying: tried it with another host?

Your Linux desktop if you have one or your Win machine booted from Linux Live USB.
Router or SBC running Linux may do the job as well, but only if you’re confident in its capabilities. For example, I wouldn’t use my RaspberryPi or OrangePi in such situation, however I’ll trust my Alix or APU board.

Turns out we are having the same issue (described here), has there been a solution for this behavior?

Seems similar to our problem: EM05-G UBS disconnect continusly on boot (Ubuntu Server 22.04)

The solution is to send AT command that define the module to work at qmi mode. It’s done only once
in every new module : AT+QCFG=“usbnet”,0

1 Like