Cannot connect to any sim in ECM or QMI

Issue:

I cannot connect to any sim (sixfab, mint, Google Fi) with ECM or QMI. I was able to connect to SixFabs CORE when it was installed but cannot register to any network (known good sims with active service) without CORE. This is a fresh install updated && upgraded with only pip3 installed and libqmi. ModemManager is stopped. I called Mint Mobile and they confirmed they are able to see the EG25G but I cannot get a connection. The current output is with SixFabs sim installed. I still have $30 of credit and data cap has been disabled.

Terminal Output:

cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“Debian -- User Support
BUG_REPORT_URL=“https://bugs.debian.org/

$ uname -a
Linux wipi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

lsusb
Bus 002 Device 002: ID 154b:f00a PNY PNY ELITE PSSD
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 001 Device 003: ID 0b05:17d1 ASUSTek Computer, Inc. AC51 802.11a/b/g/n/ac Wireless Adapter [Mediatek MT7610U]
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=mt76x0u, 480M
|__ Port 4: Dev 6, If 4, Class=Communications, Driver=cdc_ether, 480M
|__ Port 4: Dev 6, If 2, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 4: Dev 6, If 0, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 4: Dev 6, If 5, Class=CDC Data, Driver=cdc_ether, 480M
|__ Port 4: Dev 6, If 3, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 4: Dev 6, If 1, Class=Vendor Specific Class, Driver=option, 480M

usb-devices
T: Bus=01 Lev00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=06.01
S: Manufacturer=Linux 6.1.21-v8+ xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:01:00.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 4
D: Ver= 2.10 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2109 ProdID=3431 Rev=04.21
S: Product=USB2.0 Hub
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0b05 ProdID=17d1 Rev=01.00
S: Manufacturer=MediaTek
S: Product=WiFi
S: SerialNumber=1.0
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=160mA
I: If#=0x0 Alt= 0 #EPs= 8 Cls=ff(vend.) Sub=02 Prot=ff Driver=mt76x0u
T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=02 Dev#= 6 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2c7c ProdID=0125 Rev=03.18
S: Manufacturer=Quectel
S: Product=EG25-G
C: #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I: If#=0x1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I: If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
I: If#=0x4 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
I: If#=0x5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 4
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev=06.01
S: Manufacturer=Linux 6.1.21-v8+ xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:01:00.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=154b ProdID=f00a Rev=01.00
S: Manufacturer=PNY
S: Product=PNY ELITE PSSD
S: SerialNumber=51120040916720BD013E
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=896mA
I: If#=0x0 Alt= 1 #EPs= 4 Cls=08(stor.) Sub=06 Prot=62 Driver=uas

$ dmesg | grep tty
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835
.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 s
nd_bcm2835.enable_hdmi=0 smsc95xx.macaddr=DC:A6:32:EE:8C:47 vc_mem.mem_base=0x3
ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTU
UID=5383f98c-02 rootfstype=ext4 fsck.repair=yes rootwait
[ 0.000936] printk: console [tty1] enabled
[ 1.614414] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud
= 0) is a PL011 rev2
[ 3.113558] systemd[1]: Created slice system-getty.slice.
[ 6.855218] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 6.856442] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[ 6.891201] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[ 7.013937] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
[ 1062.698010] option1 ttyUSB0: GSM modem (1-port) converter now disconnected fr
om ttyUSB0
[ 1062.700031] option1 ttyUSB1: GSM modem (1-port) converter now disconnected fr
om ttyUSB1
[ 1062.701849] option1 ttyUSB2: GSM modem (1-port) converter now disconnected fr
om ttyUSB2
[ 1062.704660] option1 ttyUSB3: GSM modem (1-port) converter now disconnected fr
om ttyUSB3
[ 1063.081666] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 1063.082059] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[ 1063.082418] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[ 1063.082745] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
[ 1107.248890] option1 ttyUSB0: GSM modem (1-port) converter now disconnected fr
om ttyUSB0
[ 1107.249801] option1 ttyUSB1: GSM modem (1-port) converter now disconnected fr
om ttyUSB1
[ 1107.250704] option1 ttyUSB2: GSM modem (1-port) converter now disconnected fr
om ttyUSB2
[ 1107.251670] option1 ttyUSB3: GSM modem (1-port) converter now disconnected fr
om ttyUSB3
[ 1120.134501] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 1120.135409] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB12
[ 1120.137031] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB
[ 1120.138066] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
ls -l /sys/bus/usb-serial/devices
total 0
lrwxrwxrwx 1 root root 0 Sep 30 21:10 ttyUSB0 → …/…/…/devices/platform/scb/f
d500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/ttyUS
B0
lrwxrwxrwx 1 root root 0 Sep 30 21:10 ttyUSB1 → …/…/…/devices/platform/scb/f
d500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/ttyUS
B1
lrwxrwxrwx 1 root root 0 Sep 30 21:10 ttyUSB2 → …/…/…/devices/platform/scb/f
d500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/ttyUS
B2
lrwxrwxrwx 1 root root 0 Sep 30 21:10 ttyUSB3 → …/…/…/devices/platform/scb/f
d500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.3/ttyUS
B3

ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Sep 30 18:07 usb-Quectel_EG25-G-if00-port0 → …/…/tt
yUSB0
lrwxrwxrwx 1 root root 13 Sep 30 18:07 usb-Quectel_EG25-G-if01-port0 → …/…/tt
yUSB1
lrwxrwxrwx 1 root root 13 Sep 30 18:07 usb-Quectel_EG25-G-if02-port0 → …/…/tt
yUSB2
lrwxrwxrwx 1 root root 13 Sep 30 18:07 usb-Quectel_EG25-G-if03-port0 → …/…/tt
yUSB3

AT Command Output:

sudo atcom AT
AT
OK

sudo atcom ATI
ATI
Quectel
EG25
Revision: EG25GGBR07A08M2G

OK

sudo atcom AT+QGMR
AT+QGMR
EG25GGBR07A08M2G_30.007.30.007

OK

sudo atcom AT+CPIN?
AT+CPIN?
+CPIN: READY

OK

sudo atcom AT+CPAS
AT+CPAS
+CPAS: 0

OK

sudo atcom AT+CFUN?
AT+CFUN?
+CFUN: 1

OK

sudo atcom AT+COPS?
AT+COPS?
+COPS: 0

OK

sudo atcom AT+QCFG=\”usbnet\”
AT+QCFG=”usbnet”
ERROR

sudo atcom AT+QCFG="band"
AT+QCFG=“band”
+QCFG: “band”,0xbff,0x1e00b0e18df,0x0

OK

sudo atcom AT+CGREG?
AT+CGREG?
+CGREG: 0,3

OK

sudo atcom AT+CREG?
AT+CREG?
+CREG: 0,3

OK

sudo atcom AT+CPIN?
AT+CPIN?
+CPIN: READY

sudo atcom AT+CSQ
AT+CSQ
+CSQ: 99,99

OK

sudo atcom AT+CGDCONT?
AT+CGDCONT?
+CGDCONT: 1,“IPV4V6”,“super”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0
+CGDCONT: 2,“IPV4V6”,“ims”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0
+CGDCONT: 3,“IPV4V6”,“SOS”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,1

OK

sudo atcom AT+CGATT?
AT+CGATT?
+CGATT: 0

OK

sudo atcom AT+QCFG="nwscanseq"
AT+QCFG=“nwscanseq”
+QCFG: “nwscanseq”,0403010502

OK

sudo atcom AT+QCFG="nwscanmode"
AT+QCFG=“nwscanmode”
+QCFG: “nwscanmode”,0

OK

sudo atcom AT+QCFG="iotopmode"
AT+QCFG=“iotopmode”
ERROR

sudo atcom AT+QCSQ
AT+QCSQ
+QCSQ: “LTE”,58,-81,165,-7

OK

sudo atcom AT+QNWINFO
AT+QNWINFO
+QNWINFO: “FDD LTE”,“311480”,“LTE BAND 13”,5230

OK

Any help would be greatly appreciated.

Hey,

I am not using SixFabs Core. You can find my tutorial for setting up a wwan0 connection here.

Hope it helps.

Hi,

Thanks for the detailed output and logs.

Before creating an ECM or QMI connection, there should be a network registration for the SIM, but the outputs indicate that the network registration is being rejected. There could be several reasons for this:

  • There might not be a strong mobile network signal in the area where the device is located, or there could be network problems. Also, check your antenna connections.
  • The SIM card may not be inserted correctly, there could be an issue with the SIM card, or the device may not be recognizing the SIM card.
  • If you are going to use a SIM other than Sixfab SIM, do not forget to set the APN.

The troubleshooting steps on the following page may also help:

Your Sixfab SIM seems fine; it’s active, and there’s previous data usage. Nonetheless, I’ve reset your SIM network registration. Resetting your SIM’s network connectivity may solve general connectivity issues.

If you’re going to follow the ECM or QMI tutorials instead of Sixfab CORE, remember that you need to uninstall Sixfab CORE

Hi @ensar thanks for the response. I had removed the CORE software after testing that everything worked correctly with CORE (Which works great btw I just need more data for this project) before attempting ECM or QMI. I happened to have a Telit910 that I also purchased from you guys laying around, so I figured let me see if it’s a modem issue. And I am able to connect via ECM right away. Though this time I did use MiniCom instead of ATCOM. I’m not sure if that made a difference or not. Or possibly my Quectel modem is borked

@bouarfa.mahi Thank you I will check that out.

Make sure the antenna are connected to the right port. Could you please share a picture of your setup?
From the log the is looks more about the signal at the beginning, Later it was registered to network with ‘B13’.

At this point, check the AT+COPS?, AT+CREG?, AT+CGREG, AT+CGACT?, AT+CGPAGDDR=1.
You can use either minicom or atcom. It will not make any difference.

@ensar I actually have everything up and running with the Telit910NF in QMI and now fully automated to connect on reboot thanks to @bouarfa.mahi. I ordered another LTE hat to test the Quectel on another pi. I will post my results here after I get it set up.


I’ll be adding an HQ cam and weather station. For the curious. A little low power off-grid server/wireless access point for a cabin. I’ll be replacing the foil antennas with some waterproof UFL to SMA adapters for some better external antennas.

@ensar Update on the Quectel Eg25g. So I popped it in the new hat and installed it on another rpi4 8gb with a Google Fi sim and at first I was still having an issue registering to the network. So I AT&F from serial and tried again, not sure what that command did (believe it is factory settings) but I am able to get a signal and connect to the network even without a full antenna array (I’m only using a UFL WiFi antenna till my new ones come). Thanks for the help

sudo qmicli -d /dev/cdc-wdm0 --nas-get-home-network
[/dev/cdc-wdm0] Successfully got home network:
Home network:
MCC: ‘310’
MNC: ‘260’
Description: ‘T-Mobile’
Network name source: se13

sudo qmicli -d /dev/cdc-wdm0 --nas-get-serving-system
[/dev/cdc-wdm0] Successfully got serving system:
Registration state: ‘registered’
CS: ‘attached’
PS: ‘attached’
Selected network: ‘3gpp’
Radio interfaces: ‘1’
[0]: ‘lte’
Roaming status: ‘off’
Data service capabilities: ‘1’
[0]: ‘lte’
Current PLMN:
MCC: ‘310’
MNC: ‘260’
Description: ‘Project Fi’
Roaming indicators: ‘1’
[0]: ‘off’ (lte)
3GPP time zone offset: ‘-240’ minutes
3GPP daylight saving time adjustment: ‘1’ hours
3GPP location area code: ‘65534’
3GPP cell ID: ‘10984716’
Detailed status:
Status: ‘available’
Capability: ‘cs-ps’
HDR Status: ‘none’
HDR Hybrid: ‘no’
Forbidden: ‘no’
LTE tracking area code: ‘22759’
Full operator code info:
MCC: ‘310’
MNC: ‘260’
MNC with PCS digit: ‘yes’

sudo qmi-network /dev/cdc-wdm0 status
Profile at ‘/etc/qmi-network.conf’ not found…
Getting status with 'qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status '…
Status: connected

sudo qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength
[/dev/cdc-wdm0] Successfully got signal strength
Current:
Network ‘lte’: ‘-88 dBm’
RSSI:
Network ‘lte’: ‘-88 dBm’
ECIO:
Network ‘lte’: ‘-2.5 dBm’
IO: ‘-106 dBm’
SINR (8): ‘9.0 dB’
RSRQ:
Network ‘lte’: ‘-12 dB’
SNR:
Network ‘lte’: ‘1.2 dB’
RSRP:
Network ‘lte’: ‘-119 dBm’