How to access GPS data in Mobian
#4
(05-09-2021, 06:11 PM)ragreenburg Wrote:
(05-08-2021, 08:52 PM)8bit Wrote: You could install gpsd and run one of the clients. xgps works but is not optimized for the screen. The text based clients gpsmon and cgps will give you all the typical GPS statistical information. The NMEA output that gpsd needs is on /dev/ttyUSB1. The config file is in /etc/default/gpsd

The antenna is very weak and it will take a long time outdoors even with a clear view of the sky to get a lock. You will want to run the AGPS proof of concept script to speed up the initial lock. https://gist.github.com/alastair-dm/2632...e555fa6628

You can also talk directly to the modem via AT commands to get a location manually, It is what the AGPS script uses. https://sixfab.com/wp-content/uploads/20...l_V1.1.pdf
Thank you for the information! Quick question, as I don't have my PP on me right now to test, with the AGPS it says to run `AT+QGPS=1` to start the GPS, is that just ran in the command line? I don't have any real experience with working with modems in general though I do have experience with a handful of programming languages.
That would be through a serial terminal like minicom. If you run the AGPS script it turns GPS on for you so you don't need to do any manual AT commands.

If the AGPS script gives serial errors you probably need pyserial
sudo pip3 install pyserial
  Reply


Messages In This Thread
How to access GPS data in Mobian - by ragreenburg - 05-08-2021, 06:56 PM
RE: How to access GPS data in Mobian - by 8bit - 05-08-2021, 08:52 PM
RE: How to access GPS data in Mobian - by 8bit - 05-09-2021, 08:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian MMS/SMS text problem bcnaz 16 35,282 06-23-2026, 06:53 AM
Last Post: mehdy
  Mobian image for the PinePhone Korfou 2 995 04-27-2026, 09:57 AM
Last Post: Korfou
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 80 61,518 12-24-2025, 12:11 AM
Last Post: Kevin Kofler
  cryptocurrency on mobian/pinephone biketool 33 69,412 10-08-2025, 06:21 AM
Last Post: biketool
  XLibre for Mobian Hiraghm 0 2,913 06-29-2025, 12:38 PM
Last Post: Hiraghm
  Axolotl on PinePhone / Mobian arno_nuehm 223 326,258 06-25-2025, 01:19 PM
Last Post: anonymous
  VoIP account on mobian dialer j_s 0 2,615 06-15-2025, 04:19 PM
Last Post: j_s
  Mobian Pinephone Notification LED biketool 2 3,546 06-07-2025, 03:19 PM
Last Post: KC9UDX
  Vivaldi Web browser nearly native for Mobian biketool 3 4,235 05-06-2025, 02:19 AM
Last Post: biketool
  mobian calamares fail merom 2 3,994 04-29-2025, 02:10 PM
Last Post: mdk

Forum Jump:


Users browsing this thread: 1 Guest(s)