Index: leahi_dialin/dd/dialysate_delivery.py =================================================================== diff -u -r1ca63288b87154587f2e9df7624359fc8c419b9c -rb9e9c4477d1083db8d96beafd98ae6cd96ea432f --- leahi_dialin/dd/dialysate_delivery.py (.../dialysate_delivery.py) (revision 1ca63288b87154587f2e9df7624359fc8c419b9c) +++ leahi_dialin/dd/dialysate_delivery.py (.../dialysate_delivery.py) (revision b9e9c4477d1083db8d96beafd98ae6cd96ea432f) @@ -99,16 +99,9 @@ self.can_interface.register_receiving_publication_function(channel_id, self.msg_id_dd_debug_event, self._handler_dd_debug_event_sync) - # For current builds and setups without UI, there are no CAN messages sent on the bus to let the - # subsystems know there are other nodes and start publishing. Dialin will send a plain ACK to the CANbus over - # the dd channel to start publishing. - message = DenaliMessage.build_message( - channel_id=DenaliChannels.dialin_to_dd_ch_id, - message_id=MsgIds.MSG_ID_ACK_MESSAGE_THAT_REQUIRES_ACK.value, - payload=bytearray(), - seq=0) - if message is not None: - self.can_interface.send(message, 0, is_ack=True) + # Dialin will send a login message during construction. This is for the leahi subsystems to start + # publishing CAN data when there is no UI connected as the UI typically does this job. + self.cmd_log_in_to_dd() # create properties self.dd_op_mode_timestamp = 0.0 Index: leahi_dialin/fp/filtration_purification.py =================================================================== diff -u -r1ca63288b87154587f2e9df7624359fc8c419b9c -rb9e9c4477d1083db8d96beafd98ae6cd96ea432f --- leahi_dialin/fp/filtration_purification.py (.../filtration_purification.py) (revision 1ca63288b87154587f2e9df7624359fc8c419b9c) +++ leahi_dialin/fp/filtration_purification.py (.../filtration_purification.py) (revision b9e9c4477d1083db8d96beafd98ae6cd96ea432f) @@ -93,16 +93,9 @@ self.can_interface.register_receiving_publication_function(channel_id, MsgIds.MSG_ID_FP_DEF_STATUS_RESPONSE.value, self._handler_fp_defeatured_response) - # For current builds and setups without UI, there are no CAN messages sent on the bus to let the - # subsystems know there are other nodes and start publishing. Dialin will send a plain ACK to the CANbus over - # the dd channel to start publishing. - message = DenaliMessage.build_message( - channel_id=DenaliChannels.dialin_to_fp_ch_id, - message_id=MsgIds.MSG_ID_ACK_MESSAGE_THAT_REQUIRES_ACK.value, - payload=bytearray(), - seq=0) - if message is not None: - self.can_interface.send(message, 0, is_ack=True) + # Dialin will send a login message during construction. This is for the leahi subsystems to start + # publishing CAN data when there is no UI connected as the UI typically does this job. + self.cmd_log_in_to_fp() # create properties self.fp_defeatured_timestamp = 0.0 Index: leahi_dialin/td/treatment_delivery.py =================================================================== diff -u -r1ca63288b87154587f2e9df7624359fc8c419b9c -rb9e9c4477d1083db8d96beafd98ae6cd96ea432f --- leahi_dialin/td/treatment_delivery.py (.../treatment_delivery.py) (revision 1ca63288b87154587f2e9df7624359fc8c419b9c) +++ leahi_dialin/td/treatment_delivery.py (.../treatment_delivery.py) (revision b9e9c4477d1083db8d96beafd98ae6cd96ea432f) @@ -100,16 +100,9 @@ self.can_interface.register_receiving_publication_function(DenaliChannels.ui_to_td_ch_id, self.msg_id_ui_version_info_response, self._handler_ui_version_response_sync) - # For current builds and setups without UI, there are no CAN messages sent on the bus to let the - # subsystems know there are other nodes and start publishing. Dialin will send a plain ACK to the CANbus over - # the dd channel to start publishing. - message = DenaliMessage.build_message( - channel_id=DenaliChannels.dialin_to_td_ch_id, - message_id=MsgIds.MSG_ID_ACK_MESSAGE_THAT_REQUIRES_ACK.value, - payload=bytearray(), - seq=0) - if message is not None: - self.can_interface.send(message, 0, is_ack=True) + # Dialin will send a login message during construction. This is for the leahi subsystems to start + # publishing CAN data when there is no UI connected as the UI typically does this job. + self.cmd_log_in_to_td() # create properties self.td_op_mode_timestamp = 0.0