Index: firmware/App/Services/SystemComm.c =================================================================== diff -u -r1b738450008f53cdacc28226a503593bb54ba901 -r72e4c11140e7a0d186c3a6e58ef724b7e126bab8 --- firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision 1b738450008f53cdacc28226a503593bb54ba901) +++ firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision 72e4c11140e7a0d186c3a6e58ef724b7e126bab8) @@ -56,7 +56,7 @@ #define MSG_NOT_ACKED_TIMEOUT_MS_INIT 5000 ///< Maximum time for a Denali message that requires ACK to be ACK'd on the INIT state for the first (UI version request) message of the POST #define MSG_NOT_ACKED_MAX_RETRIES 3 ///< Maximum number of times a message that requires ACK that was not ACK'd can be re-sent before alarm #define PENDING_ACK_LIST_SIZE 25 ///< Maximum number of Denali messages that can be pending ACK at any given time - + #pragma pack(push, 1) /// Record for transmitted message that is pending acknowledgment from receiver. @@ -96,6 +96,7 @@ COMM_BUFFER_IN_CAN_UI_BROADCAST, COMM_BUFFER_IN_CAN_PC, }; +//extern U32 loadcellDataMessageFreshStatusCounter = 0; ///< Counter use to trigger alarm if no fresh load cell data message is received - DN-22AUG2022 static U08 lastCANPacketSent[ CAN_MESSAGE_PAYLOAD_SIZE ]; ///< Keep last packet sent on CAN bus in case we need to re-send. static CAN_MESSAGE_BOX_T lastCANPacketSentChannel = (CAN_MESSAGE_BOX_T)0; ///< Keep channel last packet was sent on CAN bus in case we need to re-send. @@ -257,7 +258,7 @@ * @return none *************************************************************************/ void execSystemCommRx( void ) -{ +{ // Parse messages from comm buffers and queue them processIncomingData(); @@ -702,6 +703,12 @@ { BOOL isThereMsgRcvd = TRUE; // Assume TRUE at first to get into while loop MESSAGE_WRAPPER_T message; + + // DN-22AUG2022 - Try here for debug + //if ( ++loadcellDataMessageFreshStatusCounter > DIP_LOAD_CELL_DATA_MESSAGE_ALARM_THRESHOLD ) + //{ + // activateAlarmNoData( ALARM_ID_HD_NEW_LOAD_CELL_DATA_MESSAGE_NOT_RECEIVE ); + //} while ( TRUE == isThereMsgRcvd ) {