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
  Pinephone + Keyboard for sale, little use ruemoo 4 374 10-28-2024, 08:37 PM
Last Post: AltonFox
  Modem Issues with the Pinephone Temmie19 2 237 10-16-2024, 07:54 AM
Last Post: Temmie19
  various tricks to open the pinephone shengchieh 3 1,315 09-16-2024, 03:42 AM
Last Post: biketool
  my pinephone melted norayr 6 2,007 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,563 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 902 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 4,171 02-05-2024, 03:17 PM
Last Post: wigan
  Unsatisfactory GPS reception on PinePhone? LinAdmin2 53 65,606 12-17-2023, 11:42 AM
Last Post: robin.com.au
  PinePhone Pro not booting (Cap error!, pctl timeout) jealda 2 2,056 11-16-2023, 05:03 AM
Last Post: DrYak
  Pinephone frame damages Uturn 2 1,612 10-23-2023, 02:49 AM
Last Post: Uturn

Forum Jump:


Users browsing this thread: 1 Guest(s)