MikroC code to receive SMS

Status
Not open for further replies.

tritech

Newbie level 6
Joined
Apr 16, 2013
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,403
PIC : PIC18F4520
PICPLC16v6 Development Board from Mikroelectronika
GSM Modem : Quectel M95

Can receive SMS by Hyperterminal

+CMTI: "SM",28 telling New SMS arrived, index in SIM Memory 28

AT+CMGR=28 AT command to Read SMS whose index is 28

+CMGR: "REC UNREAD","+6597329728","","2013/08/15 15:17:56+32"
Sms recd
OK

Need to implement this read part in MikroC programming. Any help
 

Pick up a simple code of serial interfacing through which u can Tx n Rx with interrupt.
sent "+CMTI: "SM",28\r\n "
and wait for receive interrupt flag to be high den read the Rx buffer,
compare that buffer with desired string using "strcmp"
n return whtever u want
 

Use uart library in MIKROC to do this task. In help you will find every thing you need.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…