yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 Questions & Answers] palatkik:
I have written to Huawei support Singapore about the appalling results I get when using the Huawei Health app that comes out the box with the Mate-9. For example yesterday I cycled 20km and it totaled the result to 54km with spikes all over the place! They came back with the reply below which leaves me none the wiser.

Dear nnnn,

Thank you for connecting Huawei. We do really feel shamefaced for your bad experience with our products.

We will highlight your concern to the respective department. We truly appreciated for your time to provide us about your feedback. Your valuable feedback will definitely become the direction for us to improve our product and services. Once again, thanks for choosing Huawei and hope that you will support us continually. Cheers!

Should you have further enquiries, please do not hesitate to contact us for further inquiry, via Facebook at Huawei Mobile MY or hotline at 1800 22 0086 from Monday to Sunday 9:00am to 9:00pm including public holidays.

Thank you & best regards,

C....

Huawei Support Team.

---------- Post added at 02:05 PM ---------- Previous post was at 01:59 PM ----------

One thing I notice is that if I am walking or driving with a health fitness app the results are far better with next to no spiking of track position. I am not sure why this should be?? Only when cycling are results completely poor. I have not tried any other kind of activity but suppose cycling is the most erratic form of movement out of the three I have tried. I note the other poster hanskie was also having problems when skiing which involves sudden movement changes likewise? Could this be a common reason?
[Huawei Mate 9 Questions & Answers] henrik.dk:
I don't know whether you could push them to get the case number.

When you hold your phone in different ways, the strength of GPS signal could be different. This is probably the cause of false sudden movement.

The issue could be reproduced easily just holding the phone and rotate yourself indoors for a minute using huawei health. The spike is there then.

The polite response from their service is meaningless, we should simply ask them whether their engineers have reproduced the error or any assistance they need to reproduce it to ensure proper action on it.

Let them know that you will return it as there is error in the GPS and you could easily show it to your dealer to prove it.

Actually I bought mate 9 for the Galileo support and bigger screen. They are struggling in the mobile business and support much be improve to stay competitive. I might write to the technical support as well even though I only use GPS for driving.
[Huawei Mate 9 Questions & Answers] RR-99:
Kudos to those who have taken up the issue with Huawei support. That is the only way to make them look at this serious design fault.
[Huawei Mate 9 Questions & Answers] hanskie:
If You hold your phone on stable position the distance measure and position is correct, but if you take the phone in your hand and swing them for some time then you wil see this issue. When you are on bike, run or skiing then your body (with phone) is swinging.
[Huawei Mate 9 Questions & Answers] palatkik:
Today I had an acceptable result from the Mate-9 on a vigorous cycling exercise by doing two things:

1. I switched off high accuracy GPS/GSM/Wifi mode and used GPS only mode. I figured there was no way the previous spikes I was getting in position was due to GPS and maybe from GSM positioning was interfering with the GPS accuracy?

2. I attached the Mate-9 to a part of my body that didn't shake so much. Previously I had always had the Mate 9 in a pant leg pocket but this would have meant the Mate-9 was continuously moving up and down about its own axis as I peddled. I placed it near my navel on my waist line just above the saddle where I sat.

I will continue this in future to see if the improved result repeats and maybe I can live with that for now. I wonder what it is that causes the error because of the shaking?
[Huawei Mate 9 Questions & Answers] gm007:
Could be the pre installed compass interfering with gps?

Maybe disable it and try?
[Huawei Mate 9 Questions & Answers] hanskie:
You can't disable compass. There is no option to disable it.

Wysłane z telefonu Mate 9
[Huawei Mate 9 Questions & Answers] gm007:
Uninstall :)
[Huawei Mate 9 Questions & Answers] hanskie:
Yes, with a screwdriver :)

Wysłane z telefonu Mate 9
[Huawei Mate 9 Questions & Answers] applehater00:
I don't see what the issue is. Normally when I run lets say 10k my fitness tracker shows 10k. If it were to show 54km I'd be delighted that despite running 10k a whopping 54k is logged. It'd do wonders for my average speed and personal best. It just goes to show the innovation of Huawei for not only making a phone with a great screen, battery etc, but their ability to push you beyond your limits in fitness and give you rewards beyond your wildest dreams. If I were Huawei I'd advertise it. As the saying goes: it's not a bug, it's a feature.
[Huawei Mate 9 Questions & Answers] RR-99:
LOL !

I hope Huawei are following this thread and realise their big mistake in not fixing the GPS. How many people have read this and changed their mind about buying the Mate 9?
[Huawei Mate 9 Questions & Answers] palatkik:
Huawei has releases new build B172 to "optimize system performance and stability" - anyone know what the details are? Related to this GPS stability maybe?

I will test it next week.
[Huawei Mate 9 Questions & Answers] palatkik:
I got some feedback from Huawei that I should change the battery settings to

>Battery>CloseAppsAfterScreenLock>then select all the GPS health apps I use to "don't close".

I did this and also my build updated anyway to B172. Not sure if either or both changes did it but now on day one since the changes I notice no more bad spiked GPS track data when device is steady or shaking using GPS only mode on various health apps (I used Huawei Health and SportyPal). I will follow up if this changes but so far so good.
[Huawei Mate 9 Questions & Answers] user4774:
This answer is much closer to the reality, than you think. We can't really blame the chinese for BCM4774 operation, it is BROADCOM that is not providing any useful technical information about their receiver.

This may be an intent of Huawei, but is a false statement. They waste a lot of resources for tracking GLONASS, which they never use for positioning (i have never seen a case where you had less than 4 GPS satellites visible, and > 4 GLONASS).

Please ask Huawei Customer Services, how to switch off the GLONASS reception on Mate 9. There are some undocumented $PGLOR commands which may do the job,

but i must admit that our chances are pretty slim that BROADCOM will provide us (or actually Huawei) with this information.

Judging from my observations, Galileo usually gets only one correlator slot (the last one, after GPS and glonass) and is thrown away if there are many GLONASS satellites visible.

We need to find a way to disable GLONASS reception, then it should be possible to use GALILEO.
[Huawei Mate 9 Questions & Answers] Swan Princess:
Some smart Russians are working away on disassembling and understanding that BCM4774 chip here, thread is mostly in Russian but I hope you can make some sense of it. https://forum.openstreetmap.org/viewtopic.php?id=9451&p=84 Seems there are a lot of interesting things uncovered, when you dig a little deeper ;)
[Huawei Mate 9 Questions & Answers] RR-99:
Which other phones use the exact same Broadcom chip? It would be good to see if/how they use Galileo.
[Huawei Mate 9 Questions & Answers] user4774:
As far as i know Huawei Honor 8, Mate 9 and P10. Maybe Samsung Galaxy Note 7.

It is the same implementation based on glgps4774 and its configuration file gps4774config.xml

Many older phones use BCM47531A which supports GPS, GLONASS and Beidou.
[Huawei Mate 9 Questions & Answers] RR-99:
Presumably the other Huawei phones will use it in the same way as the Mate 9.

We really need to see results from a Samsung phone that definitely uses the same chip.
[Huawei Mate 9 Questions & Answers] user4774:
If you will find a different version of glgps4774, then post the MD5 hash here.

For B156-based ROM:

HWMHA:/data/data # md5sum /vendor/bin/glgps4774
77b4491dc70e0f0a047fbe8c0b22fb53 /vendor/bin/glgps4774

The android code has no influence on the GPS performance, which depends only on /vendor/bin/glgps4774

(a C++ program written by Broadcom) and the tags and attributes in its config.xml
[Huawei Mate 9 Questions & Answers] 5[Strogino]:
MHA-L29C636B158 - same md5
[Huawei Mate 9 Questions & Answers] Geeky87:
Google maps are pretty fast and smooth on my mate 9 but it overheats the phone and battery drains much faster than usual
[Huawei Mate 9 Questions & Answers] t3.fi:
Having similar issues with sports tracker and nonsense locations also from google location history. I noticed that the issues seem to be associated with magnitude of shaking the phone is receiving. Was able to record smooth track while driving car but when started to give it some tapping against other hand the missreadings start to appear. So might be related to gyro data etc and though also where you keep the phone during sports. Could any of you try to confirm the same?
[Huawei Mate 9 Questions & Answers] palatkik:
Yes, exact same problems, I've since done https://xdaforums.com/showpost.php?p=71692856&postcount=131 and so far no more problems but I've only until now had chance to try on two occassions due to being too busy...
[Huawei Mate 9 Questions & Answers] Willyman:
I get very frequency warnings in Google Maps that my compass is poorly calibrated. Even after calibration, it gets worse again over time. I don't recall ever seeing this more than maybe once on other android phones...

Anyone else get this?
[Huawei Mate 9 Questions & Answers] user4774:
I have checked the BCM4774 gps and lhd daemons in Honor 8 and Note 7 ROMs. Honor 8 uses older codebase and does not (officially) support Galileo.

Note 7 has 2 daemons (/system/bin/gpsd and /system/bin/lhd), but the filesystem layout looks a bit different. The config .xml enables Beidou and Galileo simultaneously.

Looking forward for the vendor partition dump from P10 now.
[Huawei Mate 9 Questions & Answers] ewingr:
I'm hoping to hear you and others report success with this. I want to get this phone...but not if the GPS remains poor. I'm getting anxious :p

Keep us updated.
[Huawei Mate 9 Questions & Answers] intruda119:
I didnt know gps was an issue with hte mate 9.

Is it only the compass?

---------- Post added at 12:32 AM ---------- Previous post was at 12:32 AM ----------

I didnt know gps was an issue with hte mate 9.

Is it only the compass?
[Huawei Mate 9 Questions & Answers] user4774:
The B182 has an update for the /vendor files, including glgps4774, but it looks like the same recompiled codebase

# md5sum glgps4774
f2d16a4a464adaa24ee0c61710cd7234 glgps4774
@(#)Broadcom GLL ver. 64.19.20 279029, 2016/Dec/06, 19:39:57,
sardine://depot///depot/client/core/rel/Huawei/19.CLU3.CLL5.4_64.19.20.272405/

The old one was

# md5sum glgps4774
77b4491dc70e0f0a047fbe8c0b22fb53 glgps4774
@(#)Broadcom GLL ver. 64.19.20 274479, 2016/Oct/07, 20:14:33,
sardine://depot///depot/client/core/rel/Huawei/19.CLU3.CLL5.4_64.19.20.272405/
[Huawei Mate 9 Questions & Answers] Swan Princess:
Any notable differences in the GPS' function then?
[Huawei Mate 9 Questions & Answers] user4774:
I have not tried it yet.
[Huawei Mate 9 Questions & Answers] RR-99:
Please do try it...
[Huawei Mate 9 Questions & Answers] palatkik:
I'm still on B172 and my device says there are no more updates. Since Huawei updated me to this build about 3-4 weeks ago I have done up to 200km of GPS related exercise tracks and all have been faultless. On previous builds the track data was spiking all over the place, now its all OK.
[Huawei Mate 9 Questions & Answers] RR-99:
That's great news, I'm still waiting for B172.

What do you see with the GPS Test app? Do you see more Galileo stats?
[Huawei Mate 9 Questions & Answers] user4774:
The only visible bug fix is for the glonass sat numbers: they are properly mapped into 1-24 range, instead of the 100+FCN before.

I did not see any Galileo sats today and my personal simultaneous top number is 2 (E22 and E30).

If your phone is rooted, the Beidou satellites are visible and you have access to /data/gps/gldata.sto , please post this file here

for further analysis.

WARNING: remove the line starting with @^@ps if you value your privacy, because it stores your location.

I have already successfully decoded the @^@ps (position) and @^@am (almanac for GPS,GAL,GLO) records and trying to comprehend the

@^@ef tag for the ephemeris data. Unlike the almanac is seems to be bitpacked, and tough to understand :eek:

Hand-crafted Galileo almanac records may help to boost the Galileo reception, but it is better to have proper ephemeris records.
[Huawei Mate 9 Questions & Answers] RR-99:
Thanks. Mine isn't rooted, but thanks for what you have done. Looks like the Huawei guy was right when he said they weren't going to fix it for Galileo.
[Huawei Mate 9 Questions & Answers] hanskie:
For your information now I'm on bed at home in my bedroom and I can see on my new Samsung Galaxy s8+ 6 Galileo satellites. Mate 9 was a great smartphone but this gps:(

Wysłane z mojego SM-G955F przy użyciu Tapatalka
[Huawei Mate 9 Questions & Answers] user4774:
This can be "fake" pictures based on the almanac data visualization :confused:

If you want to be sure, download the GNSSLogger.apk from

https://github.com/google/gps-measurement-tools/tree/master/GNSSLogger

and save the raw pseudorange measurements and navigation data.

It can be postprocessed like described here http://rokubun.cat/2016/06/30/android-n-preview-gnss-measurements

and you will be the first one using it on Galaxy s8+ :cool:
[Huawei Mate 9 Questions & Answers] hanskie:
Could you explain me how to find this gnsslogger.apk because i can not fint it on this site that you mentioned.
[Huawei Mate 9 Questions & Answers] user4774:
Sorry, the APK link is

https://github.com/google/gps-measurement-tools/releases
[Huawei Mate 9 Questions & Answers] RR-99:
When you are outside in the open with your s8+, how many satellites are listed by any of the GPS test apps?

I've noticed that the Mate 9 never shows more than 20 sats available, even when there must be more visible in the sky from all the different constellations.
[Huawei Mate 9 Questions & Answers] hanskie:
[MENTION=4947133]RR-99[/MENTION]

In short test I saw 25 active from 30 visible satellites.

Below screenshot from GPSTest.

http://cloud.tapatalk.com/s/58fa53b0455e8/Screenshot_20170421-202504.jpg?

Wysłane z mojego SM-G955F przy użyciu Tapatalka
[Huawei Mate 9 Questions & Answers] Swan Princess:
That might be the chips limitation. We need to find the thing that makes GPS sats the default lock on mechanism and change it to Galileo! As my current lousy phone gets two more meters of accuracy, then Mate 9 :P
[Huawei Mate 9 Questions & Answers] RR-99:
Thanks for your test. That confirms to me that the Mate 9 does not use Galileo as it should.

Good move to change to the S8+. I'm going to wait for the Note 8.
[Huawei Mate 9 Questions & Answers] user4774:
This screenshot looks very interesting, but some things look really strange:

Is it a european model with Exynos+BCM4774 or US version with Snapdragon 835 ?

There are doubles in the Galileo and Beidou satellite ids.

Can you provide me the GNSSLogger logs (maybe as PM) for the analysis ?
[Huawei Mate 9 Questions & Answers] hanskie:
It's European exynos. Below is a log from gnsslogger. Thank you for your interest in.http://cloud.tapatalk.com/s/58fad5f98d6d1/pseudoranges_log_2017_04_21_20_18_13.txt

Wysłane z mojego SM-G955F przy użyciu Tapatalka
[Huawei Mate 9 Questions & Answers] user4774:
Thanks, now we have hard numbers to talk about. It is reasonable to assume that Samsung uses BCM4774 like Mate 9,

but this stays to be confirmed.

I see the 'Raw' line entries, which refer to the "Measurements" button, but no 'Nav' line entries for "Navigation messages".

Did you enable it too ?

Anyway, the provided Raw messages are for 12 GPS satellites (G4,5,10,16,18,20,21,25,26,29,31)

https://en.wikipedia.org/wiki/List_of_GPS_satellites,

10 Glonass satellites (R6,7,8,12,13,14,21,22,23,24)

https://en.wikipedia.org/wiki/List_of_GLONASS_satellites,

6 Beidou satellites(B5,6,9,11,13,14)

https://en.wikipedia.org/wiki/List_of_BeiDou_satellites,

and 3 Galileo satellites (E1,8,26)

https://en.wikipedia.org/wiki/List_of_Galileo_satellites

Still no QZSS (i have seen it on Mate 9) and EGNOS :p

While the Glonass and Galileo lists look reasonable, the presence of "dead" G4 and B13, which are definitely not operational,

raise a lot of questions :o :confused:

Can you enable the NAV messages logging in GNSSLogger (if it will work) ?

Then we can check the actual orbit parameters, if they are real or not :cool:
[Huawei Mate 9 Questions & Answers] hanskie:
[MENTION=8180641]user4774[/MENTION]

There is a file with all data (only without location).

http://cloud.tapatalk.com/s/58fb8d49e5e9f/pseudoranges_log_2017_04_22_18_20_37.txt
[Huawei Mate 9 Questions & Answers] user4774:
Great, now everybody can see how buggy is the software for the Broadcom chipsets on Huawei and Samsung phones.

Today i had nonexistent G4 satellite in the GPSTest output table, but not in the "Raw" list. So it comes from the outdated built-in ROM almanac :silly: :rolleyes:

and has priority over Galileo. I stayed 15 minutes in the open field tracking E11, but the dumb glgps4774 did not even update the NV Galileo almanac :crying:

I wish Samsung and Huawei were not so greedy, and used the really good GNSS chipset from Swiss company u-blox in their phones, instead of **** Broadcom.

PS. The Samsung gpsd used on S8+ is a bit newer than glgps4774 on B182

@(#)Broadcom GLL ver. 64.19.20 279634, 2016/Dec/15, 00:00:55,
sardine://depot/client/core/rel/Samsung/Grace/MR/Grace_19.CLU3.CLL5.4_60.19.20.278168
[Huawei Mate 9 Questions & Answers] Swan Princess:
Can we do something about it, to improve the almanac? U-blox is amazing, but we have to work with what we've got. How difficult would it be to achieve 1 meter of accuracy outdoors? What steps do we need to take?
[Huawei Mate 9 Questions & Answers] user4774:
There are 4 groups of GPS configuration parameters in /vendor/etc/gps4774config.xml (/system/etc/gps.xml on S8+):

<hal>, <gll>, <gll_features> and <job> (maybe also <notch_filter>).

We can try to derive the schema and controlled dictionaries employed by this XML, using available config files and binaries.

EnableGalileo="true"/"false" and EnableBeidou="true"/"false" belong to the <gll_features>.

I have added <startup ignore_rom_alm="true" /> to the <job Id="Periodic"> section, maybe it will help with dead satelites

<job Id="Periodic">
<task>
<startup ignore_rom_alm="true" />
<req_pos/>
</task>
</job>

Very hard, because of the bad built-in antenna.

You can modify the GNSSLogger code to output RINEX and use standard tools, or use the matlab/ipython code from the same

github repository. This is a pretty scientific task.
[Huawei Mate 9 Questions & Answers] Swan Princess:
Well, what if you just disable all GNSS systems, but Galileo. Force the phone to use it and it alone? Delete any almanacs and let the chip rebuild them? I'm no scientist, I'm a stormchaser!
[Huawei Mate 9 Questions & Answers] user4774:
I'm not aware of any EnableGPS="false", EnableGlonass="false" or EnableSBAS="true" tags.

They simple do not exist, and this is the exact problem.

It does not happen on my phone: 1 Galileo satellite is available for hours, but the full almanac is not stored into NV (/data/gps/gldata.sto)

for some reason. And the navigation subframes are not output by GNSSLogger (also on S8+).

As i have said, buggy Broadcom software :crying: :crying:
[Huawei Mate 9 Questions & Answers] Swan Princess:
Buggy indeed! But I am sure we will overcome it eventually. You seem like you really know your stuff, while I am just a simple power user :>
[Huawei Mate 9 Questions & Answers] RR-99:
But the antenna only affects the sensitivity, not the selection of satellites. And Galileo is supposed to have a higher field strength.

It is the software that is preventing the use of Galileo.
[Huawei Mate 9 Questions & Answers] palatkik:
Sorry for delayed reply, been busy. With the newer build (B172 - updated without explanation by Huawei OTA) I don't see any of the Chinese, Japanese or European satellites anymore in GNSS aps such as with the GPS Test app or the GnssLogger apk provided on this thread (thanks). I used to see these before on older builds.

So now I just have GPS and GLONASS but the data fixes are as good as I was getting on my old Samsung Note 2 again and that is what makes me happy. No longer am I getting track reports that are tens of kilometers in error. Now it is down to meters.

Chinese progress!
[Huawei Mate 9 Questions & Answers] RR-99:
Thanks for the report. I'm glad you are happy with your tracks.

But I'm not happy that they haven't allowed us to use Galileo.

It would have improved the accuracy of location reporting. Most importantly, when the sky is partly blocked in urban canyons or under trees, you need as many satellites as possible to be visible in the parts of the sky that are open.

Huawei should

not

be advertising that the Mate 9 uses Galileo when it does not.
[Huawei Mate 9 Questions & Answers] 5[Strogino]:
I have no Beidou and Galileo at this moment too.

MHA-L29C432B182
[Huawei Mate 9 Questions & Answers] palatkik:
Another problem I am having with GPS tracking/fitness apps since start is the app just switches off during the exercise and says I completed it before I actually did. It only happens about 5% of the time. Anyone else notice this with Mate-9?
[Huawei Mate 9 Questions & Answers] palatkik:
My apologies it seems I made a mistake from not using the device enough. Since the build update (B172) my Mate-9 still tracks European and Chinese satellites, maybe even Japanese(?) but a lot less frequently. Until now I first noticed a single Chinese satellite last night (gone again now in daytime) and now I see a European satellite (SVID=9 Constellation =6 on the GNSS Logger app from this thread) - I have not yet seen the Japanese satellite I used to see a lot before in earlier builds. But almost entirely the rest are US and Russian. I am currently checking this in SE Asia.
[Huawei Mate 9 Questions & Answers] RR-99:
OK, thanks for letting us know. :)

But it looks like they still haven't fixed it for us to use Galileo.

I'm still waiting for B172.
[Huawei Mate 9 Questions & Answers] cr2:
Can you post the code for decoding these messages ?

I have some mixed and unpredictable results working with Galileo and Beidou satellites.

It is also surprising that nobody ever seen the WAAS and EGNOS satellites, and Broadcom with their OEMs like Samsung and Huawei does not seem to care.
[Huawei Mate 9 Questions & Answers] Swan Princess:
Uberderp! You won't see them either, as WAAS uses a network of ground-based reference stations, in North America and Hawaii! It's not a satellite! Same goes for EGNOS, just in Europe. I doubt our phone receivers can correlate with the ground based location networks besides A-GPS?