Home > Software engineering >  VB.net parsed GPS data should be appropriate in that way?
VB.net parsed GPS data should be appropriate in that way?

Time:11-14

Find on the Internet have a timer event trigger mode and query way,
GPS data output is not a fixed length, divided by a comma,
GPS data is sent every second here so many data
You have any good suggestion or reference code?

A, $GNRMC, 045015.00, 3109.73671, N, 12124.75372 E, 0.004, 141117,,, D * 66
$GNVTG,, T, M, 0.004 N, 0.007 K, D * 3 b
$GNGNS, 045015.00, 3109.73671, N, E, RR, 12124.75372, 15,0.72, 5.8, 9.7, 1.0, 0000 * 7 f
$GNGGA, 045015.00, 3109.73671, N, 12124.75372 E, 4,12,0.72, 5.8 M, 9.7 M, 1.0, 0000 * 57
3,02,05,13,15,20,21,29,30 $GNGSA, A,,,,,, 1.35, 0.72, 1.15 * 13
3,78,79,69,84,83,85,70 $GNGSA, A,,,,,,, 1.35, 0.72, 1.15 * 18
$GPGSV, 3,1,11,02,40,139,45,05,51,047,48,06,04,137, 07,01,034, * and 7 f
$GPGSV, 3,2,11,13,85,027,46,15,58,244,49,20,48,316,46,21,16,317,36 * 7 a
$GPGSV, 3,3,11,24,08,186, 29,40,256,49,30,19,055,41 * 45
,1,11,68,09,053,25,69,45,014,44,70,38,290,43,71,01,257,20 $GLGSV, 3 * 6 f
,2,11,78,11,044,38,79,20,087,47,80,07,145,28,83,15,172,41 $GLGSV, 3 * 6 b
$GLGSV, 3,3,11,84,62,218,45,85,41,316,50,,,, 51 * 6 a
$GNGLL, 3109.73671 N, 12124.75372 E, 045015.00, A, D * 78
$GNGST, 045015.00, 6.9,,,, 0.010, 0.010, 0.010 * 6 c
$GNZDA, 045015.00, 14,11,2017,00,00 * 7 c


Another question: through this statement
Dim ports As String ()=SerialPort. GetPortNames ()
Get com number later, this statement
Buf=SerialPort1. ReadExisting. ToString
If can't use?
  • Related