Shop OBEX P1 Docs P2 Docs Learn Events
Help: how to read LONG raw ASCII input like NMEA — Parallax Forums

Help: how to read LONG raw ASCII input like NMEA

ArchiverArchiver Posts: 46,084
edited 2001-01-21 16:36 in General Discussion
Hello,

I want read long raw NMEA sentences and show them on the LCD display.
Til yet it works well, but i read them as a variable input. The BS2
has only 26 variables, so after the 26th variable i can read nothing
more.

example:

nmea var byte(23) 'valid NMEA input, 23 bytes

'4800 baud nmea input, time-out 10 sec, 23 bytes after "$"
serin 7,188+$4000,10000,nosig,[noparse][[/noparse]wait("$"),str nm\23]

............

How can i read longer input strings ? When I remove the limitation of
23 variables i got nonsens in the display. How if I reserve some
memory with the DATA-statement and how to retrieve ?

Please keep in mind that I am a beginner.

Jugo

pd0ffm@a...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-01-21 16:36
    [font=arial,helvetica]In a message dated 1/21/01 10:15:49 AM Central Standard Time,
    brandaris400@hotmail.com writes:


    I want read long raw NMEA sentences and show them on the LCD display.
    Til yet it works well, but i read them as a variable input. The BS2
    has only 26 variables, so after the 26th variable i can read nothing
    more.

    example:

    nmea var byte(23) ···'valid NMEA input, 23 bytes

    '4800 baud nmea input, time-out 10 sec, 23 bytes after "$"
    serin 7,188+$4000,10000,nosig,[noparse][[/noparse]wait("$"),str nm\23]

    ............

    How can i read longer input strings ? When I remove the limitation of
    23 variables i got nonsens in the display. How if I reserve some
    memory with the DATA-statement and how to retrieve ?

    Please keep in mind that I am a beginner.



    The new BS2p -- coming soon -- will allow you to move serial input directly
    into its scratchpad RAM. ·That would let you read in strings up to 127 bytes
    long. ·This feature is only available on the BS2p.

    -- Jon Williams
    -- Dallas, TX[/font]
Sign In or Register to comment.