Why I am not able to receive sms using AT commands?

亡梦爱人 提交于 2019-12-01 19:50:34

Every phone has different capabilities so you should check which values for each parameter are valid for your phone by sending it a

AT+CNMI=?

For example my phone doesn't support your example because mode 1 is not supported. For the full syntax of +CNMI you can consult the AT Manual of your manufacturer or the ETSI standard or read this brief tutorial http://www.cellular.co.za/at_etsi.htm

AT+CNMI is used anyway just to get a notification when a SMS arrives, in order to read the content of the stored SMS you have to use AT+CMGL= or AT+CMGR=.

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

AT+CMGL=? ;tells you which memories are available

AT+CSCS=? ;tells you which character sets are available

AT+CSCS="8859-1" ;sets Latin1 as the charset so that you can see eventually accented letters

AT+CMGL="ALL" ;prints every text message you have stored in your phone

Koola Liquid

Most of the phones returns Error when some special AT command sent to them and +CNMI is one of that command. It will return error also when send AT+CNMI=?.

So forget Phones buy a GSM Modem based on RS232 or USB and then try it again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!