Unsatisfactory GPS reception on PinePhone?
#11
Hey Guys,

Thanks for your help.
I got things working in the end.
It seemed to help when I used the following command to start the GPS.
AT+QGPS=1,255,1000,0,10

Also I think I may have had two programs listening on ttyUSB1 which may have meant each only was getting half the data (however I'm not sure of this).

Thanks again!
  Reply
#12
Glad you got it working. I've not had reason to try the other parameters.
  Reply
#13
(12-08-2020, 09:11 PM)sog8b Wrote: Hey Guys,

Thanks for your help.
I got things working in the end.
It seemed to help when I used the following command to start the GPS.
AT+QGPS=1,255,1000,0,10

Also I think I may have had two programs listening on ttyUSB1 which may have meant each only was getting half the data (however I'm not sure of this).

Thanks again!
UPDATE

Doh! I forgot that the phone must be enabled for the GPS to work. I read about it on a thread in these forums but I temporarily forgot. The first command works. On to acquire sats now. Tongue


I've had my Manjaro CE edition for about a month. I'm running Mobian from eMMC and I've seen no indication that the GPS is working at all on the two maps aps I've tried so I tried the first incantation from the OP:
Code:
mmcli -m 0 --location-enable-gps-nmea
and it produced:

"error: modem not enabled yet"

So I tried
Code:
sudo mmcli -m -0 AT+QGPS=1,255,1000,0,10


which seemed to run okay, but I still get the error.

I also tried it with Manjaro Posh on the latest multiboot SD and experienced the same error.

Mobian project says (https://wiki.mobian-project.org/doku.php?id=pinephone )

What's working with Mobian
GPS/GNSS Works with exceptions (2)

(2) GPS/GNSS only works with web apps using GNOME Web. (Editors note: Is this still true? I think it works in general now)

So it seems like the mmcli interface should be working for me. What am I missing? Do I need to risk a modem firmware update?

UPDATE

Doh! I forgot that the phone must be enabled for the GPS to work. I read about it on a thread in these forums but I temporarily forgot. The first command works. On to acquire sats now. Tongue
  Reply
#14
I'm still trying to get a fix from my GPS with Mobian. I've tried everything in this thread, I think, but have yet to to see a single satellite tracked. I referenced the secret decoder ring page on archive.org, because gpsinformation.org is down:
http://web.archive.org/web/2020013103103...e/nmea.htm

The agps scripts appear to be working (thanks alastair-dm) and I get three or four $GPGSV lines ("sentences") but the SNR field is always just a comma for all sats.

As an experiment, I disabled wifi Internet (I have no cellular service here at home) and ran the agps script to delete agps files. Then I rebooted for good measure and used mmcli -m 0 --location-enable-gps-nmea

and repeatedly
mmcli -m 0 --location-get

to monitor the arrival of satellite information. It never comes! The output of --location-get is perpetually devoid of any $GPGSV sentences, no matter how long I wait.

Given that the AGPS-seeded $GPGSV lines display no signal/noise ratio (SNR), could my GPS simply not be receiving satellite signals at all? My 10+ year old pocket Garmin works when booted from cold (after a couple of years of non-use) and my Moto smartphone GPSs work here too.

Does the diagnostic test in the factory Manjaro image contain a functional test for satellite reception? I could download and boot it.

Thanks for any ideas about how to proceed!
  Reply
#15
(12-11-2020, 09:19 PM)calinb Wrote: I'm still trying to get a fix from my GPS with Mobian. I've tried everything in this thread, I think, but have yet to to see a single satellite tracked. I referenced the secret decoder ring page on archive.org, because gpsinformation.org is down:
http://web.archive.org/web/2020013103103...e/nmea.htm

The agps scripts appear to be working (thanks alastair-dm) and I get three or four $GPGSV lines ("sentences") but the SNR field is always just a comma for all sats.

As an experiment, I disabled wifi Internet (I have no cellular service here at home) and ran the agps script to delete agps files. Then I rebooted for good measure and used mmcli -m 0 --location-enable-gps-nmea

and repeatedly
mmcli -m 0 --location-get

to monitor the arrival of satellite information. It never comes! The output of --location-get is perpetually devoid of any $GPGSV sentences, no matter how long I wait.

Given that the AGPS-seeded $GPGSV lines display no signal/noise ratio (SNR), could my GPS simply not be receiving satellite signals at all? My 10+ year old pocket Garmin works when booted from cold (after a couple of years of non-use) and my Moto smartphone GPSs work here too.

Does the diagnostic test in the factory Manjaro image contain a functional test for satellite reception? I could download and boot it.

Thanks for any ideas about how to proceed!
  Reply
#16
(12-11-2020, 09:19 PM)calinb Wrote: I'm still trying to get a fix from my GPS with Mobian. I've tried everything in this thread, I think, but have yet to to see a single satellite tracked. I referenced the secret decoder ring page on archive.org, because gpsinformation.org is down:
http://web.archive.org/web/2020013103103...e/nmea.htm

The agps scripts appear to be working (thanks alastair-dm) and I get three or four $GPGSV lines ("sentences") but the SNR field is always just a comma for all sats.

As an experiment, I disabled wifi Internet (I have no cellular service here at home) and ran the agps script to delete agps files. Then I rebooted for good measure and used mmcli -m 0 --location-enable-gps-nmea

and repeatedly
mmcli -m 0 --location-get

to monitor the arrival of satellite information. It never comes! The output of --location-get is perpetually devoid of any $GPGSV sentences, no matter how long I wait.

Given that the AGPS-seeded $GPGSV lines display no signal/noise ratio (SNR), could my GPS simply not be receiving satellite signals at all? My 10+ year old pocket Garmin works when booted from cold (after a couple of years of non-use) and my Moto smartphone GPSs work here too.

Does the diagnostic test in the factory Manjaro image contain a functional test for satellite reception? I could download and boot it.

Thanks for any ideas about how to proceed!



I have been struggling with gps satellite acquistion for the past couple of months.  I got my first location earlier today.  I put my pinephone outside, ssh'd from a laptop, and watched the progress using gpsmon.  Took about 30 minutes before it began tracking a satellite.  Took 90 minutes to lock 4 satellites and report a location.  
  Reply
#17
@calinb The factory test image that came on my Breave Heart had no specific GPS test that I remember. I don't know what diagnostics they're providing with more recent models. It would be difficult to test in a factory without something transmitting a fake GPS signal, so it may not have a specific test.

I used an old Garmin Geko 201 as a cold fix reference before starting on the AGPS stuff. With the Brave Heart I was seeing sats in GPGSV messages even when I didn't have a fix, similar to the Garmin's sat view before fix. If you're seeing nothing in situations where the Garmin can get a fix then something's wrong. Have you tried accessing the modem control interface with a terminal (picocom or similar) when ModemManager is stopped? That may show error messages that aren't present in the NMEA feed - assuming the Quectel interface passes them on via AT messages. Beyond that you might have to go digging in libqmi to find out if there are any lower level GPS diagnostics from the Qualcom interface.

The other more invasive thing to check is the physical antenna connection. I think the GPS antenna is one of the printed ones on the inner frame, with spring contacts to the main board. It's not something I've looked into, so I can't give you more detailed pointers other than looking in the wiki for the mainboard swap instructions for inner frame removal.
  Reply
#18
(12-12-2020, 10:04 PM)spartacus Wrote: I have been struggling with gps satellite acquistion for the past couple of months.  I got my first location earlier today.  I put my pinephone outside, ssh'd from a laptop, and watched the progress using gpsmon.  Took about 30 minutes before it began tracking a satellite.  Took 90 minutes to lock 4 satellites and report a location. 

Good to hear I'm not the only one having trouble (sort-of). Sad

(12-13-2020, 10:04 AM)wibble Wrote: @calinb The factory test image that came on my Breave Heart had no specific GPS test that I remember. I don't know what diagnostics they're providing with more recent models. It would be difficult to test in a factory without something transmitting a fake GPS signal, so it may not have a specific test.

I used an old Garmin Geko 201 as a cold fix reference before starting on the AGPS stuff. With the Brave Heart I was seeing sats in GPGSV messages even when I didn't have a fix, similar to the Garmin's sat view before fix. If you're seeing nothing in situations where the Garmin can get a fix then something's wrong. Have you tried accessing the modem control interface with a terminal (picocom or similar) when ModemManager is stopped? That may show error messages that aren't present in the NMEA feed - assuming the Quectel interface passes them on via AT messages. Beyond that you might have to go digging in libqmi to find out if there are any lower level GPS diagnostics from the Qualcom interface.

The other more invasive thing to check is the physical antenna connection. I think the GPS antenna is one of the printed ones on the inner frame, with spring contacts to the main board. It's not something I've looked into, so I can't give you more detailed pointers other than looking in the wiki for the mainboard swap instructions for inner frame removal.

I looked at the list of test coverage in Martijn's test too:[url=https://gitlab.com/MartijnBraam][/url]  https://gitlab.com/MartijnBraam/factoryt...README.rst

It doesn't look like there's anything there that will help diagnose the problem. I get up to four $GPGSV lines of sats using mmcli, but only when I use AGPS. However, none of them indicate a signal (commas appear in all SNR fields), except yesterday I did briefly get three sats with a SNR entry, but all SNRs were around 20 or less and I never got a fix.

Despite my other Moto Android phones and cheap 10+ year old Garmin GPS working here at home, I never get any SNR on my Pinephone at home.  I live on a southern canyon wall so I drove to some very flat farmland nearby with no obstructions of the sky within sight. I got a 4G mobile signal and data too (no cell service at home), so I could "seed" with AGPS data. I spent about an hour waiting for a fix with the Pinephone tucked up under the windshield toward the southern sky and I also spent time standing in the cold outside. That's how I got my record three SNR readings. This capture only shows two SNR values, and I missed capturing the "record":

Code:
--------------------------
 3GPP |      operator code: 310
         |      operator name: 410
         | location area code: FFFE
         | tracking area code: 9103
         |            cell id: 066AA80F
  --------------------------
 GPS  |              nmea:
         |                    $GPGSV,3,1,11,05,14,314,16,09,73,144,21,02,,,,03,,,,1*69
$GPGSV,3,2,11,04,33,132,,06,,,,07,66,316,,08,31,113,,1*5D
$GPGSV,3,3,11,11,,,,14,18,215,,16,15,042,,1*6B
      |                    $GPGSA,A,1,,,,,,,,,,,,,,,,*32
      |                    $GPRMC,,V,,,,,,,,,,N*53
      |                    $GPVTG,,T,,M,,N,,K,N*2C
      |                    $GPGGA,,,,,,0,,,,,,,,*66

Sat PRN 05, SNR = 16
and
Sat PRN 09, SNR = 21

All others have commas in the SNR field.

So my Pinephone is receiving something (mmcli -m 0 --location-status has "status yes" too. Signals just seem to be very weak and infrequent.

Thanks for the suggestions!

I'll try 90 minutes sometime when the weather improves again. (It started snowing today so cloud cover attenuation is possible). I'll also look into picocom and maybe I'll need to run SSH remotely from my laptop from inside the car to the Pinephone on the car's roof. I'll stay warmer and perhaps get a stronger signal too. Finally, I guess I'd better at least do a visual inspection of the Pinephone antenna, if not try to "ohm it out" in some way. I have a good Fluke meter with a low ohms scale. I don't know what the resistive component of the impedance should be but I'll look into it.
  Reply
#19
Estive tentando habilitar gps no meu pinephone 32G emmc / 3G RAM e não funcionou, observei que quando uso um "gps usb dongle" nele aparece /dev/ttyACM0 e /dev/gps0 e os programas marble e foxtrotgps funcionam e sem o "gps usb dongle" nós temos /dev/ttyUSB1 (gps) mas não temos /dev/ttyS1. Parece que o /dev/ttyS1 está fazendo falta para o gpsd, sendo que a saída de gpsmon é quase a mesma com ou sem "gps usb dongle".
Teria um comando AT para habilitar renomear ou criar /dev/ttyS1 e ver se resolve o problema?
Também encontrei diferença no funcionamento do foxtrot editando /etc/default/gpsd em DEVICES="/dev/ttyUSB1"
agradeço a atenção de todos.
  Reply
#20
(12-15-2020, 06:55 AM)Benatti Wrote: Estive tentando habilitar gps no meu pinephone 32G emmc / 3G RAM e não funcionou, observei que quando uso um "gps usb dongle" nele aparece /dev/ttyACM0 e /dev/gps0 e os programas marble e foxtrotgps funcionam e sem o "gps usb dongle" nós temos /dev/ttyUSB1 (gps) mas não temos /dev/ttyS1. Parece que o /dev/ttyS1 está fazendo falta para o gpsd, sendo que a saída de gpsmon é quase a mesma com ou sem "gps usb dongle".
Teria um comando AT para habilitar renomear ou criar /dev/ttyS1 e ver se resolve o problema?
Também encontrei diferença no funcionamento do foxtrot editando /etc/default/gpsd em DEVICES="/dev/ttyUSB1"
agradeço a atenção de todos.
esqueci de mencionar que estou usando mobian.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone - broken power button rorus 13 11,341 12-16-2024, 08:32 PM
Last Post: tllim
  Pinephone + Keyboard for sale, little use ruemoo 4 568 10-28-2024, 08:37 PM
Last Post: AltonFox
  Modem Issues with the Pinephone Temmie19 2 358 10-16-2024, 07:54 AM
Last Post: Temmie19
  various tricks to open the pinephone shengchieh 3 1,437 09-16-2024, 03:42 AM
Last Post: biketool
  my pinephone melted norayr 6 2,201 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,633 04-02-2024, 10:54 AM
Last Post: joH_N_Doe64
  pinephone can provide more than 500mA to a usb-c displayport device? unrznbl 2 998 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 4,402 02-05-2024, 03:17 PM
Last Post: wigan
  PinePhone Pro not booting (Cap error!, pctl timeout) jealda 2 2,150 11-16-2023, 05:03 AM
Last Post: DrYak
  Pinephone frame damages Uturn 2 1,702 10-23-2023, 02:49 AM
Last Post: Uturn

Forum Jump:


Users browsing this thread: 5 Guest(s)