Mavlink-router not working for companion computer

Dear:

I tried to use an application on companion computer(Raspberry Pi) to communicate with px4 jmavsim simulator on my laptop ubuntu, but failed.

px4 version 1.11.3

On laptop ubuntu( IP:192.168.3.12),I run the simulator jmavsim as follows:

make px4_sitl_default jmavsim

On companion computer ubuntu(IP:192.168.3.11), I run the mavlink-router and the application mavlink_control as follows:

mavlink-routerd –e 192.168.3.12:14540 127.0.0.1:14540

mavlink_control -u 127.0.0.1:14540

The mavlink_control program does not get any heartbeat message from px4 + jmavsim in my laptop.

Anybody can indicate what’s wrong with it ? Thank you in advance.

I tried hard and solved above problem myself.

  1. the mavlink-router should run on laptop side.
  2. my companion computer(raspberry pi)IP is 192.168.3.11
    run mavlink-router as follows:
    ./mavlink-routerd -e 192.168.3.11:14540 127.0.0.1:14540
1 Like