GSM Modem - Read SMS example using interrupts

//You need two variables and a constant, one for storing constant string,
//second for an index pointer and a buffer to store recieved data
unsigned char code Response[] = "+CMTI";
unsigned char MyBuff[15], i = 0;
//we can also have a flag for new message
bit NewMessage = 0;

//consider this ISR function
//assuming ch is read character from SBUF
if((ch == Response[i]) || (i >
 4)){
	//if receiv...  Read Compelte post 
Posted by ajay_bhargav on Tue Feb 05 2013, 02:40 pm

GSM MODEM with 8051

The way you're reading SMS is obviously not a good method and there are 90% chances of loosing an SMS.

Best way...
check for new message indication in interrupt itself.

e.g.

... Read Compelte post
Posted by ajay_bhargav on Thu Dec 02 2010, 09:12 pm

Downloads

Comments

AlfredoIdeaw
Sat Jul 13 2024, 06:33 am
JessieFoemi
Sat Jul 13 2024, 05:52 am
Jamesboida
Sat Jul 13 2024, 01:41 am
AllanRuito
Fri Jul 12 2024, 05:21 am
Ronaldsonna
Thu Jul 11 2024, 09:02 am
Cazrtou
Thu Jul 11 2024, 08:56 am
Diplomi_yler
Thu Jul 11 2024, 08:53 am
WayneCeS
Thu Jul 11 2024, 08:09 am