Skip to content

DLT File Splitting Settings#694

Draft
Renu-Priya411 wants to merge 2 commits intoCOVESA:masterfrom
Renu-Priya411:Feature/ImproveFileSplittingSettings
Draft

DLT File Splitting Settings#694
Renu-Priya411 wants to merge 2 commits intoCOVESA:masterfrom
Renu-Priya411:Feature/ImproveFileSplittingSettings

Conversation

@Renu-Priya411
Copy link
Copy Markdown
Contributor

The given dlt file can be split into smaller sizes and can be saved in local as per user's convenience

Signed-off by : Renu Priya Krishnamoorthy RenuPriya.KA.Krishnamoorthy@bti.bmwgroup.com

@alexmucde
Copy link
Copy Markdown
Collaborator

  • Split files only at the end of a DLT message
  • Implement not in Mainwindow.cpp, is getting too large

Comment thread src/filespliting.cpp
}
}

m_file->close();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when trying the feature, getting error "Unexpected EOF: file ends before message fully read." in application output.

Also, last few logs (20-100 lines) are missed. Data loss is seen when splitting the files.
Please test and correct the behaviour.

Comment thread src/filespliting.cpp
// Reset to start
m_file->seek(0);

while (!m_file->atEnd()) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this while look blocks UI thread, so if we try to split big file, the whole DLT-Viewer application is stuck and does not respond till the export is done. (which might take ~30-40 sec. in some cases.)
may be having thread safe implementation for this might help. if not, we can create a pop-up which show's the progress while export is going on.

Comment thread src/filespliting.cpp
}


if (folderPath.isEmpty()) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant empty checks.

Comment thread src/filespliting.cpp
QString sizeUnit = unitCombo->currentText();

qint64 multiplier = 1;
if (sizeUnit == "KB") multiplier = 1024LL;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think KB split is really needed.
@mfukar what do you think?

Comment thread src/mainwindow.cpp
}

//call for spliting the DLT File
void MainWindow::on_actionSplitDLTFile_triggered(){
Copy link
Copy Markdown
Collaborator

@shubhamshahaBMW shubhamshahaBMW Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please handle below cases

  1. After running DLT-Viewer first time if we trigger file split W/O opening any file, it causes a crash. We can give error popup saying no open file.
  2. start DLT -> connect to hw for live logs -> try to split the file (while connected/disconnected). -> split pop-up does not appear. We can give error popup saying save the file first.

@Renu-Priya411 Renu-Priya411 marked this pull request as draft March 13, 2026 08:58
The given dlt file can be split into smaller sizes and can be saved in local as per user's convenience

Signed-off by : Renu Priya Krishnamoorthy <RenuPriya.KA.Krishnamoorthy@bti.bmwgroup.com>
File spliting into smaller sizes using DLT message. Logic removed from mainwindow and written to a new .cpp and .h file

Signed-off by : Renu Priya Krishnamoorthy <RenuPriya.KA.Krishnamoorthy@bti.bmwgroup.com>
@Renu-Priya411 Renu-Priya411 force-pushed the Feature/ImproveFileSplittingSettings branch from 00b7edd to a1509ce Compare March 24, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants