• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How can I read gps data from a PinePhone?

Scheduled Pinned Locked Moved General
2 Posts 2 Posters 522 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      Eric
      last edited by 9 Feb 2020, 02:42

      I have a Pine Phone, brave heart, I want to read the sensors, GPS position in particular. Is there a device In /dev I should look at?

      ran locate and found an application /usr/bin/test_android_gps_api
      it returns:
      Usage: test_gps supl_server supl_server_port lat lon accuracy

      so then i did $man test_android_gps_api
      and got a message about manpages not being installed.
      I installed manpages, but this utility isnt in there.
      so then I though ok, whats this output telling me?

      #test_gps
      -bash: test_gps: command not found

      I tried -h and --help. but there was none. How can i get the gps position?
      command-line solutions preferred.

      1 Reply Last reply Reply Quote 1
      • F Offline
        flohack
        last edited by 9 Feb 2020, 18:06

        You cannot use any Android tools on the pinephone as it has no Android parts inside. Those binaries you see are for the other Android phones we support.

        Basically someone needs to write a new backend service that starts up the GPS modem and parses NMEA messages. That should then be fed into our locationd service, and from there it will be available to all Apps.

        So yes, until someone writes this background service, you will probably not see much. You can of course try to work on some scripting that you could run with the terminal, but thats not really practical.

        Also, this issue will affect all distro that have now a Pinephone variant, so you are better off discussing this in specific Pinephone groups rather than here.

        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

        1 Reply Last reply Reply Quote 0
        1 out of 2
        • First post
          1/2
          Last post