滚动你自己的NMEA分析器或使用开源的GPS分析器? [英] Roll your own NMEA parser or use an open source GPS parser?

查看:114
本文介绍了滚动你自己的NMEA分析器或使用开源的GPS分析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了很多位置感知计算,通常都包含GPS。我有我自己的一个简单的NMEA解析器,它没有做任何特别的事情 - 只是将GPS特定的句子转换成可用的数字,标志等等。



然而,那里在诸如GPSD和Gypsy等项目上进行了很多积极的开发。如果GPS是一件简单的事情,那么这些项目很快就会完成并进入维护模式。


  • 他们知道/做什么我不知道,因此我的代码没有解释?
  • 来自GPSD主管的优秀文章


    • NMEA标准不提供具有错误,大地水准面和磁性变化等的完整TPV(时间,位置,速度)元组。

    • 值是在不同的句子,并没有定义的顺序,你不能很容易地知道哪个速度与哪个位置报告

    • <锂>一些值不是全部给出(即,年是两位数的
    • 没有标准化的方式来确定供应商,型号,固件
    • 没有标准的方式来改变设置(通信速度,句子据悉,每秒样本数等)
    • 不兼容的二进制协议用于高级用法和更快的报告

    • 由于USB到串行网桥和蓝牙有趣的竞争条件,串行网桥,改变速度是一个非常棘手的问题



    -Adam


    I do a lot of location aware computing, often incorporating GPS. I have my own little simple NMEA parser that doesn't do anything special - just transforms the GPS specific sentences into usable numbers, flags, and so forth.

    However, there is a lot of active development done on projects such as GPSD and Gypsy. If GPS were a simple matter, the projects would have finished long ago and simply gone into maintenance mode.

    • What do they know/do that I don't know about, and therefore my code doesn't account for?

    解决方案

    From an excellent article by the GPSD lead:

    • NMEA standard doesn't provide a full TPV (time, position, velocity) tuple with error, geoid and magnetic variation, etc
    • Since different values are in different sentences, and there's no defined order you can't easily know which velocity goes with which position report
    • Some values are not given in full (ie, year is two digits on the more common and avilable sentences)
    • No standardized way to determine vendor, model, firmware
    • No standardized way to change settings (communications speed, sentences reported, samples per second, etc)
    • Incompatible binary protocols for advanced usage and faster reporting
    • Due to interesting race conditions for USB to serial bridges and bluetooth to serial bridges, changing the speed is a very tricky problem

    -Adam

    这篇关于滚动你自己的NMEA分析器或使用开源的GPS分析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆