Shop OBEX P1 Docs P2 Docs Learn Events
How to read the time from gps to pc — Parallax Forums

How to read the time from gps to pc

MusaMusa Posts: 4
edited 2007-03-17 09:42 in General Discussion
Hi

Iam trying to read the time of the gps "Garmin 12", to my pc through SX. I wrote the following program, but with no results. Please, can any body help me to do the task?

Thank you in advanced

Comments

  • BeanBean Posts: 8,129
    edited 2007-03-15 11:32
    The logic looks okay.

    If you are using a 50MHz resonator I think you'll need to use OSCHS2 on the device line instead of OSCXT2.
    Is the PC expecting just 3 binary bytes ? What software are you using to receive on the PC ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "A problem well defined is a problem half solved"

    "Just because you're approved, doesn't mean you can afford it."
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Cheap used 4-digit LED display with driver IC·www.hc4led.com
    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com
    Coming soon! Propeller based OSD module www.hittconsulting.com
    ·
  • MusaMusa Posts: 4
    edited 2007-03-15 12:00
    Iam using the "hyper terminal" which comes with the "windows"·to read the data but nothing appear on the monitor.
  • BeanBean Posts: 8,129
    edited 2007-03-15 12:20
    Okay then you don't need to convert the data.
    Just receive it and resend it.

    Try this...

    Bean.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "A problem well defined is a problem half solved"

    "Just because you're approved, doesn't mean you can afford it."
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Cheap used 4-digit LED display with driver IC·www.hc4led.com
    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com
    Coming soon! Propeller based OSD module www.hittconsulting.com
  • MusaMusa Posts: 4
    edited 2007-03-15 12:30
    When I used this, not the time that will be displayed on the monitor, but another things.
    Iam also using: max 232 between the SX and the gps and pc
    Is this is a time problem?
  • BeanBean Posts: 8,129
    edited 2007-03-15 12:44
    You probably will have to use N4800 for the baud in the TX_BYTE subroutine.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "A problem well defined is a problem half solved"

    "Just because you're approved, doesn't mean you can afford it."
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Cheap used 4-digit LED display with driver IC·www.hc4led.com
    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com
    Coming soon! Propeller based OSD module www.hittconsulting.com
    ·
  • MusaMusa Posts: 4
    edited 2007-03-17 09:42
    what is the difference between using OSCXT2 and OSCHS2. I used the first one at 50 MHz in assembly and it was Ok. why it is not working with basic.
Sign In or Register to comment.