Hi,
I’m having trouble with connecting Mission planner to my flight controller.
This is my setup :
Drone :
- Flight controller : Pixhawk6X + Ardupilot 4.7.0 / IP=192.168.1.153
- 2 cameras with OpenIPC firmware / IP=192.168.1.7-8
- ethernet switch
- RaspberryPI 4B + BL8812AU wifi / IP=192.168.1.152 let’s call it RPI1
Thoses 4 component are linked by ethernet cable.
Ground Station :
- Laptop running Win10 and mission planner / IP=192.168.1.3
- RaspberryPI 4B + BL8812AU wifi / IP=192.168.1.153 lets’ call it RPI2
linked by a single ethernet cable.
Every component has a static IP address.
The wireless communication is done with wfb-ng.
Video is working perfeclty in Mission planner. But I can’t get connection between Mission planner and the FC.
For video on RPI1 I enter via ssh :
wfb_tx -K “/etc/drone.key” -u 5600 -p 1 wlan0
wfb_tx -K “/etc/drone.key” -u 5601 -p 2 wlan0
Camera are set up to send on 192.168.1.152:5600 and 5601
On RPI2 :
wfb_rx -K “/etc/gs.key” -p 1 -c 192.168.1.3 wlan0
In Mission Planner I have to feed gstreamer with the good command line.
For telemetry :
On RPI1 :
wfb_tx -K “/etc/drone.key” -u 14550 -p 16 wlan0
wfb_rx -K “/etc/drone.key” -u 14550 -c 192.168.1.153 -p 17 wlan0
On RPI2 :
wfb_tx -K “/etc/gs.key” -u 14550 -p 17 wlan0
wfb_rx -K “/etc/gs.key” -u 14550 -c 192.168.1.3 -p 16 wlan0
FC is configured with NET_P1_TYPE = 1(UDP client), NET_P1_IPx = 192.168.1.152, NET_P1_PROTOCOL=2(MavLink2).
When I click on Connction button in mission planner the connection is established but then I get stuck on “Getting parameters”.
I can se on ssh consoles that FC is continuously sending data to RPI1, thoses data reach RPI2 through wifi and Mission planner. I mean the HUD is working correctly, but it seems that Mission planner is asking for more data but the request is not heared by RPI2 and nothing is tx by wifi to RPI1.
I have tried all possibles configs, including setting the FC as UDP server but didn’t get a working result.
It seems that mission planner request are on a different port number. I used Wireshark to determine this port number and finded out that there is 2 ports numbers, one input and one output. And when mission planner try to access the FC it use a random number… Even if I spy at this number and change my cmd line on RPI2 it does not work even if I can see a bidirectionnal traffic on the Wifi.