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

Fri Nov 15 2019, 08:19 AM
Allison Wink
Want to submit your business on 1000's of Advertising sites monthly? For a small monthly payment you can get virtually unlimited traffic to your site forever!For details check out: http://www.submitmyadnow.tech
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

Casmir
Wed Nov 13 2019, 06:25 AM
DeepakBGattani
Mon Nov 11 2019, 01:31 PM
Jeanbusatta
Sun Nov 10 2019, 04:42 AM
mdayaz
Sat Nov 09 2019, 03:41 PM
baoyen123
Fri Nov 08 2019, 10:06 AM
xiwang
Fri Nov 08 2019, 07:28 AM
ilylily07
Tue Oct 15 2019, 04:32 PM
hientran123
Tue Oct 15 2019, 02:27 AM

Online

Guests: 78, Members: 0 ...

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

Members: 38103
Newest member: Casmir
Forum Activity
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
I’ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...