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.
i m attaching code...
in this code if switch connected to port 2 is pressed then only sms will send...its working code...
i have used it time ago...so check it and let me know...
#include<reg51f.h> // include at89x51 . h
#include<stdio.h>// include stdio . h
#include<stdlib.h>// include stdlib...
you have to use \r\n at the end of each command in double quotes....
enter is nothing but \r\n....
also for sending msg u have just send ctrl+z..
- - - Updated - - -
you have to use \r\n at the end of each command in double quotes....
enter is nothing but \r\n....
also for sending msg u have...
if you want to send AT commands you have to send it to modem using RX/Tx...you have to set baud rate as 9600...
how to set baud rate you can refer following link...
while using these commands in hyperterminal you must have observed response of each step.....
u have to send one command and then wait till correct response is captured...
like this you have to send all commands...
sir,i got one source code from internet.i modified it according to my need.....i have not simulated it on proteus...
i have keil uvision2 file...i m attaching that project file....
- - - Updated - - -
i have tried another logic also...can you please try that also?
its URGENT sir...
i have simcom module...
the sequence of commands to be followed for sending sms is as follow...
at
ati //not necessary
at+cops?
at+cgmr // not necessary
at+creg? // this is to check whether your sim responding or not
at+cmgf=1
at+cmgs="+91-mobile no"
<type message
<ctrl-z
first try...
i tried using timer2....but its not responding...
can please tell me how to configure timer2 for 9600 baud for softUART?
There will be no transmit part for softUART as m interfacing RF-ID..
i tried doing softUART using external hardware interrupt also(edge triggered)...
when rf-id sends data for start bit there will transition from high to low..so i think problem is my interrupt pin is not able to detect this transition bcz that might be too fast..can this be problem??
kindly help...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.