My BPi-R4 is running OpenWRT 24.10.0.rc2
I am not able to install picocom on this image, it is not found by opkg.
Originally the sim card was detected. The sim slot led indicator would blink. Then I installed the modem m.2 card in m.2 slot 1. The sim LED would be steady and not blink. The sim was detected, and so was the modem. But the modem would show as “disabled”. I ran mmcli --modem=0 -enable and this enabled the modem, but it was stuck on “searching”. I did not configure the interface, nor give it an apn. I did not know this at the time, so I restarted the bpi-r4. Upon restart, i started seeing “modem failed. sim not found”. My sim card slot on the bpi-r4 would no longer light up. Attached are the relevant screenshots.
My suspicion is that the modem card does not know where the sim cards on the bpi-r4 is. And the modem card is defaulting to some empty pins that do not have a sim card.
I would appreciate anyone who is more knowledgeable to chime in, and ask me for any more required information.
I actually power cycled from cold start (whereas i kept hitting “reboot” in the openwrt gui before), now sim card is detected, and modem is too. Modem still complains the sim is missing, but presents a path to the sim as shown with mmcli -m 0
In the end, after downloading the ipk file with wget, and running: opkg -V2 install picocom_3.1-r5_aarch64_cortex-a53.ipk I was able to install picocom with this workaround.
Update 3:
For some reason, even though the sim is detected by banana-pi, as shown in update 1, the modem will still not see it. See log when I reset modem. AT commands are now working btw.
Sat Dec 21 01:48:37 2024 daemon.notice netifd: Interface 'broadband' is setting up now
Sat Dec 21 01:48:37 2024 daemon.notice netifd: broadband (14123): modem available at /org/freedesktop/ModemManager1/Modem/0
Sat Dec 21 01:48:37 2024 daemon.notice netifd: broadband (14123): SIM missing
Sat Dec 21 01:48:37 2024 daemon.notice netifd: broadband (14150): stopping network
Sat Dec 21 01:48:37 2024 daemon.notice netifd: broadband (14150): couldn't load bearer path: disconnecting anyway
Sat Dec 21 01:48:37 2024 daemon.notice netifd: Interface 'broadband' is now down
Sim was actually in an illegal state. Two reasons. APN for tmobile static IP address is b2b.static not fast.t-mobile.com
Second, even though tmobile business internet plan says you can bring your own device (BYDO) doesnt mean they do. You need to cl@ne the IMEI of your provided device onto your x75 modem card.
If the SIM isn’t detected at all, please check first via terminal programm “at+cpin” and “at+cimi”. First will show whether SIM is detected (and may need a PIN), second will show IMSI of the SIM card. IMEI “AT+CGMI” just shows presence of the modem.
More expressive error codes you may get by “at+cmee=2” followed by above commands.
Background, the logic of the SIM card holder on BPI-R4 may not follow assumptions, see https://forum.banana-pi.org/t/4g-modem-wwan0-on-debian11-not-working/19560 for further details.
On other hand, if the modem does not support SIM hotplug, it may be that modem was powered without SIM, so “no SIM present”. Then SIM was seated, But modem has no chance to detect (because not observing the SIM insert pin), SIM still not present. Then by power cycle modem got restarted as well with inserted SIM and detection OK. Even with a wrong APN, above commands should return success, showing presence of SIM.