GPS Software


#1

I read in the Dragonboard Hardware Manual that there is GPS onboard. But I can find absolutely no mention of how to use it in any documentation. Do I have to modify the kernel to talk to the WGR7640 on board? Is it a work in progress?


Reading GPS coordinates on DB410c - GNU/Linux Debian and gpsmon
#2

Oh man, I hate you. Because of this message, I had to go and check, and indeed, it is not working.


#3

Woohoo! Now we can both suffer until someone writes the GPS driver!


#4

Its not that bad. The driver is written, it must just be misconfigured.


#5

@doitright: what driver are you referring to? could you point me to the source code?

There is an android GPS app note coming soon (it will show how to use the GNSS test APK for GPS along other shielding considerations to optimize the GPS accuracy).


#6

The same gps driver that is used on all qualcomm gps hardware. I.e., the one that handles the gps hardware on my nexus 6. There is nothing magic or secret about it.


#7

please let me know the driver that you checked for this post.


#8

I have no idea what you are asking.


#9

Above you posted the following.

  1. “Its not that bad. The driver is written, it must just be misconfigured.”
  2. “The same gps driver that is used on all qualcomm gps hardware. I.e., the one that handles the gps hardware on my nexus 6. There is nothing magic or secret about it”

I simply want to know what driver specifically are you referring to.
And since the driver is “written” I am asking you to just point me to source the code that you checked.

let me know if the question is still unclear.


#10

Does this help you?
https://www.codeaurora.org/cgit/quic/la/platform/hardware/qcom/gps/


#11

No not really. That seems to be an API just to communicate to the GPS after the initialization has been done in EL1.

The way typical GPS hardware is accessed at platform level is via UARTs; the GPS UART is usually configured in the device tree and the GPS hardware is enabled via GPIO. I thought you might have checked this.


#12

Wait, so as is, the device’s GPS isn’t functional with the included Android build?


#13

Last time I checked I believe it was working on Android with release 15.06 (not so on Ubuntu)

I used google maps to request the location after enabling the GPS device in “device only” mode and the coordinates were correct.


#14

Ok thanks!


#15

Google Maps does not come standard on the Dragonboard 410c. Is there another way to verify coordinates? I downloaded AndroSensor but the GPS information shows as “unavailable”, even after I changed GPS to “Device only” mode and turned Qualcomm iZat on.


#16

I’m going to try again later with a better view of “outside”, but I strongly suspect that coordinates obtained from google maps are actually based on NETWORK rather than GPS. Google maps does this, and really doesn’t distinguish well between the two.

One of the things that can exacerbate the problem, is if you are on a static IP that gets a lot of google maps communications. Its likely that the network location will be extremely accurate, as within the range of the wifi connected to that IP.

FWIW: In exactly the same location, my Nexus 6 reports time to first GPS lock of 7 seconds.

Try with GPS Status:

Note: for anyone who doesn’t have play store installed on their db410c (which I hope is most of you, since it isn’t actually legal), install it to your OTHER Android device, and pull the apk off with adb in root mode, then install to db410c.


#17

Hi,

I am trying to validate GPS on Q410 with Android. But it is not
working with Android release. As per discussion still there
are some issues. Have they been resolved?

Please share your inputs on same.

Regards,
Amit Shah.


#18

There is definitely something misconfigured in handling the GPS on this hardware. I am not aware of any way to make it work at this time, which is a shame, since my application requires it to work.


#19

I can understand that there is some problem in GPS validation? But can you please tell me whether problem is at Android Application layer or at hardware level? I want to validate hardware so is there any way to validate hardware using Linux kernel without using Android HAL or application layer?


#20

Is there any news on this?
I am running the latest Ubuntu image from the Download area here and would love to know of ANY
(user) way to access the GPS of the board.
Any help is highly appreciated!