electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

GSM SMS 8051 controlling relays


Goto page 1, 2  Next
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> GSM SMS 8051 controlling relays
Author Message
ronydc



Joined: 17 Nov 2005
Posts: 148


Post16 Mar 2009 13:37   

gsm relay


DEAR FRIENDS,

OK .. THR IS A LOT OF DISCUSSIONS ON SENDING THE SMS THROUGH MOBILE PHONE

LETS NOW TALK ABT RECEIVING sms AND MAKING A RELAY ON WITH 8051 CONTROLLER.


IF SOME ONE HAS DONE ANYTHING.. ABOUT THIS USING at commands,
please share it

---> reply and share only -----> 8051 with GSM modem
( not with mobile phone and fbus)

waiting for some expert to break the silence on this topic.
my findings till now are below.

--reciving sms in text mode are not performing the job. to make the realay on with sms.

-- may be forcefully need to apply the PDU mode.

please comment and show the way THIS can help a lot of forum members.

- Rony







Back to top
ronydc



Joined: 17 Nov 2005
Posts: 148


Post18 Mar 2009 20:29   

$crystal at+cmgf=1


ok ok.. friends..

no need to reply this post.
i have got the solution and i am able to make 8 relays on and off with SMS with IC 8051.

THANKS ANY WAY.
Back to top
johndavediuyan



Joined: 18 Mar 2009
Posts: 2


Post18 Mar 2009 22:14   

sms control relay


hi

im new here, i just want know f anybody could help me. i want to send and receive sms from my computer using AT command,MScomm and writen into Visual basic 6. i am using sony ericsson for my modem attach to the computer using bluetooth.
could you help me guys?
please...? i realy dont have idea how to start or to finish the project.
i have only limited experience in vb and AT commands. i had a sample code in receiving sms but it display in none text format. i already set the format into
AT+CMGF=1
but still not text format.
thanks...

hope that their someone who could help me here coz, im gon from dfrnt forum already but i dnt get exact answers there. hope here i could..
you can reach me here

johndavediuyan(at)gmail.com

thanks
Back to top
ronydc



Joined: 17 Nov 2005
Posts: 148


Post19 Mar 2009 19:07   

sms controling open the door


try this forumn by searching key words --> sms, vb
many times the vb code are discussed here.

and i am still not clear from ur message that either you are using a GSM modem OR using a sony phone for ur purpose.


all the best.
--Rony
Back to top
computer eng.



Joined: 06 Mar 2009
Posts: 20


Post06 Apr 2009 22:44   

gsm 8051 relay


Thank you ronydc ..

But can you me how you interface this circuit ..

please I need your help ..
Back to top
geev88



Joined: 30 May 2009
Posts: 9


Post30 May 2009 22:14   

on off relay through mobile sms


ronydc wrote:
ok ok.. friends..

no need to reply this post.
i have got the solution and i am able to make 8 relays on and off with SMS with IC 8051.

THANKS ANY WAY.


I was looking to c how will be implemented to perform the job, but since you got an answer you quited the discussion any way am doing a project to control a remote device using GSM phone so i have to work out how i can read sms from a modem (for my case it is a phone) then extract the sender number and verify it, then extract the sms content the interplate the command obtained in the sms.
For starting i need just to read a received. According to availability of electronics component to my area i can get a PIC 16F877, siemens of different numbered and ericsson A1018s which i have on hand but i tried to search for max233, 232 it is not there in electronic components shop, i started to write a program to control USART in basic to send AT commands to a phone and read sms from a phone.

Can you assist me cos i think this problem is similar to yours
Back to top
tufail_esd



Joined: 20 Jun 2008
Posts: 5


Post06 Jun 2009 14:04   

gsm code for 8051 micro controller


plz send me all code and circuit diagram.i m very thankful to you

my id is that

tufailsiddique(at)gmail.com
Back to top
vin2403



Joined: 19 May 2009
Posts: 6


Post10 Jun 2009 7:30   

c168i interface eda board


can upload the code ,and related information ,for referring. thank ya
Back to top
geev88



Joined: 30 May 2009
Posts: 9


Post10 Jun 2009 20:49   

gsm relay control


Dear friends
Things are not finished yet, but when it is done you will c every thing here.
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post13 Jun 2009 21:09   

t290i interface cable diagram


I think its no big deal.

Simply inteface a GSM modem with 8051 and use AT commands for sending and receiving SMS through modem controlled by 8051 microcontroller.

If you want to switch on/off a relay with SMS,you need to interface a GSM modem with 8051 and using 'AT Commands' make 8051 read SMS and perform relay on/off function according to SMS recived, with command written in SMS.

regards
m.yasir
Back to top
bhas_r



Joined: 25 Mar 2009
Posts: 3


Post15 Jun 2009 13:38   

gsm relays


ronydc wrote:
ok ok.. friends..

no need to reply this post.
i have got the solution and i am able to make 8 relays on and off with SMS with IC 8051.

THANKS ANY WAY.


please send me a code to do the same thing u do i.e., read sms and control the device according the message

bhas_r(at)yahoo.com
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post15 Jun 2009 14:58   

connecting rxd txd pin to gsm


Since you have to receive and send SMS you can do this by using only three modem signals instead of using all the modem handshake lines through AT commands to GSM modem

on modem physical interface you can do this by shortening the CTS and RTS lines with each other.

In this case you would need only three signal lines i.e. RxD,TxD and GND.

This should be one-to-one connection i.e. RxD of microcontroller connects with RxD of modem,TxD of microcontroller connects with Txd of modem interface and GND obviously is common

you need to keep reading the modem on polling fashion after a certain interval of time again and again

After you read a received SMS you should delete that SMS after executing the command accordingly.

I think you should use SMS mode instead of PDU mode,you can set the SMS format by sending the following command to modem from microcontroller:

AT+CMGF=1

AT Command for reading unread messages

AT+CMGL="REC UNREAD";

AT Command for deleting the messages

AT+CMGD=1,3;


AT command for sending SMS from modem to any mobile number on command
of microcontroller:

AT+CMGS="+923005281046"<CR>
>



This a brief description of how you can do this.

The rest of what is left would be explained in my next post...


regards
m.yasir
Back to top
geev88



Joined: 30 May 2009
Posts: 9


Post18 Jun 2009 23:56   

edge modem + microcontroller


thanks yasir9909 for the reply
i started o write the code and i have used microbasic to write it which follow almost the some sequence your talking. Have a look on it.
sorry i think the algorithm of the program is the some even if using different uCU on my side it is difficult to get 8051 uC but i considered pic 16f877 this is my first project am not expert with uCs.
Quote:

program smsController
'*************Variable declaration******************
Symbol LongDELAY = Delay_ms(500)
Symbol ShortDELAY = Delay_ms(50)
dim sms_receive, temp as byte
dim Sender_Num, phone_num as integer [12]
dim comm as byte [14]
dim a, i, j, k as byte

'**************variable and constant declaring and initializing**************
const CMD1 = "AT+CPMS=ME ,0x0d, 0" 'Select the phone memory ("ME")
const CMD2 = "AT+CMGR=1 ,0x0d, 0" 'read the received message(Memory possition 1)
const CMD3 = "AT+CMGD=1 ,0x0d, 0" 'delete the received message (Memory possition1)
const CMD4 = "AT+CMGF=1 ,0X0d, 0" 'set message format to text mode
const CMD5 = "ATEO ,0X0d, 0" 'Disable echo from modem
const defaultnum = "255714021335" 'default number to the system

sub procedure interrupt ' Interrupt service routine to register def No
if INTCON.RBIF = 1 then ' Changes on RB4-RB7 ?
INTCON.RBIF = 0
else if INTCON.INTF = 1 then ' External interupt (RB0 pin switch button) ?
phone_num = defaultnum ' Goto save the num to eeprom for
goto regista ' sender verification
INTCON.INTF = 0
else if INTCON.T0IF = 1 then ' TMR0 interrupt occurred ?
INTCON.T0IF = 0
else if INTCON.EEIF = 1 then ' Is EEPROM write cycle finished ?
INTCON.EEIF = 0

end if
end if
end if
end if
end sub

main: 'program start here
TRISB = %00111111 ' Pins RB6 and RB7 are output
OPTION_REG = %10000000 ' Turn off pull-up resistors
' and set interrupt on falling edge
' of RB0 signal
INTCON = %10010000 ' Enable external interrupts
PORTB = 0 ' Initial value on PORTB

'***********send command to initialize mobile phone***********
Usart_init(2400) 'initializing baud rate 4 rx and tx
Usart_Write_Text(CMD5) 'stop echos from modem
LongDelay
Usart_Write_Text(CMD1) 'initializing phone memory 1 for sms
LongDelay
Usart_Write_Text(CMD4) 'initiate modem to text mode

CheckSMS:
LongDELAY
Usart_Write_Text(CMD2) 'send command to read the sms from phone memory1
start_read:
if Usart_Data_Ready = 1 then
i = 0
j = 0
goto again
inc (j)
else if j = 4 then '\ =>if looped 4 times no sms
goto CheckSMS '/ ask modem for next time
else goto start_read
end if
end if
again:
sms_receive = Usart_Read
if sms_receive = $2B then'\ skip first + sign find next +
inc (i) '\ (2B="+")
else if i=2 then
i=0
goto save_num
else if sms_receive = $0A then'skip all other sms string
k=0
goto copy_comm '/ sms command
end if
end if
end if
ShortDELAY
goto again

save_num: 'saving sender number to ram
for i=0 to 11
Sender_Num[i]= Usart_Read
Delay_ms(45)
next i
goto again

copy_comm:'copy a command and save to the uCU's ram
while true
sms_receive = Usart_Read
if sms_receive <> $0B then '=>(0B =11= CR) at the end of text sms
comm[k]= sms_receive
inc (k)
ShortDELAY
else goto sender_var
end if
wend

sender_var: 'do verification of sender number
for j=0 to 11
temp = eeprom_read(j)
if temp = Sender_Num[j] then
for a = 0 to 200
Delay_us(500)
next a
else if j=11 then
goto comm_interp 'if valid go to interplate the command
else goto clear_memory' => the number is invalid when j <> 11
end if
end if
next j

clear_memory: 'clear memory and delete message on modem
for i=0 to 11
Sender_Num[i]=$0
next i
for j=0 to 13
comm[j]=$0
next j
Usart_Write_Text(CMD3)
goto start_read

comm_interp: 'interprate command
if comm[0]="o" then
goto openn
else if comm[0]="c" then
goto closse
else if comm[0]="r" then
j=0
phone_num = Sender_Num
goto regesta
goto clear_memory
else goto clear_memory
end if
end if
end if

openn: 'Open door
PORTB.1=1
LongDelay
PORTB.1=0
goto clear_memory

closse: 'Close door
PORTB.2=1
LongDelay
PORTB.2=0
goto clear_memory

regesta: 'Do register new number to the system that will be used to verify sms sender number
for i = 0 to 11
Eeprom_Write(i, phone_num[i])
for j = 0 to 200
Delay_us(500)
next j
next i
return
end.


Please it has not yet tested but still am suffering on some problem on it.
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post19 Jun 2009 4:35   

sending at commands to gsm using microcontroller


well,its ok to use any microcontroller either PIC,AVR,8051 or some else if it has built-in UART.Alternatively software UART may also be used.


PIC is better than 8051 in terms of functionality and features

why don't you better use 'C' language instead of basic

C is most widely used language for microcontroller programming

i would give more feed back after i go through your code in detail

what problems you are facing

regards
m.yasir
Back to top
geev88



Joined: 30 May 2009
Posts: 9


Post20 Jun 2009 23:44   

sms control gsm through microcontroller


while am waiting to hear from yasir9909 i had little question about clock on PIC uCs
if i need to use baudrate of the followinglisted below what frequency of a clock cystal do i need to choose
Baudrate cystal Clock
1. 1200 @ ? Mhz
2. 2400 @? Mhz
3. 4800 @? Mhz
4. 9600 @? Mhz

yasir9909 wrote:
why don't you better use 'C' language instead of basic

C is most widely used language for microcontroller programming

yasir: ths is my first project the the person who encouraged me to get into this world of PIC programming adviced me to start with Basic so after i finish this i will do next project in C but i am new to this world.

Added after 1 minutes:

while am waiting to hear from yasir9909 i had little question about clock on PIC uCs
if i need to use baud rate of the following listed below what frequency of a clock cystal do i need to choose
Baudrate cystal Clock
1. 1200 @ ? Mhz
2. 2400 @? Mhz
3. 4800 @? Mhz
4. 9600 @? Mhz

yasir9909 wrote:
why don't you better use 'C' language instead of basic

C is most widely used language for microcontroller programming

yasir: ths is my first project the the person who encouraged me to get into this world of PIC programming advised me to start with Basic so after i finish this i will do next project in C but i am new to this world.
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post21 Jun 2009 8:38   

interface relay to 8051


I mostly work on AVR microcontroller and has also good understanding of 8051.
I have little exposure to PIC.However, based upon my experience on AVR i don't think so you would have any trouble in generating those baud rates with a crystal of clock frequency of 8MHz.

Also there is a limitation of every microcontroller as to how much is the highest frequency of the crystal oscillator you can connect with the microcontroller
you can have such information by consulting the data sheet of the microcontroller

- 8051 divides the crystal clock frequency by 12 for execution of its program
instructions
- If i am not mistaken, PIC divides the crystal clock frequency by 5 for execution
of its program instructions
- AVR does not divide the cystal clock frequency for execution of its program
instructions.AVR operates at the clock frequency of external crystal
oscillator.AVR is faster than the above two microcontrollers

what compiler are you using.For PIC i think mikroC and mikroBasic are good compilers

You also consult the data sheet of microcontroller.I would let you know after consulting the data sheet.

also to have some understanding of AT commands you may consult the following website :

http://www.smssolutions.net/tutorials/


regards
m.yasir


Last edited by yasir9909 on 23 Jun 2009 5:03; edited 1 time in total
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post22 Jun 2009 18:42   

control device with sms 8051


One more thing that i would like you to learn is Proteus VSM.
Protues is a very good simulation software for simulating and testing codes,algorithms and circuits built around microcontroller

I have developed a protues simulation for sending SMS and reading SMS through modem,connected physcially to the serial port of the PC, controlled by protues simuation models of microcontroller and serial port in Proteus

I have used AVR microcontroller ATmega32.

I have implemented following AT commands:

- AT+CGMM
- AT+CMGL="ALL"
- AT+CMGS="+923005281046"

I have shortened RTS to CTS and used only three signal lines: RxD,TxD and GND
for implementing above AT commands

The link to this circuit schemetic is:

http://images.elektroda.net/11_1245691863.jpg


I have utilized Image Craft Compiler for AVR

regards
m.yasir



Sorry, but you need login in to view this attachment

Back to top
geev88



Joined: 30 May 2009
Posts: 9


Post22 Jun 2009 23:05   

gsm ic to microcontroller


Thanks yasir for the picture,
i have got Proteus VSM but am not good enough to do as you did there, the other thing is do you mean that if i connect the phone to serial and simulate it will work the some as a really connected device on a real circuit with my modem?

if my program is perfect it will be able to read and send command to modem?

also can you send you design via my email geev8 at yahoo dot com
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post23 Jun 2009 7:10   

how to read sms from 8051


geev,well Proteus is not difficult to learn,it is quite simple if you have got practical understanding of microcontroller programming and electronics.

Yes you have rightly judged if you connect GSM modem (i have used WISMO QUIK Q2403A GSM modem) physically to the serial port of the PC and run this Proteus simulation by setting the parameters of COMPIM and virtual terminals according to the physical serial port,i.e. whether it is COM1,baud rate matching with actual serial port for COMPIM (both virtual and real) and for virtual terminals.You can make the modem, connected physically to the serial port of PC,operate like it is actually connected to the microcontroller in hardware

I have implemented a few commands just to have an idea of how this idea of operating modem through Proteus simulation may be materialized.

Further AT commands and operations may also be tested based on this idea.

i would upload the code here

regards
m.yasir
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post23 Jun 2009 18:16   

sms command in t290i


The code for above simulation is given below.This code has been written in Image Craft compiler for AVR.

Code:
 
//ICC-AVR application builder : 6/22/2009 9:22:22 AM
// Target : M32
// Crystal: 7.3728Mhz

#include <iom32v.h>
#include <macros.h>

unsigned char SMSFlag=0,SMSReadFlag=0,ButtonPressed=0;
unsigned int timer0_counter=0;
unsigned int i=0,j=0,k=0;

unsigned char cmd_cmgf[]="AT+CMGF=1\r";
unsigned char cmd_cmgl[]="AT+CMGL=\"ALL\"";
unsigned char cReturn[]="\r";
unsigned char cmd_cmgs[]="AT+CMGS=\"+923005281046\"";
unsigned char cmd_AT[]="AT\r";
unsigned char cmd_cgmm[]="AT+CGMM\r";

unsigned char testMessage[]="Hello! this is Test Message!!!";

unsigned char ctrlZ=0x1A;
 /***********************************************************************************************/
void delay_1uSec(unsigned int);
 
 void delay_1uSec(unsigned int m) // approximately m*1uSec Delay
 {
      for(j=0;j<m;j++)
     {
           for(k=0;k<8;k++)
         asm("nop");
      }
}
//**********************************************************************************************//

void port_init(void)
{
     PORTA = 0x00;
     DDRA  = 0x00;
     PORTB = 0x01;
     DDRB  = 0x00;
     PORTC = 0x00;
     DDRC  = 0x0F;
     PORTD = 0x00;
     DDRD  = 0x00;
}

//TIMER0 initialize - prescale:8
// desired value: 8KHz
// actual value:  8.014KHz (0.2%)
void timer0_init(void)
{
     TCCR0 = 0x00; //stop
     TCNT0 = 0x8D; //set count
     OCR0  = 0x73;  //set compare
     TCCR0 = 0x02; //start timer
}

#pragma interrupt_handler timer0_ovf_isr:12
void timer0_ovf_isr(void)
{
     TCNT0 = 0x8D; //reload counter value
    timer0_counter++;
   
    if(ButtonPressed==1)
    PORTC = 0x0F|PORTC;
   
   
}

//UART0 initialize
// desired baud rate: 57600
/* ************************************************************************ */

void uart0_init(void)
{
     UCSRB = 0x00; //disable while setting baud rate
     UCSRA = 0x00;
     UCSRC = BIT(URSEL) | 0x06;
     UBRRL = 0x07; //set baud rate lo
     UBRRH = 0x00; //set baud rate hi
     UCSRB = 0x18;
}

///////////////////////// UART data receive routine //////////////////////////
unsigned char ReceiveByte(void)
{
     while(!(UCSRA & BIT(RXC)));
     return UDR;
}
///////////////////////// UART data transmit routine //////////////////////////
void SEND_CHAR_UART(char ch)
{
      while(!(UCSRA & BIT(UDRE))) ;
      UDR = ch;
}
//*----------------------------------------------------------------------------*//
void SendStr(char *ch)
{
      while(*ch != 0x00)
     SEND_CHAR_UART(*ch++);
}
/*------------------------------------*/


//call this routine to initialize all peripherals
void init_devices(void)
{
     //stop errant interrupts until set up
     CLI(); //disable all interrupts
     port_init();
     timer0_init();
     uart0_init();

     MCUCR = 0x00;
     GICR  = 0x00;
     TIMSK = 0x01; //timer interrupt sources
     SEI(); //re-enable interrupts
     //all peripherals are now initialized
}
//
void main(void)
{
      init_devices();
      //insert your functional code here...
   
     //*************************************
     // Set Text Mode
     //*************************************
     for(i=0;i<sizeof(cmd_cmgf);i++)   
     SEND_CHAR_UART(cmd_cmgf[i]);   
     //*************************************   
     for(i=0;i<sizeof(cmd_AT);i++)   
     SEND_CHAR_UART(cmd_AT[i]);   
     //*************************************
     for(i=0;i<sizeof(cmd_cgmm);i++)   
     SEND_CHAR_UART(cmd_cgmm[i]);
     //*************************************
     delay_1uSec(90000);
    
     // AT+CMGL="ALL"
        
     SEND_CHAR_UART('A');
     SEND_CHAR_UART('T');
     SEND_CHAR_UART('+');
     SEND_CHAR_UART('C');
     SEND_CHAR_UART('M');
     SEND_CHAR_UART('G');
     SEND_CHAR_UART('L');
     SEND_CHAR_UART('=');
     SEND_CHAR_UART('"');
     SEND_CHAR_UART('A');
     SEND_CHAR_UART('L');
     SEND_CHAR_UART('L');
     SEND_CHAR_UART('"');
   
     for(i=0;i<sizeof(cReturn);i++)   
     SEND_CHAR_UART(cReturn[i]);
   
    //***************************************
     delay_1uSec(90000);
     delay_1uSec(90000);
     // AT+CMGS="+923005281046"    
     SEND_CHAR_UART('A');
     SEND_CHAR_UART('T');
     SEND_CHAR_UART('+');
     SEND_CHAR_UART('C');
     SEND_CHAR_UART('M');
     SEND_CHAR_UART('G');
     SEND_CHAR_UART('S');
     SEND_CHAR_UART('=');
     SEND_CHAR_UART('"');
     SEND_CHAR_UART('+');
     SEND_CHAR_UART('9');
     SEND_CHAR_UART('2');
     SEND_CHAR_UART('3');
     SEND_CHAR_UART('0');
     SEND_CHAR_UART('0');
     SEND_CHAR_UART('5');
     SEND_CHAR_UART('2');
     SEND_CHAR_UART('8');
     SEND_CHAR_UART('1');
     SEND_CHAR_UART('0');
     SEND_CHAR_UART('4');
     SEND_CHAR_UART('6');
     SEND_CHAR_UART('"');
       
     SEND_CHAR_UART(13); //Carriage Return
   
     delay_1uSec(90000);
   
     for(i=0;i<sizeof(testMessage);i++)   
     SEND_CHAR_UART(testMessage[i]);
   
     SEND_CHAR_UART(26); //CTRL-Z
   
   
    //***************************************
    while(1)
    {
        
    }
   
}

Back to top
bhas_r



Joined: 25 Mar 2009
Posts: 3


Post23 Jun 2009 19:43   

controlling 20 relays serially 8051


use special symbols like () "" etc before and after the message
like this

(Hello)

it will works

to read the message use

AT+CMGL="rec unread"\r in coding for reading unreaded sms
AT+CMGR=1\r in coding for reading sms in 1 st location it may be readed or unreaded.

use either one command and use
for(i=0;i<=100;i++)
{

a[i]=getc();

}

after that compare the character in the a[]

upto ( this

and get the content inbetween () by increament a[] upto ) this

the control the device as u like.


any doubt just post i will clear ur dpubt.
Back to top
geev88



Joined: 30 May 2009
Posts: 9


Post23 Jun 2009 22:15   

mikrobasic mobile gsm


Thank you yasil today am going to create a circuit with Proteas and i will try to simulate then i will give you the feedback thanks alot.


bhas_r wrote:
use special symbols like () "" etc before and after the message
like this
(Hello)
it will works to read the message use
AT+CMGL="rec unread"\r in coding for reading unreaded sms
AT+CMGR=1\r in coding for reading sms in 1 st location it may be readed or unreaded.

use either one command and use
for(i=0;i<=100;i++)
{
a[i]=getc();
}
after that compare the character in the a[]
upto ( this
and get the content inbetween () by increament a[] upto ) this
the control the device as u like.
any doubt just post i will clear ur dpubt.



bhas_r your info are useful to me, thanks too.



Regads
Geev88
Back to top
musaraza86



Joined: 24 Jun 2009
Posts: 11


Post24 Jun 2009 8:28   

gsm module level-shifter


Hi. I am facing problem that i am unable to read message through mobile phone. can any body help me and tell me which mobile phone to use? I am using 8051 so only serial interface mobile will work. further will usb to serial converter will work for any mobile.
Back to top
Google
AdSense
Google Adsense




Post24 Jun 2009 8:28   

Ads




Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post24 Jun 2009 13:34   

gsm at command sms code c microcontroller


For a complete set of AT commands,you can consult the pdf document attached with this post

regards
m.yasir



Sorry, but you need login in to view this attachment

Back to top
tariq7868



Joined: 29 Mar 2009
Posts: 4


Post27 Jun 2009 8:17   

pic gsm relay


Hello.. i found from other site, for controlling devices by sending sms commands, the circuit diag is attached,, but i dont know where the txd rxd pin is to be connected in mobile phone,, can anybody plz help me out with this ??? i m really desparate abt making this project,,,,

GSM  SMS  8051 controlling relays
Back to top
codewiz



Joined: 14 Sep 2008
Posts: 75


Post27 Jun 2009 18:18   

connect gsm to microcontroller


pls this may be stupid but require clarification. Connecting Mobile to microcontroller and using sms to control relays: where do you code d AT command. mobile phone ? or microcontroller?
Back to top
ep20k



Joined: 17 Sep 2002
Posts: 319
Helped: 15


Post27 Jun 2009 18:48   

a1018s at+cmgs pdu


I don't know... Crying or Very sad

Is it just me who has always that nine-eleven-thing in mind, when I read threads like this one?

We should care, what to answer Exclamation

ep20k
Back to top
codewiz



Joined: 14 Sep 2008
Posts: 75


Post27 Jun 2009 23:05   

a1018s at+cmgs


ep20k wrote:
I don't know... Crying or Very sad

Is it just me who has always that nine-eleven-thing in mind, when I read threads like this one?

We should care, what to answer Exclamation

ep20k
u shouldn't have such thought. those guys employ experts and not hobbyst like us. we simply learn here and make life comfortable rather than creating problems in our society. engineers are problem solvers and we do ve conscience.
Back to top
ep20k



Joined: 17 Sep 2002
Posts: 319
Helped: 15


Post28 Jun 2009 11:45   

gsm code for 8051 in c language


codewiz wrote:
u shouldn't have such thought. those guys employ experts and not hobbyst like us. we simply learn here and make life comfortable rather than creating problems in our society. engineers are problem solvers and we do ve conscience.


I don't know.

Johann W. v. Goethe wrote:
I hear the message well but lack Faith's constant trust.


As you already know:
http://www.edaboard.com/viewtopic.php?t=355239#1163087

ep20k
Back to top
yasir9909



Joined: 22 Jun 2007
Posts: 47
Location: Pakistan


Post28 Jun 2009 14:28   

t290i sms rs232


Quote:

pls this may be stupid but require clarification. Connecting Mobile to microcontroller and using sms to control relays: where do you code d AT command. mobile phone ? or microcontroller?


Modem can be operated for sending SMS and reading SMS from modem sent to its number by sending AT commands to the modem

AT commands may be sent to the modem by two ways:

1. By interfacing it with PC and sending AT commands through Hyper Terminal
2. By interfacing it to the microcontroller and sending AT commands from microcontroller to the modem to operate the modem.

To make the relay operate through microcontroller you need to interface modem and relays with the microcontroller.Send Commands (you may define your own set of commands, embedded in the SMS that you are required to send to the modem, to make the microcontroller operate relayes accordingly ) to the modem from your mobile phone or other modem interfaced with PC.

Modem only understands AT commands for performing its operations like reading SMS and sending SMS

I would try to upload a simulation in Protues to operate the relays on commands sent through SMS

regards
m.yasir
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> GSM SMS 8051 controlling relays
Page 1 of 2 All times are GMT + 1 Hour
Goto page 1, 2  Next
Similar topics:
controlling relays (13)
Mobile Phone for SMS controlling (19)
Controlling VCR or DVD recorder using an SMS! (7)
GSM SMS Messages (34)
controlling speed ac motor with 8051 (9)
SMS GSM Socket Modem (2)
tracker gps gsm sms (3)
SMS through GSM modem (2)
pic16f877a interface GSM SMS phone (19)
SMS GSM Alarm - Very Confused (11)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS