Ethernet Setup

Hey there, I am struggling a lot with setting up the Eth and assigning the IP adress to my FCUs, Sometimes they just reset or change to a default ip like 172.31.20.100 it was something like this.
I was wondering if there might be a way hardcode the ip adress into the costum-build firmware? Or maybe have it as a parameter like the Telem Baud rates?

Hi,
Have you checked here?

Which is to say, the instructions linked by Farhang explain how to set the IP addresses if you don’t want to use the default configuration - first requests an IP address from DHCP, and if that fails will fallback to the default static address 10.41.10.2 .

If you are using that documented setup and it keeps resetting then that is a bug that is worth of investigation.

Of course the existence of a default IP means that this can be hard coded. The last time the default was changed was here, so you might find some hints: Change default ethernet IP by bkueng · Pull Request #22517 · PX4/PX4-Autopilot · GitHub

Note though there may be some interrelationships to think about, such as where XRCE_DDS thinks it is writing.

1 Like