Shop OBEX P1 Docs P2 Docs Learn Events
sms — Parallax Forums

sms

stefstef Posts: 173
edited 2010-11-22 14:12 in Propeller 1
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.

Comments

  • pgbpsupgbpsu Posts: 460
    edited 2010-11-19 10:37
    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
  • stefstef Posts: 173
    edited 2010-11-20 04:33
    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
  • LeonLeon Posts: 7,620
    edited 2010-11-20 05:11
    There shouldn't be a problem. Just receive the message and parse it.
  • StefanL38StefanL38 Posts: 2,292
    edited 2010-11-20 07:39
    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
  • stefstef Posts: 173
    edited 2010-11-20 08:28
    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
  • max72max72 Posts: 1,155
    edited 2010-11-20 09:07
    Check also the regexp object.
    It could help string parsing.

    Massimo
  • electrosyselectrosys Posts: 212
    edited 2010-11-20 09:34
    Here is the same project as yours (control up to 8 relay by SMS) with another microcontroller (AVR), but there are some good stuff about decoding the SMS messages and perhaps an example to look after.
    800 x 729 - 50K
    640 x 480 - 86K
  • Jay KickliterJay Kickliter Posts: 446
    edited 2010-11-20 14:11
    Thanks for posting that link. I lost my original code, and forgot that I had posted it. I thought it was gone forever.
    pgbpsu wrote: »
    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
  • stefstef Posts: 173
    edited 2010-11-21 01:05
    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
  • max72max72 Posts: 1,155
    edited 2010-11-21 06:24
    stef wrote: »
    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
  • stefstef Posts: 173
    edited 2010-11-22 14:12
    Thanks max72

    stef
Sign In or Register to comment.