ckshivaram
Advanced Member level 6
- Joined
- Apr 21, 2008
- Messages
- 5,060
- Helped
- 2,150
- Reputation
- 4,306
- Reaction score
- 2,088
- Trophy points
- 1,403
- Location
- villingen (Germany) / Bangalore
- Activity points
- 30,087
while(1)
{
clear_display();
printLcd(" GSM MODEM ");
printLcd2("NOTICE DISPLAY ");
no = recv_sms_no();
if(isdigit(no) && no != 0)
{
clear_display();
printLcd("SMS RECEIVED ");
beep();
del_1s();
read_sms(no);
}
unsigned char recv_sms_no()
{
unsigned char volatile ch[14],i;
while(i != '+')
{
i = recv_byte();
}
for(i=0;i<12;i++) //sender's phone number
{
ch[i]=recv_byte();
}
clear_display();
printLcd("SMS RECEIVED ");
beep();
return(ch[11]);
}
unsigned char recv_byte()
{
unsigned char c;
while(!RI); //waits till a byte is recieved
RI = 0;
c = SBUF;
return(c);
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?