hayes

How to retrieve the telephone number from an AT CMGL response?

I have an application written in C that reads text messages from a modem using AT commands. A typical AT response from the modem looks like this: +CMGL: 1,"REC READ","+31612123738",,"08/12/22,11:37:52+04" The code is currently set up to only retrieve the id from this line, which is the first number, and it does so using the following ...

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. ...