Why can't I get sms using AT commands?

I want to send / receive sms using AT commands from my computer to my mobile phone. I connected my phone to a computer using a USB port. My computer detects a modem, and I can send sms from my computer to my mobile phone. However, I can not get sms on my computer.

I present a sample of what I get from AT editor

AT + CMGF = 1 OK

AT + CNMI = 1,2,0,0,0 Error

What can I do to post this problem and why am I getting this error?

+4
source share
2 answers

Each phone has different capabilities, so you should check which values ​​for each parameter are valid for your phone by sending it

AT + CNMI =?

For example, my phone does not support your example, because mode 1 is not supported. For full CNMI syntax + you can refer to your manufacturer’s AT manual or ETSI standard or read this short tutorial http://www.cellular.co.za/at_etsi.htm

AT + CNMI is used anyway to get notified when SMS arrives, to read the contents of saved SMS, you need to use AT + CMGL = or AT + CMGR =.

Briefly: AT + CMGF = 1, sets the text mode

AT + CMGL = ?, reports which memories are available

AT + CSCS = ?; indicates which character sets are available

AT + CSCS = "8859-1", sets Latin1 as an encoding so that you can finally see letters with an accent

AT + CMGL = "ALL", prints each text message stored in the phone

+6
source

Most phones return Error when some special AT command sent to them, and + CNMI is one of these commands. It also throws an error when sending AT + CNMI = ?.

So forget that phones are buying a GSM modem based on RS232 or USB, and then try again.

+1
source

All Articles