Android系统7.0以上版本可以输出GPS原始数据

9 篇文章 0 订阅

https://developer.android.com/guide/topics/sensors/gnss#control-panel

Raw GNSS Measurements

The Android Framework provides access to raw GNSS measurements on several Android devices.

Note:  Google has released version 2.6.1.0 of the GNSS Analysis App. For more information, see the GNSS Analysis app v2.6.1.0 release notes.

This article lists Android devices that support raw GNSS measurements as well as tools to log and analyze GNSS data. You can find the tools in the GPS Measurement Tools repo on GitHub, which includes the GNSS Logger APK and the GNSS Analysis app for LinuxWindowsmacOS, and the Installation and User Manual.

Original equipment manufacturers (OEMs), developers, and researchers can make use of the tools in this page to test new phone designs, validate functionality, develop new algorithms, evaluate improvements to the GNSS system implementation as well as building value added apps.


-------------------------------



Raw GNSS Measurements

The Android Framework provides access to raw GNSS measurements on several Android devices.

Note:  Google has released version 2.6.1.0 of the GNSS Analysis App. For more information, see the GNSS Analysis app v2.6.1.0 release notes.

This article lists Android devices that support raw GNSS measurements as well as tools to log and analyze GNSS data. You can find the tools in the GPS Measurement Tools repo on GitHub, which includes the GNSS Logger APK and the GNSS Analysis app for LinuxWindowsmacOS, and the Installation and User Manual.

Original equipment manufacturers (OEMs), developers, and researchers can make use of the tools in this page to test new phone designs, validate functionality, develop new algorithms, evaluate improvements to the GNSS system implementation as well as building value added apps.

Android devices that support raw GNSS measurements

Before you can get any raw GNSS output, you need to make sure that you have a device that can capture such data. Most devices manufactured in 2016 or later and shipped with Android 7.0 or higher provide raw GNSS data.

Depending on the device, raw GNSS measurements can include all or some of the following data:

  • Pseudorange and pseudorange rate.
  • Navigation messages.
  • Accumulated delta range or carrier.
  • Hardware (HW) clock.

The table below lists devices that support raw GNSS measurements and the data they provide. This isn't a comprehensive list, you should contact the manufacturer to make sure that a specific device supports raw GNSS measurements.

ModelAndroid versionAutomatic Gain ControlNavigation messagesAccumulated delta rangeHW clockGlobal systems
HTC U11 Plus8.0nononoyesGPS
GLONASS
HTC U11 Life8.0nononoyesGPS
GLONASS
Huawei Mate 108.0noyesyesyesGPS
GLONASS
Huawei Mate 10 Pro8.0noyesyesyesGPS
GLONASS
QZSS
Google Pixel 2 XL8.0yesnonoyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Google Pixel 28.0yesnonoyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Sony Xperia XZ18.0nononoyesGPS
GLONASS
GALILEO
BeiDou
Samsung Note 8 (Exynos)7.1noyesyesyesGPS
GLONASS
GALILEO
BeiDou
Samsung Note 8 (QCOM)7.1nononoyesGPS
GLONASS
GALILEO
BeiDou
LG V307.1.2nononoyesGPS
GLONASS
Moto X4 20177.1nononoyesGPS
GLONASS
Essential PH-17.1nononoyesGPS
GLONASS
Moto Z27.1nononoyesGPS
GLONASS
HTC U117.1nononoyesGPS
GLONASS
OPPO R117.1nononoyesGPS
GLONASS
GALILEO
BeiDou
Huawei Honor 97.0noyesyesyesGPS
GLONASS
Samsung S8 (Exynos)17.0noyesyesyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Samsung S8 (QCOM)27.0nononoyesGPS
Huawei P107.0noyesyesyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Huawei P10 Lite7.0nononoyesGPS
Huawei Honor 87.0noyesyesyesGPS
GLONASS
BeiDou
Huawei Mate 97.0noyesyesyesGPS
GLONASS
BeiDou
Huawei P97.0noyesyesyesGPS
GLONASS
BeiDou
Google Pixel XL7.0nononoyesGPS
Google Pixel7.0nononoyesGPS
Nexus 6P37.0nonononoGPS
Nexus 5X37.0nonononoGPS
Nexus 9 (non cellular version)47.1noyesyesyesGPS
GLONASS

1 Exynos, EMEA devices, Models: G950F or G955F
2 QCOM, USA devices, Models: G950U or G955U
3 Raw measurements are provided only when a GPS position is available.
4 No duty cycling. Works only on the non cellular version of Nexus 9.

For more information about the data provided by a device, see Global Navigation Satellite Systems.

Logging raw measurements

You can use Android Studio to build an app that captures raw GNSS measurements and logs them to a file. The GPS Measurement Tools project includes GNSS Logger, a sample app that shows how to log data related to Android location, including raw GNSS measurements.

Download the GNSS Logger APK to install the sample app in your device.

To get GNSS output with the sample app, your device must support raw GNSS measurements. For more information, see Android devices that support raw GNSS measurements.

Once you have captured the GNSS log using the GNSS Logger, you can copy the log files from the device to your computer for further analysis. From within the GNSS Logger you can send the files to yourself via email or save them to Google Drive. Alternatively, you can save the files using the file management app on the device, or you can use the Android Debug Bridge (ADB) as explained in Copy files to/from a device.

To browse the sample source code, see the GNSSLogger folder in the GPS Measurement Toolsrepository on GitHub.


----------------------------------


Raw GNSS Measurements

The Android Framework provides access to raw GNSS measurements on several Android devices.

Note:  Google has released version 2.6.1.0 of the GNSS Analysis App. For more information, see the GNSS Analysis app v2.6.1.0 release notes.

This article lists Android devices that support raw GNSS measurements as well as tools to log and analyze GNSS data. You can find the tools in the GPS Measurement Tools repo on GitHub, which includes the GNSS Logger APK and the GNSS Analysis app for LinuxWindowsmacOS, and the Installation and User Manual.

Original equipment manufacturers (OEMs), developers, and researchers can make use of the tools in this page to test new phone designs, validate functionality, develop new algorithms, evaluate improvements to the GNSS system implementation as well as building value added apps.

Android devices that support raw GNSS measurements

Before you can get any raw GNSS output, you need to make sure that you have a device that can capture such data. Most devices manufactured in 2016 or later and shipped with Android 7.0 or higher provide raw GNSS data.

Depending on the device, raw GNSS measurements can include all or some of the following data:

  • Pseudorange and pseudorange rate.
  • Navigation messages.
  • Accumulated delta range or carrier.
  • Hardware (HW) clock.

The table below lists devices that support raw GNSS measurements and the data they provide. This isn't a comprehensive list, you should contact the manufacturer to make sure that a specific device supports raw GNSS measurements.

ModelAndroid versionAutomatic Gain ControlNavigation messagesAccumulated delta rangeHW clockGlobal systems
HTC U11 Plus8.0nononoyesGPS
GLONASS
HTC U11 Life8.0nononoyesGPS
GLONASS
Huawei Mate 108.0noyesyesyesGPS
GLONASS
Huawei Mate 10 Pro8.0noyesyesyesGPS
GLONASS
QZSS
Google Pixel 2 XL8.0yesnonoyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Google Pixel 28.0yesnonoyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Sony Xperia XZ18.0nononoyesGPS
GLONASS
GALILEO
BeiDou
Samsung Note 8 (Exynos)7.1noyesyesyesGPS
GLONASS
GALILEO
BeiDou
Samsung Note 8 (QCOM)7.1nononoyesGPS
GLONASS
GALILEO
BeiDou
LG V307.1.2nononoyesGPS
GLONASS
Moto X4 20177.1nononoyesGPS
GLONASS
Essential PH-17.1nononoyesGPS
GLONASS
Moto Z27.1nononoyesGPS
GLONASS
HTC U117.1nononoyesGPS
GLONASS
OPPO R117.1nononoyesGPS
GLONASS
GALILEO
BeiDou
Huawei Honor 97.0noyesyesyesGPS
GLONASS
Samsung S8 (Exynos)17.0noyesyesyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Samsung S8 (QCOM)27.0nononoyesGPS
Huawei P107.0noyesyesyesGPS
GLONASS
GALILEO
BeiDou
QZSS
Huawei P10 Lite7.0nononoyesGPS
Huawei Honor 87.0noyesyesyesGPS
GLONASS
BeiDou
Huawei Mate 97.0noyesyesyesGPS
GLONASS
BeiDou
Huawei P97.0noyesyesyesGPS
GLONASS
BeiDou
Google Pixel XL7.0nononoyesGPS
Google Pixel7.0nononoyesGPS
Nexus 6P37.0nonononoGPS
Nexus 5X37.0nonononoGPS
Nexus 9 (non cellular version)47.1noyesyesyesGPS
GLONASS

1 Exynos, EMEA devices, Models: G950F or G955F
2 QCOM, USA devices, Models: G950U or G955U
3 Raw measurements are provided only when a GPS position is available.
4 No duty cycling. Works only on the non cellular version of Nexus 9.

For more information about the data provided by a device, see Global Navigation Satellite Systems.

Logging raw measurements

You can use Android Studio to build an app that captures raw GNSS measurements and logs them to a file. The GPS Measurement Tools project includes GNSS Logger, a sample app that shows how to log data related to Android location, including raw GNSS measurements.

Download the GNSS Logger APK to install the sample app in your device.

To get GNSS output with the sample app, your device must support raw GNSS measurements. For more information, see Android devices that support raw GNSS measurements.

Once you have captured the GNSS log using the GNSS Logger, you can copy the log files from the device to your computer for further analysis. From within the GNSS Logger you can send the files to yourself via email or save them to Google Drive. Alternatively, you can save the files using the file management app on the device, or you can use the Android Debug Bridge (ADB) as explained in Copy files to/from a device.

To browse the sample source code, see the GNSSLogger folder in the GPS Measurement Toolsrepository on GitHub.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值