Embedded

我如何解釋 gpscat 的結果?

  • July 17, 2017

我一直在嘗試從嵌入式系統獲取 gps 數據。這是我使用的命令:

gpscat /dev/ttyS2

我得到一個連續的輸出流,如下所示:

$ GLGSV,1,1,03,70,14,098.6102,E,121853.000,A,A50 $ GPRMC,121853.000,A,59480,N,00604.6102,E,AA,10,1.0,203.6,47.6,,64 $ 04.6102,E,121854.000,A,A57 $ GPRMC,121854.000,A $ GPGSV,2,1,08,05,11,032,40,16,55,300,14,18,17,14GLL,5046.9480,N,00604.6102,E,121855.000,A,A56 +GPSPVT:0,12:18:57,17/07/2017,3D FIX,N 050 46'5604.6102,E,121857.000,A,A54 $ GPRMC,121857.000,A6,35,20,31,075,357D $ GPGSV,2,2,08,21,74,133,29GLL,5046.9480,N,00604.6102,E,121858.000,A,A5B 59 $ GLGSA, A, 3,70,85 ,,,,,,,,,,,,,, 1,0, * 25 $ GNGGLL,5046.9480,N,00604.6102,E,121859.000,A,A5A ,16,18,20,21,26,29,31,,,,,1.6,1.0,1.22E $ GNGSA5046.9480,N,00604.6102,E,0.0,321.6,170717,,,A61.88",E 006 04'36.61",+0203m $ GPVTG,321.6,T,,M,0GLL,5046.9480,N,00604.6102,E,121903.000,A,A54 ,031,40,16,56,299,17,18,19,145,35,20,31,074,3574.6102,E,121904.000,A,A53 $ GPRMC,121904.000,A,,080,37,31,16,203,217E $ GLGSV,1,1,03,70,15,09704.6102,E,121905.000,A,A52 $ GPRMC,121905.000,A8,05,10,031,40,16,56,299,18,18,19,145,35,20,31,0,*62 $ GNGSA,A,3,05,16,18,20,21,26,29,31,,,,,1.6.88",E 006 04'36.61",+0203m $ GPGGA, 12

你能解釋一下我會如何解釋這個嗎?

閱讀有關 NMEA 協議的原始資訊,此處此處的詳細資訊。

每行是協議幀:$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A

在哪裡:

RMC          Recommended Minimum sentence C
123519       Fix taken at 12:35:19 UTC
A            Status A=active or V=Void.
4807.038,N   Latitude 48 deg 07.038' N
01131.000,E  Longitude 11 deg 31.000' E
022.4        Speed over the ground in knots
084.4        Track angle in degrees True
230394       Date - 23rd of March 1994
003.1,W      Magnetic Variation
*6A          The checksum data, always begins with *

請注意,從 NMEA 2.3 版本開始,有一個新欄位

引用自:https://unix.stackexchange.com/questions/379028