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

NhunterPex
Tue Aug 09 2022, 03:03 am
Waynebap
Mon Aug 08 2022, 05:06 pm
Richardkip
Sun Aug 07 2022, 01:25 am
Antidracer
Sat Aug 06 2022, 10:20 am
FrancisGaurf
Thu Aug 04 2022, 11:26 am
WilliamSkams
Thu Aug 04 2022, 02:16 am
Louisspurn
Thu Aug 04 2022, 01:48 am
Josephsor
Tue Aug 02 2022, 09:21 am