Index: leahi_dialin/common/msg_ids.py =================================================================== diff -u -rc169bd25120b664de7c55dff93951f48d21a8552 -r6e8e07edb4bb3f5bb387a88c37610722ff692b90 --- leahi_dialin/common/msg_ids.py (.../msg_ids.py) (revision c169bd25120b664de7c55dff93951f48d21a8552) +++ leahi_dialin/common/msg_ids.py (.../msg_ids.py) (revision 6e8e07edb4bb3f5bb387a88c37610722ff692b90) @@ -127,6 +127,8 @@ MSG_ID_DD_RINSE_PUMP_DATA = 0x69 MSG_ID_UI_PRESSURE_LIMITS_CHANGE_REQUEST = 0x78 MSG_ID_TD_PRESSURE_LIMITS_CHANGE_RESPONSE = 0x79 + MSG_ID_UI_BOLUS_VOLUME_CHANGE_REQUEST = 0x81 + MSG_ID_TD_BOLUS_VOLUME_CHANGE_RESPONSE = 0x82 MSG_ID_DD_PISTON_PUMP_CONTROL_DATA = 0xF0 MSG_ID_TD_TESTER_LOGIN_REQUEST = 0x8000 Index: leahi_dialin/ui/td_messaging.py =================================================================== diff -u -raf0f6045652469b92b76d55c9584ef0f8cc66195 -r6e8e07edb4bb3f5bb387a88c37610722ff692b90 --- leahi_dialin/ui/td_messaging.py (.../td_messaging.py) (revision af0f6045652469b92b76d55c9584ef0f8cc66195) +++ leahi_dialin/ui/td_messaging.py (.../td_messaging.py) (revision 6e8e07edb4bb3f5bb387a88c37610722ff692b90) @@ -648,6 +648,27 @@ self.can_interface.send(message, 0) + def td_bolus_volume_adjustment_response(self, vRejectionReason: int, vBolusVolume: int,): + """ + the pressure limits adjustment response message method(Msg ID: 0x81, 123) + Args: + @param vRejectionReason (int) : response rejection reason, + if rejection reason is 0, then accepted (0) will be sent, + otherwise rejected (1) + @param vBolusVolume (int) : bolus volume (mL) + @return: None + """ + payload = conversions.integer_to_bytearray(1 if vRejectionReason == 0 else 0 ) + payload += conversions.integer_to_bytearray(vRejectionReason ) + payload += conversions.integer_to_bytearray(vBolusVolume ) + + message = CAN.DenaliMessage.build_message( + channel_id=CAN.DenaliChannels.td_to_ui_ch_id, + message_id=msg_ids.MsgIds.MSG_ID_TD_BOLUS_VOLUME_CHANGE_RESPONSE .value, + payload=payload) + self.can_interface.send(message, 0) + + def td_pressure_limits_adjustment_response(self, vRejectionReason: int, vArterialWindow: int, vVenousWindow: int, vVenousAsymmetricWindow: int, vTmpWindow: int): """