Jenius
Jan 25 2008, 3:40 AM
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
shyam
Jan 25 2008, 4:21 AM
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??

Shailesh NAYAK
Jan 28 2008, 3:43 AM
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.....
Jenius
Jan 28 2008, 8:44 AM
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.....
Ajay
Jan 28 2008, 8:59 AM
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.abbas1707
Jan 28 2008, 1:30 PM
send 26 for CTRL-Z
shyam
Jan 29 2008, 12:52 AM
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...
CODE:
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
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...
Jenius
Jan 29 2008, 6:15 AM
let me try.......
Jenius
Jan 29 2008, 6:32 AM
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
shyam
Jan 29 2008, 9:14 AM
u can do it both ways result wud be same!!! 

Jenius
Feb 5 2008, 5:39 AM
Nothing is working............
The mobile is not sending the sms..........
I have attached my code....Can anyone please check it
The mobile is not sending the sms..........
I have attached my code....Can anyone please check it
Jenius
Feb 5 2008, 5:47 AM
Nothing is working.The mobile is not sending the message to the phone.I have attached the code.Can anyone check it?
Jenius
Feb 5 2008, 5:56 AM
Its not working.The mobile is not sending message........Whats wrong now......
I have attached my C code .can anyone check it & tell the problem ...
I have attached my C code .can anyone check it & tell the problem ...
Jenius
Feb 5 2008, 5:57 AM
Its not working.The mobile is not sending message........Whats wrong now......
I have attached my C code .can anyone check it & tell the problem ...
uart00.rar
I have attached my C code .can anyone check it & tell the problem ...
uart00.rarabbas1707
Feb 5 2008, 5:58 AM
jenius
connect your circuit with pc(i.e pc will take place of mobile phone).and check on hyper terminal what you are receiving ....it will confirm also that serial communication working properly.
and you also not selecting text mode in your code!!!!
try to follow this procedure
void main()
{
initUART();
delay();
sendString("AT+CMGF=1"); // command to select text mode
sendChar(13);
delay();
sendString("AT+CMGS=\"0999999999\"");// here 09999999999 is recepient's number
sendChar(13);
delay();
sendString("Hello!"); // Hello! will be sent
sendChar(26);
sendChar(13);
}
connect your circuit with pc(i.e pc will take place of mobile phone).and check on hyper terminal what you are receiving ....it will confirm also that serial communication working properly.
and you also not selecting text mode in your code!!!!
try to follow this procedure
CODE:
void main()
{
initUART();
delay();
sendString("AT+CMGF=1"); // command to select text mode
sendChar(13);
delay();
sendString("AT+CMGS=\"0999999999\"");// here 09999999999 is recepient's number
sendChar(13);
delay();
sendString("Hello!"); // Hello! will be sent
sendChar(26);
sendChar(13);
}
Ajay
Feb 5 2008, 9:12 AM
@Jenius
abbas is helping you.. so please do not make multiple posts ok!
he has replied already so better read it carefully.
abbas is helping you.. so please do not make multiple posts ok!
he has replied already so better read it carefully.
Jenius
Feb 7 2008, 7:42 AM
Any body has checked my code ????????????????
Also in the above given code by abbas is there no need of SMS message sender no before giving the receipients no
???
Also in the above given code by abbas is there no need of SMS message sender no before giving the receipients no
???
Jenius
Feb 7 2008, 8:05 AM
Sorry for the multiple posts.......This was because my connection was slow so the page does not load .so I press reload again.....
Can i delete those posts...
Can i delete those posts...
abbas1707
Feb 7 2008, 9:47 AM
Jenius wrote ...
Any body has checked my code ????????????????
Also in the above given code by abbas is there no need of SMS message sender no before giving the receipients no
???
you tried what i said???
and there is no need of sms sender no.
xtracool_protik
Feb 13 2008, 2:56 AM
Hey check whether u have correctly formed null modem db9 at microcontroller side
further u can send 1a (HEX) instead of cntrlZ or 26
and ENTER is not compulsory after CNTRLZ
Even you can implement enter by sending CR(carriage return) - 0D hex and LF(line feed) - 0A hex in succession
No need to have msg center no
However when I implemented it the msg sent used to miss 1st 8 characters of string
I'm working on it
further u can send 1a (HEX) instead of cntrlZ or 26
and ENTER is not compulsory after CNTRLZ
Even you can implement enter by sending CR(carriage return) - 0D hex and LF(line feed) - 0A hex in succession
No need to have msg center no
However when I implemented it the msg sent used to miss 1st 8 characters of string
I'm working on it

ENG ahmed
Feb 18 2008, 2:54 PM
hi all
i want to use nokia 6210 in remot control but when i connect mobile to hybredterminal i have no response what can i do???????
i want to use nokia 6210 in remot control but when i connect mobile to hybredterminal i have no response what can i do???????
ENG ahmed
Feb 18 2008, 3:07 PM
hi all
what is the diffrent between (nokia 6210 modem)&(external gsm modem) ?and
what is best?
what is the diffrent between (nokia 6210 modem)&(external gsm modem) ?and
what is best?
Jenius
Feb 19 2008, 4:33 AM
Im working on it.................
Ajay
Feb 19 2008, 10:10 AM
ENG ahmed wrote ...
hi all
i want to use nokia 6210 in remot control but when i connect mobile to hybredterminal i have no response what can i do???????
can you tell me settings you used for communication?
lo
Feb 28 2008, 10:14 AM
Hi all
Can u tell me what other phones(other than 6210) support AT commands.
And how do u know whether a phone doesn support AT commands? Like i connected a nokia N72 thru its dats cable(usb), typed AT in Hyperterminal window and it dint get dispalyed in the window. does that mean it doesn support AT commands??
Can u tell me what other phones(other than 6210) support AT commands.
And how do u know whether a phone doesn support AT commands? Like i connected a nokia N72 thru its dats cable(usb), typed AT in Hyperterminal window and it dint get dispalyed in the window. does that mean it doesn support AT commands??
Ajay
Feb 29 2008, 12:39 AM
N72 does support AT Commands. Every nokia mobile phone which has inbuilt modem supports AT commands.
for testing N72, just connect N72 to your PC via USB (considering cable drivers are installed already). Now open hyper terminal and select com port (virtual COM port, check device manager for more details) where your phone is connected at baudrate of 9600. type AT and press enter. you will get reply OK from your phone.
for testing N72, just connect N72 to your PC via USB (considering cable drivers are installed already). Now open hyper terminal and select com port (virtual COM port, check device manager for more details) where your phone is connected at baudrate of 9600. type AT and press enter. you will get reply OK from your phone.
ENG ahmed
Mar 4 2008, 1:34 PM
HI ALL
in hybredterminal i use com 1 with 9600bit/sec ,8 data bit,barity none,stop bit 1
follow control hardware,
and ther are many mobile suport at command ex) 6310i$6100
you can get thise inf. from nokia site
in hybredterminal i use com 1 with 9600bit/sec ,8 data bit,barity none,stop bit 1
follow control hardware,
and ther are many mobile suport at command ex) 6310i$6100
you can get thise inf. from nokia site
abbas1707
Mar 4 2008, 1:40 PM
try with flow control=none
ENG ahmed
Mar 11 2008, 12:54 PM
hi all
i try with make my connectin is (flow control =none)but stil ther is no responce from hybridterminal?
i try with make my connectin is (flow control =none)but stil ther is no responce from hybridterminal?
abbas1707
Mar 12 2008, 1:49 AM
then try with some different baud rate
Ajay
Mar 12 2008, 11:22 AM
are you still using N72?
madu
Mar 23 2008, 2:35 AM
hey i'm workin on N72 to send and receive sms....i checked my phone by typing AT in hyoprer terminal
and it gives OK in return...Now i dont know commands and steps to send,receive sms...can u help me out in this..? 
and it gives OK in return...Now i dont know commands and steps to send,receive sms...can u help me out in this..? 
abbas1707
Mar 23 2008, 11:38 AM
get N72 AT commands manual from net...and read it
Amin Sharif
Mar 23 2008, 11:37 PM
try this
AT <enter>
AT+CPMS="ME" <enter>
AT+CMGF=1 <enter>
AT+CMGL="ALL" <enter>
tell us what you receive.
AT <enter>
AT+CPMS="ME" <enter>
AT+CMGF=1 <enter>
AT+CMGL="ALL" <enter>
tell us what you receive.
Ajay
Mar 24 2008, 2:08 AM
I hope you are well aware of the fact that N72 creates virtual serial port on you PC. you feel that you are working on a serial port whereas in actual you are emulating serial port on USB. So keep this in mind 

frnd
Mar 27 2008, 10:45 PM
hi,
i m also working on the similar project. i m trying to sens sms by interfacing microcontoller (8051) with NOKIA 6080 .. i m using AT COMMANDS.
i m able to send sms when i connect nokia 6080 with pc serial port and then send AT commands through hyperterminal.... i just send ... AT+CMGS="9865682569"message....with this i was successfully able to send sms.....
i have written program for the same in 8051....but when i connect my 8051 with 6080 ... i do not get any response.....
when i connect 8051 circuit (serial port o/p) with pc then i m able to see the AT commands that r send by 8051 on hyperterminal.... the commands appear without any error.....
i m using DKU-5 cable which has RS-232 o/p on one side......
plz... tell me where is the mistake....
also regarding post send by ABBAS1707...... i want to how much delay is there in the delay() function for the code below posted by ABBAS1707....
is it 1ms....
i m also working on the similar project. i m trying to sens sms by interfacing microcontoller (8051) with NOKIA 6080 .. i m using AT COMMANDS.
i m able to send sms when i connect nokia 6080 with pc serial port and then send AT commands through hyperterminal.... i just send ... AT+CMGS="9865682569"
i have written program for the same in 8051....but when i connect my 8051 with 6080 ... i do not get any response.....
when i connect 8051 circuit (serial port o/p) with pc then i m able to see the AT commands that r send by 8051 on hyperterminal.... the commands appear without any error.....
i m using DKU-5 cable which has RS-232 o/p on one side......
plz... tell me where is the mistake....
also regarding post send by ABBAS1707...... i want to how much delay is there in the delay() function for the code below posted by ABBAS1707....
is it 1ms....
CODE:
void main()
{
initUART();
delay();
sendString("AT+CMGF=1"); // command to select text mode
sendChar(13);
delay();
sendString("AT+CMGS=\"0999999999\"");// here 09999999999 is recepient's number
sendChar(13);
delay();
sendString("Hello!"); // Hello! will be sent
sendChar(26);
sendChar(13);
}
{
initUART();
delay();
sendString("AT+CMGF=1"); // command to select text mode
sendChar(13);
delay();
sendString("AT+CMGS=\"0999999999\"");// here 09999999999 is recepient's number
sendChar(13);
delay();
sendString("Hello!"); // Hello! will be sent
sendChar(26);
sendChar(13);
}
Alok Shah
Mar 29 2008, 2:41 AM
i need to send an sms using a gsm module..i have no idea how to proceed..can any one plz help me...
Alok Shah
Mar 29 2008, 2:42 AM
sorry i forgot to mention that ii am using 8051 microcontroller..thanks again...
Ajay
Mar 29 2008, 4:22 AM
also you forgot to mention which GSM module you are using 

abbas1707
Mar 29 2008, 8:57 AM
@frnd
delay can b 1ms.
have you shorted DTR pin of your cell to Vcc?? its necessary
delay can b 1ms.
have you shorted DTR pin of your cell to Vcc?? its necessary
frnd
Mar 31 2008, 12:32 AM
hi abbas1707,
i didnt short my DTR pin of my cell to VCC....
i m using DKU-5 cable.. which has RS232 o/p on one side....
i will connect the DTR pin of the RS 232 o/p to vcc when i connect that cable to my cell 6080...
thnks for reply.....
i didnt short my DTR pin of my cell to VCC....
i m using DKU-5 cable.. which has RS232 o/p on one side....
i will connect the DTR pin of the RS 232 o/p to vcc when i connect that cable to my cell 6080...
thnks for reply.....
Alok Shah
Mar 31 2008, 12:47 AM
hi ajay
i am using MOD 9001 BENQ GSM/GPRS Modem..
i tried this modem using hyperterminal for the following specification
baud rate-9600
databits-8
parity-none
stop bits-1
flowcontrol-none
using the AT command but it does not respond..i also tried with different baud rates like 4800,2400 but still doesnt respond...
i am using MOD 9001 BENQ GSM/GPRS Modem..
i tried this modem using hyperterminal for the following specification
baud rate-9600
databits-8
parity-none
stop bits-1
flowcontrol-none
using the AT command but it does not respond..i also tried with different baud rates like 4800,2400 but still doesnt respond...
Ajay
Mar 31 2008, 2:02 AM
Alok you are posting in wrong thread... you must create your own thread.. to do that simply click on "New Thread" button at the bottom right or top right of forum area.
Now regarding your problem, I think you must consider contacting help/support area of modem vendor or read its manual. There might be something you are missing. so just check its manual one more time.
Now regarding your problem, I think you must consider contacting help/support area of modem vendor or read its manual. There might be something you are missing. so just check its manual one more time.
frnd
Apr 1 2008, 2:03 AM
hi abbas1707,
i tried to short the DTR pin of my cell to VCC.... but still i didnt got the output......
also that in the code that u have written..... did u enable or disabled the receive funtion of 8051....
i.e REN=0 or REN=1....
if receive is enabled then how do u read the OK command received after AT+CMGF=1 is send....
in ur prg... u have written a delay() function .... how much delay should be this.....
i have tried with same program but delay is of 1 ms n receive is disabled..... but i didnt got any output....
i tried to short the DTR pin of my cell to VCC.... but still i didnt got the output......
also that in the code that u have written..... did u enable or disabled the receive funtion of 8051....
i.e REN=0 or REN=1....
if receive is enabled then how do u read the OK command received after AT+CMGF=1 is send....
in ur prg... u have written a delay() function .... how much delay should be this.....
i have tried with same program but delay is of 1 ms n receive is disabled..... but i didnt got any output....
abbas1707
Apr 1 2008, 7:05 AM
i tried with REN=1
no need to read OK
no need to read OK
krish123
Apr 6 2008, 12:38 PM
dear sir,
ia m in final year and want to implement the same logic using INTEL 8051...but i dont have any assistance as to what all i should know to implement the project... i dont even have a circuit diagram.. i am about to purchase a nokia phone as per reqiurement and know just this much that first i have to check my phone with PC using AT commands...apart from this i have no clue...pls help me out...and if possible guide me as to what steps i should do next...
also if u can suggest me as to which phone i should purchase , it will be a big favour...
pls reply sir as soon as possible..
ia m in final year and want to implement the same logic using INTEL 8051...but i dont have any assistance as to what all i should know to implement the project... i dont even have a circuit diagram.. i am about to purchase a nokia phone as per reqiurement and know just this much that first i have to check my phone with PC using AT commands...apart from this i have no clue...pls help me out...and if possible guide me as to what steps i should do next...
also if u can suggest me as to which phone i should purchase , it will be a big favour...
pls reply sir as soon as possible..
Ajay
Apr 7 2008, 1:48 AM
just get the cellphone... after testing with AT Commands.
also get the AT Command Manual for that cellphone.
also get the AT Command Manual for that cellphone.
Alok Shah
Apr 7 2008, 7:09 AM
how do you send crtl+z uisng bascom...
does the same logic work if a just send it as a string...
does the same logic work if a just send it as a string...
krish123
Apr 7 2008, 7:58 AM
thank you sir, but i wanted ur help in another thing.. i wanted a little help in the circuit diagram..so that i can tell my other team members to start working on something else..pls reply...
abbas1707
Apr 8 2008, 9:52 AM
circuit diagram is simple.which cell you are using now?have a datacable?
krish123
Apr 8 2008, 10:20 AM
sir i am still on a hunt for the cell phone..but i will manage to get it in two days...
i wanted t ask you if i am right when i think these are the basic steps i need to follow..
1. first connect the mobile to pc and check whether the phone communic ates through AT commands...
2. i have to retrieve the sms and decode it in case its in PDU format
3. i have to set the same baud rate in both the microcontroller as wll as the phone.
4. i use RS232 to connect the phone to the microcontroller (using MAX 232 chip)
5. send AT commands from the microcontroller to the mobbile phone..
pls correst me if i am wrong anywhere.. thank u..
i wanted t ask you if i am right when i think these are the basic steps i need to follow..
1. first connect the mobile to pc and check whether the phone communic ates through AT commands...
2. i have to retrieve the sms and decode it in case its in PDU format
3. i have to set the same baud rate in both the microcontroller as wll as the phone.
4. i use RS232 to connect the phone to the microcontroller (using MAX 232 chip)
5. send AT commands from the microcontroller to the mobbile phone..
pls correst me if i am wrong anywhere.. thank u..