Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active October 28, 2024 16:32
Show Gist options
  • Save tstellanova/6bbe9f5fd5d72a4aabed408fe9c40b61 to your computer and use it in GitHub Desktop.
Save tstellanova/6bbe9f5fd5d72a4aabed408fe9c40b61 to your computer and use it in GitHub Desktop.
RTK RTCM Injection Using RPi3 or NUC

You can use a Raspberry Pi 3 or NUC to forward RTCM messages from a ublox base station to a Pixhawk via mavlink, using a combination of mavproxy and socat.

  • Setup RPi3 or NUC with Mavproxy
  • Configure Mavproxy to start the DGPS module
  • Plugin RTK base station to RPi3 usb port (should appear on /dev/ttyACM0 )
  • Conifgure /dev/ttyACM0 to pass raw binary data: stty -F /dev/ttyACM0 57600 raw -echo -echoe -echok -iexten -echoctl -echoke
  • Forward RTCM via UDP using socat: socat UDP-DATAGRAM:127.0.0.1:13320 file:/dev/ttyACM0
@jorgitinlugo
Copy link

Could you show me how did you manage to do this? Im trying in my odroid and i cant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment