Index: firmware/App/Services/SystemComm.c =================================================================== diff -u -rb549cc9586c585902f891e1aac5e59b7de445f71 -r91de94219c869f3abdd5d985e3d99398c0d871af --- firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision b549cc9586c585902f891e1aac5e59b7de445f71) +++ firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision 91de94219c869f3abdd5d985e3d99398c0d871af) @@ -7,8 +7,8 @@ * * @file SystemComm.c * -* @author (last) Michael Garthwaite -* @date (last) 07-Feb-2023 +* @author (last) Dara Navaei +* @date (last) 13-Feb-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -50,7 +50,7 @@ #define MAX_COMM_CRC_FAILURE_WINDOW_MS (10 * SEC_PER_MIN * MS_PER_SECOND) ///< CRC error window #define MSG_NOT_ACKED_TIMEOUT_MS 150 ///< maximum time for a Denali message that requires ACK to be ACK'd -#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 MSG_NOT_ACKED_MAX_RETRIES 8 ///< 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 Delanli messages that can be pending ACK at any given time #define MAX_FPGA_CLOCK_SPEED_ERRORS 3 ///< maximum number of FPGA clock speed errors within window period before alarm @@ -816,60 +816,60 @@ handleAlarmClear( message ); break; - case MSG_ID_RTC_EPOCH: + case MSG_ID_RTC_EPOCH_DATA: handleRTCSyncFromHD( message ); break; case MSG_ID_SET_DG_DIALYSATE_TEMP_TARGETS: handleSetDialysateTemperatureCmd( message ); break; - case MSG_ID_REQUEST_FW_VERSIONS: + case MSG_ID_FW_VERSIONS_REQUEST: handleFWVersionCmd( message ); handleDGSerialNumberRequest(); break; - case MSG_ID_DG_SWITCH_RESERVOIR_CMD: + case MSG_ID_DG_SWITCH_RESERVOIR_CMD_REQUEST: handleSwitchReservoirCmd( message ); break; - case MSG_ID_DG_CHANGE_VALVE_SETTING_CMD: + case MSG_ID_DG_CHANGE_VALVE_SETTING_CMD_REQUEST: handleChangeValveSettingCmd( message ); break; - case MSG_ID_DG_FILL_CMD: + case MSG_ID_DG_FILL_CMD_REQUEST: handleFillCmd( message ); break; - case MSG_ID_DG_DRAIN_CMD: + case MSG_ID_DG_DRAIN_CMD_REQUEST: handleDrainCmd( message ); break; - case MSG_ID_HD_OP_MODE: + case MSG_ID_HD_OP_MODE_DATA: handleSetHDOperationMode( message ); break; - case MSG_ID_STARTING_STOPPING_TREATMENT_CMD: + case MSG_ID_STARTING_STOPPING_TREATMENT_CMD_REQUEST: handleStartStopTreatmentMsg( message ); break; - case MSG_ID_DG_SAMPLE_WATER_CMD: + case MSG_ID_DG_SAMPLE_WATER_CMD_REQUEST: handleSampleWaterCmd( message ); break; - case MSG_ID_HD_START_STOP_TRIMMER_HEATER_CMD: + case MSG_ID_HD_START_STOP_TRIMMER_HEATER_CMD_REQUEST: handleHDStartStopTrimmerHeaterCmd( message ); break; case MSG_ID_DG_START_STOP_TRIMMER_HEATER_CMD: handleDGStartStopTrimmerHeater( message ); break; - case MSG_ID_DG_START_STOP_FLUSH: + case MSG_ID_DG_START_STOP_FLUSH_CMD_REQUEST: handleStartStopDGFlush( message ); break; - case MSG_ID_DG_START_STOP_HEAT_DISINFECT: + case MSG_ID_DG_START_STOP_HEAT_DISINFECT_CMD_REQUEST: handleStartStopDGHeatDisinfect( message ); break; @@ -889,35 +889,35 @@ handleDGPOSTResultRequest( message ); break; - case MSG_ID_HD_REQUEST_DG_SERVICE_RECORD: + case MSG_ID_HD_DG_SERVICE_RECORD_REQUEST: handleDGServiceScheduleRequest( message ); break; - case MSG_ID_HD_REQUEST_DG_CONCENTRATE_MIXING_RATIOS: + case MSG_ID_HD_DG_CONCENTRATE_MIXING_RATIOS_REQUEST: handleDGSendConcentrateMixingRatios( message ); break; - case MSG_ID_HD_REQUEST_DG_USAGE_INFO: - handleHDRequestDGUsageInfo( message ); + case MSG_ID_HD_DG_SERVICE_MODE_REQUEST: + handleServiceModeRequest( message ); break; - case MSG_ID_HD_REQUEST_DG_SERVICE_MODE: - handleServiceModeRequest( message ); + case MSG_ID_HD_DG_USAGE_INFO_REQUEST: + handleHDRequestDGUsageInfo( message ); break; - case MSG_ID_DG_SET_SERVICE_TIME: + case MSG_ID_DG_SET_SERVICE_TIME_REQUEST: handleSetDGServiceTime( message ); break; case MSG_ID_DG_START_STOP_HEAT_DISINFECT_ACTIVE_COOL: handleStartStopDGHeatDisinfectActiveCool( message ); break; - case MSG_ID_REQUEST_CPLD_STATUS: + case MSG_ID_CPLD_STATUS_REQUEST: handleCpldStatusRequest( message ); break; - case MSG_ID_HD_REQUEST_DG_ALARMS: + case MSG_ID_HD_DG_ALARMS_REQUEST: handleResendAllAlarmsCommand( message ); break;