COVESA / dlt-viewer

Diagnostic Log and Trace viewing program
Other
426 stars 240 forks source link

DLT file transfer plugin not showing any files to save #335

Closed GuruDlt closed 1 year ago

GuruDlt commented 1 year ago

DLT_crash.zip Dlt-viewer.zip

Hi Team,

I have dlt file transfer code to transfer core binary to dlt viewer and I am able to see logs also from dlt-viewer(as attached zip[DLT_crash.zip]) but I don't see any files to save from file transfer plugin as shown in screen shot from Dlt-viewer.zip.

Could anyone please help me here with what I am missing.

Thanks in advance.

Guru.

alexmucde commented 1 year ago

Please check the configuration file of the plugin. If you have a different context id like in the example folder of the plugin please change it: <?xml version="1.0" encoding="UTF-8"?>

FLST FLDA FLFI FLER FILE
GuruDlt commented 1 year ago

Hi Alex

From dlt open source, I don't see file transfer plugin config file. please refer below ~/Documents/dlt-daemon-master$ find -iname " file " ./include/dlt/dlt_filetransfer.h ./doc/dlt_filetransfer.md ./tests/testfile_filetransfer.txt ./tests/mod_system_logger/Makefile ./tests/start_filetransfer_test.sh ./tests/testfile_extended.dlt ./tests/testfile.dlt ./gtest-1.7.0/include/gtest/internal/gtest-filepath.h ./gtest-1.7.0/Makefile.am ./gtest-1.7.0/scripts/fuse_gtest_files.py ./gtest-1.7.0/scripts/test/Makefile ./gtest-1.7.0/Makefile.in ./gtest-1.7.0/src/gtest-filepath.cc ./gtest-1.7.0/make/Makefile ./gtest-1.7.0/test/gtest-filepath_test.cc ./gtest-1.7.0/test/gtest_xml_outfile2test.cc ./gtest-1.7.0/test/gtest_xml_outfiles_test.py ./gtest-1.7.0/test/gtest_xml_outfile1test.cc ./gtest-1.7.0/Makefile ./src/lib/dlt_filetransfer.c ./src/examples/dlt-example-filetransfer.c ./src/tests/dlt-test-receiver-multiple-files.sh ./src/tests/dlt-test-filetransfer.c ./src/tests/dlt-test-filetransfer-file ./src/tests/dlt-test-filetransfer-image.png ./src/system/dlt-system-logfile.c ./src/system/dlt-system-filetransfer.c ./src/shared/dlt_config_file_parser.h ./src/shared/dlt_config_file_parser.c ./build/.cmake/api/v1/query/client-integration-vscode/cmakeFiles-v1 ./build/CMakeFiles ./distfiles ~/Documents/dlt-daemon-master$

alexmucde commented 1 year ago

Look here: https://github.com/COVESA/dlt-viewer/blob/master/plugin/examples/filetransferplugin_configuration.xml If you adopt this file, load it into the plugin as configuration and change it to your configuration it should work.

GuruDlt commented 1 year ago

Hi Alex,

Sorry for the bit delayed reply here. I have understood that this configuration xml need some changes as per my configuration. As below is the content of xml config file, can you please share any reference / example on how or what basis changes should be done in xml config file.

<?xml version="1.0" encoding="UTF-8"?>

FLST FLDA FLFI FLER FILE
alexmucde commented 1 year ago

@GuruDlt You have to set the TAG_FLCTID to your used CtxId or change your SW to use CtxId FILE. Then you have to load this file into the Plugin.

GuruDlt commented 1 year ago

Hi @alexmucde

After I changed in sw to use same context id as per plugin configuration file, it worked and now I am able to save the file from dlt application.

Thanks for inputs @alexmucde. I am closing the ticket with this ticket.