Compare commits
2 Commits
2c1afa463f
...
f623b36421
Author | SHA1 | Date | |
---|---|---|---|
f623b36421 | |||
f415406672 |
@ -450,16 +450,25 @@ int Update::run() {
|
|||||||
qCritical() << "DownloadThread::run(): last result" << (int)sendStatus(m_hw->bl_wasSendingDataOK());
|
qCritical() << "DownloadThread::run(): last result" << (int)sendStatus(m_hw->bl_wasSendingDataOK());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// TODO
|
|
||||||
stopBootloader(); // there is no harm in stopping the bootloader even
|
stopBootloader(); // there is no harm in stopping the bootloader even
|
||||||
// if starting the bootloader failed
|
// if starting the bootloader failed
|
||||||
qInfo() << nextTimePoint().toUtf8().constData() << "<DC-UPDATE-SUCCESS>";
|
|
||||||
|
|
||||||
|
// check if update was successful
|
||||||
if (!m_debug) {
|
if (!m_debug) {
|
||||||
m_hw->dc_autoRequest(true); //restart dc_autoRequest after download else E255!
|
m_hw->dc_autoRequest(true); //restart dc_autoRequest after download else E255!
|
||||||
}
|
}
|
||||||
|
|
||||||
return -(int)Result::SUCCESS;
|
for (int i = 0; i < 3; ++i) {
|
||||||
|
qInfo() << "waiting for device controller restart...(" << i << ")";
|
||||||
|
QThread::sleep(20);
|
||||||
|
|
||||||
|
resetDeviceController();
|
||||||
|
if (startBootloader()) {
|
||||||
|
qInfo() << nextTimePoint().toUtf8().constData() << "<DC-UPDATE-SUCCESS>";
|
||||||
|
stopBootloader();
|
||||||
|
return -(int)Result::SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qInfo() << nextTimePoint().toUtf8().constData() << "<DC-UPDATE-FAILURE>";
|
qInfo() << nextTimePoint().toUtf8().constData() << "<DC-UPDATE-FAILURE>";
|
||||||
|
@ -281,7 +281,10 @@ Worker::Worker(int customerNr,
|
|||||||
m_workList.push_back(
|
m_workList.push_back(
|
||||||
std::make_unique<UpdateJsonCommand>(
|
std::make_unique<UpdateJsonCommand>(
|
||||||
//QString("echo ATBUpdateJsonFiles")
|
//QString("echo ATBUpdateJsonFiles")
|
||||||
QString("/opt/app/tools/atbupdate/ATBUpdateJsonFiles --set-ppid %1").arg(QCoreApplication::applicationPid())
|
//QString("/opt/app/tools/atbupdate/ATBUpdateJsonFiles --set-ppid %1").arg(QCoreApplication::applicationPid())
|
||||||
|
|
||||||
|
// use customer repo
|
||||||
|
QString("/opt/app/tools/atbupdate/ATBUpdateJsonFiles").arg(QCoreApplication::applicationPid())
|
||||||
, this, ++next, false));
|
, this, ++next, false));
|
||||||
|
|
||||||
// show/send software-status
|
// show/send software-status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user