I have scoured the internet to this problem and am unable to find any kind of answer. Here is the gist of the project and what I have done so far
Project: Our school participates in sounding rocket competitions. I am in charge of payload and part of our payload includes GPS. Our rocket goes up to 2 miles and does not break the sound barrier
GPS module: Adafruit ultime GPS breakout
Raspberry Pi Model: B+ or 2 (we have access to both)
Problem: Since the rocket travels very quickly (arroximately 700-800 ft/s) we need the GPS to update at a faster rate than once per second (default rate). I have 2 raspberry pi's that both use GPSD daemon, and a personal python script. The problem lies within: With debian Wheezy, I can set the update rate from the bash with the following commands
"echo -e "\$PMTK251,57600*2C\r\n" > /dev/ttyUSB0" - updates baudrate
"echo -e "\$PMTK220,200*2C\r\n" > /dev/ttyUSB0" - updates NMEA sentences
"stty -F /dev/ttyUSB0 57600 clocal cread cs8 -cstopb -parenb" - updates baudrate of raspberry pi
On debian Wheezy these commands work and I get GPS coordinates at a rate of 5 times per second. - no problem.
The other pi uses Debian Jessie, which when I run the exact commands they do not work and the GPS unit continues to update at its default rate of once per second.
I am very confused as to why it will work on Wheezy but on Jessie it refuses to cooperate.
Some additional info: - We communicate over USB0, (not AMA0) - Jessie natively does not support GPS functions and one has to manually change how to listen to GPS chips (wheezy natively supports this and no changes are necessary), - we are using full Jessie (not lite). - When I change the baud rate of the Pi Jessie, and I follow up to see what its set at (using: stty -F /dev/ttyUSB0 -a) it tells me the baud rate is whatever the new value i gave it (i.e./ 57600).
So i believe the problem lies with setting the actual GPS units baud rate/NMEA sentencing
I think I have included all pertinent information but if I left something out I apologize and can clarify anything that isn't clear enough.
Any help would be greatly appreciated since we would like to upgrade to Jessie (other chips and programs that we incorporate on the sounding rocket run smoother with Jessie) but the GPS is a major reason not to.