简体   繁体   中英

AT command for SIM Pin retries left

Does anyone know an AT command that will allow me to query how many retries of entering PIN on a SIM card before it locks me out?

I've tried AT+CPIN? but that does not give me how many times I can enter the PIN before I need a PUK. How do normal phones do it?

Thanks in advance.

最新的 3GPP 规范将您想要的命令列为+CPINR

It's not part of the ETSI spec so it depends on the equipment your using.

It's most often called the "Pin Counter" and can be read via AT^SPIC however your best bet is looking for "Pin Counter" in the devices AT command documentation.

You could use a generic approach for >=3G, this should work independent of the modem manufacturer, as it directly communicates with the sim card (UICC).
It reads the PIN retry counter from the UICC

AT+CSIM=10,"0020000100"

The AT+CSIM command sends a (raw) command to the sim card.
The sim card responds a bit cryptic with one of:

  • +CSIM: 4,"63CX" X is the hex-value of the remaining retries for pin1 (range 0-A=0-10 retries remaining)
  • +CSIM: 4,"6A88" pin1 is not initialized/available
  • +CSIM: 4,"6983" pin1 is blocked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM