Discussion in "Embedded GSM Development" started by    Jenius    Jan 25, 2008.
Fri Jan 25 2008, 05:10 pm
#1
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
Fri Jan 25 2008, 05:51 pm
#2
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??
Mon Jan 28 2008, 05:13 pm
#3
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.....
Mon Jan 28 2008, 10:14 pm
#4
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.....
Mon Jan 28 2008, 10:29 pm
#5
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.
Tue Jan 29 2008, 03:00 am
#6
send 26 for CTRL-Z
Tue Jan 29 2008, 02:22 pm
#7

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, 07:45 pm
#8
let me try.......
Tue Jan 29 2008, 08:02 pm
#9
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
Tue Jan 29 2008, 10:44 pm
#10
u can do it both ways result wud be same!!!

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

gtaletrzua
Fri May 03 2024, 10:55 am
Clydehet
Wed May 01 2024, 06:44 pm
Davidoried
Wed May 01 2024, 06:11 pm
KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am