我怎样才能获得GPS的原始数据(卫星的伪范围)?范围、原始数据、GPS、卫星

2023-09-05 06:04:59 作者:傷了,誰來疼

我怎么能读取GPS原始数据,更具体,我需要的saellites伪范围。 此数据不可用的NMEA格式。

How can I read GPS raw data, to be more specific I need the saellites pseudo range. This data is not available in NMEA format.

推荐答案

卫星的伪范围的不可用中的官方API ,既没有通过GpsStatus.Listener也不GpsStatus.NMEAListener接口。

Satellites pseudo-ranges are not available in the official API, neither through the GpsStatus.Listener nor the GpsStatus.NMEAListener interfaces.

唯一可用的可用信息在的GpsSatellite类是:

The only available info available in the GpsSatellite class are:

PRN 方位 在海拔 在C / N0 在一个usedInFix布尔值。

的Android来源$ C ​​$ C 的要求只是那些从本地code领域,所以没有希望从任何其他Java API得到它。

The Android source code asks just those fields from the native code, so no hope to get it from any other Java API.

让你无论如何得到这个数据(这是不适合市场​​,能够应用程序)的最好办法是将探索Android源$ C ​​$ C,并找到一条天然勾手得到低电平数据和通过JNI访问,或重新编译完整的操作系统修改API,以您的需求(你还需要找到相关的本土code为)。 最后,如​​果你能得到的芯片组给你送 GRS NMEA句子(你会得到他们通过标准NMEAListener界面,困难是配置芯片组把他们送到),那么你可以计算伪范围(这些句子包含卫星的残差)

The best way for you to get this data anyway (which is not suitable for a Market-able application) would be to explore Android source code, and either find a native hook to get the data at low level and access through JNI, or recompile the full OS modifying the API to your needs (you also need to find the relevant native code for that). Finally, if you can get the chipset to send you GRS NMEA sentences (you would get them through the standard NMEAListener interface, the difficulty is configuring the chipset to send them) you can then compute the pseudo-ranges (those sentences contain satellites' residuals)

祝你好运,让我知道如果你尝试任何这些想法!

Good luck and let me know if you try any of these ideas!