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.
P.S. I found this about a change in the way that serial operates in the RPi3 but I can’t say if the Grovepi+ would be affected by this change: https://github.com/RPi-Distro/repo/issues/22
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
Thanks a lot for your advice. I downloaded again thinking that I had made a mistake and even though the ZIP file is named: 2016.05.16_Dexter_Industries_jessie.zip
The version info continues to say: V 6.9
This version of Raspbian was modified by Dexter Industries on the Jessie Raspbian Build.
This version was updated on 2016.03.20
Perhaps the version file that ships with the distribution was not updated?
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.
I have extremely limited experience with the GPS (I had never touched it before you started this thread, so yeah, I’m a noob).
From looking at the Dexter code, it seems only the data that starts with GPGGA contains the pertinent information. This is also supported by the doc for pynmea
I really hope what I’m saying makes sense!
Cleo
always willing to help, even when I don’t know a thing
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?