Index: dialin/common/msg_ids.py =================================================================== diff -u -r11b3f6f190446f11633a31aa05bc332e57d3e2d6 -r206fbc70f59d5b96203f24295ca2a2e7860289c2 --- dialin/common/msg_ids.py (.../msg_ids.py) (revision 11b3f6f190446f11633a31aa05bc332e57d3e2d6) +++ dialin/common/msg_ids.py (.../msg_ids.py) (revision 206fbc70f59d5b96203f24295ca2a2e7860289c2) @@ -476,7 +476,7 @@ MSG_ID_DG_SET_SW_CONFIG_RECORD = 0xA04B MSG_ID_DG_SEND_SW_CONFIG_RECORD = 0xA04C MSG_ID_DG_FANS_DUTY_CYCLE_OVERRIDE = 0xA04D - MSG_ID_MSG_AVAILABLE_42 = 0xA04E + MSG_ID_DG_MODE_FILL_ENABLE_CHEMS_TEST = 0xA04E MSG_ID_DG_SET_FANS_RPM_ALARM_START_TIME_OFFSET = 0xA04F MSG_ID_MSG_AVAILABLE_43 = 0xA050 MSG_ID_FILL_MODE_DATA_PUBLISH_INTERVAL_OVERRIDE = 0xA051 Index: dialin/dg/dialysate_fill.py =================================================================== diff -u -rb325782a4c7ab9446c8c78259a5b8c8fe5bf7ef5 -r206fbc70f59d5b96203f24295ca2a2e7860289c2 --- dialin/dg/dialysate_fill.py (.../dialysate_fill.py) (revision b325782a4c7ab9446c8c78259a5b8c8fe5bf7ef5) +++ dialin/dg/dialysate_fill.py (.../dialysate_fill.py) (revision 206fbc70f59d5b96203f24295ca2a2e7860289c2) @@ -148,7 +148,6 @@ @param reset: (int) 1 to reset a previous override, 0 to override @return: 1 if successful, zero otherwise """ - rst = integer_to_bytearray(reset) vol = float_to_bytearray(volume) payload = rst + vol @@ -177,6 +176,31 @@ self.logger.debug("Timeout!!!!") return False + def cmd_set_mode_fill_enable_chemicals_conductivity_values_test(self) -> int: + """ + Constructs and sends the enable mode fill chemicals conductivity values test command. + Constraints: + Must be logged into DG. + + @return: 1 if successful, zero otherwise + """ + message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_dg_ch_id, + message_id=MsgIds.MSG_ID_DG_MODE_FILL_ENABLE_CHEMS_TEST.value) + + self.logger.debug("Enabling mode fill chemicals test ") + + # Send message + received_message = self.can_interface.send(message) + + # If there is content... + if received_message is not None: + self.logger.debug("Enabled mode fill chemicals test") + # response payload is OK or not OK + return received_message['message'][DenaliMessage.PAYLOAD_START_INDEX] + else: + self.logger.debug("Timeout!!!!") + return False + def cmd_set_mode_fill_cal_check_state(self, cal_check_state: int) -> int: """ Constructs and sends a message to set the mode fill calibration check status.