Skip to content

microRTPS/DDS agent protocol splitter. Allows to stream and parse MAVLink and RTPS packets in the same serial link

License

Notifications You must be signed in to change notification settings

tiiuae/agent_protocol_splitter

Repository files navigation

agent_protocol_splitter

Licence Build in Ubuntu Build in MacOS

microRTPS/DDS agent protocol splitter. Allows to stream and parse MAVLink and RTPS packets in the same serial link.

Build

cmake ..
make

Install

To install system wise on an UNIX system (might require sudo permissions):

make install

Usage

Make sure to have the UART link up and the cabling right (if using an TTL-USB adapter).

Run the splitter using:

$ protocol_splitter [options]

Options available:

  -b <baudrate>			UART device baudrate. Default 460800
  -d <uart_device>		UART device. Default /dev/ttyUSB0
  -i <host_ip>			Host IP for UDP. Default 127.0.0.1
  -w <mavlink_udp_recv_port>	UDP port for receiving. Default 5800
  -x <mavlink_udp_send_port>	UDP port for sending. Default 5801
  -y <rtps_udp_recv_port>	UDP port for receiving. Default 5900
  -z <rtps_udp_send_port>	UDP port for sending. Default 5901
  -f Activates UART link SW flow control
  -g Activates UART link HW flow control
  -v Add more verbosity

At the same time, the protocol_splitter should also be run in the client side, so the stream can be multiplexed bidirectionally.

Build docker image

$ docker build -t ghcr.io/tiiuae/tii-agent-protocol-splitter --no-cache -f Dockerfile.containerize .

Run docker container

$ docker run --name protocol_splitter --rm -dt --device /dev/ttyS7 ghcr.io/tiiuae/tii-agent-protocol-splitter 127.0.0.1 /dev/ttyS7

About

microRTPS/DDS agent protocol splitter. Allows to stream and parse MAVLink and RTPS packets in the same serial link

Resources

License

Stars

Watchers

Forks

Packages

No packages published