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.

how to check sms and control device?

Status
Not open for further replies.

jsureshp

Junior Member level 3
Joined
Jul 20, 2010
Messages
26
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Chennai
Activity points
1,492
how to read new sms and how to control device?

can any one give sample code for read new sms,
and read the new sms i want to delete the sms.
give the sample code.... please


code for 8051 or pic,avr


Thank you for reply.............
 

first tell, which modem, or phone you are going to interface for your project, C or assembly? which IDE??, which controller?

Will you design your hardware once you get the code from someone or the hardware is already designed.
 

This is a part of code to read a sms, in "buffer" store phone number and sms.
In the main program I send to the gsm module AT+CNMI=2,2,0,0,0, the sms is routed directly to the serial port.
My english is not good I hope you can understand me


char buffer[60];
char b=0x00; // Last characters recived
int xbuff=0x00;

// Usart interrupt//////

#int_RDA
RDA_isr()
{
if(kbhit()){
b=getc();
if(b=='+'){//first character of the phone number
xbuff=0; //reset
}

buffer[xbuff++]=b; // add character to buffer
}
return 0;
}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top