DroneNet configuration on Pixhawk6c

Hello Everyone:
I am trying to use DroneNet to bridge Pixhawk 6c between my notebook (running MP), so I can establish connection through ethernet. My wiring is shown below:

I need ethernet to be configured as below:

  1. Pixhawk6C has address 192.168.168.115
  2. Pixhawk6C has a port configured as udp client, which will broadcast to 14225
  3. The netmask should be 255.255.255.0, for my PC have static IP 192.168.168.161
  4. The gateway should be 192.168.168.1

So I made necessary changes to parameters of both Pixhawk6c and DroneNet:

Pixhawk6c:
NET_ENABLE,1
NET_OPTIONS,0
NET_P1_IP0,255
NET_P1_IP1,255
NET_P1_IP2,255
NET_P1_IP3,255
NET_P1_PORT,14225
NET_P1_PROTOCOL,2
NET_P1_TYPE,1

SERIAL1_BAUD,12500000
SERIAL1_OPTIONS,0
SERIAL1_PROTOCOL,48
pixhawk6c_parameter.txt (22.3 KB)

DroneNet:
DroneNet_Parameter.txt (1.0 KB)

However, I failed to connect to my pixhawk 6c through the DroneNet, though some messages indeed shows up:
boot
and I can ping 192.168.168.115 and 192.168.168.116 from my notebook.

How to make my config right? Thanks !

@Claude_Lu if I understand correctly, you’re trying to Mission Planner using ethernet connection via dronenet? Since you can ping your flight controller, I assume your PPP link is working fine.

Here a configuration that I tested and works well:
Try setting: NET_P1_TYPE =2 (UDP Server), NET_P1_PORT to some port number, NET_P1_PROTOCOL = 2.

You can set NET_P1_IP* all to 0.

Then you should be able to connect to MP by setting the IP address of the Flight controller and setting the port (UDP).

Thanks for your reply ! Unfortunately, I encounter another problem, one of my DroneNet ‘stuck’ in this page:


The other one works fine:

How to fix this problem ? Or maybe that board is broken ? Thanks !

1 Like

Hi @Claude_Lu,

I’m not sure if you got your DroneNet working or not but we’ve just updated the wiki with a DroneNet specific setup page here.

1 Like

I will let the AI bot index the wiki docs again then.

1 Like