particle-iot / ElectronAssetTracker

Library for the Electron Asset Tracker!
Apache License 2.0
53 stars 84 forks source link

GPS gets a fix but function returns 0 #9

Open eushay opened 7 years ago

eushay commented 7 years ago

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!

monkbroc commented 7 years ago

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.

marc-gist commented 7 years ago

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.