Providing GPS location data to Android Auto - android

For an automotive project, we have two ECUs. One where Android Auto runs, and the other one gets GPS data (as NMEA sentences). We can send the data over Ethernet.
What are the steps to get the NMEA/GPS data we receive over the Ethernet port into the Android system?

Related

GPS not working correctly continuously without network on android phone

I have an android app built by Cordova that get GPS coordinates continuously and send to server through rest api. From there, it records the exact journey of the user.
It work fine when turn on cellular data or wifi. But without network (turn off cellular data and wifi), it cannot get accurate GPS continuously.
Is that a common problem for all phones or just Cordova?

Custom Location Services with external GPS connected to Raspberry Pi with android things

Hello I am wanting to connect an external GPS unit via I2C or serial to a raspberry pi 3 running android things to have this GPS unit provide location data.
So far using the Rasbarian OS I have a working python script with custom libraries. The script outputs raw NMEA data.
I am wondering how would I need to run this script to be able to have Android Location services use this data for location services? Would I need to create an app using the location services API? Or since this is a locally installed device would I need to write firmware or some kind? I am just wondering if someone could point me in the right direction of what kind of software I would need to write (an app or driver or firmware) in order to have this NMEA data accessible for location services.
Example of GPS driver connected via serial port you can find in Android Things user-space GPS driver and how to use it you can find in UART GPS sample for Android Things. Also take a look at Official Documentation and examples like this.

HM10/11 BLE to Android Phone connectivity

First off I would like to ask if it is possibe to send a stream of data from an arduino with HM11 to an android phone via bluetooth.
The data contains ultrasonic sensor's readings, orientation, battery level, etc.
My android phone will be displaying those data accordingly acting as a monitor.
I tried coding already using the android studio using the bluetooth guide resources but i end up unable to connect to my module with a message "read failed, closed or timeout -1". I have tried connecting while paired or unpaired. My app can discover HM11 as well as receive the data using HMBLE Terminal app i have downloaded from Play Store. So I guess the android studio guides are not meant from android to bluetooth modules.
I would also like to begin from scratch as i may have missed out some very important basic information.
Any help?

Android External GPS device receiver

I want to create an Android application which uses an external device's GPS coordinates (because the mobile devices have a less accurate GPS).
The device I am trying to run with is Trimble GPS Receiver Pro 6T
Any suggestions how I can get the data from this GPS device and get this data to the mobile device? I've tried searching for some libraries and guides but found nothing.
The usual way for your case is to use the NMEA format.
Each GPS reciever can be set to output in NMEA format via serial COM.
You parse the socket, line by line.
Searching for Nmea Parser will give you some src code.

Using Garmin GLO GPS receiver with Android application

Has anyone used the new Garmin GLO GPS receiver? Has anyone successfully integrated it with their mobile application? I was interested in using it in order to get more accurate GPS coordinates in my Android application, but would like to get some feedback from others before I buy one.
The Garmin website does not mention if there is an API available to retreive the GPS coordinates, it simply states, "Using Bluetooth technology, GLO wirelessly pairs to your mobile device. Just set GLO within range of your mobile device and in moments you’ll be receiving GLO’s position data."
How can you retreive this position data? Will applications on the device, such as Goolgle Maps, just get this data automatically? Any info or feedback about the device would be greatly appreciated.
More info on the device can be found at the following link:
https://buy.garmin.com/shop/shop.do?pID=109827&ra=true
Todd
This question seems to get a decent amount of traffic and could use a more thorough answer.
Garmin probably feels justified in saying this:
Just set GLO within range of your mobile device and in moments you’ll be receiving GLO’s position data
because on iOS you can connect to the GLO and iOS uses the location information from the GLO to supply more accurate information to any device using the iOS location APIs. Android has no such facility. So, option one is to use an app that will read the NMEA data over BT and use that to set the mock location on your Android device (as Rodrigo said). Option two is what I do in my app: connect to the GLO or other BT GPS from directly in the app. Then I parse the NMEA lines myself and use that within the app. The downside of this is that each app which uses location must implement this themselves.
It's working for me with this app:
https://play.google.com/store/apps/details?id=googoo.android.btgps
It uses mock GPS location to inject the GLO's position.

Categories

Resources