8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  [1] 2 3 4 5 6 7
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Jenius
Fri Jan 25 2008, 03:40AM
 User Offline
Registered Member #5677
Joined: Fri Jan 25 2008, 03:12AM

Posts: 11
Thanked 0 times in 0 posts
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

Back to top


shyam
Fri Jan 25 2008, 04:21AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 663
Thanked 93 times in 89 posts
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??

lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


Shailesh NAYAK
Mon Jan 28 2008, 03:43AM

 User Offline
Registered Member #2498
Joined: Mon Jul 23 2007, 01:20AM

Posts: 39
Thanked 9 times in 7 posts
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.....


Best Regards

Shailesh S. NAYAK
Back to top


Jenius
Mon Jan 28 2008, 08:44AM
 User Offline
Registered Member #5677
Joined: Fri Jan 25 2008, 03:12AM

Posts: 11
Thanked 0 times in 0 posts
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.....
Back to top


Ajay
Mon Jan 28 2008, 08:59AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3307
Thanked 611 times in 578 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


abbas1707
Mon Jan 28 2008, 01:30PM

 User Offline
Registered Member #383
Joined: Thu Jan 25 2007, 08:07AM

Posts: 413
Thanked 63 times in 51 posts
send 26 for CTRL-Z

A Thousand Miles Journey Starts With a Single Step.
Back to top


shyam
Tue Jan 29 2008, 12:52AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 663
Thanked 93 times in 89 posts
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
 


see if things work this way...

lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


Jenius
Tue Jan 29 2008, 06:15AM
 User Offline
Registered Member #5677
Joined: Fri Jan 25 2008, 03:12AM

Posts: 11
Thanked 0 times in 0 posts
let me try.......
Back to top


Jenius
Tue Jan 29 2008, 06:32AM
 User Offline
Registered Member #5677
Joined: Fri Jan 25 2008, 03:12AM

Posts: 11
Thanked 0 times in 0 posts
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
Back to top


shyam
Tue Jan 29 2008, 09:14AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 663
Thanked 93 times in 89 posts
u can do it both ways result wud be same!!!

lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


Go to page  [1] 2 3 4 5 6 7  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems