Hello Alex
checked the read part of your code
without connecting to a real "serial port"
the idea is the same though
'---simulate a serial device reading data
HOME$ = GETENVIRON$("HOME")
'---un zip in home directory for testing
OPEN HOME$ &"/GPS_DATA/output .nmea" FOR READWRITE AS myserial2
generated a test file from here
www.nmeagen.org/unzip the file place the whole folder in home
then compile and run the demo
I don't know why you only get partial output
your code works!
GPS_DATA.tar.gz (747 B)
Joe
$GPGLL,5457.94624,N,00134.32928,W,165657.00,A,A*77
READ : $GPGGA,044351.241,5230.249,N,01326.372,E,1,12,1.0,0.0,M,0.0,M,,*65
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044351.241,A,5230.249,N,01326.372,E,1814.8,110.5,150922,000.0,W*4D
$GPGGA,044352.241,5229.986,N,01327.078,E,1,12,1.0,0.0,M,0.0,M,,*6E
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044352.241,A,5229.986,N,01327.078,E,4627.8,111.4,150922,000.0,W*4D
$GPGGA,044353.241,5229.293,N,01328.855,E,1,12,1.0,0.0,M,0.0,M,,*68
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044353.241,A,5229.293,N,01328.855,E,661.4,085.2,150922,000.0,W*7B
$GPGGA,044354.241,5229.318,N,01329.153,E,1,12,1.0,0.0,M,0.0,M,,*63
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044354.241,A,5229.318,N,01329.153,E,661.4,085.2,150922,000.0,W*70
CHOPPED : 4351.241,5230.249,N,01326.372,E,1,12,1.0,0.0,M,0.0,M,,*65
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044351.241,A,5230.249,N,01326.372,E,1814.8,110.5,150922,000.0,W*4D
$GPGGA,044352.241,5229.986,N,01327.078,E,1,12,1.0,0.0,M,0.0,M,,*6E
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044352.241,A,5229.986,N,01327.078,E,4627.8,111.4,150922,000.0,W*4D
$GPGGA,044353.241,5229.293,N,01328.855,E,1,12,1.0,0.0,M,0.0,M,,*68
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044353.241,A,5229.293,N,01328.855,E,661.4,085.2,150922,000.0,W*7B
$GPGGA,044354.241,5229.318,N,01329.153,E,1,12,1.0,0.0,M,0.0,M,,*63
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,044354.241,A,5229.318,N,01329.153,E,661.4,085.2,150922,000.0,W*70