View previous topic :: View next topic |
Author |
Message |
shan
Joined: 28 Apr 2007 Posts: 1
|
Control Relay by SMS specific Command!!! |
Posted: Sat Apr 28, 2007 7:47 pm |
|
|
hello Friends,
I have just joined this forum and i have gone through the fourm and i found very much helpful and i hope i can get more information and help what i am looking for. I am new here and in the the PIC programming. I need help. I want to control a RELAY simply ON / OFF when the SMS receive with specific command.
Thanks in advance.
Shan |
|
![](templates/subSilver/images/spacer.gif) |
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Mon Apr 30, 2007 8:24 am |
|
|
Since no one else has replied I will ask the obvious question: What is a "SMS"? Are you asking about software or how to connect a relay to a PIC pin? _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
![](templates/subSilver/images/spacer.gif) |
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
|
Posted: Mon Apr 30, 2007 8:39 am |
|
|
Short Message Service.....
http://en.wikipedia.org/wiki/Short_message_service
Connect MODEM to PIC, receive the SMS on the PIC, if it matches the condition for switching the relay, drive a PIC pin high or low, whatever's required to drive the relay.... (btw, you've got to take care of all the power and other peripheral stuff too.....)
John |
|
![](templates/subSilver/images/spacer.gif) |
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Mon Apr 30, 2007 9:06 am |
|
|
SMS = text message in a GSM telephone / modem.
Which GSM modem are you using?
I'm asking this because for a Wavecom modem you would use the command AT+CMGR to read a SMS text message, but for other modem brands it is possible you have to use another command.
Search this forum for 'CMGR' and you will find some example code that can be used as a starting point. |
|
![](templates/subSilver/images/spacer.gif) |
clatita
Joined: 03 Feb 2011 Posts: 1 Location: Romania
|
|
![](templates/subSilver/images/spacer.gif) |
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Fri Feb 04, 2011 6:42 am |
|
|
hi,
I posted this code a while a go:
http://www.ccsinfo.com/forum/viewtopic.php?t=42527
It toggles 4 LEDs on and off via SMS...
You can use relays instead of LEDs and get what you want. You will have to use a driver or transistor for the relay coil as the PIC may not be able to drive it.
The code, like I say on my post is not perfect but it does work.
I however, do not know your hardware configuration and you might need to do some changes to the code.
I hope my code serves as a starting point...
g _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
![](templates/subSilver/images/spacer.gif) |
|