Index: sources/canbus/MessageInterpreter.cpp =================================================================== diff -u -r80b8371f1a93481e05302cef6e474db802fda153 -rf91ee3bac4f77fc7a0fe8d122c8c49b34b6984ec --- sources/canbus/MessageInterpreter.cpp (.../MessageInterpreter.cpp) (revision 80b8371f1a93481e05302cef6e474db802fda153) +++ sources/canbus/MessageInterpreter.cpp (.../MessageInterpreter.cpp) (revision f91ee3bac4f77fc7a0fe8d122c8c49b34b6984ec) @@ -121,6 +121,7 @@ QString mActionIdHexString = Format::toHexString(0); Q_UNUSED(mActionIdHexString); Q_UNUSED(len); + qDebug() << "In paylod valid"; /*if ( ! payloadLen.contains(vType) ) { LOG_DEBUG(QString("Undefined data length for received Message with ID '%1'").arg(mActionIdHexString)); // TODO is this needed? return false; @@ -144,6 +145,7 @@ */ void MessageInterpreter::logInvalidLength() { + qDebug() << "Paylod invalid"; //LOG_DEBUG(QString("Incorrect data length for transmit message with ID '%1'") // .arg(mActionIdHexString)); // TODO is this needed? } @@ -157,6 +159,7 @@ */ bool MessageInterpreter::isValidMessage(const Message &vMessage) const { + qDebug() << "Is valid message"; Q_UNUSED(vMessage); //if ( ! isType (vMessage, vType) ) return false; //if ( ! isPayloadLenValid(vMessage, vType) ) return false; @@ -197,6 +200,7 @@ */ bool MessageInterpreter::interpretMessage(const QVariantList &vData, QByteArray &vPayload, Can_Id &vCanId) { + qDebug() << "Interpret"; Q_UNUSED(vData); bool ok = true; if (vCanId == Can::Can_Id::eChlid_NONE ) @@ -302,12 +306,14 @@ bool MessageInterpreter::interpretMessage(const Message &vMessage, QVariantList &vData) { bool ok = false; - - switch (identifySource(vMessage.can_id)) { - case Can_Source::eCan_HD: ok = interpretMessage_HD(vMessage, vData); break; - case Can_Source::eCan_DG: ok = interpretMessage_DG(vMessage, vData); break; - default : printUnhandled (vMessage ); break; // ok is false, the individual interpreters for ?HD/DG should not be called, and it should be done here. - } + Q_UNUSED(vData); + qDebug() << "I am called"; + printUnhandled (vMessage ); + //switch (identifySource(vMessage.can_id)) { + //case Can_Source::eCan_HD: ok = interpretMessage_HD(vMessage, vData); break; + //case Can_Source::eCan_DG: ok = interpretMessage_DG(vMessage, vData); break; + //default : printUnhandled (vMessage ); break; // ok is false, the individual interpreters for ?HD/DG should not be called, and it should be done here. + //} return ok; } @@ -398,6 +404,7 @@ void MessageInterpreter::updateUnhandledMessages() { // TODO is this needed? + qDebug() << "Update"; } /*! @@ -469,6 +476,7 @@ } } //LOG_APPED(logString); // TODO is this needed? + qDebug() << "H" + logString; } else { //if ( gDisableUnhandledReport ) { // if the unhandled message error has been disabled, return.