PDA

View Full Version : sms



stef
11-19-2010, 04:59 PM
Hi everyone.

I have a project coming up and I need so resolve the following problem.

Can a propeller that is connected to a GSM (still to find correct model) when a sms is recieved decode the message and swicht the correct relay. I like to send very simple sms messages with a number in it to activate relays.(perhaps not only a number but a pssword and a number)

Any help is welcom.

Stef.

pgbpsu
11-19-2010, 05:37 PM
I can't answer your question, but I know that Jay had started working on this problem. Have a look at this thread:


http://forums.parallax.com/showthread.php?t=107112

stef
11-20-2010, 11:33 AM
Hi

Thanks for the reaktion. I read the treath but it is only for sending sms. I 'm interested in the recieving sms and reaktion on the recieved message.

Has anybody knoladge of that? Some examples from where I could stard would be nice.

Stef

Leon
11-20-2010, 12:11 PM
There shouldn't be a problem. Just receive the message and parse it.

StefanL38
11-20-2010, 02:39 PM
the propeller is thumb like a pc is completely thumb without an operation system.

As you now from your daily experience with PCs you can do a lo of you have the right software.

It is the same with the propeller.

In the object-exchange there are several drivers for receiving serial data.
Even with very high baudrates (up to 115200 baud)

Most of this drives expect the serial data in zhe "8N1"-format
which means 8 databits no parity 1 stopbit.

For short messages with 5 or 10 characters (5 to 10 bytes) almost any of the drivers can be used.
If you want to receive up to 500 bytes within a very short time at high baudrates you would have to use a driver where you can set the buffersize to such a big value.

So as you still haven't decided which GSM-phone take one that has a
standard RS232 serial interface and that uses 8N1 as the manufacturers pre-settings to communicate. Baudrate can be adjusted to almost any value between 300 and 115200.

I guess there are not so many mobilphones that still have a serial interface.
The once that have one I guess most of them will communicate at 9600 or 19200 baud 8N1. Anyway I recommend to study the usermanual to be sure that it REALLY has a RS232 interface (with an USB-interface you are forced to find out the mostly propriarity dataprotocol)

It will be not as easy as to set the propeller into a receiving mode and the phone will send the sms-characters automatically.

To realise the communication you have to refer to the usermanual what serial commands are used to control the phone over the serial interface.

Sending these commands is a piece of cake for the propeller - but - you have to code the right bytesequences.

best regards

Stefan

stef
11-20-2010, 03:28 PM
Hi

I found in my closset the following modem: GSM-T55I. It has a serial interface and I'm going to play a bit with the settings.

Thanks again for the help in this posts. I will try to find a way to recieve the text message over the serial connection.

Stef

max72
11-20-2010, 04:07 PM
Check also the regexp object.
It could help string parsing.

Massimo

electrosys
11-20-2010, 04:34 PM
Here is the same project as yours (control up to 8 relay by SMS (http://www.serasidis.gr/circuits/smscontrol/smscontroller.htm)) with another microcontroller (AVR), but there are some good stuff about decoding the SMS messages and perhaps an example to look after.

Jay Kickliter
11-20-2010, 09:11 PM
Thanks for posting that link. I lost my original code, and forgot that I had posted it. I thought it was gone forever.


I can't answer your question, but I know that Jay had started working on this problem. Have a look at this thread:


http://forums.parallax.com/showthread.php?t=107112

stef
11-21-2010, 08:05 AM
Hi max72

I can't find the object you mention in your post. Can you point me a bit further?


Thanks electrosys. This helps a lot.

Stef

max72
11-21-2010, 01:24 PM
Hi max72
I can't find the object you mention in your post. Can you point me a bit further?


Here we are..

http://forums.parallax.com/showthread.php?t=117496

Massimo

stef
11-22-2010, 09:12 PM
Thanks max72

stef