-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FreeEmsPlugin: Better handling of disconnect detection and reconnect …
…syncing EMSTune will now pop up a display when it detects that it has connected to a device with differing non-readonly memory locations. It will also allow the user to either send local changes to the ECU,or accept ECU defaults as the current memory situation. The plugin will also notify the user when it has detected that the ECU has gone silent for more than 1500 milliseconds. This will be user configurable in the future once plugin-specific settings are supported. Added functionality to actually check if incoming data is different from what is stored in application memory and sendinga notification to the the user. This is a temp commit to trigger a test build and will be replaced with an actual commit containing a proper diff window of some sort of the data iTEmp
- Loading branch information
1 parent
192346b
commit 9ad63d8
Showing
13 changed files
with
458 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "ramdiffwindow.h" | ||
#include "ui_ramdiffwindow.h" | ||
|
||
RamDiffWindow::RamDiffWindow(QWidget *parent) : | ||
QWidget(parent), | ||
ui(new Ui::RamDiffWindow) | ||
{ | ||
ui->setupUi(this); | ||
ui->tableWidget->setColumnCount(1); | ||
ui->tableWidget->setColumnWidth(0,200); | ||
connect(ui->pushLocalButton,SIGNAL(clicked()),this,SIGNAL(acceptLocalChanges())); | ||
connect(ui->pullRemoteButton,SIGNAL(clicked()),this,SIGNAL(rejectLocalChanges())); | ||
} | ||
|
||
RamDiffWindow::~RamDiffWindow() | ||
{ | ||
delete ui; | ||
} | ||
void RamDiffWindow::setDirtyLocation(unsigned short locationid) | ||
{ | ||
ui->tableWidget->setRowCount(ui->tableWidget->rowCount()+1); | ||
ui->tableWidget->setItem(ui->tableWidget->rowCount()-1,0,new QTableWidgetItem(QString::number(locationid))); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef RAMDIFFWINDOW_H | ||
#define RAMDIFFWINDOW_H | ||
|
||
#include <QWidget> | ||
|
||
namespace Ui { | ||
class RamDiffWindow; | ||
} | ||
|
||
class RamDiffWindow : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit RamDiffWindow(QWidget *parent = 0); | ||
~RamDiffWindow(); | ||
void setDirtyLocation(unsigned short locationid); | ||
private: | ||
Ui::RamDiffWindow *ui; | ||
signals: | ||
void acceptLocalChanges(); | ||
void rejectLocalChanges(); | ||
}; | ||
|
||
#endif // RAMDIFFWINDOW_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>RamDiffWindow</class> | ||
<widget class="QWidget" name="RamDiffWindow"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>679</width> | ||
<height>458</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_3"> | ||
<item> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string><h2>Warning</h2></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="text"> | ||
<string>The ECU has different RAM in memory than the tuner. This could be a result of the ECU resetting, or otherwise losing sync with the tuner. The locations which are different, are listed below</string> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QTableWidget" name="tableWidget"/> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<widget class="QLabel" name="label_3"> | ||
<property name="text"> | ||
<string>To accept the local tuner changes, click below to send these changes to the ECU.</string> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="pushLocalButton"> | ||
<property name="text"> | ||
<string>Accept Local</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="label_4"> | ||
<property name="text"> | ||
<string>To accept the ECU changes, click below to wipe out any local changes.</string> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="pullRemoteButton"> | ||
<property name="text"> | ||
<string>Accept Remote</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.