Using Logic with SMS

Discussion in 'Pascal Logic Code Examples' started by Darren, Dec 5, 2005.

  1. Darren

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The attached project shows an example of how you can send and receive SMS messages from logic. This is designed for use with a Sony Ericsson GT47 GSM terminal. For use with other devices, you will need to consult the product specification.

    To use this project :
    1. Open the project in PICED (or HomeGate / Schedule Plus)
    2. Customise the project by editing the constants section :
    - Set the desired COM port number
    - Set the desired mobile phone numbers
    - Select the desired group addresses
    3. Connect the GSM terminal to the selected serial port
    4. Pressing the send SMS button (or setting the associated group address) will send an SMS to your mobile phone
    5. Sending "light off", "light on", "heater off" or "heater on" to the GSM terminal via SMS will perform the selected action
    6. Sending any other message will just result in it being displayed on the screen

    This project is provided for reference only. It will need significant modification to meet the requirements of a real project.

    Thanks to Matt for his work on this project.

    Sony Ericsson GT47 is available from Soanar phone 1300 889 883 or email [email protected]
     

    Attached Files:

    Last edited by a moderator: Apr 19, 2006
    Darren, Dec 5, 2005
    #1
  2. Darren

    rune

    Joined:
    Nov 2, 2004
    Messages:
    8
    Likes Received:
    0
    Location:
    Cyprus
    Very cool!! :cool:

    I downloaded it, opened it in Piced, changed the phone numbers for outgoing messages and removed the first initialization string in the Set Modem module. Then I fired it up - and it works like a charm!

    I'm using a Siemens TC35 Terminal which is very well suited for this type of application. It's not a phone, just a little box with a SIM card, an antenna and a serial port.

    Great work! Saved me a weekend (at least!) :D

    Rune
     
    rune, Jan 23, 2006
    #2
  3. Darren

    nickrusanov

    Joined:
    Aug 5, 2004
    Messages:
    308
    Likes Received:
    0
    Location:
    russia
    Could you please tell:

    will this work with PAC?
    will this work with MC35s Terminal?

    Thank you!
     
    nickrusanov, Jun 10, 2008
    #3
  4. Darren

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This should work with a PAC.

    I am not sure about the MC35s. You would need to check if the protocol is the same.
     
    Darren, Jun 12, 2008
    #4
  5. Darren

    dave240t

    Joined:
    Apr 10, 2008
    Messages:
    26
    Likes Received:
    0
    Good work mate that is an awesome idea:)
     
    dave240t, Jun 12, 2008
    #5
  6. Darren

    nickrusanov

    Joined:
    Aug 5, 2004
    Messages:
    308
    Likes Received:
    0
    Location:
    russia
    MC35s works, checked
     
    nickrusanov, Jun 19, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.