Index: tests/dg_tests.py =================================================================== diff -u -re8f9ead3fe058b688c0b42c599886375e1730008 -r386b48cd9e28d3a3d30ddd3d87fe5da686eb5dbf --- tests/dg_tests.py (.../dg_tests.py) (revision e8f9ead3fe058b688c0b42c599886375e1730008) +++ tests/dg_tests.py (.../dg_tests.py) (revision 386b48cd9e28d3a3d30ddd3d87fe5da686eb5dbf) @@ -48,6 +48,7 @@ from dialin.hd.voltages import HDMonitoredVoltages from dialin.hd.pretreatment import PreTreatmentRsrvrState from dialin.common.dg_defs import DGFlushStates, DGHeatDisinfectActiveCoolStates +from dialin.common.test_config_defs import DGTestConfigOptions, HDTestConfigOptions from time import sleep from datetime import datetime import sys @@ -151,9 +152,9 @@ def get_hd_occlusion_pressures_info(): - info = ('Art_pres, {:5.3f}, Venous_pres, {:5.3f}, Blood_pump_pres, {:5.3f}, DialIn_pres, {}, DialOut_pres, {}, ' + info = ('Art_pres, {:5.3f}, Venous_pres, {:5.3f}, Blood_pump_pres, {:5.3f}, DialOut_pres, {}, ' .format(hd.pressure_occlusion.arterial_pressure, hd.pressure_occlusion.venous_pressure, - hd.pressure_occlusion.blood_pump_occlusion, hd.pressure_occlusion.dialysate_inlet_pump_occlusion, + hd.pressure_occlusion.blood_pump_occlusion, hd.pressure_occlusion.dialysate_outlet_pump_occlusion)) return info @@ -522,7 +523,7 @@ f = open(address, "w") #dg.heaters.cmd_heaters_broadcast_interval_override(50) #sleep(1) - #dg.hd_proxy.cmd_start_stop_dg_heat_disinfect() + dg.hd_proxy.cmd_start_stop_dg_heat_disinfect() #dg.hd_proxy.cmd_start_stop_dg_heat_disinfect_active_cool() try: @@ -671,9 +672,22 @@ hd = HD(log_level='DEBUG') hd.cmd_log_in_to_hd() sleep(1) + """ + print(dg.test_configs.dg_test_configs) + print(hex(dg.test_configs.cmd_get_test_config_status(DGTestConfigOptions.TEST_CONFIG_ENABLE_MIXING_WITH_WATER.value))) - run_heat_disinfect() + dg.test_configs.cmd_set_test_config(DGTestConfigOptions.TEST_CONFIG_ENABLE_MIXING_WITH_WATER.value, reset=0) + sleep(1) + dg.test_configs.cmd_request_test_config_status_from_fw() + + while True: + print(hex(dg.test_configs.cmd_get_test_config_status( + DGTestConfigOptions.TEST_CONFIG_ENABLE_MIXING_WITH_WATER.value))) + sleep(1) + """ + #run_heat_disinfect() + #run_flush_mode() #run_chemical_disinfect() @@ -684,7 +698,7 @@ # cmd_set_disinfect_ui_screen() - #collect_treatment_data() + collect_treatment_data() #collect_hd_treatment()