yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 Questions & Answers] palatkik:
I use another app called SportyPal for cycling and have exact same problem as you. I set location settings on Mate9 to GPS device only and some days there are no jumps in track position and other days I have jumps on same track. Happens maybe 40% of time. Yesterday for example the track I cycled around a built up city environment recorded 29km traveled whereas normally the distance is about 20km. This makes the device pretty useless for tracking location and speed performance in a fitness app. Previously I used a Samsung Note2 for using same app and never had an issue of 4 years of use on same route.
[Huawei Mate 9 Questions & Answers] hanskie:
[MENTION=591659]palatkik[/MENTION]

My phone before mate 9 was also note 2 and I had no issue too. No I'm confused because of useless my new phone.

Wysłane z telefonu Mate 9
[Huawei Mate 9 Questions & Answers] masi0:
No issues here as well. Did 30+km using mate9 with Android Auto - mate as GPS/Google Maps

All fine
[Huawei Mate 9 Questions & Answers] cr2:
You should check the wikipedia article about the geostationary satellites used for the SBAS data distribution. There is no principal difference between SBAS and A-GPS, both are auxiliary navigation data services, but A-GPS is controlled by private companies,

which are trying to monetize: A-GPS requires the network connection to its provider, and costs you $$. SBAS is free for all broadcast service.
[Huawei Mate 9 Questions & Answers] Sho-Bud:
It is correct that WAAS and EGNOS use ground stations, but the error correction signal is uploaded to satellites. In Europe the satellite that carries the signal has PRN no. 33. In the US it has PRN no. 35. Still not sure if the Mate uses the WAAS or EGNOS signal though.
[Huawei Mate 9 Questions & Answers] ewingr:
J FYI… I have a phone which I have had for just a couple weeks. When I got it it had 138 software on it and the GPS did not work at all. It updated to 183 is now working very well when driving.

JUst did a walk today with Map My Walk and I think it's working fine. Not perfect, and I never have seen one that is perfect but I think it's fine.
[Huawei Mate 9 Questions & Answers] RR-99:
Yes, for a phone using just GPS and Glonass it is working just fine.

But it would be better still if it used Galileo and Beidou as well, as it advertised to do. Huawei lied.
[Huawei Mate 9 Questions & Answers] cr2:
The GSA should better ask "technology partner Samsung" to fix the broken Galileo, Beidou and SBAS support in their GPSD (or provide us a usable chipset documentation)

instead of creating hot air like

https://www.gsa.europa.eu/galileo_hackathon_2017

How are they thinking the people will work with Galileo raw navigation data if it is not available at all on either Huawei or Samsung phones ??
[Huawei Mate 9 Questions & Answers] Sho-Bud:
The app GPS test today showed it using 6 GPS, 3 Glonas and 1 Galileo satellites being used for a fix
[Huawei Mate 9 Questions & Answers] Sasa_Jevric:
I got gps, glonass and beidou, no galileo
[Huawei Mate 9 Questions & Answers] 5[Strogino]:
What model, build and app do you have?
[Huawei Mate 9 Questions & Answers] Sho-Bud:
I have the Porsche Design with firmware 180. The app is called 'GPS test'.
[Huawei Mate 9 Questions & Answers] RR-99:
Today with the GPS Test app I have seen just one Beidou and one Galileo.

So the Mate 9 is capable of receiving Galileo, but the program gives absolute priority to GPS and Glonass.
[Huawei Mate 9 Questions & Answers] Sho-Bud:
I agree with that, it seems to greatly prefer GPS and Glonass. I'll do some more testing and also see how GPS tracking is with this firmware.
[Huawei Mate 9 Questions & Answers] RR-99:
Today I've been on top of a mountain with the view below zero degrees in all directions.

The Mate 9 showed 20 satellites, all GPS or Glonass. There must have been more visible including Galileo and Beidou, but the phone only shows 20. That must be another built in limitation.

With all those satellites in clear view, the accuracy was shown as 4m.
[Huawei Mate 9 Questions & Answers] Borlas:
After B182 update, only getting GPS and Glonass.....

Also noticed the fixed number of satellites doubled and my mate9 gets hot!!! And it doesn't get hot with nothing else... Have yet to check battery consumption but it doesn't look good. :(
[Huawei Mate 9 Questions & Answers] Sho-Bud:
I have the B180 firmware on my PD. As a test I recorded 2 tracks today with Alpine Quest, one with a 5 second interval and one with a 2 second interval. The phone was in the pocket of my pants. There weren't any 'spikes' that others have seen with earlier firmware versions. I'm still going to record a track with a one second interval.
[Huawei Mate 9 Questions & Answers] Swan Princess:
Now that I finally have my Mate 9 I can help with GPS debugging. Fired it up yesterday. Accuracy is around 4-6 meters. GPS / GLONASS were seen and one stray Beidou sat as well. Before the update I saw a lot of '?' 16* sats too, but they never locked on I think. What was that GPS logger program I could use again to share logs with you?
[Huawei Mate 9 Questions & Answers] 5[Strogino]:
I got 21 on mha-l29c636b181

GPS - 12, Glonass - 8, Beidou - 1
[Huawei Mate 9 Questions & Answers] RR-99:
Interesting. Perhaps Huawei are still playing with the settings in different versions.
[Huawei Mate 9 Questions & Answers] Swan Princess:
So, are there any apps, or computer software programs that could analyze the raw log we can record on our Mate 9? Would really enjoy getting into the whole GNSS / DGPS thing, but the ublox hardware is a bit too expensive for my taste.
[Huawei Mate 9 Questions & Answers] RR-99:
As far as I can see from the NMEA app log, it has no more than the data that is processed and displayed graphically by the various GPS test apps. There doesn't seem to be anything else that we can use, otherwise those apps would be using it.
[Huawei Mate 9 Questions & Answers] Swan Princess:
Well, I ran that MatLab script on the collected data and it looks quite so horrible. Isn't the most user-friendly thing to use either. Would be nice if that logger app streamed RINEX, or some other sort of file in real time to say RTKLIB? Where are all the great app devs? Surely you can make it happen! This chip has many opportunities, if we had the right software to use it.
[Huawei Mate 9 Questions & Answers] cr2:
I have done some GPS research using extensive logfiles generated by enabling the

GPSD logging.

The internal numbering scheme supports 187 satellites from 8 systems:

0 - GPS (32 G1-G32),

2 - SBAS(19 S33-S51?),

4 - GLONASS(14 FCN-based=-7,-6,...,6, R52-R65),

6 - Beidou(32 B86-B117),

8 - Galileo(36 E118-E153),

0 - QZSS(15 Q66-Q80),

12 - QZSS/IMES? (5 X81-X85),

14 - unknown (34 Y154-Y187)

The following SBAS ids are logged in Europe, but not shown in any software: 10,16,18,19.

Mapping to real SBAS satellites is not known,

but can be the mix of WAAS, EGNOS and IRNSS.

We can try to run the Samsung S8+ gpsd on Mate 9, but it will require

creating the stubs for missing wrapper GPS-RILD symbols in the wrappergps.so library.
[Huawei Mate 9 Questions & Answers] RR-99:
Two more Galileo satellites are in operation. 16 in all. Still no proper operation on the Mate 9.

The Huawei spec saying it uses Galileo is a lie.

http://consumer.huawei.com/en/mobile-phones/tech-specs/mate9-en.htm
[Huawei Mate 9 Questions & Answers] cr2:
These are E5 and E7, but the current "built-in" almanac does not know even about E1 and E2,

that makes these 4 satellites useless.

Either huawei will provide an updated gpsd binary, or we need to find out where the almanac data is located.

I have modified the glonass FC parameters in /vendor/bin/glgps4774 and get "Service gpsd_4774 does not have a SELinux domain defined" again.
[Huawei Mate 9 Questions & Answers] Swan Princess:
I would not mind running that modified gpsd, and sending you the logs. How could it best be done?
[Huawei Mate 9 Questions & Answers] palatkik:
I too was updated to build b181 yesterday by Huawei. No noticeable difference from my last build.

Currently it is tracking GPS-10, Glonass-4 and Galileo-1.

I'm near equator so maybe less satellites to choose than others. This build and previous build have been good to me so far, unlike earlier builds.
[Huawei Mate 9 Questions & Answers] cr2:
Ths gpsd from S8+ can't be loaded now because it is missing the dynamic symbols.

I will post the list, but the API needs to be investigated in more detail,

otherwise gpsd may load, but crash on wrong pointers and structures.
[Huawei Mate 9 Questions & Answers] pkoldig:
Maybe fixed with build 185

I got my Mate 9 Pro back in January, and it worked flawlessly with both the Runkeeper and Strava sports tracker apps (for both cycling and running).

February 13th 2017 was the last good day, and after that I had these errors readings (spikes) at best and crashes at worst. I seem to recall it may have been around the time of the b152 update. I had tried al recommendations by the sports tracker FAQs and everything in this thread, except from rooting and updating with pre-released firmware.

I strongly suspect the b152 introducing bugs in the GPS readings, and effectively it rendered all sports trackers useless. I was about to get blacklisted by Strava community, due to topping the ranks at certain segments at +115km/h (no downhill or tailwind)

Clearly a result of error readings on the phone, and I was forced to acquire a cycling computer with sync to Strava to get back on track with my sports tracking. This morning the b185 EU version was released to my mate 9 pro. I instantly upgraded, and first thing I did the same morning was to make my usual 30 km ride to work with both Runkeeper and Strava enabled.

Guess what – IT WORKS. Measurements are exactly as when I purchased the phone, and matches my Wahoo cycling computer. I don’t know what Huawei did, but apparently, they have fixed something.

Conclusion: Not a hardware bug,- and solved by recent update. Some in this thread says they experienced improvements already with b172. Don't know about that, but b185 did the trick for me.
[Huawei Mate 9 Questions & Answers] RR-99:
Good to hear that the random jumping fault has been fixed. Now it will work like any other phone.

But is it now using Galileo and Beidou as Huawei claim?
[Huawei Mate 9 Questions & Answers] cr2:
The googel page about raw GNSS measurements has a lot of wrong and misleading information about the phones:

https://developer.android.com/guide/topics/sensors/gnss.html#supported_devices

but at least they are honest about their own devices

(Pixel and Nexus).

These are ages behind the chinese and korean

models using BCM4774 (which are broken only in the Galileo and Beidou support),

and also u-blox (which supports everything properly, but no handset manufacturer

uses their M8 chipsets).
[Huawei Mate 9 Questions & Answers] RR-99:
I decided to trade my Mate 9 in for a Samsung S8+

Very pleased with the deal, much more visible screen in a smaller package.

Just for reference, here is the GPS Test display showing Galileo and Beidou.

27 satellites received, 26 used. Accuracy 2m.
[Huawei Mate 9 Questions & Answers] george_lol:
I use my Mate 9 daily as a Uber and Lyft driver. I've had issues with lost tracking in Google Maps and another app called Triplog2 but not in Uber or Lyft. It appears to happen only after I've used maps to scroll around for a number of minutes looking for things on the map. Unpredictably out of the middle of nowhere the device will reboot, luckily, not while I'm driving. During my day there are 5 apps tracking me via GPS. Also, I find Waze to be slow on street corner turn recognition on its map and sometimes slow in notification of an upcoming turn.
[Huawei Mate 9 Questions & Answers] hanskie:
It was an app issue. Now, after my suggestions it was corrected and it looks like in the attachment.
[Huawei Mate 9 Questions & Answers] cr2:
The vendor.img for Honor 9 includes a newer version of glgps4774 (from March 2017), which i did not see in the Mate 9 updates:

3e71e2d7813875c2e6062da1ec78744e glgps4774
@(#)Broadcom GLL ver. 64.19.20 287814, 2017/Mar/30, 23:50:34, sardine://depot///depot/client/core/rel/Huawei/19.CLU3.CLL5.4_64.19.20.272405
[Huawei Mate 9 Questions & Answers] cr2:
Geo++ GmbH has published the "Geo++ RINEX Logger" at google playstore https://play.google.com/store/apps/details?id=de.geopp.rinexlogger

This is probably the best scientific tool you can use to evaluate your GPS receiver accuracy.
[Huawei Mate 9 Questions & Answers] palatkik:
This is an interesting app. What tools do you use to study the Rinex data can you recommend?

I have tried uploading to various free RINEX/ITRF processing services on web to get a result tied into ITRF (for what its' worth? What is it worth I wonder??).

There are only 4 free services I know at (Nat Res Canada, Auspos, TrimbleRTX and Noaa OPUS) but only Nat Resources Canada processes the Mate9 RINEX data, as all other services require dual band GPS data. Is there another way I can compare the Nat Resources Canada results? I have tried several 65 minutes RINEX data collections on a point and found the results from Nat Resources Canada ITRF processing only within 10-15 meters of each other, so no better than usual from a mobile phone fix.
[Huawei Mate 9 Questions & Answers] palatkik:
Does this still work for you? It only logs small files and only in Synced mode for me since they updated version?
[Huawei Mate 9 Questions & Answers] cr2:
Yes, it works for me and the latest version has fixed the RINEX2.11 bugs seen in the 1.03 version.

---------- Post added at 05:04 PM ---------- Previous post was at 04:41 PM ----------

RTKLIB is the most commonly used (free and open source!) tool used for processing RINEX data http://rtklib.com

If you want to deal with Galileo or Beidou then it is better to use the latest 2.4.3b29 version.

ITRF is the real scientific version of what is commonly named WGS-84. If you are really interested in the absolute centimeter accuracy you should learn how to deal with ITRF.

There are 2 main precise positioning processing modes: RTK (differential) and PPP ( read https://wiki.openstreetmap.org/wiki/RTKLIB for more details ).

The services you have mentioned are using PPP and to achieve the accurate results they need a dual (or triple+) frequency RINEX data.

Broadcom has announced the BCM4775x chipset for dual frequency GPS+Galileo (L1/E1 + L5/E5) but it will take some time (years?) before appearing in the smartphones.

The main disadvantage of RTK is that you need a second GNSS receiver in close proximity (10-20 km), which should provide you with its RINEX (raw) data.

Depending on your location it may be a problem (or you need a second stationary RINEX-capable receiver, for example from u-blox).

I can provide more technical details, but it probably does not fit well into this thread.
[Huawei Mate 9 Questions & Answers] palatkik:
Perhaps it is Mate-9 build related? What build do you use? My device was automatically updated to B189 a few weeks ago, since when the Geo++ RINEX app is acting differently? Before that with the previous build the results of Geo++ RINEX app seemed OK.

I have noticed now on my Huawei Mate 9 the Geo++ RINEX app now gives much smaller output files such as 400kb now vs 3mb previously for a similar recording period. The display of the app shows Logging Time as much less than since the time I started logging such as 00:03:41 hours min sec logged since starting recording almost 40 minutes previously.

Do you think there is some setting in the Mate9 to overcome this or am I stuck?
[Huawei Mate 9 Questions & Answers] palatkik:
As a followup, how much data period of time can you successfully log?

If I try one or two hours of logging I think my Mate-9 seems to stop logging if I leave the device alone whilst logging. The screen blanks out as normal, if I turn screen on again within seconds of screen blanking out the logging seems to continue, but if I wait around half an hour after screen has blanked out the Mate-9 seems to have only logged another 5 minutes Rinex data from time of screen blanking out and stopped logging any more after that. Is there a work around for this I wonder? Never happened with my previous build.
[Huawei Mate 9 Questions & Answers] cr2:
The old B182 based custom ROM.

I'd like to know this too, but Broadcom has hidden the internal details very well.

---------- Post added at 05:55 PM ---------- Previous post was at 05:52 PM ----------

I have successfully logged for many hours using external power supply while driving my car. Let me find a free minute and process the logs, then i will provide more details.
[Huawei Mate 9 Questions & Answers] palatkik:
OK. I have successfully logged for more than 1 minute, say 1 or 2 hours BUT only if the screen is on at all times. With Mate 9 this can be done with ext power connected but on battery max settings for screen time out is 30 minutes I think but normally I have it set to default 15 seconds. As soon as screen goes off the RINEX logging stops after about 30 seconds later.

The other useful app GNSS logger also behaves the same on the Mate 9. The onscreen app plot shows the satellite logging channels as flat line during periods when screen has shut off. There seems no way around running these apps on Mate-9 without the screen on throughout - I have optimized both apps in power settings? Attached is a screen plot from this app after I just turned screen on again.

https://xdaforums.com/attachment.php?attachmentid=4331940&stc=1&d=1510636255
[Huawei Mate 9 Questions & Answers] joffhk:
Reply from Huawei

I haven't been able to "see" a Galileo satellite on my Mate 9 (using the usual test apps) so complained to Hauwei. Here's the reply:

"Pertaining to your inquiry, the Galileo satellite navigation system is supported on the HUAWEI P10, P10 Plus, MATE 9, and HONOR 8 Pro. However, recent instabilities in the Galileo system have resulted in some smartphones being unable to locate a signal from Galileo satellites. Huawei is working actively with relevant parities to resolve this issue. Check regularly for system updates which may provide a fix for the problem. This issue does not affect the normal use of GPS, BeiDou and GLONASS positioning systems on your phone"

Not sure I believe them though!
[Huawei Mate 9 Questions & Answers] robogo1982:
Why wouldn't you? Galileo has been having issues since its release so this would be no surprise. I don't see any Galileo satellites neither, but I'll ask a friend with the S8+ to check for me.
[Huawei Mate 9 Questions & Answers] hanskie:
This is the old one screenshoot from S8+

http://cloud.tapatalk.com/s/58fa53b0455e8/Screenshot_20170421-202504.jpg?
[Huawei Mate 9 Questions & Answers] robogo1982:
Well, I have to confirm your suspicion. My friend can see Galileo satellites on his S8+ whereas my Mate is refusing to cooperate at the moment.
[Huawei Mate 9 Questions & Answers] hanskie:
More interesting is that the new Mate 10 has got the same problem with GPS - he doesn't see Galileo satellites. In official specification are only GPS, glonas and beidou.
[Huawei Mate 9 Questions & Answers] palatkik:
The latest ver of the Rinex app v1.2.1 has an option to keep screen on. I tried it and now the Mate-9 works with this app again since Huawei updated my build to B189. Without screen on, Rinex logging is blocked.
[Huawei Mate 9 Questions & Answers] 5[Strogino]:
Caught QZSS (Japanese Quazi-Zenith Satellite System)

Number 194 on screenshot. But it didn't used anytime (probably by priority).
[Huawei Mate 9 Questions & Answers] cr2:
These are marketing people from huawei propadanda division, and they have no clue what they are talking about, when it comes to the actual hardware technology.

I did more research using glgps4774 and gpsd from S8+ and here are my conclusions.

Huawei and Samsung as big OEMs have licensed and obtained exactly the same (binary and proprietary) Broadcom SDK (under NDA) and added some customizations.

It includes the LTO parser, which only supports GPS,GLNS,QZSS and BDS (so there is no LTO support for SBAS=EGNOS+WAAS and GAL).

The SDK supports 3 API layers: high level (controlled by the XML config file parameters), middle level (C++ interface) and low level (MEIF packet interface).

The SDK can support 96 tracking channels and 3 frequency bands (L1, L2C and L5).

That means the SDK has software support for 32 L1/E1 channels, 32 L2C channels and 32 L5 channels. IMHO the actual BCM4774 hardware supports only

32 L1/E1 channels.

What can be done ?

1. Document the XML config file tags and attributes.

2. There is some basic support for MEIF packet protocol at https://redmine.replicant.us/projects/replicant/wiki/BCM4751 . It can be extended with some minor effort to cover all BCM4774 packet types.

3. It should be possible to enable the TrackingMgr debug logging output (internal tag 0x97) using proper logging parameters in the XML config file (which ones?). Then it should be more clear why do the GAL and BDS Svids have such low priority, and why are the tracked SBAS Svids are being ignored.
[Huawei Mate 9 Questions & Answers] cr2:
The glgps4774 in OREO is the latest known version:

22a7764a4d5e022d6a9d212278f8a4ab
@(#)Broadcom GLL ver. 64.19.20 306455, Sep 20 2017, 06:17:17, sardine://depot/client/core/rel/Huawei/19.CLU3.CLL5.4_64.19.20.272405/...

I don't know what they are smoking at Huawei/Broadcom, but their built-in Galileo almanac still has 12 satellites and starts at E8 (ignoring E1,E2,E3,E4,E5,E7)

and the tracking engine reserves 30 channels for GPS, 4 for SBAS (with completely outdated and irrelevant almanacs) and 22 for GLONASS out of hardcoded 59:

NumGnss:{GPS *>=30, SBAS *>=4, GLNS *>=22, QZSS 0>=0, IMES 0>=0, BDS 0>=0, GAL 0>=0, NNV 0>=0}

These numbers can be patched directly in the binary, but i have no idea if it will properly work afterwards.
[Huawei Mate 9 Questions & Answers] Sasa_Jevric:
My mate 9 after Oreo 361 update can see Gallileo, five or six of them
[Huawei Mate 9 Questions & Answers] 5[Strogino]:
Good news. Can you post screenshot? What's app did you use?
[Huawei Mate 9 Questions & Answers] Sasa_Jevric:
I use GPS test. I would post screenshot, but i don't know how?
[Huawei Mate 9 Questions & Answers] 5[Strogino]:
It is easy. If you are using PC - go to advanced reply / attach files / manage attachments

If you're using XDA client - just click at button with clip icon
[Huawei Mate 9 Questions & Answers] Sasa_Jevric:
Here you go

I was using xda via crome browser so i couldn't add screenshoot, now i am on xda app

Accurasy is much better then this app said
[Huawei Mate 9 Questions & Answers] cr2:
The Oreo glgps4774 binary is missing some newer shared libraries, but i will try to sort it out without installing full Oreo:

HWMHA:/data/gps # ./glgps4774.ore
CANNOT LINK EXECUTABLE "./glgps4774.ore": library "android.frameworks.sensorservice@1.0.so" not found
Aborted

/lib64/hw/vendor.huawei.hardware.sensors@1.0-impl.so
/lib64/vendor.huawei.hardware.sensors@1.0.so
[Huawei Mate 9 Questions & Answers] tiennemannes:
May you share the patched binaries please?
[Huawei Mate 9 Questions & Answers] cr2:
I don't want to post the binaries where you don't know what i have changed and why i have changed that. Let me describe the possible modifications, so we can decide on the best strategy.
[Huawei Mate 9 Questions & Answers] tiennemannes:
Sure. Or you pm me