ARTICLES
Drone flight logs: DJI, Litchi, ArduPilot and PX4
Every drone keeps a flight log, but not in the same place: in the phone's app, on the autopilot's SD card or on the ground station's computer. Where to find yours, what it holds, why some are encrypted, and what to look at after a flight or an incident.
DJI: the log stays on the device that flew it
DJI's apps, such as DJI Fly and DJI Pilot, record a log of every flight, the “flight record”. It is kept locally, on the smartphone or remote controller that flew the drone, or on its SD card.
The cloud is not a safe backup. In 2024, DJI ended flight record sync for U.S. operators, then announced the deletion of the logs generated in the United States that it stored; it advised downloading them beforehand, from the “Flight Data Center” in DJI Fly or “Flight Record” in DJI Pilot. Records saved locally were not affected. So copy the ones on the phone or remote controller to a computer regularly.
Despite its .txt extension, the file is structured: a prefix, the details of the flight and the records, in a layout that has changed with the versions of the format. According to the documentation of an open source reader of the format, each moment brings together:
- the flight state: flight time, latitude, longitude, altitude, height and maximum height, horizontal and vertical speeds, pitch, roll, yaw, flight mode, number of GPS satellites, return-to-home status, motors on, compass error, voltage warning;
- the battery: charge level in percent, voltage, current, capacity, the voltage of each cell and the deviation between cells, temperature;
- the gimbal, the camera, the remote controller, the home point and the app.
Recent DJI logs are encrypted
Starting with version 13 of the format, the records are AES encrypted and can only be decrypted with a keychain specific to the file. DJI provides that keychain through its API, to whoever presents a key obtained by creating an app on DJI's developer site. The library DJI publishes itself to read version 13 logs works the same way: it requires an App Key and fetches the decryption key from DJI's service. Any software that reads recent DJI logs therefore goes through DJI.
Litchi: the flightlogs folder
The Litchi flight app keeps its own logs. On Android, they are in the Android/data/com.aryuthere.visionplus/files/flightlogs folder of the device storage, which you reach by connecting the device to a computer or with a file manager; on iOS, in the flightlogs folder of Litchi's storage. On Android, a setting turns logging off; on iOS, it cannot be turned off.
ArduPilot: the autopilot's SD card, and the ground station
ArduPilot keeps two logs that record very similar data in different ways. The dataflash log is written by the autopilot itself, often to its SD card: you download it after the flight, as a .bin (or .log) file. The telemetry log (.tlog) is written by the ground station, on the computer, while the autopilot is connected to it through a telemetry link.
To download the dataflash log with the Mission Planner ground station, connect the drone to the computer with the USB cable, open the DataFlash Logs tab and choose Download DataFlash Log Via Mavlink; the file goes to the Mission Planner logs folder, in a subfolder named after the vehicle type. The telemetry logs are in the logs folder of the program, named by date and time (YYYY-MM-DD hh-mm-ss.tlog): they start the moment you press the connect button. Ignore the .rlog files, which cannot be played back.
The LOG_BITMASK parameter chooses the messages recorded; LOG_DISARMED set to 1 starts logging when power is applied rather than at the first arming, which helps with a problem on the ground. Among the messages: GPS (fix status, number of satellites, position, speed), ATT (desired and achieved roll, pitch and yaw), BAT (voltage, current, consumed capacity, remaining percentage), BARO, CTUN (throttle, desired and achieved altitude, climb rate), MODE (mode changes and their reason), ERR (error codes by subsystem), EV (events such as arming and disarming) and MSG (text messages).
PX4: the ULog format
PX4 logs detailed aircraft state and sensor data in the ULog format, as .ulg files stored in folders named by date when the system has a valid time, otherwise by session (sess001…). By default, logging runs from arming to disarming; the SDLOG_MODE parameter can, for instance, start it at boot. Logs are downloaded with the QGroundControl ground station (Analyze view, Log Download). PX4 can also encrypt its logs: an encrypted log cannot be downloaded with QGroundControl.
What to check after a flight
- The height: check what the log measures it from, the take-off point or the ground below, before comparing it with the limit of the open category, which EASA sets at 120 m above ground level.
- The distance from the home point and the highest speed.
- The battery: the voltage of each cell, the deviation between cells and the temperature, to follow from one flight to the next.
- The GPS: the number of satellites and the quality of the fix, above all at take-off.
- The radio link, the mode changes and the automatic returns to home: that is where to look first when the drone did something unexpected.
- The drone's own messages and errors, such as ERR, EV and MSG on ArduPilot.
After an incident, copy the log straight away, before another flight or an update of the app, and keep the original intact.
Sources
- Update on U.S. Flight Records Sync: Download Your Data Before It Gets Deleted DJI ViewPoints, 5 September 2024
- DJI to Disable Flight Records Sync in the U.S. and Remove Thumbnail Previews Globally DJI ViewPoints, 7 June 2024
- FlightRecordParsingLib DJI SDK, on GitHub
- dji-log-parser Open source library (MIT licence), on GitHub
- dji_log_parser — documentation (Frame, FrameOSD, FrameBattery) docs.rs
- Litchi — Help Litchi
- Logs ArduPilot, Copter documentation
- Downloading and Analyzing Data Logs in Mission Planner ArduPilot, Copter documentation
- Telemetry Logs ArduPilot, Mission Planner documentation
- Onboard Message Log Messages ArduPilot, Copter documentation
- Logging PX4 Guide (main)
- Flight Reporting PX4 Guide (main)
- Open Category — Low Risk — Civil Drones EASA
Texts read on the date of the article. For regulations, only the official version is authentic.