USB GPS dongles that work with Android on Pine64+ ?
#1
Hi
Have anybody got any usb gps dongles to work with android on Pine64+? I would love to have positioning to work on my Pine64 with touchscreen. If anybody have tried it and got it to work, it would be nice to know Smile
Trond Kjetil
#2
This USB GPS library works at Android.


Attached Files
.zip   Android_GPS_lib64.zip (Size: 13.29 KB / Downloads: 314)
#3
(09-25-2017, 05:09 AM)trondkj Wrote: Hi
Have anybody got any usb gps dongles to work with android on Pine64+? I would love to have positioning to work on my Pine64 with touchscreen. If anybody have tried it and got it to work, it would be nice to know Smile
Trond Kjetil

Hi,

I got a bu-353 GPS working with an app and mock position.

The gps did not show up as an tty device, so i could not get the Android_GPS_lib64 working.. Smile

I used this lib to read the serial.
https://github.com/felHR85/UsbSerial

Then this NMEA parser to parse the data from serial to something readable:
https://gist.github.com/javisantana/1326141

In android manifest the following permissions should be set:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />


I used Androids LocationManager to make a mock position.
On the device i had to enable developer mode (Settings -> About tablet, click 7 times on "Build number"), and then allow my app to set mock position in settings -> developer options.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 387,007 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 29,594 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 16,758 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 6,969 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 7,036 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 5,598 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,334 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 257,110 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 3,543 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 104,879 02-10-2019, 07:44 PM
Last Post: mmmarcus

Forum Jump:


Users browsing this thread: 1 Guest(s)