Hello Andy!
After reading your post, I quote "To that end, the "inards" of MODGPS really need to be totally refactored to cope with this. I'll have a think and probably come up a totally new module that is more "all encompassing". In fact, I really should layout a proper design goal and I'll set that at being able to handle upto 10Hz@115200 for RMC, GGA and VTG sentences."
I have the "66 Channel LS20031 GPS 10Hz Receiver" from sparkfun. And at 10hz RMC,GGA and VTG packets is exactly what i tried to do at 115200 baud. It usually works if i only use the RMC or GGA at 10 hz. I am now experimenting with GGA at 5hz, and RMC and VTG at 2 hz. The phenomena i encounter (in all cases) are that my code sometimes starts running and sometimes it doesn't start at all, well at least, it does not go past the RTC sync it hangs somewhere in the process of getting the gps time. I try to sync my mbed RTC with the GPS clock, when that is done i use an gga.attach in which i save all values in my own variables and then print them to my terminal (for now).
$PMTK251,115200*1F (baud)
$PMTK220,100*2F (10 hz / 100ms)
$PMTK314,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29 (RMC,VTG,GGA 10hz)
$PMTK314,0,5,5,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29 (RMC,VTG 2 hz, GGA 10hz)
(without signal)
$GPVTG,0.00,TM,0.00,N,0.00,K,N*32
$GPGGA,165010.146,0,0,MM*48
$GPGGA,165010.246,0,0,MM*4B
$GPGGA,165010.346,0,0,MM*4A
$GPGGA,165010.446,0,0,MM*4D
$GPGGA,165010.546,0,0,MM*4C
$GPRMC,165010.546,V,0.00,0.00,020511,N*4E
$GPVTG,0.00,TM,0.00,N,0.00,K,N*32
I also notice some incidental strange values, 48.8 lat, 488 lon. 443 kts and track of 16000 degrees.
The one thing that would be nice to have is easy access to the HDOP (maybe also the VDOP and LDOP) values.
Would MODSERIAL help anything? The mbed has no problem outputting the data directly though..
Thanks!
Hello all + Andy,
I am attempting to use the MODGPS library but its hanging somewhere, not sure where yet.
Has anyone tested this lib at NMEA output rates higher than 1Hz?
I checked the output using MODSERIAL and see the NMEA sentences just fine so the problem must be after. I used the example code provided with MODGPS so the code is pretty basic.
I will keep looking but if anyone has any thoughts?
Thanks, Serge