barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.78k stars 364 forks source link

Satellites not showing up on Wahoo device #689

Closed utack closed 3 months ago

utack commented 3 months ago

Describe the bug On my Wahoo Android device the satellite list is empty, despite an existing fix

To Reproduce Steps to reproduce the behavior:

  1. Load GPSTest 3.10.3 from F-Droid onto a Wahoo Roam v2 device via adb (adb install com.android.gpstest.osmdroid_24097.apk)
  2. Start the App via adb (monkey -p com.android.gpstest.osmdroid 1)
  3. Give permissions to the app (pm grant com.android.gpstest.osmdroid android.permission.ACCESS_FINE_LOCATION)

Expected behavior The list of satellites shows up

Observed behavior The list stays empty despite an existing GPS fix

App, Device and Android version:

see above

Screenshots:

adbcontrol_screenshot (weitere Kopie)

Would be much appreciated if I can somehow see which satellites it uses

NMEA looks like this

07-31 18:13:05.178 1636 1824 D GpsOutputNmea: 1722442385,$GPGGA,161305.00,XXXX.XXXX,N,XXXXX.XXXX,E,1,09,1.4,571.9,M,46.9,M,,*64 07-31 18:13:05.180 1636 1678 D GpsOutputNmea: 1722442385,$GNGLL,XXXX.XXXX,N,XXXXX.XXXX,E,XXXXXX.XX,A,A*72 07-31 18:13:05.181 1636 1803 D GpsOutputNmea: 1722442385,$GNGSA,A,3,05,07,09,,,,,,,,,,2.5,1.4,2.1,1*3B 07-31 18:13:05.185 1636 1806 D GpsOutputNmea: 1722442385,$GNGSA,A,3,69,79,80,,,,,,,,,,2.5,1.4,2.1,2*3A 07-31 18:13:05.185 1636 1824 D GpsOutputNmea: 1722442385,$GNGSA,A,3,19,34,36,,,,,,,,,,2.5,1.4,2.1,4*3F 07-31 18:13:05.189 1636 1824 D GpsOutputNmea: 1722442385,$GNRMC,161305.00,A,XXXX.XXXX,N,XXXXX.XXXX,E,X.X,XXX.X,XXXXXX,,,A,V*33

barbeau commented 3 months ago

Interesting! That device doesn't seem like an official Android release, so it probably just doesn't support the GnssStatus API that powers that UI.

Unfortunately there isn't anything I can do about this, you would have to ask the device manufacturer to add support for that API.

utack commented 3 months ago

Unfortunate, thank you for checking!
Is there any "adb" way to determine which constellations it supports or has a lock on?

goldfndr commented 3 months ago

I see $GNGSA in the NMEA output, is there ever $GNGSV (or $GPGSV)?

utack commented 3 months ago

Nope, there is not :(

NMEA,$GPGGA,081201.00,4805.0526,N,01133.0367,E,1,05,1.9,583.2,M,46.9,M,,*66,1722499920
NMEA,$GNGLL,4805.0526,N,01133.0367,E,081201.00,A,A*77,1722499920
NMEA,$GNGSA,A,3,67,73,81,,,,,,,,,,4.7,1.9,4.3,2*32,1722499920
NMEA,$GNGSA,A,3,27,32,,,,,,,,,,,4.7,1.9,4.3,1*39,1722499920
NMEA,$GNRMC,081201.00,A,4805.0526,N,01133.0367,E,1.7,297.0,010824,,,A,V*3F,1722499920
NMEA,$GNVTG,297.0,T,,M,1.7,N,3.1,K,A*1B,1722499920
NMEA,$GNZDA,081201.00,01,08,2024,,*7F,1722499920
NMEA,$PSEPU,19.4,9.4,7.0,6.3,17.0,17.57,8.84,90.5,6.34,6.16,15.18*45,1722499920
NMEA,$PSVLF,4.88,3.12,297.0,-2.78,1.41,-3.76*6C,1722499920

However I found online:

3   PRN number:

01 to 32 for GPS
33 to 64 for SBAS
64+ for GLONASS

and

<7> GNSS system ID: 1(GPS), 2(GLONASS), 3(GALILEO), 5(BEIDOU)

which would indicate the

"NMEA,$GNGSA,A,3,67,73,81,,,,,,,,,,4.7,1.9,4.3,2*32,1722499920"

message is for GLONASS satellites