Index: sources/canbus/MessageInterpreter.h =================================================================== diff -u -ra89b5249df072be403141463d7d88728b66a848e -rb22dd46db3def5d3c36d36c319f0bea89bf018d9 --- sources/canbus/MessageInterpreter.h (.../MessageInterpreter.h) (revision a89b5249df072be403141463d7d88728b66a848e) +++ sources/canbus/MessageInterpreter.h (.../MessageInterpreter.h) (revision b22dd46db3def5d3c36d36c319f0bea89bf018d9) @@ -50,6 +50,13 @@ friend class ::tst_logging; friend class ::tst_models; + // list of the unhandled messages with their definition to be able to log them like the ones which are not unhandled and have models. + // it is the quickest to add them to support the V&V team. + QMap _messageList { + { 0x6A00 /*QString("0x6A00").toUInt(0,16)*/, { "FluidLeak","U32" }}, + { 0x6C00 /*QString("0x6C00").toUInt(0,16)*/, { "BloodLeak","U32","U32" }}, + }; + bool isType (const Message &vMessage, Gui::GuiActionType vType) const; bool isPayloadLenValid (const Message &vMessage, Gui::GuiActionType vType) const; bool isValidMessage (const Message &vMessage, Gui::GuiActionType vType) const; @@ -72,11 +79,13 @@ template bool notify (const Message &vMessage, QVariantList &vData, Gui::GuiActionType vIdCheck) __attribute_warn_unused_result__; + bool logUnhandledMessage (const Message &vMessage) const; + public: explicit MessageInterpreter(QObject *parent = nullptr); // interpret the data into GUI understandable Actions/Data - bool interpretMessage(const Message &vMessage, QVariantList &vData) __attribute_warn_unused_result__; + bool interpretMessage(const Message &vMessage, QVariantList &vData) __attribute_warn_unused_result__; bool interpretMessage(const Gui::GuiActionType &vActionId, const QVariantList &vData, QByteArray &vPayload, Can_Id &vCanId) __attribute_warn_unused_result__; static Can_Source identifySource(Can_Id vCanId);