free 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 ... 10 11 12
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
abbas1707
Sun Apr 29 2007, 10:26AM

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

Posts: 414
Thanked 67 times in 52 posts
hi ajay,
i want to make a project " sms controller using 8051".it must work in a way that one mobile phone is connected to 8051 serialy interfaced , and when sms is sent to this mobile devices connected to 8051 will be turned on/off. i want to do this using c coding.can u plzzzzzzzz help me about it,mean from where i must start,some description about cct and coding?? if u know some link related to this project plz send me dat. ok take care God bless u!
looking 4 ur reply@




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

sms   reply   controller   c coding   AT commands   


Ajay
Sun Apr 29 2007, 12:59PM
Rickey's World Admin

 User Offline

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

Posts: 3753
Thanked 696 times in 655 posts
First of all you must use 8052 because there are two types of interface available AT command based interface which runs at 9600 baud rate and FBUS interface which runs at 115.2K Baud rate.
if you can get a mobile with AT commands i will help you implementing your project.
so first of all... search in the net for any AT supported Mobile, buy that mobile doesn't matter it is a second hand.
INFO: all mobiles with modems support AT commands
if you want to check the mobile whether support AT commands or not..
then connect the mobile with Hyper Terminal
at 9600 8-n-1
in the terminal window type "AT" without quotes.
you will get a reply from the mobile as "OK"
this is how you check.

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

baud rate   interface   reply   hyper terminal   window   9600 Baud   


abbas1707
Mon Apr 30 2007, 10:45AM

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

Posts: 414
Thanked 67 times in 52 posts
hi ajay,
i hv nokia6600,7610.will any of them support AT command. how can i connect them with hyper terminal.plz reply

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

hyper terminal   nokia6600   ajay   7610 AT Command   


Ajay
Mon Apr 30 2007, 12:51PM
Rickey's World Admin

 User Offline

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

Posts: 3753
Thanked 696 times in 655 posts
u need a phone with Serial port connection so that u can test it on hyper terminal. so search for phones like nokia 6110 etc.. i am not sure whether it support AT or not just giving you an example.

So make sure whichever phone you are buying or getting it. it must have serial port Data cable.

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

serial port connection   hyper terminal   nokia 6110   


abbas1707
Tue May 01 2007, 04:21AM

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

Posts: 414
Thanked 67 times in 52 posts
hi ajay,
i have checked some cell phones but only one of them is responding to AT commands through hyper terminal. i have checked commands AT and AT+CPIN? .AT shows ok and other command shows ready.now the problem is that i dnt know abt the Rx and Tx pins on cell.And i must tell u that cell is T29s.
plz tell me what to do know.plzzzzzzzzzzzzzz
w8ting 4 ur reply!

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

reply   hyper terminal   cpin   ajay   AT CPIN   


Ajay
Tue May 01 2007, 05:39AM
Rickey's World Admin

 User Offline

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

Posts: 3753
Thanked 696 times in 655 posts
you can connect your phone with the microcontroller via same datacable and connect that phone with the help of max232, just as a normal serial connection. I hope you understood.
now do one thing... search and download the AT command manual for T29S or Sony Ericsson (i hope i am not wrong with the company name) mobile phones.
and try with the commands for reading sms, deleting sms, sending sms and check what you get in the terminal. if possible copy paste the results of whatever you do in the terminal in the forum as your reply. So that i can explain you more and in a better way.

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

sms sending   sending sms   reply   sony ericsson   max232   


abbas1707
Wed May 02 2007, 04:10AM

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

Posts: 414
Thanked 67 times in 52 posts
hi ajay,
i have tested the following commands on hyper terminal

AT //testing
OK //output
AT+CPMS="ME" // selecting memory of mobile
+CPMS: 1,25,25,25,1,25 // output
OK
AT+CMGR=1 //reading sms at first memory location of mobile
/* i sent the message 10101100 ,from other mobile, which appeared at first location
of my mobile and when i entered the above read command the output
is given below*/
+CMGR: 1,,26
0791293303001505040C912933630754110000705020313311020831580C168BC160
OK
continued...

AT+CMGD=1 // command to delete the message which i have at first
//mermory location
OK // with this output the mesasge in my mobile at first location
// was deleted
so are these outputs ok??? what more commands should i learn??
and also i have found the pin configuration of data connector for my
T29s,, now tell me if i need to use max232??? i think i dont need it
becoz all the process will occur at TTL.plz reply
w8ing.......

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


abbas1707
Wed May 02 2007, 01:49PM

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

Posts: 414
Thanked 67 times in 52 posts

hi ajay,
i hv decoded the message which i read in the hyper terminal and which i copied into my previous post.image below shows the decoded form of that message. portion with
red color: show dat the format for message used is international.
yellow color: show msg center info
pink color:shows length of sender's number in hex..
sky color: shows date and time
grey color:show lenght of actual sms which was 10101100
brown color:shows the sms (septets converted to octets) shown in hex
about other parts i dnt kno wat they r...
so wat shud i do know????shud i learn to decode the msg via c program???
w8ing 4 ur reply!!!



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


Ajay
Sat May 05 2007, 11:51PM
Rickey's World Admin

 User Offline

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

Posts: 3753
Thanked 696 times in 655 posts
messages are sent and received in the PDU format. so you need to understand the PDU format.
for this you can visit
http://www.dreamfabric.com/sms/
http://emctone.tripod.com/html/smspdu.html

usually we use 7-bit octets for normal message when we are not using any special characters. so you can see those websites for complete description. and for programming part, you can create a structure and distribute the message and decode the message part.
hope that helps for now u can just understand how this is to be done.


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
Sat May 05 2007, 11:59PM

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

Posts: 414
Thanked 67 times in 52 posts
i want to test dat if my cellphone is responding to AT commands sent by microcontroller
i have written a c program and before wirting this code to controller i want 2 confirm if this code ok???? or i must correct it?? im just sending AT and cheking wether OK recieved and if so turning led on!!!
********************************
#include sbit led=P1^0;
void init()
{
TMOD=0x20;
TH1=0xFD;
SCON=0x50;
TR1=1;
}
void transmit(unsigned char *a)
{
while(*a!='\0')
{
SBUF=*a;
while(TI==0);
TI=0;
a++;
}
}
unsigned char rcv()
{
while(RI==0);
return SBUF;
}
void main()
{
unsigned char ok[2];
unsigned char j;
led=0;
init();
transmit("AT");
transmit(0x0d);
for(j=0;j<2;j++)
ok[j]=rcv();
if(ok[0]=='O'&&ok[1]=='K')
led=1;

}
i have learned the other coding.program above is just for test

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

SBUF   Receive Interrupt   


Go to page  [1] 2 3 ... 10 11 12  

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