linux icon indicating copy to clipboard operation
linux copied to clipboard

GPS on Nexus5

Open pparent76 opened this issue 6 years ago • 2 comments

Hi,

Since you helped me solve 2 major problems on Nexus5 in postmarketOS ( see https://postmarketos.org/blog/2019/01/16/600-days-of-postmarketOS/ ), I wanted to ask if you have any hint for my next task.

I'm trying to enable GPS on Nexus5. It seems that on chromium AGPS works (with google maps or openstreetmap). But I'm trying to switch from AGPS to real GPS. I've tried to compile qmi_loc2 that you mentioned in your page, but it did not bring anything.

Do you have any information that would help me enabling real GPS?

Thank's a lot in advance.

pparent76 avatar Mar 12 '19 13:03 pparent76

Hi,

First, you must have the modem initialized correctly (this requires qrtr-ns / rmtfs running and rmtfs files before initializing the modem remoteproc, I think pmOS has something for this since @bshah used the modem for SMS test). Once the modem is running, what I did is hack out the gps proxy functionality of qmi_loc2 and only print the NMEA data, from which I was able to verify that I get a correct GPS position.

As for integrating it with chromium, I don't know anything about that.

flto avatar Mar 12 '19 13:03 flto

Hi,

Thank's a lot for your answer.

Well I guess that the modem is already initialized and working correctly as I already get a correct position on Chromium. The only thing is I suspect it is AGPS mode because accuracy is not very good. Many modems that include GPS have options to choose between AGPS and GPS, for example with AT commands. But with this modem I have no idea how to do.

I will also do more tests to make sure inaccuracy isn't just because I test at places where GPS reception is bad.

pparent76 avatar Mar 12 '19 14:03 pparent76