Troubleshooting connectivity on T-Mobile USA and RM520N-GL

Hi.

I have a RM520N-GL and a T-Mobile Business Internet SIM, and the card is in a Banana Pi-R4 Pro running OpenWRT (HEAD) with a 6.18 kernel. I’ve installed dmi-utils and uqmi but I can’t figure out why I’m failing to connect to the network.

config interface 'qmi'
       option proto 'qmi'
       option device '/dev/cdc-wdm0'
       option apn 'fast.t-mobile.com'
       option auth 'none'
       option pdptype 'ipv4v6'
       option plmn '310260'
       option modes '5gnr,lte,umts'
       option dhcp '1'
       option autoconnect '1'

is the configuration I have, and that’s been verified by T-Mobile Business as having the correct parameters.

Is there a troubleshooting guide? Including some AT commands to manipulate state? Or to update to the latest firmware?

The device shows up on USB but not PCI:

root@OpenWrt2:~# lsusb -s 002:003
Bus 002 Device 003: ID 2c7c:0801 Quectel RM520N-GL
root@OpenWrt2:~# 

I’m an OpenWRT developer but 5G isn’t my expertise. I’m a routing and cryptography guy and trying to figure out how to get dual-homing paired with Starlink.

Thanks.

BTW, here’s the packaging for quectel-cm:

root@OpenWrt2:~# quectel-CM
[04-26_18:04:54:101] Quectel_QConnectManager_Linux_V1.6.0.24
[04-26_18:04:54:102] Find /sys/bus/usb/devices/2-1.1 idVendor=0x2c7c idProduct=0x801, bus=0x002, dev=0x003
[04-26_18:04:54:102] Auto find qmichannel = /dev/cdc-wdm0
[04-26_18:04:54:102] Auto find usbnet_adapter = wwan0
[04-26_18:04:54:102] netcard driver = qmi_wwan, driver version = 6.12.80
[04-26_18:04:54:102] Modem works in QMI mode
[04-26_18:04:54:108] cdc_wdm_fd = 7
[04-26_18:04:54:188] Get clientWDS = 14
[04-26_18:04:54:219] Get clientDMS = 21
[04-26_18:04:54:252] Get clientNAS = 3
[04-26_18:04:54:284] Get clientUIM = 2
[04-26_18:04:54:316] Get clientWDA = 1
[04-26_18:04:54:348] requestBaseBandVersion RM520NGLAAR01A07M4G
[04-26_18:04:54:476] requestGetSIMStatus SIMStatus: SIM_READY
[04-26_18:04:54:508] requestGetProfile[1] fast.t-mobile.com///0
[04-26_18:04:54:539] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:04:54:572] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-26_18:04:54:572] ifconfig wwan0 0.0.0.0
[04-26_18:04:54:577] ifconfig wwan0 down
[04-26_18:05:42:027] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:05:42:059] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:06:05:290] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:06:05:322] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:06:06:090] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:06:06:122] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:06:12:010] QmiWwanThread read=-1 errno: 11 (Resource temporarily unavailable)
[04-26_18:06:12:042] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN

and then it hangs. Tried forcing the PLMN:

root@OpenWrt2:~#  uqmi -d /dev/cdc-wdm0 --set-plmn --mcc 310 --mnc 260
root@OpenWrt2:~# uqmi -d /dev/cdc-wdm0 --get-plmn
{
        "mode": "manual",
        "mcc": 310,
        "mnc": 260
}
root@OpenWrt2:~# quectel-CM
[04-26_18:09:20:356] Quectel_QConnectManager_Linux_V1.6.0.24
[04-26_18:09:20:358] Find /sys/bus/usb/devices/2-1.1 idVendor=0x2c7c idProduct=0x801, bus=0x002, dev=0x003
[04-26_18:09:20:358] Auto find qmichannel = /dev/cdc-wdm0
[04-26_18:09:20:358] Auto find usbnet_adapter = wwan0
[04-26_18:09:20:358] netcard driver = qmi_wwan, driver version = 6.12.80
[04-26_18:09:20:358] Modem works in QMI mode
[04-26_18:09:20:363] cdc_wdm_fd = 7
[04-26_18:09:20:453] QmiWwanThread read=-1 errno: 11 (Resource temporarily unavailable)
[04-26_18:09:20:485] Get clientWDS = 14
[04-26_18:09:20:549] Get clientDMS = 27
[04-26_18:09:20:581] Get clientNAS = 4
[04-26_18:09:20:613] Get clientUIM = 2
[04-26_18:09:20:645] Get clientWDA = 1
[04-26_18:09:20:677] requestBaseBandVersion RM520NGLAAR01A07M4G
[04-26_18:09:20:805] requestGetSIMStatus SIMStatus: SIM_READY
[04-26_18:09:20:837] requestGetProfile[1] fast.t-mobile.com///0
[04-26_18:09:20:869] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:09:20:901] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-26_18:09:20:901] ifconfig wwan0 0.0.0.0
[04-26_18:09:20:904] ifconfig wwan0 down
[04-26_18:09:20:933] QmiWwanThread read=-1 errno: 11 (Resource temporarily unavailable)

but the MCC and MNC didn’t take. And verbose mode:

root@OpenWrt2:~# quectel-CM -v
[04-26_18:11:43:113] Quectel_QConnectManager_Linux_V1.6.0.24
[04-26_18:11:43:113] (/sys/bus/usb/devices/2-1/idVendor) = 2109
[04-26_18:11:43:113] (/sys/bus/usb/devices/2-1/idProduct) = 822
[04-26_18:11:43:113] (/sys/bus/usb/devices/2-1/busnum) = 2
[04-26_18:11:43:113] (/sys/bus/usb/devices/2-1/devnum) = 2
[04-26_18:11:43:113] (/sys/bus/usb/devices/2-1/bNumInterfaces) = 1
[04-26_18:11:43:113] (/sys/bus/usb/devices/1-1/idVendor) = 2109
[04-26_18:11:43:114] (/sys/bus/usb/devices/1-1/idProduct) = 2822
[04-26_18:11:43:114] (/sys/bus/usb/devices/1-1/busnum) = 1
[04-26_18:11:43:114] (/sys/bus/usb/devices/1-1/devnum) = 2
[04-26_18:11:43:114] (/sys/bus/usb/devices/1-1/bNumInterfaces) = 1
[04-26_18:11:43:114] (/sys/bus/usb/devices/2-1.1/idVendor) = 2c7c
[04-26_18:11:43:114] (/sys/bus/usb/devices/2-1.1/idProduct) = 801
[04-26_18:11:43:114] (/sys/bus/usb/devices/2-1.1/busnum) = 2
[04-26_18:11:43:114] (/sys/bus/usb/devices/2-1.1/devnum) = 3
[04-26_18:11:43:114] (/sys/bus/usb/devices/2-1.1/bNumInterfaces) = 5
[04-26_18:11:43:114] Find /sys/bus/usb/devices/2-1.1 idVendor=0x2c7c idProduct=0x801, bus=0x002, dev=0x003
[04-26_18:11:43:114] (/sys/bus/usb/devices/2-1.1:1.4/bNumEndpoints) = 3
[04-26_18:11:43:115] (/sys/bus/usb/devices/2-1.1:1.4/bInterfaceClass) = ff
[04-26_18:11:43:115] (/sys/bus/usb/devices/2-1.1:1.4/bInterfaceSubClass) = ff
[04-26_18:11:43:115] (/sys/bus/usb/devices/2-1.1:1.4/bInterfaceProtocol) = ff
[04-26_18:11:43:115] driver -> ../../../../../../../../bus/usb/drivers/qmi_wwan
[04-26_18:11:43:115] /sys/bus/usb/devices/2-1.1:1.4/usbmisc
[04-26_18:11:43:115] Auto find qmichannel = /dev/cdc-wdm0
[04-26_18:11:43:115] Auto find usbnet_adapter = wwan0
[04-26_18:11:43:115] netcard driver = qmi_wwan, driver version = 6.12.80
[04-26_18:11:43:115] Modem works in QMI mode
[04-26_18:11:43:120] /proc/12720/fd/6 -> /dev/cdc-wdm0
[04-26_18:11:43:120] /proc/12720/exe -> /sbin/uqmi
[04-26_18:11:45:120] cdc_wdm_fd = 7
[04-26_18:11:45:120] 01 0b 00 00 00 00 00 01 27 00 00 00 
[04-26_18:11:45:120] TransactionId:      01
QMICTLType:         0027        QMICTL_SYNC_REQ
Length:             0000

[04-26_18:11:45:154] 01 12 00 80 00 00 01 01 27 00 07 00 02 04 00 00 00 00 00 
[04-26_18:11:45:154] TransactionId:      01
QMICTLType:         0027        QMICTL_SYNC_RESP
Length:             0007
{02,    0004,   00 00 00 00 }

[04-26_18:11:45:154] 01 0f 00 00 00 00 00 02 21 00 04 00 01 01 00 ff 
[04-26_18:11:45:154] TransactionId:      02
QMICTLType:         0021        QMICTL_GET_VERSION_REQ
Length:             0004
{01,    0001,   ff }

[04-26_18:11:45:185] 01 c5 00 80 00 00 01 02 21 00 ba 00 02 04 00 00 00 00 00 01 b0 00 23 00 01 00 05 00 01 01 00 e5 00 02 01 00 57 00 03 01 00 19 00 04 01 00 15 00 05 01 00 0a 00 07 01 00 0e 00 08 01 00 06 00 09 02 00 01 00 0a 02 00 18 00 0b 01 00 4d 00 0c 01 00 04 00 0f 01 00 00 00 10 02 00 97 00 11 01 00 00 00 17 02 00 00 00 18 01 00 00 00 1a 01 00 1d 00 1d 01 00 06 00 22 01 00 00 00 24 01 00 00 00 29 01 00 00 00 2a 01 00 50 00 2d 01 00 03 00 30 01 00 11 00 31 01 00 00 00 44 01 00 07 00 47 01 00 01 00 49 01 00 0a 00 4a 01 00 01 00 4b 01 00 04 00 4c 01 00 00 00 4d 01 00 05 00 4e 01 00 02 00 55 01 00 00 00 
[04-26_18:11:45:186] TransactionId:      02
QMICTLType:         0021        QMICTL_GET_VERSION_RESP
Length:             00ba
{02,    0004,   00 00 00 00 }
{01,    00b0,   23 00 01 00 05 00 01 01 00 e5 00 02 01 00 57 00 03 01 00 19 00 04 01 00 15 00 05 01 00 0a 00 07 01 00 0e 00 08 01 00 06 00 09 02 00 01 00 0a 02 00 18 00 0b 01 00 4d 00 0c 01 00 04 00 0f 01 00 00 00 10 02 00 97 00 11 01 00 00 00 17 02 00 00 00 18 01 00 00 00 1a 01 00 1d 00 1d 01 00 06 00 22 01 00 00 00 24 01 00 00 00 29 01 00 00 00 2a 01 00 50 00 2d 01 00 03 00 30 01 00 11 00 31 01 00 00 00 44 01 00 07 00 47 01 00 01 00 49 01 00 0a 00 4a 01 00 01 00 4b 01 00 04 00 4c 01 00 00 00 4d 01 00 05 00 4e 01 00 02 00 55 01 00 00 00 }

[04-26_18:11:45:186] 01 0f 00 00 00 00 00 03 22 00 04 00 01 01 00 01 
[04-26_18:11:45:186] TransactionId:      03
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_REQ
Length:             0004
{01,    0001,   01 }

[04-26_18:11:45:217] 01 17 00 80 00 00 01 03 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 01 0e 
[04-26_18:11:45:217] TransactionId:      03
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_RESP
Length:             000c
{02,    0004,   00 00 00 00 }
{01,    0002,   01 0e }

[04-26_18:11:45:217] Get clientWDS = 14
[04-26_18:11:45:218] 01 0f 00 00 00 00 00 04 22 00 04 00 01 01 00 02 
[04-26_18:11:45:218] TransactionId:      04
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_REQ
Length:             0004
{01,    0001,   02 }

[04-26_18:11:45:250] 01 17 00 80 00 00 01 04 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 02 1b 
[04-26_18:11:45:250] TransactionId:      04
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_RESP
Length:             000c
{02,    0004,   00 00 00 00 }
{01,    0002,   02 1b }

[04-26_18:11:45:250] Get clientDMS = 27
[04-26_18:11:45:250] 01 0f 00 00 00 00 00 05 22 00 04 00 01 01 00 03 
[04-26_18:11:45:250] TransactionId:      05
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_REQ
Length:             0004
{01,    0001,   03 }

[04-26_18:11:45:281] 01 17 00 80 00 00 01 05 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 03 03 
[04-26_18:11:45:281] TransactionId:      05
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_RESP
Length:             000c
{02,    0004,   00 00 00 00 }
{01,    0002,   03 03 }

[04-26_18:11:45:282] Get clientNAS = 3
[04-26_18:11:45:282] 01 0f 00 00 00 00 00 06 22 00 04 00 01 01 00 0b 
[04-26_18:11:45:282] TransactionId:      06
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_REQ
Length:             0004
{01,    0001,   0b }

[04-26_18:11:45:314] 01 17 00 80 00 00 01 06 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 0b 02 
[04-26_18:11:45:314] TransactionId:      06
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_RESP
Length:             000c
{02,    0004,   00 00 00 00 }
{01,    0002,   0b 02 }

[04-26_18:11:45:314] Get clientUIM = 2
[04-26_18:11:45:314] 01 0f 00 00 00 00 00 07 22 00 04 00 01 01 00 1a 
[04-26_18:11:45:314] TransactionId:      07
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_REQ
Length:             0004
{01,    0001,   1a }

[04-26_18:11:45:345] 01 17 00 80 00 00 01 07 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 1a 01 
[04-26_18:11:45:345] TransactionId:      07
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_RESP
Length:             000c
{02,    0004,   00 00 00 00 }
{01,    0002,   1a 01 }

[04-26_18:11:45:345] Get clientWDA = 1
[04-26_18:11:45:346] 01 0c 00 00 02 00 00 01 00 23 00 00 00 
[04-26_18:11:45:346] TransactionId:    0001
Type:               0023        QMIDMS_GET_DEVICE_REV_ID_REQ
Length:             0000

[04-26_18:11:45:378] 01 29 00 80 02 1b 02 01 00 23 00 1d 00 02 04 00 00 00 00 00 01 13 00 52 4d 35 32 30 4e 47 4c 41 41 52 30 31 41 30 37 4d 34 47 
[04-26_18:11:45:378] TransactionId:    0001
Type:               0023        QMIDMS_GET_DEVICE_REV_ID_RESP
Length:             001d
{02,    0004,   00 00 00 00 }
{01,    0013,   52 4d 35 32 30 4e 47 4c 41 41 52 30 31 41 30 37 4d 34 47 }

[04-26_18:11:45:378] requestBaseBandVersion RM520NGLAAR01A07M4G
[04-26_18:11:45:378] 01 1e 00 00 1a 00 00 02 00 20 00 12 00 10 01 00 00 11 04 00 01 00 00 00 13 04 00 00 00 00 00 
[04-26_18:11:45:378] TransactionId:    0002
Type:               0020        QMIWDS_ADMIN_SET_DATA_FORMAT_REQ
Length:             0012
{10,    0001,   00 }
{11,    0004,   01 00 00 00 }
{13,    0004,   00 00 00 00 }

[04-26_18:11:45:410] 01 4c 00 80 1a 01 02 02 00 20 00 40 00 02 04 00 00 00 00 00 10 01 00 00 11 04 00 02 00 00 00 12 04 00 00 00 00 00 13 04 00 00 00 00 00 14 04 00 00 00 00 00 15 04 00 00 00 00 00 16 04 00 00 00 00 00 1a 04 00 00 00 00 00 1b 01 00 00 
[04-26_18:11:45:410] TransactionId:    0002
Type:               0020        QMIWDS_ADMIN_SET_DATA_FORMAT_RESP
Length:             0040
{02,    0004,   00 00 00 00 }
{10,    0001,   00 }
{11,    0004,   02 00 00 00 }
{12,    0004,   00 00 00 00 }
{13,    0004,   00 00 00 00 }
{14,    0004,   00 00 00 00 }
{15,    0004,   00 00 00 00 }
{16,    0004,   00 00 00 00 }
{1a,    0004,   00 00 00 00 }
{1b,    0001,   00 }

[04-26_18:11:45:410] 01 10 00 00 01 00 00 03 00 4d 00 04 00 01 01 00 04 
[04-26_18:11:45:410] TransactionId:    0003
Type:               004d        QMIWDS_SET_CLIENT_IP_FAMILY_PREF_REQ
Length:             0004
{01,    0001,   04 }

[04-26_18:11:45:441] 01 13 00 80 01 0e 02 03 00 4d 00 07 00 02 04 00 00 00 00 00 
[04-26_18:11:45:441] TransactionId:    0003
Type:               004d        QMIWDS_SET_CLIENT_IP_FAMILY_PREF_RESP
Length:             0007
{02,    0004,   00 00 00 00 }

[04-26_18:11:45:442] 01 10 00 00 01 00 00 04 00 51 00 04 00 01 01 00 00 
[04-26_18:11:45:442] TransactionId:    0004
Type:               0051        QMIWDS_SET_AUTO_CONNECT_REQ
Length:             0004
{01,    0001,   00 }

[04-26_18:11:45:474] 01 13 00 80 01 0e 02 04 00 51 00 07 00 02 04 00 01 00 1a 00 
[04-26_18:11:45:474] TransactionId:    0004
Type:               0051        QMIWDS_SET_AUTO_CONNECT_RESP
Length:             0007
{02,    0004,   01 00 1a 00 }

[04-26_18:11:45:474] 01 0c 00 00 0b 00 00 05 00 2f 00 00 00 
[04-26_18:11:45:474] TransactionId:    0005
Type:               002f        QMIUIM_GET_CARD_STATUS_REQ
Length:             0000

[04-26_18:11:45:505] 01 b9 00 80 0b 02 02 05 00 2f 00 ad 00 02 04 00 00 00 00 00 18 02 00 01 00 17 24 00 01 0a 98 10 62 30 81 07 33 07 76 f8 16 3b 9f 96 80 1f c7 80 31 e0 73 f6 21 13 67 56 03 27 01 20 02 01 80 00 16 05 00 01 00 00 00 00 15 02 00 01 00 11 02 00 01 00 10 65 00 00 00 ff ff ff ff ff ff 01 01 00 00 00 00 03 02 07 02 0b 00 00 10 a0 00 00 00 87 10 02 ff ff ff ff 89 06 19 00 00 00 03 03 0a 01 0a 0a 05 01 00 0b 00 00 10 a0 00 00 00 87 10 04 ff ff ff ff 89 07 03 00 00 00 03 03 0a 00 00 00 00 01 00 0b 00 00 0c a0 00 00 00 63 50 4b 43 53 2d 31 35 00 00 00 00 00 00 00 
[04-26_18:11:45:506] TransactionId:    0005
Type:               002f        QMIUIM_GET_CARD_STATUS_RESP
Length:             00ad
{02,    0004,   00 00 00 00 }
{18,    0002,   01 00 }
{17,    0024,   01 0a 98 10 62 30 81 07 33 07 76 f8 16 3b 9f 96 80 1f c7 80 31 e0 73 f6 21 13 67 56 03 27 01 20 02 01 80 00 }
{16,    0005,   01 00 00 00 00 }
{15,    0002,   01 00 }
{11,    0002,   01 00 }
{10,    0065,   00 00 ff ff ff ff ff ff 01 01 00 00 00 00 03 02 07 02 0b 00 00 10 a0 00 00 00 87 10 02 ff ff ff ff 89 06 19 00 00 00 03 03 0a 01 0a 0a 05 01 00 0b 00 00 10 a0 00 00 00 87 10 04 ff ff ff ff 89 07 03 00 00 00 03 03 0a 00 00 00 00 01 00 0b 00 00 0c a0 00 00 00 63 50 4b 43 53 2d 31 35 00 00 00 00 00 00 00 }

[04-26_18:11:45:839] requestGetSIMStatus SIMStatus: SIM_READY
[04-26_18:11:45:839] 01 11 00 00 01 00 00 06 00 2b 00 05 00 01 02 00 00 01 
[04-26_18:11:45:839] TransactionId:    0006
Type:               002b        QMIWDS_GET_PROFILE_SETTINGS_REQ
Length:             0005
{01,    0002,   00 01 }

[04-26_18:11:45:858] 01 5d 01 80 01 0e 02 06 00 2b 00 51 01 02 04 00 00 00 00 00 8f 01 00 01 df 01 00 00 de 01 00 01 dd 08 00 01 00 00 00 00 00 00 00 4f 02 00 00 00 4e 01 00 00 4d 01 00 00 4c 01 00 00 4b 07 00 00 00 00 00 00 00 00 4a 00 00 48 01 00 00 47 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 04 00 01 00 00 00 45 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 01 00 00 43 01 00 00 42 04 00 00 00 00 00 41 04 00 00 00 00 00 40 01 00 00 3f 01 00 00 3e 01 00 00 3d 04 00 00 00 00 00 3c 02 00 00 00 3b 02 00 2c 01 3a 02 00 14 00 39 03 00 00 00 00 38 02 00 00 00 37 02 00 00 00 36 01 00 00 35 08 00 00 00 00 00 00 00 00 80 31 01 00 00 30 04 00 00 00 00 00 2f 01 00 00 2d 01 00 00 27 01 00 00 26 01 00 00 25 01 00 01 22 01 00 00 21 01 00 00 20 01 00 00 1f 01 00 01 1e 04 00 00 00 00 00 1d 01 00 00 1c 00 00 1b 00 00 16 04 00 00 00 00 00 15 04 00 00 00 00 00 14 11 00 66 61 73 74 2e 74 2d 6d 6f 62 69 6c 65 2e 63 6f 6d 13 01 00 00 12 01 
[04-26_18:11:45:858] TransactionId:    0006
Type:               002b        QMIWDS_GET_PROFILE_SETTINGS_RESP
Length:             0151
{02,    0004,   00 00 00 00 }
{8f,    0001,   01 }
{df,    0001,   00 }
{de,    0001,   01 }
{dd,    0008,   01 00 00 00 00 00 00 00 }
{4f,    0002,   00 00 }
{4e,    0001,   00 }
{4d,    0001,   00 }
{4c,    0001,   00 }
{4b,    0007,   00 00 00 00 00 00 00 }
{4a,    0000,   }
{48,    0001,   00 }
{47,    0014,   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 }
{46,    0004,   01 00 00 00 }
{45,    0028,   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 }
{44,    0001,   00 }
{43,    0001,   00 }
{42,    0004,   00 00 00 00 }
{41,    0004,   00 00 00 00 }
{40,    0001,   00 }
{3f,    0001,   00 }
{3e,    0001,   00 }
{3d,    0004,   00 00 00 00 }
{3c,    0002,   00 00 }
{3b,    0002,   2c 01 }
{3a,    0002,   14 00 }
{39,    0003,   00 00 00 }
{38,    0002,   00 00 }
{37,    0002,   00 00 }
{36,    0001,   00 }
{35,    0008,   00 00 00 00 00 00 00 80 }
{31,    0001,   00 }
{30,    0004,   00 00 00 00 }
{2f,    0001,   00 }
{2d,    0001,   00 }
{27,    0001,   00 }
{26,    0001,   00 }
{25,    0001,   01 }

[04-26_18:11:45:858] requestGetProfile[1] fast.t-mobile.com///0
[04-26_18:11:45:858] 01 0c 00 00 03 00 00 07 00 4d 00 00 00 
[04-26_18:11:45:858] TransactionId:    0007
Type:               004d        QMINAS_GET_SYS_INFO_REQ
Length:             0000

[04-26_18:11:45:889] 01 33 00 80 03 03 02 07 00 4d 00 27 00 02 04 00 00 00 00 00 13 03 00 00 00 00 14 03 00 00 00 00 27 04 00 01 00 00 00 2f 04 00 00 00 00 00 4a 03 00 00 00 00 
[04-26_18:11:45:889] TransactionId:    0007
Type:               004d        QMINAS_GET_SYS_INFO_RESP
Length:             0027
{02,    0004,   00 00 00 00 }
{13,    0003,   00 00 00 }
{14,    0003,   00 00 00 }
{27,    0004,   01 00 00 00 }
{2f,    0004,   00 00 00 00 }
{4a,    0003,   00 00 00 }

[04-26_18:11:45:890] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOWN
[04-26_18:11:45:890] 01 0c 00 00 01 00 00 08 00 22 00 00 00 
[04-26_18:11:45:890] TransactionId:    0008
Type:               0022        QMIWDS_GET_PKT_SRVC_STATUS_REQ
Length:             0000

[04-26_18:11:45:922] 01 17 00 80 01 0e 02 08 00 22 00 0b 00 02 04 00 00 00 00 00 01 01 00 01 
[04-26_18:11:45:922] TransactionId:    0008
Type:               0022        QMIWDS_GET_PKT_SRVC_STATUS_RESP
Length:             000b
{02,    0004,   00 00 00 00 }
{01,    0001,   01 }

[04-26_18:11:45:922] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-26_18:11:45:922] ifconfig wwan0 0.0.0.0
[04-26_18:11:45:925] ifconfig wwan0 down
[04-26_18:11:47:617] 01 17 00 80 00 00 01 01 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 03 04 
[04-26_18:11:47:617] TransactionId:      01
QMICTLType:         0022        QMICTL_GET_CLIENT_ID_RESP
Length:             000c
{02,    0004,   00 00 00 00 }
{01,    0002,   03 04 }

[04-26_18:11:47:617] nobody care this qmi msg!!

Dear @philipp
Do you try to check via AT commands via ttyUSB?
I will send new version of Quectel-CM, please note it can’t work with modem manager.

worth asking a question in their forum

For now use only a terminal app to configure your modem and check the connection. Forget about qmi and all other tools.

I have two identical systems running the same image and one sees the modem on PCI and the other on USB. Not sure why. One of the modems was branded Lenovo… so don’t know if that makes a different. Maybe they are packaged differently (different firmware or factory settings).

I could write an expect script that tries to put the modem in the correct known/good state to operate with OpenWRT if I knew what those settings are. Anyone have a list?

And is QMI or MBIM preferable for OpenWRT? What kernel loadable modules are necessary to support it?

Thanks

Yes, I’ve done that. I’ve also tried to contact the maintainers for ModemManager and the editor of the “LTE Dongle” page, but no joy.

I suspect that my issues are more related to the specificities of the Quectel modems and Linux and less to OpenWRT.

Forget about OpenWRT, ModemManager, MBIM, QMI, etc. for a while, dumb terminal is your only friend at this stage.

As said above, you need to work with “AT commands via ttyUSB”.

Okay, and send what commands and gather which output?

You can start from the same commands I mentioned here:

Hmm… It’s hanging on the longer outputs. Not sure if that’s a flow control issue or what.

+CSQ: 31,99

OK

+COPS: 1

OK

+QENG: "servingcell","SEARCH"

OK

OK                                                                              CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.9 | VT102 | Offline | ttyUSB2  +CEREG: 0,0                                    

OK

+CGDCONT: 1,"IPV4V6","fast.t-mobile.com","0.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,,,,,,,,,"",,,,1
+CGDCONT: 3,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1,,,,,,,,,"",,,,1
+CGDCONT: 4,"IPV4V6","tmus","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",,,,0
+CGDCONT: 5,"IPV4V6","h2g2","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",,,,0
+CGDCONT: 6,"IPV4V6","pcweb.tmobile.com","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",,,,0
+CGPADDR: 1,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
+CGPADDR: 2,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
+CGPADDR: 3,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
+CGPADDR: 4,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
+CGPADDR: 5,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
+CGPADDR: 6,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"

OK

+QNWPREFCFG: "nr5g_disable_mode",0

OK

+QNWPREFCFG: "mode_pref",AUTO

OK

Hmm… works better on ttyUSB3 than ttyUSB2.

A few more please:

AT+CPIN?
AT+QMBNCFG="List"
AT+COPS=0
# wait a minute
AT+COPS?
AT+CEREG?
AT+C5GREG?



AT+CPIN?                                                                  
                                                                          
+CPIN: READY                                                              
                                                                          
OK                                                                        
AT+QMBNCFG="List"                                                         
                                                                          
+QMBNCFG: "List",0,1,1,"Commercial-TMO",0x0A01050F,202204081              
+QMBNCFG: "List",1,0,0,"ROW_Generic_3GPP_PTCRB_GCF",0x0A01FF09,202205261  
+QMBNCFG: "List",2,0,0,"CDMAless-Verizon",0x0A010126,202209281            
+QMBNCFG: "List",3,0,0,"ROW_Commercial",0x0A010809,202111051              
+QMBNCFG: "List",4,0,0,"FirstNet",0x0A015300,202206171                    
+QMBNCFG: "List",5,0,0,"Rogers_Canada",0x0A014800,202111051
+QMBNCFG: "List",6,0,0,"Bell_Canada",0x0A014700,202111051
+QMBNCFG: "List",7,0,0,"Telus_Canada",0x0A014900,202112271
+QMBNCFG: "List",8,0,0,"Commercial-Sprint",0x0A010204,202111051                 
+QMBNCFG: "List",9,0,0,"VoLTE-ATT",0x0A010335,202208211                         
+QMBNCFG: "List",10,0,0,"CDMAless_Private-Verizon",0x0A01FD28,202212062         
+QMBNCFG: "List",11,0,0,"Telia_Sweden",0x0A012400,202111051                     
+QMBNCFG: "List",12,0,0,"TIM_Italy_Commercial",0x0A012B00,202111051             
+QMBNCFG: "List",13,0,0,"France-Commercial-Orange",0x0A010B21,202111051         
+QMBNCFG: "List",14,0,0,"Commercial-DT-VOLTE",0x0A011F1F,202206131              
+QMBNCFG: "List",15,0,0,"Germany-VoLTE-Vodafone",0x0A010449,202111051           
+QMBNCFG: "List",16,0,0,"UK-VoLTE-Vodafone",0x0A010426,202111051                
+QMBNCFG: "List",17,0,0,"Commercial-EE",0x0A01220B,202111051                    
+QMBNCFG: "List",18,0,0,"Optus_Australia_Commercial",0x0A014400,202111051       
+QMBNCFG: "List",19,0,0,"Telstra_Australia_Commercial",0x0A010F00,202204191     
+QMBNCFG: "List",20,0,0,"Commercial-LGU",0x0A012608,202111051                   
+QMBNCFG: "List",21,0,0,"Commercial-KT",0x0A01280B,202111051                    
+QMBNCFG: "List",22,0,0,"Commercial-SKT",0x0A01270A,202111051                   
+QMBNCFG: "List",23,0,0,"Commercial-Reliance",0x0A011B0C,202210211              
+QMBNCFG: "List",24,0,0,"Commercial-SBM",0x0A011C0B,202111051                   
+QMBNCFG: "List",25,0,0,"Commercial-KDDI",0x0A010709,202111051                  
+QMBNCFG: "List",26,0,0,"Commercial-DCM",0x0A010D0D,202208151                   
+QMBNCFG: "List",27,0,0,"VoLTE-CU",0x0A011561,202204211                         
+QMBNCFG: "List",28,0,0,"VoLTE_OPNMKT_CT",0x0A0113E0,202204211                  
+QMBNCFG: "List",29,0,0,"Volte_OpenMkt-Commercial-CMCC",0x0A012010,202209221    
                                                                                
OK                                                                              
AT+COPS=0                                                                       
                                                                                
OK                                                                              
AT+COPS?                                                                        
                                                                                
+COPS: 0                                                                        
                                                                                
OK                                                                              
AT+CEREG?                                                                       
                                                                                
+CEREG: 0,0                                                                     
                                                                                
OK                                                                              
AT+C5GREG?                                                                      
                                                                                
+C5GREG: 0,0                                                                    
                                                                                
OK                                                                              


For whatever reason the modem is not registered to the network.

Here is the sample [good] output from the guide:

AT+COPS?             //Query the currently selected network operator.
+COPS: 0,0,"CHINA MOBILE",13

OK

Then

tells us that the modem is not registered and not even searching for an operator to register to

Assuming correct SIM card is installed and at least the main antenna is connected, I would disable operator profile (mbn), reset the modem and recheck with the same commands. Make sure you have completely removed ModemManager and deleted your QMI interface.

AT+QMBNCFG="AutoSel",0
AT+QMBNCFG="Deactivate"
AT+CFUN=1,1

The last command will reboot the modem so the active terminal session needs to be restarted.

Is this the one you having problems with?

Check the modem radio state with AT+CFUN?

Dear @philipp
Actually, we are not sure whether “One of the modems was branded Lenovo” is a customized one.
You can share IMEI to me, I will check.