Index: leahi_dialin/fp/filtration_purification.py =================================================================== diff -u -r39190f5b592ef515e19ae1b5455a32b84f853cf5 -r11a9e42c4afdf426ead4997817f7d817be554266 --- leahi_dialin/fp/filtration_purification.py (.../filtration_purification.py) (revision 39190f5b592ef515e19ae1b5455a32b84f853cf5) +++ leahi_dialin/fp/filtration_purification.py (.../filtration_purification.py) (revision 11a9e42c4afdf426ead4997817f7d817be554266) @@ -94,6 +94,7 @@ self.can_interface.register_receiving_publication_function(channel_id, MsgIds.MSG_ID_FP_DEF_STATUS_RESPONSE.value, self._handler_fp_defeatured_response) + # ToDo: Enable and update the msg id when FW part of LDT-3779 is implemented # self.can_interface.register_receiving_publication_function(channel_id, # MsgIds.MSG_ID_FP_DEF_STATUS_RESPONSE.value, # self._handler_fp_boost_pump_installed_response) @@ -270,6 +271,7 @@ logger = self.logger, can_interface = self.can_interface) + def cmd_request_boost_pump_install_status(self) -> int: """ Constructs and sends the FP defeatured status request @@ -278,24 +280,18 @@ @return: 1 if successful, zero otherwise """ + # ToDo: Update the msg id when FW part of LDT-3779 is implemented + return cmd_generic_override( + payload = None, + reset = NO_RESET, + channel_id = DenaliChannels.dialin_to_fp_ch_id, + msg_id = MsgIds.MSG_ID_FP_DEF_STATUS_REQUEST, + entity_name = 'FP P40 Boost Pump installed status', + override_text = '', + logger = self.logger, + can_interface = self.can_interface) - message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_fp_ch_id, - message_id=MsgIds.MSG_ID_FP_DEF_STATUS_REQUEST.value) - self.logger.debug('Getting FP P40 Boost Pump installed status') - received_message = self.can_interface.send(message) - - # If there is content... - if received_message is not None: - self.logger.debug("Received FW ACK after requesting FP P40 Boost Pump installed configuration record.") - # response payload is OK or not OK - return received_message['message'][DenaliMessage.PAYLOAD_START_INDEX] - else: - self.logger.debug("Timeout!!!!") - return False - - - def cmd_op_mode_broadcast_interval_override(self, ms: int, reset: int = NO_RESET) -> int: """ Constructs and sends the measured op mode broadcast interval override command