Gsm/Gps Tracker


Results 1 to 40 of 53

Thread: Gsm/Gps Tracker

Threaded View

  1. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Camola, try the following:

    Use a larger array in such a way that you can accomodate the calling string in the initial part of the array:

    Arry[0]=65
    Arry[1]=84
    Arry[2]=43
    Arry[3]=67
    Arry[4]=77
    Arry[5]=71
    Arry[6]=83
    ArrY[7]=43

    The above sequence contains the string AT+CMGS=+

    Than you tranfer the sender number (12 bytes) in Arry[8] to Arry[19]. Remember that last byte should always be Arry[20]=13
    At this point you can make the call:


    For A0=0 to 20
    serout Mtx,T9600,[Arry[A0]]
    Next A0

    Immediatly after the call you have to wait the modem acknowledge ">". Here an example of code:

    Flag=0
    WSend:
    Flag=Flag+1
    if Flag>20 then NoSMS
    Serin MRx,T9600,500,WSend,[ ">"] , A0
    If A0=32 then SendTxt
    serout Mtx,T9600,[27]
    pause 5000
    goto NoSMS

    The code above will jump to label "SendTxt" if the modem answer corectly, otherwise it will abort the call with ascii 27 and jump to label "NoSMS"

    At label "SendTxt" you will wite your code to send your string.

    Naturally you should change Serin/Serout to fit your code

    Al.
    Last edited by aratti; - 28th October 2008 at 12:19.

Similar Threads

  1. solar tracker controller
    By CIRE in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 15th November 2016, 16:16
  2. Help Idea Off infrared tracker
    By jetpr in forum General
    Replies: 5
    Last Post: - 11th September 2008, 09:22
  3. Replies: 1
    Last Post: - 27th July 2008, 07:14

Members who have read this thread : 1

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