PX4 Log Encryption

This section guides you through setting up log encryption in PX4 on our flight controllers, and then explains how to access, decrypt, and view the encrypted logs.

Creating PX4 Board files for Encrypted logs

git clone --recurse-submodules [email protected]:PX4/PX4-Autopilot.git

Generate your Private and Public Key

You can find your keys in

The ARK flight controllers have targets setup for encryption

You should navigate to

  • ARK FPV

  • ARKV6X

  • ARKPI6X

You should replace the Dummy Key with your own Public Key in the following file

Then you can go ahead and make your board file

Once that is done you can find your build file in

You can go ahead and flash it on your flight controller.

Downloading and Decrypting log files

The encrypted logs can be found on the SD card in .ulge format.

You can either extract the files directly from the SD card our use the log tool provided below

Addresses might need to be adjusted

To Decrypt the logs you can use

Your logs can be found in the following structure

Once you've decrypted your logs, you can view them using your preferred method.

Flight Review

If you choose to use Flight Review, you can embed your Private Key on your local Flight Review server, allowing your encrypted logs to be decrypted automatically when the .ulge is uploaded .

You should follow these steps

Add your Private Key to

Then you need to edit, the config file. There you can define your own network setup (Domain, VPN, etc).

You have to update the Private Key path with your own.

Once you are done you can just open your server using

Once you have your server ready you can upload the Encrypted logs and view them.

Optionally you can also integrate logloader developed by ARK.

The repository can be found here:

https://github.com/ARK-Electronics/logloader

You should specify your server in the config file

Last updated