Index: sources/canbus/MessageDispatcher.cpp =================================================================== diff -u -rcbb246d6efa242f927f88ac5da518dedb2d63320 -r922463c555493a51ea20744a95dd62976adaf0f9 --- sources/canbus/MessageDispatcher.cpp (.../MessageDispatcher.cpp) (revision cbb246d6efa242f927f88ac5da518dedb2d63320) +++ sources/canbus/MessageDispatcher.cpp (.../MessageDispatcher.cpp) (revision 922463c555493a51ea20744a95dd62976adaf0f9) @@ -17,6 +17,7 @@ // Qt #include #include +#include // Project #include "Logger.h" @@ -103,6 +104,9 @@ connect(&_MessageAcknowModel , SIGNAL(didFailedTransmit( Sequence )), this , SLOT( onFailedTransmit( Sequence ))); + connect(&_MessageAcknowModel , SIGNAL(didCheckIn ( )), + this , SLOT( onCheckIn ( ))); + // Application Settings are ready connect(&_ApplicationController, SIGNAL(didSettingsDone ()), this , SLOT( onSettingsDone ())); @@ -159,6 +163,7 @@ */ void MessageDispatcher::onFrameReceive(Can_Id vCan_Id, const QByteArray &vPayload) { + //DEBUG: qDebug().noquote() << QDateTime::currentDateTime().toString("(yyyy-MM-dd HH:mm:ss.zzzzzz)") + " can0 " + QString::number(vCan_Id,16).rightJustified(3, '0') + " [8] " + Format::toHexByteArray(vPayload, ' '); // Append a message to the list // coco begin validated: if empty (first condition) is true, it must never check for the complete (second condition) // because if the list is empty there is no last() item @@ -211,6 +216,15 @@ // coco end /*! + * \brief MessageDispatcher::onCheckIn + * \details Sending the Check-In message. + */ +void MessageDispatcher::onCheckIn() +{ + actionTransmit(GuiActionType::ID_KeepAlive, {}); +} + +/*! * \brief MessageDispatcher::onActionTransmit * \details This slot will be called by ApplicationController::didActionTransmit * upon UI message transmit request and calls MessageDispatcher::actionTransmit method.