Skip to content
Contents
GuidesOpenWrt

QMI reports PIN ERROR for a SIM without a PIN. Check the not_initialized state

If a SIM card has no PIN set but still shows PIN ERROR, first read the full status. If the status is not_initialized, it means the SIM has not been initialized, and this should not be interpreted as requiring a PIN input.

Applies to · OpenWrt 23.05 / 24.10 · QMI · pin1_status

What to check

Distinguish three states: not_initialized, requires PIN, and PIN locked.

Connect over Ethernet and run the following commands in an SSH session on the router.

logread -e uqmi
ls /dev/cdc-wdm*
for device in /dev/cdc-wdm*; do
    [ -c "$device" ] || continue
    echo "$device"
    uqmi -d "$device" -t 3000 --get-pin-status
    uqmi -d "$device" -t 3000 --get-serving-system
    uqmi -d "$device" -t 3000 --get-data-status
done

How to interpret the result

If the status is not_initialized, wait for the modem to start and read it again. This preserves the remaining attempts. Enter the known SIM PIN only if the modem explicitly requests it. Then check network registration and the data session.

Verify and recover

Verify registration and a working data session without consuming PIN attempts. Preserve the original APN and SIM settings.

Related guide · Compare QMI, MBIM and ECM latency on the same cell and modem

Explore hardware

Comments