Hello Barbaros,

Have you checked if this hardware is functioning without issues? It might
be worth installing Linux to see if you can establish a GSM connection
there.

Additionally, disabling umsm in the kernel could be another potential
solution. I think it’s worth a try. Here’s what you’ll need to do:
config -e -f /bsd
disable umsm
quit
reboot

I hope this works for you.

On Mon, Oct 28, 2024 at 3:33 AM Barbaros Bilek <barbarosb...@gmail.com>
wrote:

> Hi misc,
>
> I'm encountering an issue with a Quectel EM120R-GL LTE module with dual
> SIM slots on OpenBSD. The system (ifconfig umb0) consistently displays the
> error "SIM not inserted, PIN required," despite attempts to set the APN,
> reboot, and bring the interface up. I’m 100% certain that the PIN is
> disabled.
>
> Here are some key command outputs and troubleshooting steps: (// are my
> comments)
>
>    - AT+QSIMSTAT? → +QSIMSTAT: 0,0 // (SIM not detected)
>    - AT+CPIN? → +CME ERROR: 10 // (SIM not ready)
>    - AT+CIMI → +CME ERROR: // 3 (operation not allowed)
>    - AT+QSIMDET=1,1 → OK // (SIM detection enabled)
>    - AT+QSIMSEL=1 or AT+QSIMSEL=2 → ERROR // (cannot switch SIM slot)
>
> I also tried the following configurations with reboots after each change,
> but neither resolved the issue:
>
>    - AT+QSIMDET=0,0 followed by reboot
>    - AT+QSIMDET=1,0 followed by reboot
>    - The AT+QSIMDET=0,0 command disables SIM detection for both slots,
>    meaning the module will not check for the presence of a SIM card in either
>    slot. Conversely, the AT+QSIMDET=1,0 command enables detection for the
>    first SIM slot while disabling it for the second, allowing the module to
>    check only the first slot for a SIM card. Neither configuration, however,
>    successfully resolves the issue.
>
> In each case, AT+QSIMSTAT? consistently returns +QSIMSTAT: 0,0; showing
> that the SIM is not detected. It appears that OpenBSD cannot detect or
> manage SIM slots in this MBIM mode, and the umb driver might not fully
> support dual-SIM functionality in this context.
>
> Has anyone else encountered a similar issue or found a workaround for
> managing dual-SIM LTE modules on OpenBSD?
> Thanks in advance for any insights!
>
> P.S. Some useful command outputs:
> openbsd76# usbdevs -a 3 -vv
> addr 03: 2c7c:0620 Quectel, EM120R-GL
>               super speed, power 224 mA, config 1, rev 4.09, iSerial
> e40fc2ef
>               driver: umsm0
>               driver: umsm1
>               driver: umsm2
>               driver: umsm3
>
> It would be beneficial to add the Quectel EM120R-GL to the man umb(4)
> page. Especially if we can resolve this dual SIM issue. I’m also prepared
> to provide any additional outputs you need and to perform further actions
> as required.
>
> Also dmesg is attached via this email.
> Thanks in advance.
>
> --
> Barbaros
>
>

Reply via email to