Hi all,
I'm looking for a solution to capture NMEA data with a PIC micro and retransmit them on another serial interface... a kind of NMEA repeater.
My only problem is that fro example GPGAA sentences are not the same lenght:
$GPGGA,130524,4650.8982,N,01650.2497,E,0,00,,,M,,M ,,*5A
$GPGGA,170834,4124.8963,N,08151.6838,W,1,05,1.5,28 0.2,M,-34.0,M,,,*75
I try to mace something like:
......
dim GPGGA[i don't know the lenght] as byte
SERIN PORTB.0, 16572, [ WAIT( "$GPGGA," ) , STR GPGGA ] 'this would store the string if I would know its lenght
SEROUT PORTB.2, 16572, ["$GPGGA," , str GPGGA, 10, 13]
something like this... :-)
Please help me!!!
Bookmarks