r/OsmAnd • u/RedditWhileIWerk • 22d ago
Can OSMAnd+ accept external GPS tracking?
Came to ask a question related to this old thread:
https://old.reddit.com/r/OsmAnd/comments/1hx91zk/external_gps_receivers/
Is it in fact possible to get OSMAnd+ to use an external source for GPS? For example, one of these:
https://www.dualav.com/product/gps-solutions/gps/xgps150a-universal-gps-receiver
(Dual XGPS-150A)
or one of these:
https://www.dualav.com/product/gps-solutions/gps/xgps160-skypro-gps-receiver/
(Dual XGPS-160)
?
Looking at OSMAnd+ on my phone, I don't see any obvious way to get it to use a GPS source other than the phone's. The only options for anything external are ANT+ heart rate and cycling-related sensors, in the External Sensors plugin.
I looked in the official OSMAnd+ docs, but can't find anything related to external sensors outside the above.
FWIW, I do have the paid version of OSMAnd+.
Is this one of those things where the option doesn't show up unless you have the external GPS source connected? I haven't bought such a source yet.
Reason I'm asking: I'm shopping for an Android Auto display or possibly tablet to use for navigation on a motorcycle. My phone kinda sucks at GPS. It'll sometimes lose track for no clear reason, especially when I'm off the cellular network.
Ideally, I would run OSMAnd+ on the phone, have it use something like the XGPS-160 for GPS tracking, then display OSMAnd+ on the Android Auto screen.
5
u/Kumba42 22d ago
It can, as I use this setup in my car. You need the GPS Connector app, unlock it w/ a one-time in-app purchase, and then you need to enable "Mock location" under developer settings and assign GPS Connector as the mock app. Last, you have to figure out what serial chip the specific external GPS device uses and you set that in GPS Connector at the appropriate baud rate (e.g., pl2303 @ 115200bps for the one I use). You have to connect that external device via a cable that supports USB OTG as well.
That app then feeds the internal GPS service the data from the external GPS device. When you disconnect that device, the internal GPS takes back over and you can just swipe the notification from GPS Connector away to close it.
Note that running OsmAnd+ with an external GPS attached can drain the phone's battery faster than the phone can charge, especially if you have hillshading enabled in OsmAnd+ and you drive around mountainous terrain, as that causes the phone's GPU to run hot and drink power. I use a Pixel 9 as a dedicated "mapping phone", and it can draw power at ~25W, I think, and when driving in the mountains, I can actually get a slow battery drain from the phone having high GPU usage alone, while it's plugged into an Anker car adapter that feeds ~45W power to the phone and also powers the external GPS. On flat terrain, it's not an issue at all.
I use a StarTech HB31C3A1CDPPD3 to solve these issues (more or less). I plug that into my phone, the Anker car power adapter plugs into the dedicated USB PD port on the back, the GPS plugs into one of the USB-A ports, and I run a USB C DP-Alt Mode cable from the dedicated video-out port to an OttoCast Mirror Touch to get my phone's screen up onto my infotainment display. Image attached shows how this all plugs together visually:
4
u/zmeuka OsmAnd CMO 21d ago
On iPhone/iPad the Dual receivers work out of the box: iOS hands their position to every app. On Android, OsmAnd uses the system location, so an external Bluetooth/USB receiver needs a bridge app (e.g. GPS Connector or Bluetooth GPS) set as the mock location app in Developer options, as Kumba42 described. Android Auto then shows that same position.
3
u/etk300ex 22d ago
I use a non-cellular iPad and a Dual XGPS150 with Osmand. Works great! Just connect the Dual via Bluetooth and open Osmand. I have used the Dual with my phone before but I don't recall if I had to do anything specific. I can assure you it wasn't hard to figure out.