Shop OBEX P1 Docs P2 Docs Learn Events
BS2PE and GPS Question — Parallax Forums

BS2PE and GPS Question

ArchiverArchiver Posts: 46,084
edited 2004-04-01 17:23 in General Discussion
I'm working on a project where I am sending a standard $GPRMC data
string from a Garmin GPS 15L to a BS2PE. I am getting data, but it
seems to be just junk data. Here is my test code, just to see if I'm
getting a readable string:

GPS BYTE BYTE(20)

LOOP:
SERIN 10,16884,[noparse][[/noparse]STR GPS/20]
DEBUG STR GPS
GOTO LOOP

I'm thinking its a timing issue but I can't figure out what I need to
change, I can hook the GPS up to my PC serial port and read the data
perfectly through Hyperterminal. The GPS is set to output at 4800
baud. If anyone has any suggestions they would be much appreciated.

Thank You
Sean Vreeland

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 04:36
    Sean-

    If memory serves, the '2pe is clocked at the same effective rate as
    the BS2 and uses the same SERIN/SEROUT baud arguments. Try:

    SERIN 10,16572,[noparse][[/noparse]STR GPS\20]

    Regards,

    Steve

    On 31 Mar 04 at 19:56, seanvreeland wrote:

    >
    > I'm working on a project where I am sending a standard $GPRMC data
    > string from a Garmin GPS 15L to a BS2PE. I am getting data, but it
    > seems to be just junk data...
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 17:23
    The BS2pe uses the same baud rate parameter as the BS2 and BS2e, so the
    correct value would be 16572.

    You can make your life a little easier with serial devices by adding
    this to your standard programming template.

    #SELECT $STAMP
    #CASE BS2, BS2E, BS2PE
    T1200 CON 813
    T2400 CON 396
    T4800 CON 188
    T9600 CON 84
    T19K2 CON 32
    T38K4 CON 6
    #CASE BS2SX, BS2P
    T1200 CON 2063
    T2400 CON 1021
    T4800 CON 500
    T9600 CON 240
    T19K2 CON 110
    T38K4 CON 45
    #ENDSELECT

    Inverted CON $4000
    Baud CON T4800 | Inverted


    Using conditional compilition, the editor will correctly set the baud
    rate parameter for the BASIC Stamp you're connected to.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    Original Message
    From: seanvreeland [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=OwyESC0PcoG_sNtCZ2k4THwoaQWuSsjErFXOPYuwYezns15502UTJkgZ_uw5xE1n3jc_XdsnZkktAW-AcK0]svreeland@m...[/url
    Sent: Wednesday, March 31, 2004 1:56 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] BS2PE and GPS Question



    I'm working on a project where I am sending a standard $GPRMC data
    string from a Garmin GPS 15L to a BS2PE. I am getting data, but it
    seems to be just junk data. Here is my test code, just to see if I'm
    getting a readable string:

    GPS BYTE BYTE(20)

    LOOP:
    SERIN 10,16884,[noparse][[/noparse]STR GPS/20]
    DEBUG STR GPS
    GOTO LOOP

    I'm thinking its a timing issue but I can't figure out what I need to
    change, I can hook the GPS up to my PC serial port and read the data
    perfectly through Hyperterminal. The GPS is set to output at 4800
    baud. If anyone has any suggestions they would be much appreciated.

    Thank You
    Sean Vreeland




    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.