Gsm/Gps Tracker


Closed Thread
Results 1 to 40 of 53

Thread: Gsm/Gps Tracker

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Need help

    Hi Friends,
    The project of Camolas is very interesting and i try to create my own device. This device /schematic is posted below/ is based on the source code of Camolas with little changes on the source code.
    My GSM cellphone is Sony_ericsson T630. The phone supports AT+CMGF=1.

    The USART settings are:
    DEFINE OSC 20
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_SPBRG 64 ' 19200 Baud @ 20MHz, 0.16%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically

    But i have a problem.
    The problem is in Hserin command, i thing that the PIC don't recieve or understand the answer (ok) from cellphone.

    for example:
    TEST:
    HSEROUT["AT",13,10]
    HSERIN 10000,TEST,WAIT("OK"), the code hangs here
    HSEROUT["ATD0897123456",13,10]
    High PortB.0

    Please help to solve this....


    Thank you
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    This is from Camolas' code
    Code:
    HSERIN 10000,UM,[WAIT("OK")]
    Your code
    Code:
    HSERIN 10000,TEST,WAIT("OK"), the code hangs here
    See the difference in the syntax.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2005
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Hi
    I correct my code like Camolas code but the result is same

    The problem still persisit
    Help Please

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by linoko View Post
    Hi
    I correct my code like Camolas code but the result is same

    The problem still persisit
    Help Please
    Hi,

    Dont forget that im using a nokia serial data cable connected to the phone that have to be powerd on the rs232 end and from the data cable connector (the one that connects with the phone) get tx,rx and gnd.
    After this try

    Serout2 PortB.6, 84,["AT",13,10] ' 84 is for 9600 Baud Rate see what is yours
    Serin2 PortB.7,84, [wait ("ok")]
    High PortB.0
    Any more hellp let me now.

    Xau

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by linoko View Post
    The project of Camolas is very interesting and i try to create my own device. This device /schematic is posted below/ is based on the source code of Camolas with little changes on the source code.
    I don't see where the original poster actually posted working code...so, I can only infer that any code you may have cut/pasted is also flawed.

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