Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

want to send an sms from nokia 3310 from 8051

Status
Not open for further replies.

thannara123

Advanced Member level 5
Joined
Jan 7, 2010
Messages
1,580
Helped
122
Reputation
244
Reaction score
114
Trophy points
1,353
Location
India
Activity points
10,382
hello experts .,
I want to make project that send an sms from a nokia mobile using 8051 (when certain condition comes in controller attached sensor )
i have googled a lot
but am confused where i start .
i have no experiences regarding hyper terminal

please help me where i will start
any sample c code for that
 

#include<reg51.h>

unsigned char string[26]="AT+CMGS=9898455102\rHelloo";
unsigned int i;
void delay(unsigned int value)
{
int x,y;
for(x=0;x<=value;x++)
for(y=0;y<=1275;y++);

}




void main()
{

PCON=PCON|0x80;
TMOD=0x20; //Enable Timer 1
TH1=0XFD; //baurd rarte 9600
SCON=0x50;
TR1=1;

{
for(i=0;i<27;i++)
{

SBUF=string;
while(TI==0);
delay(20);
TI=0;
}
SBUF=0x1A;
while (TI==0);
TI=0;

}


}

I tested above code for sending massage from controller to any mobile phone. with baurd rate 19200 u can modify string on code for receiving massage.
change mobile number in string
 
thanks i will check it out soon
can you provide the circuit diagram
 

I do not have now as document. i ll make later if i get time.you want controls relays with gsm phone?
 

no want to send SMS from mobile using controller 8051
 

thannara123 said:
want to send SMS from mobile using controller 8051
If you can connect your modem to the RS232 PC port for the first tests, you will spare a lot of time because this is the simplest thing you can do. The following tutorial is really nice:
Send SMS using AT commands

If you cannot make the RS232 connection, then execute the tutorial's commands in the same order, from 8051's UART.


Alexandros
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top