a quick question related to AT command syntax

Status
Not open for further replies.

qtommer

Member
hi.




i am tryin out SMS control using a PIC. Attached is the communication results from Hyperterminal during the sending of an SMS via AT+CMGS.


What I anticipate to receive after +CMGS:0 are the bytes
<CR><LF><CR><LF>OK<CR><LF>


Hence, in my program code, I am anticipating the character 'K' followed by bytes 0x0D and 0x0A but my program seems to be stuck somewhere in the receiving of bytes. (This only happens during the CMGS response) Using a debugger, I realize that I do not even receive the 'K'.


Am I right in what to expect as the response? If it helps I'm using a Wavecom modem but I believe the syntax should be standardized across most modems.
 
hi eric

thanks for the much appreciated reply.

I have actually found out that it was a modem related issue and my code expecting the AT command syntax was correct.

Thanks again!
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…