MAVProxy multiple connections - UDP & UDPIN

I’m trying to set up MAVProxy on a RasPi (wifi bridge style) so that I can both access it via wifi, and do some local stuff with DroneKit.

I tried:

mavproxy.py --master=/dev/ttyACM0 --out=udpin:0.0.0.0:14550

then:

mavproxy.py --master=127.0.0.1:14550

on the RasPi itself, but mavproxy apparently doesn’t support UDPCI connections, but the PC UDPCI connection worked.

I tried

mavproxy.py --master=/dev/ttyACM0 --out=udpin:0.0.0.0:14550 --out=udp:127.0.0.1:14550

and the local connection worked, but the UDPCI from my PC didn’t.

Then I tried

mavproxy.py --master=/dev/ttyACM0 --out=udp:127.0.0.1:14550

in one shell, and

mavproxy.py --master=127.0.0.1:14550 --out=udpin:0.0.0.0:14560

in a second shell. As soon as the second one connected, the first one dropped out - it seems two links can’t draw from the one UDP stream.

If this is the case, how do you share a telemetry stream to multiple GCS / users / applications?

1 Like

Did some more thinking. Is the answer just using multiple “out” statements across different ports - i.e.

mavproxy.py --master=/dev/ttyACM0 --out=udp:127.0.0.1:14560 --out=udp:127.0.01:14570
+
mayvproxy.py --master=127.0.0.1:14560 --out=udpin:0.0.0.0:14550 (host for PC GCS)
+
mavproxy.py --master=127.0.0.1:14570 (do other stuff locally with Dronekit)