simpleRTK2B and binary output? gpsmon on Raspberry Pi failing; binary mode

Q&A forumCategory: QuestionssimpleRTK2B and binary output? gpsmon on Raspberry Pi failing; binary mode
clip asked 6 months ago

I’ve gotten the simpleRTK2B to communicate using a direct connection to the serial port on a Raspberry Pi, but this isn’t ideal.
However, when using the gpsmon tool, which connects to the gpsd daemon, it is hit or miss.  Sometimes, the connection will go through, and other times, communication will happen, but the raw messages will be (I’m pretty sure) binary; stuff like this will show up at the bottom of gpsmon:

(24) b5620120………………
(26) b5620104……………..
(24) b5620120……………..
The odd thing is, that sometimes, gpsd will grab a few good fixes (you can see good NMEA strings), and then, after a few seconds, you see the b5620120…. stuff as above.  I know gpsd automatically configures to
gpsd on the rPi is 3.17
Is the system going to a different mode of some sort?

3 Answers
clip answered 6 months ago

….message was cut off – gpsd will automatically configure itself based on baud rate of serial port.  I wonder if this is the cause of the issue.

clip answered 6 months ago

One solution is to use:
gpsctl -n
This forces NMEA strings.  However, it seems you have to either wait a bit after gpsd has started, or issue the command *twice*.

gdt answered 3 weeks ago

gpsd 3.17 is extremely old.   There have been a lot of fixes/improvements to gpsd since then for the F9P.    I suggest at the very least upgrading to 3.21, but really check out gpsd from git and build it yourself.