Servers by jDrones

Make px4 communicate only with custom gcs

(Naveen Raj) #1

how could i create condition such that the firmware connects only with my custom gcs. iam modifying px4 firmware and gcs code side by side and coudnt find any probable answers.

(James Pattison) #2

Assuming you mean ArduPilot on a Pixhawk: easiest is to enable mavlink signing. This ensures that your drone only accepts telemetry commands from a source (gcs) with a matching key.
USB bypasses it though, so you only have security over Serial.
If you’re using px4 firmware, I’ve no idea.

(Naveen Raj) #3

thanks for your reply. it is ardupilot on pixhawk. ive managed to use my_gcsid as a factor to restrict via usb but the range seems to be 1 - 255. is there a way i can increase this range so that no one can find the value by bruteforce.

(James Pattison) #4

protecting against brute force requires more than just a bigger number.
What is your use case?

(Naveen Raj) #5

hey james… my objective is to customise gcs to get a security provision since it is required in my country. if we could create a string like password out of my_gcsid would be enough to do so.

(James Pattison) #6

Perhaps @bugobliterator can update on some broader activity on that front.

The problem with using a string is that whilst it’s easy enough to do, you’d need to fork both mavlink and ArduPilot, which then means maintaining those forks to a production ready level. I recommend against that unless you are absolutely confident you have the necessary skill sets and infrastructure to do it with the same or greater rigour as mainline.



(Naveen Raj) #7

thank you for your valuable input, greatly appreciated. since im just begginer i would refrain from tampering mavlink files.

(peterbarker) #8

Please note the provisions in ArduPilot’s licensing requiring that any
(non-business) individual you supply an ArduPilot-equipped autopilot to
must be capable of not only obtaining and modifying the source code under
the same license you’re using it under, but also that they are capable of
uploading and using that software on the autopilot.

See GPLv3 in here: