G-858BP Backpack Mag Operators Manual
TYPE 21: RS-232 event
fprintf(pAscFile, "%-2u %s %.2d:%.2d:%.2d.%.2d %.2d/%.2d/%2.2d /4d%
/1d%\r\n",
type, // 21 in this case
input_string, // ASCII string received from RS-232
hours, // time of day
minutes,
seconds,
hundredths,
month, // date
day,
year
fine time //increments of 0.25ms, set to zero every
0.1sec
com ) ; //com port from which this data string is
received, 0=COM1, 1=COM2, etc.
Example:
21 $GPGGA,015009.00,3725.9975,N,12209.9992,W,2,4,002.5,00025.1,M,-
028.4,M,001,0000*65 18:49:44.90 05/31/95 0.25 0
TYPE 33: Field note
fprintf(pAscFile, "%-2u %s %.2d:%.2d:%.2d.%.2d %.2d/%.2d/%2.d\r\n",
type, // 33 in this case
input_string, // ASCII string received from RS-232
hours, // time of day
minutes,
seconds,
hundredths,
month, // date
day,
year ) ;
Example:
33 Fell down 18:49:44.90 05/31/95
95