Welcome Mavic Pilot!
Jump in and join our free DJI Mavic community today!
Sign up

Reverse engineering DJI's TXT log format

finlayson

Well-Known Member
Joined
Oct 15, 2016
Messages
74
Likes
46
Age
59
#1
FYI, I have reverse-engineered DJI’s “.txt” log file format, and have made available Open Source code for (command-line) applications that:
  1. Read a DJI “.txt” file, outputting a ‘comma-separated value’ (CSV) file (that can be input to a spreadsheet), and
  2. Read a CSV file, outputting a KML-format file (that can be read by Google Earth, to display your drone’s track).
(These two applications can be combined (piped) together, so you can generate a KML-format file directly from a DJI “.txt” file.)

You can find this (documentation plus source code) online at:
http://djilogs.live555.com/

We also have a public mailing list - "dji-log-discuss@lists.live555.com” - that people can use to discuss this software (and the “.txt” log format in general). Information about this mailing list can be found at the web site noted above.

(Note that I won’t be posting much more on this thread - so if you have any questions/comments about this software, please use our mailing list, rather than this thread.)

Ross.
 
Likes: UAVNV

finlayson

Well-Known Member
Joined
Oct 15, 2016
Messages
74
Likes
46
Age
59
#7
Dunno Bro?? I've been using this for ages...
CsvView/DatCon
That's good. I see that he has source code (in Java) for his DAT -> CSV conversion tool. This will be useful (for documenting the DAT file format).

But he didn't have any source code for his TXT -> CSV conversion tool. For that, he just used the separate "TXTlogToCSVtool.exe" Windows application - which didn't have source code. That's where I've filled the gap. My TXT -> CSV conversion tool has full source code.
 

dvarapala

Well-Known Member
Joined
Nov 21, 2017
Messages
290
Likes
215
Age
64
#9
Subscribed.

It pisses me off that DJI tries to lock me out of my own data by obfuscating/encrypting it. Any effort to "jailbreak" our flight data has my support.
 
Likes: MavicFlyer

BudWalker

Well-Known Member
Joined
Oct 24, 2016
Messages
1,070
Likes
584
Age
70
Location
Santa Margarita, California
Website
www.datfile.net
#11
That's good. I see that he has source code (in Java) for his DAT -> CSV conversion tool. This will be useful (for documenting the DAT file format).
........
The record structure is well known. You're probably referring to the specific fields within a particular record type. Documenting these will be tough. Every platform-FW combination can be different. And, it's a moving target.

For each record type in a .DAT DatCon will look for different ways to parse that particular record type. If it can't find one that it likes that record type won't be parsed and won't appear in the generated .csv.

The .DAT files are kinda self documenting. You can see this by telling DatCon to produce a RecDefs file.
upload_2018-7-20_8-11-27.png
 

New Threads

Forum statistics

Threads
47,462
Messages
555,009
Members
70,221
Latest member
cGould