Hello,
I'm trying to use a USB GPS receiver with Lineage OS 14.1 on Raspberry Pi 3.
More specifically, it's a Huawei ME936 modem. It's actually a 3G modem, but at this point I'm mainly interested in using it as a GPS receiver.
I've changed the compilation options for the kernel, and added support for Qualcomm ACM devices. This has resulted in the kernel recognizing the device.
Now, if I login into ADB, I can see /dev/ttyUSB1-3. Good!
Next, The GPS needs to be enabled. For testing, I've done this with a simple command: # echo \$GPS_START > /dev/ttyUSB2
Now, I can run # cat /dev/ttyUSB2, and I see NMEA traces coming in. The GPS receiver gets a valid fix, and I see all relevant information correctly on the NMEA traces.
If this was a regular Linux, I'd fire up GPSD, or another similar software to parse the traces, but here in Android, I'm not sure what to do.
So, next step, how do I make Android parse the NMEA traces and serve positioning data to the applications? And how do I make Android send the $GPS_START command at every boot?