8051 SMS Remote COntrol............
Fri Jan 25 2008, 05:10 pm
Hello All,
I am a final year Electonics& telecommunications Engineering Student.I am doing a project using 8051.We are using 8051 together with a Nokia 6210 mobile to control devices using SMS.The mobile Nokia 6210 has a serial port & can be used in text mode.I am using C to write the code.The Silabs software is used to write the code and to burn the code.Can onyone help me in writing the code.Also I have difficulty in sending a response SMS from the controller after atask has been executed,using AT commands..can anyone tell if any other mobile can be used,any mobile with USB data cable........the mobile is serially connected to the controller.So we have no means of checking the response at every step.Any idea to check at every step,like to making a pin high etc...Whats the instruction for that........Any other comments invited.Please help
I am a final year Electonics& telecommunications Engineering Student.I am doing a project using 8051.We are using 8051 together with a Nokia 6210 mobile to control devices using SMS.The mobile Nokia 6210 has a serial port & can be used in text mode.I am using C to write the code.The Silabs software is used to write the code and to burn the code.Can onyone help me in writing the code.Also I have difficulty in sending a response SMS from the controller after atask has been executed,using AT commands..can anyone tell if any other mobile can be used,any mobile with USB data cable........the mobile is serially connected to the controller.So we have no means of checking the response at every step.Any idea to check at every step,like to making a pin high etc...Whats the instruction for that........Any other comments invited.Please help
Fri Jan 25 2008, 05:51 pm
first connect the mobile to serial port of PC and see if u can send SMS..
first of all tell me can u send AT<enter> to ur phone thru hyperterminal??
first of all tell me can u send AT<enter> to ur phone thru hyperterminal??
Mon Jan 28 2008, 05:13 pm
Dear Jenius,
Shyam is right, You will have to confirm if your mobile is able to communicate with Hyperterminal in windows by checking with differant baudrates.type AT and then enter.there are possibilities you may not able to see what you are typing, but you met get response as"OK"
if you get the response then just type ATE1 and entr
then type AT&W --> Enter
by doing this you will be ale to see what you type.
do this and then tell us what you want further.....
Shyam is right, You will have to confirm if your mobile is able to communicate with Hyperterminal in windows by checking with differant baudrates.type AT and then enter.there are possibilities you may not able to see what you are typing, but you met get response as"OK"
if you get the response then just type ATE1 and entr
then type AT&W --> Enter
by doing this you will be ale to see what you type.
do this and then tell us what you want further.....
Mon Jan 28 2008, 10:14 pm
I have tried what was said above and was getting the required output on the hyperterminal.Also sending SMS through Hyperterminal is Successful.So i think there is no problem with the mobile.The controller i am using is 8051F410.I have connected the port of MC-RS232-Data cable-Mobile.
I found a problem while writing the program using C to send the SMS.First I have to send AT,then configure it into text mode,put the SMS centre no,Senders no& then the message.When sending the message through hpperterminal, i have to type the message and then CTRL-Z to terminate the message ,then the message goes.But how can I do it in C program ??????
ALso I would like to get some help in programming 8051...initialisation etc.....
I found a problem while writing the program using C to send the SMS.First I have to send AT,then configure it into text mode,put the SMS centre no,Senders no& then the message.When sending the message through hpperterminal, i have to type the message and then CTRL-Z to terminate the message ,then the message goes.But how can I do it in C program ??????
ALso I would like to get some help in programming 8051...initialisation etc.....
Mon Jan 28 2008, 10:29 pm
all you need to initialize is 8051's UART nothing else.
read the serial communication tutorial will help you. Also do not worry.. we are all here to help you.. just start working on it.
read the serial communication tutorial will help you. Also do not worry.. we are all here to help you.. just start working on it.
Tue Jan 29 2008, 02:22 pm
nd 26 for CTRL-Z
and "/r" for enter....
remember <enter> ("\r") is very important...
suppose i have my uart for 8051 configured @ 9600 where i have a function called putString(char*)
to print data to uart...
now...
putString("AT \r\n"); wait(); // or u can read the response here... putString("AT +CMGS = \"+919999999999\"\r\n"); // hope u wud understand the extra / near /" putString(message); //message is a char * or char[] putChar(CTRLZ); //CTRLZ defined by abbu :D as #define CTRLZ 26
see if things work this way...
Tue Jan 29 2008, 08:02 pm
I have not understood the line Below
putChar(CTRLZ);
should i write putchar(26) directly..........or should i define something like #define CTRLZ 26 at the beginning of the program and then write putchar(CtrlZ)........
Thanks for your help......Now i feel that i can do it with your help.
you guys r.....ock
putChar(CTRLZ);
should i write putchar(26) directly..........or should i define something like #define CTRLZ 26 at the beginning of the program and then write putchar(CtrlZ)........
Thanks for your help......Now i feel that i can do it with your help.
you guys r.....ock
Powered by e107 Forum System