Control relay using GSM SMS I need your help please

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
south_wind
Posts: 7
Joined: Mon Jan 04, 2016 3:49 pm
Has thanked: 3 times
Contact:

Control relay using GSM SMS I need your help please

Post by south_wind »

I'm working on a project using picf877a and flowcode v5

I want to use my mcu and wait until it receive SMS message

first it will check the number or a password for authentication

Then :-

If number 1 is written in message relay 1 turn on
number 2 relay 2 turn on

and so on I just want to know how can I make this

I will appreciate any help , thank you

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: Control relay using GSM SMS I need your help please

Post by EtsDriver »

You should start by making a chart of WHAT your program should do, like this, and by this you can start making your own flowchart based on that:

For example the program base could be like this:

Code: Select all

**START**
**Startup**
- Program loads password from EEPROM to variable (so safe system... okay, maybe not.)
- Program initializes the GSM modem and checks if there is connection...

**Loop**
Program checks if new messages available
if message available, check if it contains "r c pass" where the r is relay, c is control and pass is password.
if pass was not same as eeprom pass, then set password_right to 0 and send wrong password message back and return to start of loop
else if password right then: * put stuff here to select relay and turn on or off respectively * then reset the password ok part

return to start of loop
**END**
Ill just keep the good work up!

south_wind
Posts: 7
Joined: Mon Jan 04, 2016 3:49 pm
Has thanked: 3 times
Contact:

Re: Control relay using GSM SMS I need your help please

Post by south_wind »

Thank you EtdDriver

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: Control relay using GSM SMS I need your help please

Post by Steve001 »

Success always occurs in private and failure in full view.

south_wind
Posts: 7
Joined: Mon Jan 04, 2016 3:49 pm
Has thanked: 3 times
Contact:

Re: Control relay using GSM SMS I need your help please

Post by south_wind »

Thanks steve that was helpful

Post Reply