Help: how to read LONG raw ASCII input like NMEA
Archiver
Posts: 46,084
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...
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
brandaris400@hotmail.com writes:
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]