Index: dialin/dg/hd_proxy.py =================================================================== diff -u -r8c1ae1a592e02562ad9bded9ea2bd199fa80f4bf -r31c0b4a36d8bafbb69e217803546291b1af30f02 --- dialin/dg/hd_proxy.py (.../hd_proxy.py) (revision 8c1ae1a592e02562ad9bded9ea2bd199fa80f4bf) +++ dialin/dg/hd_proxy.py (.../hd_proxy.py) (revision 31c0b4a36d8bafbb69e217803546291b1af30f02) @@ -242,7 +242,7 @@ self.logger.debug("Sending sample water command") self.can_interface.send(message, 0) - def cmd_start_stop_heat_disinfect(self, start: bool = True) -> int: + def cmd_start_stop_dg_heat_disinfect(self, start: bool = True) -> int: """ Constructs and sends the start/stop DG heat disinfect command Index: dialin/dg/sw_configs.py =================================================================== diff -u -r7ea4b936cef531b2cde9053ae58b7119a3bf0e6c -r31c0b4a36d8bafbb69e217803546291b1af30f02 --- dialin/dg/sw_configs.py (.../sw_configs.py) (revision 7ea4b936cef531b2cde9053ae58b7119a3bf0e6c) +++ dialin/dg/sw_configs.py (.../sw_configs.py) (revision 31c0b4a36d8bafbb69e217803546291b1af30f02) @@ -55,6 +55,7 @@ SW_CONFIG_DISABLE_CONC_PUMPS_SPEED_ALARM = 20 SW_CONFIG_DISABLE_MIXING_IN_FILL = 21 SW_CONFIG_DISABLE_TEMPERATURE_SENSORS_ALARM = 22 + SW_CONFIG_ENABLE_V3_SYSTEM = 23 class DGSoftwareConfigs(AbstractSubSystem): Index: dialin/dg/system_record.py =================================================================== diff -u -rf822b55ab067aba716dc07f7fa3f53ef9cb2c9e3 -r31c0b4a36d8bafbb69e217803546291b1af30f02 --- dialin/dg/system_record.py (.../system_record.py) (revision f822b55ab067aba716dc07f7fa3f53ef9cb2c9e3) +++ dialin/dg/system_record.py (.../system_record.py) (revision 31c0b4a36d8bafbb69e217803546291b1af30f02) @@ -307,7 +307,7 @@ {'top_level_pn': [' 0: - break - counter += 1 - - sleep(0.05) - break - - def test_dg_fans_alarms(): f = open("/home/fw/projects/dialin/tests/dg_fans_issues.log", "w") @@ -619,6 +579,37 @@ break +def test_dvt_drain_pump(): + + dg.drain_pump.cmd_drain_pump_set_rpm(2000) + try: + while True: + print(get_drain_states_info(), get_temperature_sensors_info(), get_dg_fans_info()) + sleep(1) + except KeyboardInterrupt: + dg.drain_pump.cmd_drain_pump_set_rpm(0) + + +def test_conc_pumps(): + + dg.concentrate_pumps.cmd_concentrate_pump_state_change_request(0, True) + sleep(1) + dg.concentrate_pumps.cmd_concentrate_pump_state_change_request(1, True) + sleep(1) + dg.concentrate_pumps.cmd_concentrate_pump_target_speed_override(0, 20) + sleep(1) + dg.concentrate_pumps.cmd_concentrate_pump_target_speed_override(1, 20) + + try: + while True: + print(get_concentrate_pumps_info()) + sleep(1) + except KeyboardInterrupt: + dg.concentrate_pumps.cmd_concentrate_pump_state_change_request(0, False) + sleep(0.5) + dg.concentrate_pumps.cmd_concentrate_pump_state_change_request(1, False) + + if __name__ == "__main__": dg = DG(log_level='DEBUG') dg.cmd_log_in_to_dg() @@ -639,20 +630,12 @@ #collect_hd_treatment() - # test_hd_fans_alarms() - # test_dg_fans_alarms() - dg.drain_pump.cmd_drain_pump_set_rpm(2000) + #test_dvt_drain_pump() - while True: - print(get_drain_states_info(), get_temperature_sensors_info(), get_dg_fans_info()) - #print(hd.hd_debug_events) - sleep(1) + test_conc_pumps() - - - #ui = HDSimulator() #ui.cmd_send_hd_operation_mode(3, 1) Index: tests/peter/set_RTCs.py =================================================================== diff -u -r7ea4b936cef531b2cde9053ae58b7119a3bf0e6c -r31c0b4a36d8bafbb69e217803546291b1af30f02 --- tests/peter/set_RTCs.py (.../set_RTCs.py) (revision 7ea4b936cef531b2cde9053ae58b7119a3bf0e6c) +++ tests/peter/set_RTCs.py (.../set_RTCs.py) (revision 31c0b4a36d8bafbb69e217803546291b1af30f02) @@ -29,7 +29,7 @@ current_time_stamp = time() current_time = localtime(current_time_stamp) print(current_time) - """ + if hd.cmd_log_in_to_hd(): hd.rtc.cmd_set_rtc_time_and_date(current_time.tm_sec, current_time.tm_min, @@ -48,4 +48,5 @@ current_time.tm_mon, current_time.tm_year) print("Successfully set DG rtc") + """