Java 如何在Android上解析GPS导航消息
嗨,我是这个领域的新手,需要你的帮助。 我想用安卓系统获取全球导航卫星系统星历数据。我不想从任何网站下载。 这就是我目前正在做的: 我正在使用GnssNavigationMessage.java()在Android上记录GNSS导航消息 在我的记录器中,我使用以下命令获取数据: 字节[]数据=navigationMessage.getData() 现在我得到的数据如下所示: 导航,103769,1,2,1,8,16,-4,19,66,-112,-126,-42,25,20,-8,跟随标题 导航、Svid、类型、状态、消息ID、子消息ID、数据(字节) 我想得到以下参数,以便进一步计算:Java 如何在Android上解析GPS导航消息,java,android,gps,Java,Android,Gps,嗨,我是这个领域的新手,需要你的帮助。 我想用安卓系统获取全球导航卫星系统星历数据。我不想从任何网站下载。 这就是我目前正在做的: 我正在使用GnssNavigationMessage.java()在Android上记录GNSS导航消息 在我的记录器中,我使用以下命令获取数据: 字节[]数据=navigationMessage.getData() 现在我得到的数据如下所示: 导航,103769,1,2,1,8,16,-4,19,66,-112,-126,-42,25,20,-8,跟随标题 导航、
谢谢。谷歌已经实现了解析导航消息的代码,这是其:
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
*
*/
/**
*从从接收到的原始字节中提取GPS导航消息字段的类
*GPS接收机。
*
*原始字节通过调用方法传递
*{@link#onNavMessageReported(byte,byte,short,byte[])
*
*A{@link GpsNavMessageProto}包含提取的字段,通过调用该方法获得
*{@link#createDecodedNavMessage()}
*
*参考资料:
* http://www.gps.gov/technical/icwg/IS-GPS-200D.pdf 和
* http://www.gps.gov/technical/ps/1995-SPS-signal-specification.pdf
*
*/
您有什么解决方案吗?