hello experts .,
I want to make project that send an sms from a nokia mobile using 8051 (when certain condition comes in controller attached sensor )
i have googled a lot
but am confused where i start .
i have no experiences regarding hyper terminal
please help me where i will start
any sample c code for that
unsigned char string[26]="AT+CMGS=9898455102\rHelloo";
unsigned int i;
void delay(unsigned int value)
{
int x,y;
for(x=0;x<=value;x++)
for(y=0;y<=1275;y++);
SBUF=string;
while(TI==0);
delay(20);
TI=0;
}
SBUF=0x1A;
while (TI==0);
TI=0;
}
}
I tested above code for sending massage from controller to any mobile phone. with baurd rate 19200 u can modify string on code for receiving massage.
change mobile number in string
If you can connect your modem to the RS232 PC port for the first tests, you will spare a lot of time because this is the simplest thing you can do. The following tutorial is really nice: Send SMS using AT commands
If you cannot make the RS232 connection, then execute the tutorial's commands in the same order, from 8051's UART.