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: 656)
#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 511,532 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 40,511 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 24,259 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 10,193 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 11,160 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 8,433 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 5,348 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 336,532 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 5,956 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 136,412 02-10-2019, 07:44 PM
Last Post: mmmarcus

Forum Jump:


Users browsing this thread: 1 Guest(s)