Home › Forums › Forums › Technical Support for BerryGPS and BerryGPS-IMU › gpspipe for GGA only
- This topic has 3 replies, 2 voices, and was last updated 5 years ago by Mark Williams.
- AuthorPosts
- May 17, 2018 at 8:05 am #7283NoelParticipant
How do I modify the gpspipe command to receive GGA strings only? Thanks, Noel
May 17, 2018 at 1:41 pm #7284Mark WilliamsKeymasteryou could pipe it through grep
gpspipe -r | grep GGA
Mark --OzzMaker.com --
May 17, 2018 at 8:47 pm #7286NoelParticipantThanks, Mark. That works certainly. My deeper interest, however, is to configure the GPS so that it sends only GGA … not that I select just the GGA strings. I feel that your fantastic Python code gives me much more control over the IMU than I get over the GPS in the absence of similar code. (Maybe that’s just my ignorance in reading the Antenova literature.) -Noel
May 17, 2018 at 9:14 pm #7287Mark WilliamsKeymasterYou can send a PMTK command to the GPS to disable or enable certain NMEA sentences
E.g.
This disables all sentences;
echo -e "\$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28\r\n" > /dev/serial0
This will only enable RMC
echo -e "\$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28\r\n" > /dev/serial0
You may need to kill gpsd first to free up the serial interface
sudo killall gpsd
Mark --OzzMaker.com --
- AuthorPosts
- You must be logged in to reply to this topic.