Help with 4G card - can't get any modem to show up

I have no modems, i don’t know why

alex@uConsole:~ $ mmcli -L
No modems were found

I am using 9001

I have enabled network manager (which seems to be a pre-requsite)
I have run the enable command.

alex@uConsole:~ $ uconsole-4g-cm4 enable 
Power on 4G module on uConsole cm4
waiting...
done
use mmcli -L to see 4G modem or not

I see the following in dmesg

[  334.938587] usb 1-1.3: new high-speed USB device number 5 using dwc2
[  335.047981] usb 1-1.3: New USB device found, idVendor=1e0e, idProduct=9001, bcdDevice= 3.18
[  335.048002] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  335.048015] usb 1-1.3: Product: SimTech, Incorporated
[  335.048036] usb 1-1.3: Manufacturer: SimTech, Incorporated
[  335.048048] usb 1-1.3: SerialNumber: 0123456789ABCDEF
[  335.050861] option 1-1.3:1.0: GSM modem (1-port) converter detected
[  335.051472] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[  335.052101] option 1-1.3:1.1: GSM modem (1-port) converter detected
[  335.052618] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[  335.053305] option 1-1.3:1.2: GSM modem (1-port) converter detected
[  335.053844] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[  335.054491] option 1-1.3:1.3: GSM modem (1-port) converter detected
[  335.054941] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[  335.055536] option 1-1.3:1.4: GSM modem (1-port) converter detected
[  335.056009] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB4

I issue

echo -en "AT+CPIN?\r\n" | sudo socat - /dev/ttyUSB2,crnl

and i get the expected response (note it has to be on USB2 - USB3 didn’t work.

AT+CPIN?
+CPIN: READY

OK

however the ISP check returns the wrong response

echo -en "AT+COPS?\r\n" | sudo socat - /dev/ttyUSB3,crnl

gives

AT+COPS?
+COPS: 0

OK

my sim card is a boost mobile card, boost says it doesn’t need activating as it already is…

I am stumped at this point (this is my first time with linux and a cellular modem).

Help?

1 Like

of course no sooner than i post this i try the following and it somehow worked (maybe it just took a while for the SIM to regsiter with the network?)

sudo systemctl stop ModemManager
sudo systemctl disable ModemManager
sudo ModemManger --debug 

I saw at this point the logs registered the sim and mode, check with mmcli -L and this time it was there - so i quit the debug version, re-enabled the service and now all seems good… weird… i had been tryin this for an hour before i did the service bounce (i had tried reboots) and re-enable

oh it seems I have to 100% run sudo systemctl restart ModemManager after issuing uconsole-4g-cm4 enable - oh joy.

Still can’t get modem to register with network.

does this mean i have a signal issue or a basic sim / device activation issue (aka my apn settings might not be right?) there is nothing in journalctl -u ModemManager that is helping…

Oct 13 18:19:39 uConsole systemd[1]: Starting Modem Manager...
Oct 13 18:19:39 uConsole ModemManager[25207]: <info>  ModemManager (version 1.14.12) starting in system bus...
Oct 13 18:19:39 uConsole systemd[1]: Started Modem Manager.
Oct 13 18:19:41 uConsole ModemManager[25207]: <warn>  [ttyUSB3/at] failed to open serial device
Oct 13 18:19:41 uConsole ModemManager[25207]: <warn>  [plugin-manager] task 1,ttyUSB3: error when checking support with plugin 'simtech': (tty/ttyUSB3) failed to open port: Could not lock serial device ttyUSB3>Oct 13 18:19:42 uConsole ModemManager[25207]: <info>  [base-manager] couldn't check support for device '/sys/devices/platform/soc/fe980000.usb/usb1/1-1/1-1.1': not supported by any plugin
Oct 13 18:19:42 uConsole ModemManager[25207]: <info>  [device /sys/devices/platform/soc/fe980000.usb/usb1/1-1/1-1.3] creating modem with plugin 'simtech' and '5' ports
Oct 13 18:19:42 uConsole ModemManager[25207]: <warn>  [plugin/simtech] could not grab port ttyUSB3: Cannot add port 'tty/ttyUSB3', unhandled serial type
Oct 13 18:19:42 uConsole ModemManager[25207]: <info>  [base-manager] modem for device '/sys/devices/platform/soc/fe980000.usb/usb1/1-1/1-1.3' successfully created
Oct 13 18:19:42 uConsole ModemManager[25207]: <info>  [base-manager] couldn't check support for device '/sys/devices/platform/scb/fd580000.ethernet': not supported by any plugin
Oct 13 18:19:42 uConsole ModemManager[25207]: <info>  [base-manager] couldn't check support for device '/sys/devices/platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1': not supported by any pluginOct 13 18:19:42 uConsole ModemManager[25207]: <warn>  [modem0/sim0] couldn't load operator name: Failed to parse CRSM query result '+CRSM: 106,130,""'
Oct 13 18:19:42 uConsole ModemManager[25207]: <warn>  [modem0] couldn't load current allowed/preferred modes: Failed to parse the acquisition order response: '+CNAOP: 7,9,5,3,2,4'
Oct 13 18:19:43 uConsole ModemManager[25207]: <info>  [modem0] state changed (unknown -> disabled)
Oct 13 18:19:43 uConsole ModemManager[25207]: <info>  [modem0] state changed (disabled -> enabling)
Oct 13 18:19:44 uConsole ModemManager[25207]: <info>  [modem0] 3GPP registration state changed (unknown -> idle)
Oct 13 18:19:44 uConsole ModemManager[25207]: <info>  [modem0] state changed (enabling -> enabled)
Oct 13 18:20:43 uConsole ModemManager[25207]: <info>  [modem0] 3GPP registration state changed (idle -> searching)
Oct 13 18:20:43 uConsole ModemManager[25207]: <info>  [modem0] state changed (enabled -> searching)
Oct 13 18:23:02 uConsole ModemManager[25207]: <info>  [modem0] 3GPP registration state changed (searching -> idle)
Oct 13 18:23:02 uConsole ModemManager[25207]: <info>  [modem0] state changed (searching -> enabled)
Oct 13 18:23:25 uConsole ModemManager[25207]: <info>  [modem0] simple connect started...
Oct 13 18:23:25 uConsole ModemManager[25207]: <info>  [modem0] simple connect state (4/8): wait to get fully enabled
Oct 13 18:23:25 uConsole ModemManager[25207]: <info>  [modem0] simple connect state (5/8): register
lines 407-450/450 (END)

these are the only other errors i see

ModemManager[5517]: <warn>  [1697490374.887637] [modem0/sim0] couldn't load operator name: Failed to parse CRSM query result '+CRSM: 106,130,""'
ModemManager[5517]: <warn>  [1697490374.952266] [modem0] couldn't load current allowed/preferred modes: Failed to parse the acquisition order response: '+CNAOP: 7,9,5,3,2,4'

ModemManager[6758]: <debug> [1697490610.029767] [modem0] initial 3GPP registration checks finished
ModemManager[6758]: <debug> [1697490610.029932] [modem0/ttyUSB2/at] device open count is 1 (close)
ModemManager[6758]: <debug> [1697490613.430990] [modem0/ttyUSB2/at] <-- '<CR><LF>+CREG: 2<CR><LF>'
ModemManager[6758]: <info>  [1697490613.431307] [modem0] 3GPP registration state changed (denied -> searching)
ModemManager[6758]: <debug> [1697490613.431406] [modem0] consolidated registration state: cs 'searching', ps 'denied', eps 'denied', 5gs 'unknown' --> 'searching'
ModemManager[6758]: <debug> [1697490613.431636] [modem0] 3GPP location updated (MCC: '0', MNC: '0', location area code: '0', tracking area code: '0', cell ID: '0')
ModemManager[6758]: <info>  [1697490613.431931] [modem0] state changed (enabled -> searching)
ModemManager[6758]: <debug> [1697490613.432745] [modem0] 3GPP location updated (MCC: '0', MNC: '0', location area code: '0', tracking area code: '0', cell ID: '0')

issuing

 sudo mmcli -m 0 --simple-connect="apn=ereseller"

results in

ModemManager[6758]: <debug> [1697491227.427788] [modem0] running registration checks (CS: 'yes', PS: 'yes', EPS: 'yes', 5GS: 'no')
ModemManager[6758]: <debug> [1697491227.428003] [modem0/ttyUSB2/at] device open count is 2 (open)
ModemManager[6758]: <debug> [1697491227.428182] [modem0/ttyUSB2/at] --> 'AT+CREG?<CR>'
ModemManager[6758]: <debug> [1697491227.440645] [modem0/ttyUSB2/at] <-- '<CR><LF>+CREG: 2,2<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[6758]: <debug> [1697491227.441038] [modem0/ttyUSB2/at] device open count is 3 (open)
ModemManager[6758]: <debug> [1697491227.441190] [modem0/ttyUSB2/at] device open count is 2 (close)
ModemManager[6758]: <debug> [1697491227.441350] [modem0/ttyUSB2/at] --> 'AT+CGREG?<CR>'
ModemManager[6758]: <debug> [1697491227.455557] [modem0/ttyUSB2/at] <-- '<CR><LF>+CGREG: 2,2<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[6758]: <debug> [1697491227.455948] [modem0/ttyUSB2/at] device open count is 3 (open)
ModemManager[6758]: <debug> [1697491227.456099] [modem0/ttyUSB2/at] device open count is 2 (close)
ModemManager[6758]: <debug> [1697491227.456262] [modem0/ttyUSB2/at] --> 'AT+CEREG?<CR>'
ModemManager[6758]: <debug> [1697491227.469479] [modem0/ttyUSB2/at] <-- '<CR><LF>+CEREG: 2,4<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[6758]: <debug> [1697491227.469828] [modem0] not yet registered in a 3GPP network... will recheck soon

<repeats until:>

ModemManager[6758]: <debug> [1697491248.469801] [modem0] 3GPP registration check timed out
ModemManager[6758]: <info>  [1697491248.469917] [modem0] 3GPP registration state changed (searching -> idle)
ModemManager[6758]: <debug> [1697491248.469991] [modem0] consolidated registration state: cs 'idle', ps 'idle', eps 'unknown', 5gs 'unknown' --> 'idle'
ModemManager[6758]: <debug> [1697491248.470170] [modem0] 3GPP location updated (MCC: '0', MNC: '0', location area code: '0', tracking area code: '0', cell ID: '0')
ModemManager[6758]: <info>  [1697491248.470365] [modem0] state changed (searching -> enabled)
ModemManager[6758]: <debug> [1697491248.471818] [modem0] 3GPP location updated (MCC: '0', MNC: '0', location area code: '0', tracking area code: '0', cell ID: '0')
ModemManager[6758]: <debug> [1697491248.472600] [modem0/ttyUSB2/at] device open count is 1 (close)

Carrier APN settings.
APN Settings FAQ | Boost Mobile Support

and because someone asked:

alex@uConsole:~ $ sudo mmcli -m 0
  --------------------------------
  General  |            dbus path: /org/freedesktop/ModemManager1/Modem/0
           |            device id: d18c05adfb3dee254f8dc35bfea5b6d259f79de6
  --------------------------------
  Hardware |         manufacturer: SIMCOM INCORPORATED
           |                model: SIMCOM_SIM7600G-H
           |    firmware revision: LE20B04SIM7600G22
           |            supported: gsm-umts, lte
           |              current: gsm-umts, lte
           |         equipment id: 8626360xxxxxxxxx
  --------------------------------
  System   |               device: /sys/devices/platform/soc/fe980000.usb/usb1/1-1/1-1.3
           |              drivers: option1
           |               plugin: simtech
           |         primary port: ttyUSB2
           |                ports: ttyUSB0 (qcdm), ttyUSB1 (gps), ttyUSB2 (at), ttyUSB3 (at), 
           |                       ttyUSB4 (audio)
  --------------------------------
  Status   |       unlock retries: sim-pin (5), sim-puk (10), sim-pin2 (10), sim-puk2 (10)
           |                state: searching
           |          power state: on
           |       signal quality: 38% (recent)
  --------------------------------
  Modes    |            supported: allowed: 2g; preferred: none
           |                       allowed: 3g; preferred: none
           |                       allowed: 2g, 3g; preferred: none
           |                       allowed: 2g, 3g; preferred: 2g
           |                       allowed: 2g, 3g; preferred: 3g
           |                       allowed: 2g, 3g, 4g; preferred: none
           |              current: allowed: any; preferred: none
  --------------------------------
  IP       |            supported: ipv4, ipv6, ipv4v6
  --------------------------------
  3GPP     |                 imei: 8626360522xxxxxx
           |         registration: searching
  --------------------------------
  3GPP EPS | ue mode of operation: csps-1
  --------------------------------
  SIM      |            dbus path: /org/freedesktop/ModemManager1/SIM/0

i am going to try a SIM from a different virtual mobile operator (MINT)

did Mint work for you?