Index: leahi_dialin/common/msg_ids.py =================================================================== diff -u -r29476a4a7b58c6d6decee115ac9bcadb0aa262ca -rdb938c983d12c21df8678b3c3bb4eb78c4d047d9 --- leahi_dialin/common/msg_ids.py (.../msg_ids.py) (revision 29476a4a7b58c6d6decee115ac9bcadb0aa262ca) +++ leahi_dialin/common/msg_ids.py (.../msg_ids.py) (revision db938c983d12c21df8678b3c3bb4eb78c4d047d9) @@ -125,6 +125,10 @@ MSG_ID_USER_UF_SETTINGS_CHANGE_CONFIRMATION_RESPONSE = 0x67 MSG_ID_DD_VOLTAGES_DATA = 0x68 MSG_ID_DD_RINSE_PUMP_DATA = 0x69 + + MSG_ID_TD_END_TREATMENT_REQUEST = 0x8D + MSG_ID_TD_END_TREATMENT_RESPONSE = 0x8E + MSG_ID_DD_PISTON_PUMP_CONTROL_DATA = 0xF0 MSG_ID_TD_TESTER_LOGIN_REQUEST = 0x8000 Index: leahi_dialin/ui/td_messaging.py =================================================================== diff -u -reb3e8ec85b8c2cfd7215d762117c617b8084be45 -rdb938c983d12c21df8678b3c3bb4eb78c4d047d9 --- leahi_dialin/ui/td_messaging.py (.../td_messaging.py) (revision eb3e8ec85b8c2cfd7215d762117c617b8084be45) +++ leahi_dialin/ui/td_messaging.py (.../td_messaging.py) (revision db938c983d12c21df8678b3c3bb4eb78c4d047d9) @@ -663,6 +663,22 @@ payload=payload) self.can_interface.send(message, 0) + def td_end_tx_response(self,vRejectionReason: int): + """ + the end treatment response message method(Msg ID: 0xXX, XXX) + Args: + None + @return: None + """ + payload = conversions.integer_to_bytearray(1 if vRejectionReason == 0 else 0) + payload += conversions.integer_to_bytearray(vRejectionReason) + + message = CAN.DenaliMessage.build_message( + channel_id=CAN.DenaliChannels.td_to_ui_ch_id, + message_id=msg_ids.MsgIds.MSG_ID_TD_END_TREATMENT_RESPONSE.value, + payload=payload) + self.can_interface.send(message, 0) + def td_Treatment_Parameters_CreateRx(self, vRejectionReason: int): """ TD response to in initiate Treatment and enter Create Rx (Msg ID: 0x46, 70)