Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MikroC code to receive SMS

Status
Not open for further replies.

tritech

Newbie level 6
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top