嗨,我是这个领域的新手,需要你的帮助。我想得到安卓系统的GNSS星历数据。我不想从任何网站下载。这就是我目前正在做的事情:
我正在使用GnssNavigationMessage.java (https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/location/java/android/location/GnssNavigationMessage.java)在Android上记录GNSS导航消息。
在我的记录器中,我使用命令获得数据: byte[] data = navigationMessage.getData();
现在我得到的数据如下:
Nav,103,769,1,2,1,8,16,-4,19,66,-112,-126,-42,25,20,-8
Nav,Svid,类型,状态,MessageId,子消息Sub,数据(字节)
我想得到以下参数,以便进一步计算:
请让我知道是否有一种方法来解析导航消息,我正在接收到这些参数。如果我走错了方向,请告诉我。任何线索都将不胜感激。谢谢。
发布于 2018-10-08 00:57:38
谷歌已经实现了代码来解析导航消息,作为其GNSSLogger应用程序的一部分。
GpsNavigationMessageStore
类描述说:
/**
* A class to extract the fields of the GPS navigation message from the raw bytes received from the
* GPS receiver.
*
* <p>Raw bytes are passed by calling the method
* {@link #onNavMessageReported(byte, byte, short, byte[])}
*
* <p>A {@link GpsNavMessageProto} containing the extracted field is obtained by calling the method
* {@link #createDecodedNavMessage()}
*
* <p>References:
* http://www.gps.gov/technical/icwg/IS-GPS-200D.pdf and
* http://www.gps.gov/technical/ps/1995-SPS-signal-specification.pdf
*
*/
https://stackoverflow.com/questions/45621313
复制相似问题