Google has recently released GNSS Analysis Tool to process and analyze Global Navigation Satellite System (GNSS) raw measurements from Android devices. This is mostly designed to enable manufacturers to see whether their GNSS receivers are working as expected.
The tool can also be used for research and to learn more about GNSS, and there are two components:
- GNSS Analysis tool itself available for Windows, Linux, or Mac OS X
- GNSS Data Logger app working with Android 7.0 or greater phones that support raw measurements.
You can download both from the release page on Github. I’ve given it a try with a computer running Ubuntu 16.04 and Xiaomi Mi A1 smartphone, but you can the analysis tool even f you don’t have Android 7.0+ smartphone, as sample data is included.
I downloaded GnssAnalysisLinuxV2.4.0.0.zip, and extracted the content in ~/Desktop/GnnsAnalysisFiles directory as instructed.
Now we can open a terminal window and install the utility:
1 2 3 |
cd ~/Desktop/GnssAnalysisFiles/for_redistribution$ chmod +x MyAppInstaller_web.install ./MyAppInstaller_web.install |
The last command will download MATLAB runtime, and other necessary files and may take a few minutes (around 10 minutes here). Once it’s done, it should show the installer for GnssAnalysisApp 2.400.
Click next and select installation directories for the app and MATLAB Runtine R2016a…
… and click on Install. A bit more patience, and we’ll be able to run the tool using MATLAB Runtine installation directory as parameter:
1 2 |
cd ../application/ ./run_GnssAnalysisApp.sh ~/Desktop/MATLAB/v901/ |
This will show the control panel below.
Click on Find Log File but and load demofiles/gnss_log_2016_06_30_21_26_07.txt, then click on Analyze & Plot, and it will open many different windows, analyzing the GPS/GNSS data.
People familiar with GNSS will know how to analyze this data, but this will feel like gibberish to anybody unfamiliar with the intricacies of GPS or other GNSS systems. A good way to better understand the data, and learn more about GPS is to close all the windows, and click on “Make report” button with the Android logo instead. This will create a file called GnnsAnalysisReport.html giving some more useful information and whether a given test passed or failed, for example:
When there you can read the analysis, and learn more from the results. Using sample data is fun, but let’s try to use the Android app to gather our own data with Xiaomi Mi A1 smartphone running Android 7.1.2. Once the app (Gnsslogger.apk) is installed, place your phone in an open location, start the app, enable the options in the SETTINGS tab, switch to the LOG tab and tap START LOG.
Leave the app gathering data for a few minutes, optionally setting a timer, and then tap on STOP & SEND button, which should open Android’s share menu, and in my case I simply sent the log to my email, and received it with SensorLog subject with attachment. I could load the attachment, but after clicking on Analyze & Plot the log window reported “No raw measurements read from this file.”. I did have some data in my file, but I had no “Raw” lines, while the sample had some:
1 2 3 4 5 |
Fix,gps,37.422541,-122.081659,-33.000000,0.000000,3.000000,1467321970000 Raw,72066156,72077939000000,,,-1151285108458178048,0.0,29.04968823713716,-10.443671668402208,9.725224774803037,188,2,0.0,15,422786326364257,12,32.0,-385.185791015625,0.03290000185370445,0,0.0,0.0,,,,,0,,1 Raw,72066156,72077939000000,,,-1151285108458178048,0.0,29.04968823713716,-10.443671668402208,9.725224774803037,188,3,0.0,15,422786311362544,678,18.8,156.81149291992188,4.2829999923706055,0,0.0,0.0,,,,,0,,1 Raw,72066156,72077939000000,,,-1151285108458178048,0.0,29.04968823713716,-10.443671668402208,9.725224774803037,188,6,0.0,15,422786328163499,11,33.5,77.83619689941406,0.03490000218153,0,0.0,0.0,,,,,0,,1 Raw,72066157,72077939000000,,,-1151285108458178048,0.0,29.04968823713716,-10.443671668402208,9.725224774803037,188,12,0.0,15,422786324938402,10,34.6,-443.2605285644531,0.02810000069439411,0,0.0,0.0,,,,,0,,1 |
So that likely means my phone does not provide any raw GNSS data.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
It is 100% phone issue, you need to have one of the phone listed on the developer site. Please contact me via email: chelemencodrut@yahoo.com to discuss more about this 😉 i m working on the same project