How to read GNSS location data on Pinephone
#1
So I recently bought myself a Pinephone with the aim to use it in one of my projects. I need to read the location data and relay it to another computer. How does one go about getting the location data from the command line interface, CLI?
  Reply
#2
What level are you looking at, and on which OS?
Basic low level access via the modem's USB serial interfaces is described in the wiki, with links to Quectel's GNSS AT commands:
https://wiki.pine64.org/wiki/PinePhone#GPS_.2F_GNSS
Most OS flavours have another layer running to mediate access to the modem and/or GNSS though - ModemManager or oFono for the modem, and geoclue and/or gpsd for the GNSS data. They may have other mechanisms for doing some setup too - eg25-manager has certainly done things with GNSS configuration at times. You can either access it via these mediators (mmcli location commands for example) or stop those services before accessing the USB ports directly.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Third-party cheap touchscreen/LCD for the Pinephone - lost knowledge? mikeb 0 225 02-05-2025, 01:39 PM
Last Post: mikeb
  Pinephone + Keyboard for sale, little use ruemoo 5 927 01-15-2025, 07:59 PM
Last Post: elonnmusk
  Pinephone - broken power button rorus 13 12,191 12-16-2024, 08:32 PM
Last Post: tllim
  Modem Issues with the Pinephone Temmie19 2 550 10-16-2024, 07:54 AM
Last Post: Temmie19
  various tricks to open the pinephone shengchieh 3 1,643 09-16-2024, 03:42 AM
Last Post: biketool
  my pinephone melted norayr 6 2,524 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,773 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 1,179 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 4,786 02-05-2024, 03:17 PM
Last Post: wigan
  Unsatisfactory GPS reception on PinePhone? LinAdmin2 53 70,617 12-17-2023, 11:42 AM
Last Post: robin.com.au

Forum Jump:


Users browsing this thread: 1 Guest(s)