Gsm/Gps Tracker


Closed Thread
Results 1 to 40 of 53

Thread: Gsm/Gps Tracker

Hybrid View

  1. #1

    Talking Gsm/Gps Tracker

    Hi there.

    For starters i will put the my way off connecting the nokia 6210 with the pic no max 232 need, later i will post the full code.



    Xau.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    In the 1st there was a missing wire this is the good one.

    <a href="http://imageshack.us"><img src="http://img392.imageshack.us/img392/8734/esquemaxa1.jpg" border="0" alt="Image Hosted by ImageShack.us"/></a><br/><a href="http://g.imageshack.us/img392/esquemaxa1.jpg/1/"><img src="http://img392.imageshack.us/img392/esquemaxa1.jpg/1/w851.png" border="0"></a>

    Xau.
    Last edited by camolas; - 14th October 2008 at 15:57.

  3. #3
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camolas View Post
    In the 1st there was a missing wire this is the good one.

    <a href="http://imageshack.us"><img src="http://img392.imageshack.us/img392/8734/esquemaxa1.jpg" border="0" alt="Image Hosted by ImageShack.us"/></a><br/><a href="http://g.imageshack.us/img392/esquemaxa1.jpg/1/"><img src="http://img392.imageshack.us/img392/esquemaxa1.jpg/1/w851.png" border="0"></a>

    Xau.
    Hey dude, what is it used for exactly?

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi,

    This is for conecting a nokia phone and a pic, you will control the phone from the pic, later i will post a code where you can with a serial gps send a sms with the gps data.

    Xau.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Here is my full and working code for a gps/alarme/gsm.


    *********************************************
    @ Device HS_OSC
    define OSC 20

    Include "modedefs.bas" ' Include serial modes


    Clear
    sms var byte[10]
    numero VAR BYTE[12]
    Lat var byte[11]
    Long var byte[11]

    TrisB.7=0 ' LIGA GSM
    TrisB.6=1 ' IGNIÇÃO
    TrisB.5=1 ' SENSORES
    TrisB.4=0 ' FEXA PORTAS
    TrisB.3=0 ' PISCAS
    TrisB.2=0 ' IMOBLIZA
    TrisB.1=0 ' ?????????????
    TrisB.0=0 ' LED OK VERDE

    TrisC.4=1 ' RX BT
    TrisC.5=0 ' TX BT
    TrisC.6=0 ' TX GSM
    TrisC.7=1 ' RX GSM

    TrisD.1=1 ' RX GPS

    Low PortB.1
    Low PortB.2
    Low PortB.3

    Inicio:
    Low PortB.0
    Pause 500
    High PortB.0
    Pause 500
    Low PortB.0
    Pause 500
    High PortB.0
    Pause 500
    Low PortB.0
    Pause 500
    High PortB.0
    Pause 500
    Low PortB.0
    Pause 2000

    UM:
    Low PortB.1
    HSEROUT["at",13,10]
    HSERIN 10000,UM,[WAIT("OK")]
    LCDOut $FE, 1,"ON"
    HIGH PortB.0

    DOIS:
    serin2 portD.1, 188, [WAIT("$GPRMC,"),skip 13, STR LAT\11,skip 1, STR Long\12]
    High PortB.1


    HSEROUT["AT+CMGF=1",13,10]' Modo Texto
    HSERIN 10000,UM,[WAIT("OK")]


    HSEROUT["AT+CMGR=1",13,10] ' Ler sms
    HSERIN 5000,UM,[WAIT("REC UNREAD"),skip 3, STR numero\13,skip 27,STR sms\10]


    IF sms[0]="S" and sms[1]="t" and sms[2]="o" and sms[3]="p" Then
    goto Tranca
    Endif

    IF sms[0]="C" and sms[1]="e" and sms[2]="l" and sms[3]="i" and sms[4]="a" Then
    goto Destranca
    Endif

    IF sms[0]="P" and sms[1]="o" and sms[2]="s" Then
    goto PO
    Endif

    Goto APAGA

    Tranca:
    High PortB.3 'Piscas
    Pause 500
    High PortB.2 ' Imobliza
    Goto PO

    Destranca:
    Low PortB.3 'Piscas
    Low PortB.2 ' Imobliza
    Goto APAGA

    Liga: ' LIGA GSM
    High PortB.7
    Pause 20000
    Goto UM

    PO: ' Envia localizacao
    HSEROUT["AT+CMGS=",34,"+351xxxx32xxx", 34,13] ' Phone number to get the gps sms data
    hserin 10000,PO,[WAIT(">")]
    HSEROUT["LAT: ",LAT (10),"-", LAT, lat (1),"'",lat (2),Lat(3),".",lat (5),lat(6),lat (7),lat(8),$fe,$c0,"LON: ", Long(11),"-", Long (1),long (2),"'",Long (3),long (4),".",Long (6),long (7),long(8),long (9),13,10]
    HSEROUT[26]


    APAGA:
    HSerout ["AT+CMGD=1",13,10]' apaga sms 1
    hserin 10000,APAGA,[WAIT("OK")]
    HSerout ["AT+CMGD=2",13,10]
    Pause 5000
    goto Inicio

    End
    ************************************************** ********

    I get sender number (numero VAR BYTE[12]) but cant use it in the HSEROUT["AT+CMGS=",34,"+351xxxx32xxx", 34,13] i try HSEROUT["AT+CMGS=",34,"Str numero", 34,13] but no sucess can the masters give me some hellp?
    Thanks

    Xau
    Last edited by camolas; - 27th October 2008 at 18:28.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I get sender number (numero VAR BYTE[12]) but cant use it in the HSEROUT["AT+CMGS=",34,"+351xxxx32xxx", 34,13] i try HSEROUT["AT+CMGS=",34,"Str numero", 34,13] but no sucess
    Try sending "numero" like you are for "lat" and "Lon", one piece at a time.
    Dave
    Always wear safety glasses while programming.

Similar Threads

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

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