CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Control Relay by SMS specific Command!!!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
shan



Joined: 28 Apr 2007
Posts: 1

View user's profile Send private message

Control Relay by SMS specific Command!!!
PostPosted: Sat Apr 28, 2007 7:47 pm     Reply with quote

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
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Apr 30, 2007 8:24 am     Reply with quote

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.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Mon Apr 30, 2007 8:39 am     Reply with quote

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
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Apr 30, 2007 9:06 am     Reply with quote

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.
clatita



Joined: 03 Feb 2011
Posts: 1
Location: Romania

View user's profile Send private message

PostPosted: Thu Feb 03, 2011 1:50 pm     Reply with quote

Hello, well I did a similar project it's just that i used an atmel microcontroller ... the idea should be the same though and i am sure you'll get some useful info about communicating with a mobile phone/gsm modem ... have a look:

http://ma-projects.blogspot.com/2011/01/project-no-1-sms-controlled-relay.html
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Fri Feb 04, 2011 6:42 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group