GPS 之初见

购买了一个 MT3339 的片子来做 GPS logger,相关信息如下:

直接拿 FL232RL 和这个片子连接,然后通过 USB 接入 MBP 就能通过 minicom 这个程序读出数据了。在公司阳台上坐了一小会就搜索到了卫星,下面是一部分 NMEA 数据片段

$GPGGA,202439.100,4740.2168,N,12211.8122,W,1,8,1.81,49.9,M,-17.2,M,,*5E
$GPGSA,A,3,29,20,02,05,18,13,25,15,,,,,2.35,1.81,1.50*0C
$GPRMC,202439.100,A,4740.2168,N,12211.8122,W,0.01,128.32,220916,,,A*74
$GPVTG,128.32,T,,M,0.01,N,0.02,K,A*34
$GPGGA,202439.200,4740.2168,N,12211.8122,W,1,8,1.81,49.9,M,-17.2,M,,*5D
$GPGSA,A,3,29,20,02,05,18,13,25,15,,,,,2.35,1.81,1.50*0C
$GPGSV,2,1,08,29,73,122,44,20,68,157,43,05,38,056,43,18,22,205,42*76
$GPGSV,2,2,08,25,21,192,42,13,16,102,40,15,15,135,41,02,05,078,32*70
$GPRMC,202439.200,A,4740.2168,N,12211.8122,W,0.01,128.32,220916,,,A*77
$GPVTG,128.32,T,,M,0.01,N,0.02,K,A*34
$GPGGA,202439.300,4740.2168,N,12211.8122,W,1,8,1.81,49.9,M,-17.2,M,,*5C
$GPGSA,A,3,29,20,02,05,18,13,25,15,,,,,2.35,1.81,1.50*0C
$GPRMC,202439.300,A,4740.2168,N,12211.8122,W,0.01,128.32,220916,,,A*76
$GPVTG,128.32,T,,M,0.01,N,0.02,K,A*34

非常有意思,这里有这个数据格式的介绍,比如这段

$GPGGA,202439.100,4740.2168,N,12211.8122,W,1,8,1.81,49.9,M,-17.2,M,,*5E

表示的是 UTC 时间 20:24:39.100 我所处的经纬度为 N 47 度 40.2168 分,W 122 度 11.8122 分,GPS fix 数据,8 颗卫星,1.81 表示 horizontal dilution,平均海平面上高度 49.9 米,WGS84 椭球高度 -17.2 米。

有兴趣继续看看。待更新。

Advertisements
GPS 之初见

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s