Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flight Logs data structure for *.DAT files #62

Closed
jeryini opened this issue Jan 17, 2023 · 6 comments
Closed

Flight Logs data structure for *.DAT files #62

jeryini opened this issue Jan 17, 2023 · 6 comments
Assignees

Comments

@jeryini
Copy link

jeryini commented Jan 17, 2023

Hello!

  • SDK version: 5.1.1
  • DJI drone model: Mavic 3T

Official SDK documentation contains information about accessing flight logs via FlightLogManager. But there are only two methods that return the directory path where the files can be located. Browsing that directory reveals the following structure:

  • FlightRecord
    • *.txt files
    • MCDatFlightRecords
      • *.DAT files

Unfortunately both *.txt files and *.DAT files are not readable in text editors. Not sure if *.txt files is encrypted or is perhaps even a binary file even though it has *.txt extension. The *.DAT file is also not easily readable.

Therefore, could we perhaps get either:

  1. SDK methods that would return parsed flight log information from these files.
  2. Binary data structure of these files so we can read them by ourselves.
@DJI-William DJI-William self-assigned this Jan 18, 2023
@DJI-William
Copy link

It tells you how to find the .txt and .DAT files. We will release an online tool later to allow you upload the FlightRecord.txt file to the online tool to parse. Then you will get a parsed result for your aircraft's flying path and telemetry data. The MCDatFlightRecords.DAT file can be only decrypted and analysed internally by our dev teams. It is used for analysing a crash accidently and it records the internal logs for flight controller. Both of the files cannot be readed by outsiders.

@jeryini
Copy link
Author

jeryini commented Jan 18, 2023

I understand that you can't release the keys to decrypt the MCDatFlightRecords.DAT files as those are private nature. But if you are going to provide the online public tool to parse the FlightRecord.txt files, wouldn't make sense to also release the specification of the file structure so that developers can also parse it themselves?

@DJI-William
Copy link

For FlightRecord.txt, we do provide a method to apply for Flight Record Parse API. But it requires you to have a aggrement with us and we have no workforces to provide techinical support regardst to this API. That is why we want to build an online tool for people.

@jeryini
Copy link
Author

jeryini commented Mar 20, 2023

Hello @DJI-William !

I suppose this project FlightRecordParsingLib is the one that you mentioned that is going to be released. But using the FlightRecord txt files generated by using app that runs on v5 SDK gives me error (see dji-sdk/FlightRecordParsingLib#3 (comment)). Is therefore v5 SDK logs not yet supported by that library? Could we now get the full specification of the files?

Also noticed that txt flight logs are not generated if simulator mode is used on the drone, but the DAT files do appear. Is that correct?

@DJI-William
Copy link

It can only decrypt the FlightRecord.txt files. It cannot decrypt the .Dat fiile. There is nothing different with the MSDK v5 and DJI official generated Flight Record files.

@Daria-Shevchenko
Copy link

It can only decrypt the FlightRecord.txt files. It cannot decrypt the .Dat fiile. There is nothing different with the MSDK v5 and DJI official generated Flight Record files.

Are there any updates on this issue? I'm seeking a solution to retrieve flight logs using the DJI SDK. Could you possibly provide some information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants