I have found contradicting HOWTOs that explain that the Grove GPS sensor ought to be plugged to either the port marked as RPISER, or SERIAL or D4. I have tried all three with no results. I have tried outdoors to no avail. I am using the code at this link:
With lines 54-56 commented out.
The LED in the GPS module is on, the little antenna is plugged and has a clear view of the sky.
Any tips on how to get this to work would be greatly welcome.
Good news and bad news, I guess.
I’ve never played with the GPS sensor before, so I know less than you, but I have a Pi2 and a Pi3.
I tried it with the Pi2 and a Raspbian for Robots/Jessie (You can check in the Version file on the desktop, to see if you have Wheezy or Jessie)
I got the GPS to sorta work by plugging it in the RPiSer connector. I can connect to 5 satellites, and I get exactly one reading, and only one. I’m running the code found at Desktop/GrovePi/Software/Python/GroveGPS.py
I had no success with the other examples.
I get the same behavior with both RPi2 and RPi3.
Hopefully this can help you a tiny bit, while we wait for others more knowledgeable to stop by
Thanks a lot CleoQc! Your reply encouraged me to try it on a Rpi2, thanks.
I’m having a slightly different experience though. With Raspbian for Robots on a Rpi 2 the GPS sensor seems to work just fine, but the same setup (same SD card in fact, same GrovePi+, same sensor) put into a Rpi 3 and it stops working.
That’s all I could find out.
Any suggestions on how to fix it? I’ll post back here if I find why.
Which Raspbian for RObots are you using? Jessie or Wheezy? (look in the Version file on the desktop if you need to, it will tell you which version you’re running).
Also, have you run a DI Update software not too long ago? There were changes to handle the Pi3 better.
I recommend Jessie for the Pi3, as Wheezy never really supported it officially. The tutorials you mentioned are in the same vein as the changes done to Raspbian for Robots for the Pi3
Indeed, the Version file was not updated. We have (yet another) image waiting for release where the Version file is updated (and a few other things).
And even with the file you just downloaded, please run a DI Update Software on it to get the latest fixes.
Got a question for you, when you say your GPS works just fine on a Pi2, which program are you running, and which port do you have the GPS on?
I submitted a fix for the issue I was having (having only one reading and then hanging there). I want to make sure my fix doesn’t kill what you have already working. That would be one step forward two steps back, and I’d rather avoid that.
Sorry, I was away for a couple of days. I’m back into the project though.
I have tried again on the Rpi3 with the version of Rasbian for Robots that I stated above and with the latest updates and running GrovePi/Software/Python/grove_gps/grove_gps_hardware_test.py returns nothing but blank lines. No data at all.
Then I tried again after updating the serial port datarate like so: “sudo stty -F /dev/ttyAMA0 9600”
With the same setup (indeed same SD card) on a Rpi2 I get NMEA valid lines, but still no actual coordinates.
Not sure how to proceed… bit frustrated at the moment.
Thanks John! I attach a full log to this post. It never seems to get more than three satellites and it never gives a reading after leaving it running for a good 30 minutes outdoor in the balcony, clear view of (cloudy) sky. I get a very tight gps reading on my phone.
This is after I remade the Rpi2 image by following step by step the instructions in your site, and updating, it went a bit more smoothly this time. But still no usable readings. Could this be a faulty unit? Can you see anything unfamiliar in the log?