If you're going to use an external GPS receiver with Android, most probably you'll have to deal with Mock location service.
How is your mouse connected to the tablet? Bluetooth or USB? In either case, you need an app which acts as a "bridge" or "provider" in order to pass the NMEA messages coming from the reciver to the location service in your device. Some Bluetooth provider apps I've found working are: - BlueGPS (very old, suitable for Android up to v. 10, available on the alternative market F-Droid) --> https://f-droid.org/en/packages/org.broeuschmeul.android.gps.bluetooth.provider - GPS Connector --> https://play.google.com/store/apps/details?id=de.pilablu.gpsconnector - QPad GPS Connector --> https://play.google.com/store/apps/details?id=com.sgligis.qpadgpsconnector - Bluetooth GNSS --> https://play.google.com/store/apps/details?id=com.clearevo.bluetooth_gnss If you're connecting through USB, instead, you might try: - GPS Connector (the same listed above, according to the dev's claim it should work with USB Serial too) - UsbGps4Droid, available from F-Droid --> https://f-droid.org/en/packages/org.broeuschmeul.android.gps.usb.provider Not sure the USB apps will work, I own a Bluetooth receiver (Garmin GLO v.1) and never tried a USB-wired one. Alsoo, it looks like these 2 are the only available on the stores, while there are several apps around, working with BT. *General procedure*: 1. In your device, enable Developer mode. To know how to do, just look for a online tutorial, there's plenty on YouTUbe and the Internet in general (keywords: "Android enable developer mode") 2. Install the Bluetooth or USB provider app(s) 3. Open the Settings menu, enter the Developer Options menu; scroll to "Select Mock location app" and pick your favorite one from the list 4. Either pair your receiver with the Tablet, or connect it through USB cable 5. Start the mock location provider app, make sure it's communicating with the receiver 6. As soon as the app shows some updating numbers (Lat, Lon, etc.) it means that the receiver has sucessfully acquired the position and is transmitting the data to the app; Launch OsmAnd, auto-center the map and check if it's pointing the right spot. 7. If step 6 is successful, you're good to go. :-) Do some short test trip around, just to ensure that all is working fine and your location is proprly updated with no delays. *Hint*: Unfortunately not all the apps work well with all the receivers. If the one you chose is not working well, i.e, device is not detected or does not communicate or the position is updated with a big delay, then just uninstall it and pick another: this means you'll have to repeat the whole procedure above... Have a nice trip! :-) Max Il giorno lunedì 26 agosto 2024 alle 13:36:27 UTC+2 Greg Troxel ha scritto: > Neville MADDEN <[email protected]> writes: > > > I have OSMAND+ on my tablet and plan to travel around India by train. A > > test here in Brisbane Australia, showed that the tablet could not > pick-up > > the GPS signal inside the electric train. But with a Holux GR 213 mouse > > GPS in a laptop it works OK with the mouse stuck to the train window. > > (A better tablet might be a reasonable approach. Beware that every > vehicle is different and that coatings on windows matter.) > > There are two approaches: direct support in the program, and mocking. > This assumes you are using Android. > > Direct support means the program can connect over bluetooth SPP, perhaps > BLE, and perhaps serial port and get an NMEA stream and use it directly. > QField can do this. I am not aware of osmand having direct external GPS > receiver support. > > Mocking means enabling developer mode, and having a program that > implements direct support, and then injects the position data (NMEA?) > via a developer API so that everything else on the tablet sees the > injected data. That is intended for testing/debugging, but it is > widely used for external support. > > > An example program is > > > https://apt.izzysoft.de/ftp/repo/fdroid/index/apk/com.clearevo.bluetooth_gnss > > and that does bluetooth but not clearly serial (USB is surely serial > over USB). However, if you find a program you like you can then buy an > external GNSS unit that works with it. > > Note that with mocking, you may want to figure out if the tablet is > still running the internal receiver, but if it is plugged in to power > from the train, you may not care. > > -- You received this message because you are subscribed to the Google Groups "OsmAnd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osmand/a7a63ced-e294-4a32-8934-e2b123675963n%40googlegroups.com.
