[DJI-log-discuss] CSV output size smaller than expected

Ross Finlayson finlayson at live555.com
Thu Feb 18 09:18:14 PST 2021



> On Feb 18, 2021, at 4:29 AM, James Norman <jamesnorman78 at gmail.com> wrote:
> 
> My question is why when I upload the same above DJI txt file to https://www.phantomhelp.com/logviewer/Upload/ and click the "Download CSV" file (result of that file is https://mydjibucket.s3-ap-southeast-2.amazonaws.com/Log.csv) that the CSV is so much bigger than that of djiparsetxt and has thousands more records.

Two reasons:
	1/ The “phantomhelp.com” site has (presumably due to some relationship with DJI) some knowledge of the proprietary format of some records of the DJI “.txt" file that we have not been able to reverse engineer, but mainly:
	2/ Your “.txt” file contained a record (with an unknown-to-us record type) that did not have an ‘end of record’ marker (0xFF) where we expected to see it. Our code, when it saw this, just gave up.

However, I have now updated the code to be more tolerant of this situation.  Now, rather than just giving up, the code scans forward until it finds a 0xFF, and then continues.

Please download the new version (2021-02-18) of the code.  With this new version, you will now get a CSV file for the whole of your flight.

Thanks for the note; your “.txt” file helped improve the code.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the DJI-log-discuss mailing list