Ethernet over Pprzlink
Provides transparent connection between a GCS linux computer and a Mission/Copilot computer (also a linux computer).
Etherlink provides a tap interface on each side, passing network traffic as PAYLOAD_COMMAND
message to the autopilot.
- make sure you have latest
master
version of paparazzi - add
copilot
module with enabled PAYLOAD_COMMAND forwarding:
<module name="copilot">
<define name="FORWARD_PAYLOAD" value="TRUE"/>
</module>
- you need a working serial connection to your Mission computer/Copilot
- Clean, Build & Upload, make sure you have telemetry from the Autopilot
cargo build
- run
./init_gcs.sh
- that will create a tap interfacetap1
with IP addr192.168.69.1
- run a regular pprz session with
link
etc. cargo run
- will start etherlink
cargo build
(has to be done while online)- run
./init_copilot.sh
- that will create a tap interfacetap1
with IP addr192.168.69.2
- run
link
program cargo run
to start etherlink
Now you can treat the tap1
interface as a regular interface, most likely you will want to send UDP/TCP data (which requires
an application on the other side to listen at a particular port, otherwise an ICMP message "Destination unreachable" will
be emitted). But for start, you can just ping your Copilot:-)