Skip to content

Conversation

@mahtin
Copy link
Contributor

@mahtin mahtin commented Jan 8, 2024

If you install gpsd then you can't open the serial device to run galmon. However, you a use the gpspipe command to see all the data stream.

This PR allows that. The code will fork/exec a copy of gpspipe and read it via a pipe.

Additionally, this code fixes a few older issue:

  • baudrate was needed on the command line even if reading from a file (or pipe now). Now baud rate is only checked for a non-file/pipe usage.
  • unknown ublox messages were printed in decimal vs hex (they now match the interface manual).
  • Four additional ublox message types are now decoded (but no data from them used). (0x01 0x04) UBX-NAV-DOP, (0x01 0x11) UBX-NAV-VELECEF, (0x01 0x26) UBX-NAV-TIMELS, (0x01 0x61) UBX-NAV-EOE. This reduces debug messages.
  • upon end of file the program exists (a break in the catch didn't do what I thought it did).

The only issue with running this code is that the device can't be talked too. That means you need to run ubxtool manually before gpsd runs so that the code can talk to the ublox device to set it up. This is similar to the need to setup ports and speeds. I did that and all is fine.

This is running code.

mahtin added 2 commits January 8, 2024 14:59
… handle new data, added decode of new message types seen - to reduce debug output, code exits on pipe exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant