Hi All,
The attached PAC Control Basic 8.0 chart (can be imported into any 8.0 basic or better strategy) to parse GPS data on a RS-232 port. It shows how to make use of the EOM (end of message) character when receiving strings using a communication handle, and a couple of ways to parse data in a string table.
When there’s a LOT of data to be received/parsed, I like to write it to a temporary file then search through the file, as show in this example.
Also see this thread for more on RS-232 comm handle usage.
Happy coding!
-OptoMary
p.s. This data coming in looks something like this:
$GPGSA,A,1,0.0,0.0,0.0*30
$GPGSV,3,1,12,17,89,000,02,67,000,24,46,000,15,46,000,7E
$GPGSV,3,2,12,30,45,000,31,41,000,09,25,000,05,20,000,77
$GPGGA,164410.971,0000.0000,N,00000.0000,E,0,00,0.0,0.0,M,000007
$GPGLL,0000.0000,N,00000.0000,E,164410.971,V2A
This website was helpful for decoding: http://aprs.gids.nl/nmea/#gga
GPSChartv1_0.zip (3.5 KB)