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

GPS input and

ArchiverArchiver Posts: 46,084
edited 2001-06-05 12:36 in General Discussion
Perhaps you've got this all sorted out. If not, or for the sake of
others who might have a similar problem, here are some things to
consider.

Your program and system environment are pretty complex, giving lots
of opportunity for things to go differently than you want/expect.
I'd suggest you start with a simpler, more visible chunk:

DEBUG CR,"Begin SERIN"
SERIN 1,16884,2000,no_data,[noparse][[/noparse]WAIT("GPRMC,"}]
DEBUG CR,"Success :-)"

quit:
DEBUG CR,"Done."
END

no_data:
DEBUG CR,"Input failure :-("
GOTO quit

This will tell you if you ever get the GPRMC sentence identifier at
all. If not, you may have a baud rate problem on the sailsoft
program, serial port problems on the PC, or you may be timing out
because no data is received due to wiring problems or other gotchas.

When you get that working, add the rest of the pieces to the puzzle
back in a few at a time so you have fewer possibilities of where
any problems may be hiding.


Regards,

Steve

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-06-05 11:09
    Hi,
    I download a program from "http://www.sailsoft.nl/" that generates
    NMEA output string to one of RS232 ports (com2) (the other is
    connected on my BS2SX (com1)).
    I try to take this string with the following command

    serin 1,16572,2000,no_data,[noparse][[/noparse]wait("GPRMC,"),str time\6,... lonA\5,skip
    1,str lonB\2,skip 3,lon_hemi]

    and display it to a "debug" window of BS2SX
    debug latA(0),latA(1),....,lonA(4),lonA(5),".",lonB(0),lonB
    (1)," ",lon_hemi," "

    goto get_data

    but the program always shows nothing.

    Can you help me with that?
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-05 12:36
    At 6/5/2001 Tuesday 06:09 AM, efrag@u... promulgated:
    >Hi,
    >I download a program from "http://www.sailsoft.nl/" that generates
    >NMEA output string to one of RS232 ports (com2) (the other is
    >connected on my BS2SX (com1)).
    >I try to take this string with the following command
    >
    >serin 1,16572,2000,no_data,[noparse][[/noparse]wait("GPRMC,"),str time\6,... lonA\5,skip
    >1,str lonB\2,skip 3,lon_hemi]
    >
    >and display it to a "debug" window of BS2SX
    >debug latA(0),latA(1),....,lonA(4),lonA(5),".",lonB(0),lonB
    >(1)," ",lon_hemi," "
    >
    >goto get_data
    >
    >but the program always shows nothing.
    >
    >Can you help me with that?

    The baudmode specified (16572) is fine for a BS-2 or BS-2e but it must be
    changed
    for a BS-2sx to read 16884 for it to operate at 4800 baud (presuming that's
    what
    you want).

    Hope that helps

    Regards,

    Bruce Bates



    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed with. Text in the Subject
    >and Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.