Get more from your Mavic
The largest Mavic community in the world
Join Us Now

Reverse engineering DJI's TXT log format

finlayson

Well-Known Member
Joined
Oct 15, 2016
Messages
77
Reactions
48
Age
62
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 - "[email protected]555.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.
 
  • Like
Reactions: UAVNV

finlayson

Well-Known Member
Joined
Oct 15, 2016
Messages
77
Reactions
48
Age
62
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.
 
  • Like
Reactions: aeropic

Simmo

Learning every day!!
Premium Pilot
Joined
Nov 2, 2017
Messages
2,347
Reactions
1,496
Age
56
Location
FNQ Australia
OK! I dont know what I am supposed to do now.....
Like at Church.. do I clap???
 

dvarapala

Well-Known Member
Joined
Nov 21, 2017
Messages
301
Reactions
229
Age
67
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.
 

Simmo

Learning every day!!
Premium Pilot
Joined
Nov 2, 2017
Messages
2,347
Reactions
1,496
Age
56
Location
FNQ Australia
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.
Are you serious??? Are not we talking about the TXT file here???
 

BudWalker

Well-Known Member
Premium Pilot
Joined
Oct 24, 2016
Messages
1,844
Reactions
1,285
Age
73
Location
Arroyo Grande, California
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
 

n8r0n74

New Member
Joined
Jun 8, 2018
Messages
3
Reactions
1
Age
47
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 - "[email protected]555.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.
Has this website been moved elsewhere? Don't see the live555.com server up any more. This would be super useful, thanks for the reverse engineering effort.
 

finlayson

Well-Known Member
Joined
Oct 15, 2016
Messages
77
Reactions
48
Age
62
Has this website been moved elsewhere? Don't see the live555.com server up any more. This would be super useful, thanks for the reverse engineering effort.

The server was down for a few hours today (due to a server problem). It's up again now.
 

aeropic

Well-Known Member
Joined
Dec 10, 2019
Messages
122
Reactions
108
Age
61
Location
France
Hi Finlayson,

I really appreciate the open source spirit of your work. It's a huge effort to have documented all this and to have released the source code.
Thank you for this.

At the end of your page, We can see there remain lots of open questions... I wish I had more free time ;-)
 

DJI Drone Deals

1. Mini SE - $299
2. Mini 2 - $449
3. Air 2 (renewed) - $649
4. Air 2s - $999
5. FPV Combo - $1299
6. Mavic 2 Zoom - $1349
7. Mavic 2 Pro - $1499

New Threads

Forum statistics

Threads
108,103
Messages
1,280,161
Members
138,961
Latest member
flythere