4G modem (wwan0) on debian11 not working

Hello I would like to ask about my debian11 with 4G modem , it not connect to internet and not getting IP address

root@:~# mmcli -L
    /org/freedesktop/ModemManager1/Modem/0 [Quectel] Quectel EM05-G
root@:~#
root@:~#
root@:~# mmcli -m 0
  -----------------------------
  General  |              path: /org/freedesktop/ModemManager1/Modem/0
           |         device id: fbb3545aa04a3ccd0132e36e384
  -----------------------------
  Hardware |      manufacturer: Quectel
           |             model: Quectel EM05-G
           | firmware revision: EM05GFAR07A07M1G
           |      h/w revision: QUECTEL Mobile Broadband Modul
           |         supported: gsm-umts, lte
           |           current: gsm-umts, lte
           |      equipment id: 
  -----------------------------
  System   |            device: /sys/devices/platform/11200000.xhci/usb1/1-1/1-1.1
           |           drivers: option, cdc_mbim
           |            plugin: quectel
           |      primary port: cdc-wdm0
           |             ports: cdc-wdm0 (mbim), ttyUSB0 (at), wwan0 (net)
  -----------------------------
  Status   |             state: failed
           |     failed reason: sim-missing
           |       power state: low
  -----------------------------
  Modes    |         supported: allowed: 3g, 4g; preferred: none
           |           current: allowed: 3g, 4g; preferred: none
  -----------------------------
  IP       |         supported: ipv4, ipv6, ipv4v6
  -----------------------------
  SIM      |    sim slot paths: slot 1: none (active)
           |                    slot 2: /org/freedesktop/ModemManager1/SIM/0
root@:~#

the SIM card in inserted and I checked many time , I tried to use other SIM slot and change the mmcli , but it return as ESIM

Any one has information for resolve it ?

Thank you

you have to use the right sim-slot first

CN16(M.2 KEY) – SIM1
CN12 (mPCIE) – SIM2
CN14 (mPCIE) – SIM3

all others are not connected…is sim correctly inserted (not rotated or similar)?

afair there were some commands to check the sim-state, but i have not done much with modems and only on r3

noticed some steps in my wiki for r3 and my card

https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r3:lte

maybe there is something that helps you…be careful with the mode-switch

First, modem enumerates, so USB is OK, looks like a USB MBIM connection coz cdc_wdm / wwan0. Second, the SIM is not detected. Reason may be the hardware on BPI R4. The function of the SIM tray holder is inverse to what is stated in schematic. So following the described logic will always lead to indicating SIM not present in case of inserted SIM. With SIM removed, the logic tells SIM inserted, but there is no response from the removed SIM in case of init command. So dead end.

This is definitively an issue in the hardware of the produced BPI R4, a SIM tray holder with inverse switch was used instead of the one intended in the schematic.

To check the current logic, one may follow by measuring the level at a available pull-up resistor for the SIM Detect signal, or just measure level at the pad if resistor not mounted,

There are two ways to solve the issue:

  1. by the modem, some modems allow to disable SIM detection via the SIM Detect pin by command. In this case they will just follow the commands given to the SIM for reset. Some modem allow to change the logic of SIM detection by command, means switch open or closed when SIM inserted. Check your modem manual whether such options exist.

  2. isolate the SIM Detect pin in M.2 or miniPCIe module, so module likely will always assume SIM inserted and try to initialize it Do the tape at the module side, check whether other pins covered are functionally in use by checking the pinout. We did this successfully on M.2 EM9191 in PCIe mode. There is very thin polyimide isolation tape available, typically available for PCB work. This tape is heat resistant as well. Be careful not to break on of the pins/fingers in the connector. This happens if the tape is too thick.

Again, BananaPi manufacturing should check, whether right SIM holder is used and whether the logic of the builtin switch is according the schematic.

NB. there are modems which don’t care about the SIM detect pin or are configured ootb not to follow SIM Detect pin. These modems would work without issues. May be as well, that BPi R4 board are produced using different versions of the SIM holder. Recommendation is to measure at the available (resistor-)pad on the PCB of BPI R4 which logic is implemented on this exact BPI R4.

Konrad

1 Like

thank you very much, you are correct 100% I still trying find out how to do what you wrote, because I dont have good experience with Modems