06-16-2009 02:22 AM
We are programming a program which requires us to measure the temperature of a hot plate and control it, to make the temperature increase to a certain set point.
When it reaches the set point, an SMS will be sent out. This part has been programmed already.
Now, we want to add in a function where the user (with the mobile phone) replies the SMS with a certain message, such that the program will stop running and the temperature will (eventually) return to room temperature. How can this be done? Basically, we want the program to shut down the moment an SMS is received, but if possible we would like to program it such that only a specific message will stop the program from running.
Thanks.
06-16-2009 02:28 AM - edited 06-16-2009 02:29 AM
Hi landmine,
i think you already use a modem to send your sms. You can also receive a sms with a modem. You can then analyze the sms and react on the information of sender or send time or content.
Hope it helps.
Mike
11-09-2009 11:52 PM
@Landmine Have you managed to physically control the hot plate's temperature knob? I'm trying to do the same -- I can program it. I'm trying to set up the physical part. I'm considering a toy's DC motor, but I don't know how to make it run in both directions, to turn the temperature down.
Thanks!
11-10-2009 02:22 AM
Basically, we want the program to shut down the moment an SMS is received, but if possible we would like to program it such that only a specific message will stop the program from running.
Hi landmine,
If you are sure that you want to stop the program the moment the temperature exceeds a threshold, then why you want the user to send an SMS and stop the program. Just send the user the necessary information / alert and after that stop the program.
Also, SMS is good for monitoring but controlling through SMS is not recommended. What if the the modem receives the SMS after 1 hour due to a busy network?
11-10-2009 06:00 AM
Somil brings up a good point. SMS is not a guaranteed service to start with. So, if you choose to do two way control and telemetry, then you should build in an ACK/retry mechanism such that your system, after sending out the status/notification is expecting a reply back within a certain timeframe, and if it does not receive it, takes appropriate action. Also, what will your system do if the cellular modem loses service? Never depend on outside help in device safety applications. As mentioned, if you system knows there is a problem, it should react on its own.
-p
01-03-2012 05:47 AM
hi all,
do you have any idea for receiving SMS by labview? I am using the AT commands and hyperterminal for testing the receiving sms but in labview i can't do it...
Any idea or example code beside the basic serial read and write. vi from the example codes.
thank you