sms to control pic..pls help...


Results 1 to 40 of 54

Threaded View

  1. #11


    Did you find this post helpful? Yes | No

    Default

    You can make it all work without worrying about decoding the pdu's, dont be scared off by them!

    Provided you always send commands in a set way, a protocol if you like, then it wont matter that its not text.

    IE..

    617658DE06BDDD alarm on
    617658DE06BDCD66 alarm off

    You just check a few key points in the above, ie

    617 658D E06B DDD alarm on
    617 658D E06B DCD66 alarm off

    Just check for 658d, if you have that you have the alarm word,then check for DDD, if you have then its on, if DCD then its off, if not any, its a user/sms/command error.

    Thats how I have mine working now.

    And sending a sms back is easy too, ie...

    serout portb.6,t1200,["atz",13] ' wake up thephone
    pause 500
    serout portb.6,t1200,["at+cmgs=",#ln,13] ' tell it we want to send a txt
    pause 2000

    serout portb.6,t1200,["0011000C91"] ' start of the pdu data


    for x=1 to 12 ' send it the destination phone number, 12 digits international format
    serout portb.6,t1200,[pduphn(x)]

    next


    serout portb.6,t1200,["00F0AD"] ' next part of header


    ' ****** Put all the above in a subroutine, every message you send will need the same header, all you need to send a different message is to change the next lines

    serout portb.6,t1200,["C8329BFD06DDDF723619"] ' hello world
    pause 9000 ' wait for phone to send


    You can just change the hello world to whatever you want, remember if you change the length, you need to tellthe phone the incoming data is a different length.

    use 'pdu spy' to create the pdu text you need.
    Last edited by f_lez; - 6th September 2006 at 10:59.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 11:00
  2. HELP ME, SMS controlled relay using PIC
    By pazko1125 in forum mel PIC BASIC
    Replies: 14
    Last Post: - 2nd October 2008, 16:26
  3. Siemens c55 sms control help please
    By camolas in forum mel PIC BASIC Pro
    Replies: 85
    Last Post: - 20th August 2008, 02:13
  4. Motor Control PLC with a PIC
    By sougata in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 2nd November 2006, 08:59
  5. Need help on pic to pic flow control (simple problem I think)
    By khufumen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th January 2006, 01:34

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts