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
75
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
75
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.
 

BudWalker

Well-Known Member
Joined
Oct 24, 2016
Messages
1,135
Likes
646
Age
70
Loc
Arroyo Grande, California
Site
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
 

n8r0n74

New Member
Joined
Jun 8, 2018
Messages
3
Likes
1
Age
45
#12
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.
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
75
Likes
46
Age
59
#13
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.
 

New Threads

Forum statistics

Threads
55,686
Messages
650,927
Members
82,030
Latest member
Cappy2