问题
I am working on ADTF .dat trace file. I need to read these files without using ADTF tools. The trace file is of FLEXRAY. I would like to know is there any open source tool/library to read such file Or, can anyone guide me how do i proceed to read this file? I would really appreciate anyone help on this.
回答1:
For read and write access to (adtf)dat files there is the ADTF File Library a.k.a. IFHD the best option, which is the base for ADTF 3.x and can also handle the file structure from ADTF 2.x.
Please have a look at https://support.digitalwerk.net/adtf_libraries/adtf-file-library/v0/html/index.html
There is an example how to access the information https://support.digitalwerk.net/adtf_libraries/adtf-file-library/v0/html/a02069.html
The Lib itself comes completely open source licensed and can be consumed by digitalwerk artifactory / conan: https://artifactory.digitalwerk.net/artifactory/webapp/#/artifacts/browse/tree/General/dw-developer-sdk/dw/ifhd/0.5.0/stable
Depends on your use case but if you want to inspect or export data using UI, the DAT GUI Tools are also open source and implementing the IFHD: https://support.digitalwerk.net/adtf_libraries/adtf-dat-gui-tools/v0/guides/index.html
And download here as well: https://artifactory.digitalwerk.net/artifactory/webapp/#/artifacts/browse/tree/General/dw-public-releases/aev25/ADTF_DatTools/0.1.0/stable
But note: To interpret the flexray stream, you have to extend the functionality with the devtb2 deserializer plugin provided by device toolbox 3.1.0, in case the data has been recorded uaing ADTF 2.x. because ADTF 2.x itself does not know about Flexray... In case your dat file is from ADTF 3.x, everything will work. The file access example has the option to.load the additional adtffileplugin for that. This means you can read without ADTF but you need the component from the Device Toolbox.
The artifactory frontent is ugly. Here is a short way to use it for IFHD:
To find a package, see
And to download, see
Here is the link to IFHD for Windows / VS2017 / VS141 / Build Type: Release package from the screenshots -> https://artifactory.digitalwerk.net/artifactory/webapp/#/artifacts/browse/tree/General/dw-developer-sdk/dw/ifhd/0.5.0/stable/package/66cf6fe195939f36e2bceb8ce0ae147f3a8285e6/conan_package.tgz
来源:https://stackoverflow.com/questions/58594989/adtf-dat-trace-file-reader