Reading SMS
How to read SMS messages on a mobile phone. Note that this has been tested to work on a Sony-Ericsson T610 and should work on similar phones (T68,T68i,T630 at least). Other phones may not use the same commands.
- Connect a usual
- Use the
ATE0command to turn off echoing - Use the
AT+CPMS?command to find out the sms memory status - If you get a response like
+CPMS: "SM",0,20,"SM",0,20,"ME",39,70then you need to use AT+CPMS="ME","SM" to switch to phone instead of SIM memory. - Use the command
AT+CMGF=1to switch to text mode for SMS reading (otherwise you won't understand them) - To read a specific message use
AT+CMGR=iwhere i is the message index - To read all messages use
AT+CMGL="ALL"(you can use "REC UNREAD","REC READ","STO UNSENT" or "STO SENT" instead of "ALL" to only see messages in that catagory).