Unsatisfactory GPS reception on PinePhone?
Hi I'm the latest victim of this GPS issue. Based on https://forum.pine64.org/showthread.php?tid=14114, I ran the following in order to get longitude and latitude.

sudo rc-service modemmanager stop # May or may not be necessary

echo at+qgps=1 | sudo atinout - /dev/EG25.MODEM - # turn on the GNSS
echo at+qgpsgnmea=\"gsv\" | sudo atinout - /dev/EG25.MODEM - # show the satellites tracked
echo at+qgpsgnmea=\"gga\" | sudo atinout - /dev/EG25.MODEM - # show the location if it is fixed
echo at+qgpsend | sudo atinout - /dev/EG25.MODEM -  # turn off the GNSS

And this is my output:

pine64-pinephone:~$ echo at+qgps=1 | sudo atinout - /dev/EG25.MODEM -

pine64-pinephone:~$ echo at+qgpsgnmea=\"gsv\" | sudo atinout - /dev/EG25.MODEM -

+QGPSGNMEA: $GPGSV,4,1,16,02,00,116,,05,15,285,,06,,,,07,19,085,,1*58
+QGPSGNMEA: $GPGSV,4,2,16,08,,,,09,,,,11,,,,12,,,,1*67
+QGPSGNMEA: $GPGSV,4,3,16,13,56,223,,14,52,157,,15,20,223,,17,58,047,,1*6A
+QGPSGNMEA: $GPGSV,4,4,16,19,43,012,,20,08,320,,21,,,,22,67,201,,1*55
+QGPSGNMEA: $GLGSV,3,1,11,78,39,224,,66,14,002,,86,04,144,,77,31,149,,1*79
+QGPSGNMEA: $GLGSV,3,2,11,76,,,,79,07,268,,69,02,203,,88,18,040,,1*4C
+QGPSGNMEA: $GLGSV,3,3,11,87,25,097,,67,53,317,,68,42,232,,1*47

pine64-pinephone:~$ echo at+qgpsgnmea=\"gga\" | sudo atinout - /dev/EG25.MODEM -

+QGPSGNMEA: $GPGGA,,,,,,0,,,,,,,,*66

pine64-pinephone:~$ echo at+qgpsend | sudo atinout - /dev/EG25.MODEM -


And this result is what I'm focusing on:
Which is lacking a bunch of information other than the 0 which means an 'invalid' quality indicator:


The interpretation of the 15 fields is the following,

1    = UTC of Position
2    = Latitude
3    = N or S
4    = Longitude
5    = E or W
6    = GPS quality indicator (0=invalid; 1=GPS fix; 2=Diff. GPS fix)
7    = Number of satellites in use [not those in view]
8    = Horizontal dilution of position
9    = Antenna altitude above/below mean sea level (geoid)
10  = Meters  (Antenna height unit)
11  = Geoidal separation (Diff. between WGS-84 earth ellipsoid and
      mean sea level.  -=geoid is below WGS-84 ellipsoid)
12  = Meters  (Units of geoidal separation)
13  = Age in seconds since last update from diff. reference station
14  = Diff. reference station ID#
15  = Checksum

I believe user 'sog8b' from page 1 had that exact "$GPGGA,,,,,,0,,,,,,,,*66" in the earlier post years ago, but he somehow solved it.

I just bought this Pine Beta Edition, and I ran JumpDrive to install postmarketos running sxmo. I bought it for the sole purpose of scripting GPS. I test it mainly via SSH and in a room with a window, and I did try putting the phone outside the house. I also started suspecting the problem is because the sim does not have a data plan.

There's just so many variables, is there a sure-fire way to determine whether it's a hardware, firmware, software, user issue?

Messages In This Thread
RE: Unsatisfactory GPS reception on PinePhone? - by robin.com.au - 12-17-2023, 11:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  my pinephone melted norayr 6 1,025 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,143 04-02-2024, 10:54 AM
Last Post: joH_N_Doe64
  various tricks to open the pinephone shengchieh 2 764 03-23-2024, 09:27 AM
Last Post: Ferriah
  pinephone can provide more than 500mA to a usb-c displayport device? unrznbl 2 409 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 2,950 02-05-2024, 03:17 PM
Last Post: wigan
  PinePhone Pro not booting (Cap error!, pctl timeout) jealda 2 1,468 11-16-2023, 05:03 AM
Last Post: DrYak
  Pinephone frame damages Uturn 2 1,067 10-23-2023, 02:49 AM
Last Post: Uturn
  PinePhone Keyboard KJ6OHG 11 8,317 08-23-2023, 03:25 AM
Last Post: Kali
  PinePhone constantly vibrating and won't take charge ImmyChan 5 5,553 07-23-2023, 03:49 PM
Last Post: kb-zealot
  Using optical drives with Pinephone cdforever 2 1,262 07-18-2023, 01:28 PM
Last Post: cdforever

Forum Jump:

Users browsing this thread: 1 Guest(s)