Discussion in "Embedded GSM Development" started by    abbas1707    Apr 29, 2007.
Sun Apr 29 2007, 05:26 PM
#1
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 [email protected]
Tags smsreplycontrollerc codingAT commands
Sun Apr 29 2007, 07:59 PM
#2
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.
Tags baud rateinterfacereplyhyper terminalwindow9600 Baud
Mon Apr 30 2007, 05:45 PM
#3
hi ajay,
i hv nokia6600,7610.will any of them support AT command. how can i connect them with hyper terminal.plz reply
Tags hyper terminalnokia6600ajay7610 AT Command
Mon Apr 30 2007, 07:51 PM
#4
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.
Tags serial port connectionhyper terminalnokia 6110
Tue May 01 2007, 11:21 AM
#5
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!
Tags replyhyper terminalcpinajayAT CPIN
Tue May 01 2007, 12:39 PM
#6
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.
Tags sms sendingsending smsreplysony ericssonmax232
Wed May 02 2007, 11:10 AM
#7
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.......
Wed May 02 2007, 08:49 PM
#8

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!!!

Sun May 06 2007, 06:51 AM
#9
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.
Sun May 06 2007, 06:59 AM
#10
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
Tags SBUFReceive Interrupt

Get Social

Information

Powered by e107 Forum System

Conversation

Sun Sep 27 2020, 07:06 AM
Edgar Sharrow
Want no charge advertising for your website? Check out: http://bit.ly/post-free-ads-here
Sat Sep 26 2020, 07:27 PM
Ronald Withrow
This software will help to increase traffic to website to hundreds, thousands times.
Thu Jun 11 2020, 06:27 AM
anudee
sir could please send the code for I2C and wifi interfacing with 8051
scena
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 01:39 PM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Fri Mar 13 2020, 10:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 12:55 PM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 05:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 04:58 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 104, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123