ElectronAssetTracker icon indicating copy to clipboard operation
ElectronAssetTracker copied to clipboard

GPS gets a fix but function returns 0

Open eushay opened this issue 8 years ago • 2 comments

While trying to implement the Asset tracker example (in particle documents), I bumped into the issue that GPS shows that it has gotten a fix on the position (by turning the "GPS FIX" led off) but the function .gpsfix() returns 0, so no data is collected.

My Hardware setup: I had replaced Electron with a Photon (don't think it matters here!). Used USB to power up and also used external Antenna.

After discussing the issue on forum, I worked on https://github.com/rickkas7/AssetTrackerRK by rickkas7. His library is based on TInyGPS++. Now the module is working perfectly. So it seems like the issue was with the Adafruit GPS library.

It would be great if the problem with Adafruit library is resolved!

eushay avatar Oct 25 '16 14:10 eushay

I think it's a good suggestion to replace the current GPS library by the TinyGPS++ library. I've had better luck with that one too.

monkbroc avatar Oct 25 '16 16:10 monkbroc

I just ran into this issue as well... was working fine. added external antenna, now I get 0 for .gpsFix() even when LED not flashing!

Removing the external antenna does not fix this issue. I'm going to try the other Library.

marc-gist avatar Jan 23 '17 18:01 marc-gist