Index: tests/hd_nvm_scripts.py =================================================================== diff -u -rbeb336b685d8e152fdbf31c19bfa4bed6b73f05a -r7a5d111bbe111ee305ab9da5ee85b98beabe20f4 --- tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision beb336b685d8e152fdbf31c19bfa4bed6b73f05a) +++ tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision 7a5d111bbe111ee305ab9da5ee85b98beabe20f4) @@ -1,14 +1,14 @@ ########################################################################### # -# Copyright (c) 2022-2023 Diality Inc. - All Rights Reserved. +# Copyright (c) 2022-2024 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file hd_nvm_scripts.py # -# @author (last) Sean Nash -# @date (last) 31-Mar-2023 +# @author (last) Dara Navaei +# @date (last) 15-Oct-2024 # @author (original) Dara Navaei # @date (original) 10-Feb-2022 # @@ -28,12 +28,12 @@ # It creates a folder called HD_NV_Records in the destination that is called # If no address is provided, the default location is one folder above the dialin folder wherever it is installed # in your computer. - hd.sw_configs.cmd_get_hd_sw_config_record() + #hd.sw_configs.cmd_get_hd_sw_config_record() # Use cmd_update_hd_sw_config_record() set the changes back to firmware # This function requires an address for the excel report. Use the absolute address of your excel report like the # example below - #hd.sw_configs.cmd_update_hd_sw_config_record('/home/fw/projects/HD_NV_Records/2023-02-07-HD-SW-CONFIGS-Record.xlsx') + hd.sw_configs.cmd_update_hd_sw_config_record('/home/fw/projects/HD_NV_Records/2023-06-12-HD-SW-CONFIGS-Record.xlsx') # Use this function to reset the configuration records to all be 0 #hd.sw_configs.cmd_reset_hd_sw_config_record() @@ -50,15 +50,15 @@ # It creates a folder called HD_NV_Records in the destination that is called # If no address is provided, the default location is one folder above the dialin folder wherever it is installed # in your computer. - hd.calibration_record.cmd_get_hd_calibration_record_report() + #hd.calibration_record.cmd_get_hd_calibration_record_report() # Use cmd_set_hd_calibration_excel_to_fw() set the changes back to firmware # This function requires an address for the excel report. Use the absolute address of your excel report like the # example below - #hd.calibration_record.cmd_set_hd_calibration_excel_to_fw('/home/fw/projects/HD_NV_Records/2023-03-27-HD-Record.xlsx') + hd.calibration_record.cmd_set_hd_calibration_excel_to_fw('/home/fw/projects/HD_NV_Records/DVT-16-2024-07-15-HD-Record.xlsx') # For resetting the calibration record to benign values, use the function below - hd.calibration_record.cmd_reset_hd_calibration_record() + #hd.calibration_record.cmd_reset_hd_calibration_record() def run_system_commands(): @@ -71,7 +71,7 @@ # in your computer. #hd.system_record.cmd_get_hd_system_record_report() - hd.system_record.cmd_set_hd_system_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-12-19-HD-Record.xlsx') + hd.system_record.cmd_set_hd_system_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2024-02-27-HD-Record.xlsx') # For resetting the system record to benign values, use the function below #hd.system_record.cmd_reset_hd_system_record() @@ -85,9 +85,9 @@ # It creates a folder called DG_NV_Records in the destination that is called # If no address is provided, the default location is one folder above the dialin folder wherever it is installed # in your computer. - hd.usage_record.cmd_get_hd_usage_info_record() + #hd.usage_record.cmd_get_hd_usage_info_record() - #hd.usage_record.cmd_set_dg_usage_info_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-12-07-HD-Record.xlsx') + hd.usage_record.cmd_set_dg_usage_info_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-12-07-HD-Record.xlsx') #hd.usage_record.cmd_reset_hd_usage_info_record() @@ -100,29 +100,40 @@ # It creates a folder called DG_NV_Records in the destination that is called # If no address is provided, the default location is one folder above the dialin folder wherever it is installed # in your computer. - hd.service_record.cmd_get_hd_service_record() + #hd.service_record.cmd_get_hd_service_record() - #hd.service_record.cmd_set_dg_service_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-12-07-HD-Record.xlsx') + hd.service_record.cmd_set_hd_service_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2024-02-27-HD-Record.xlsx') #hd.service_record.cmd_reset_hd_service_record() +def run_institutional_commands(): + # Comment and un-comment any of the functions that you would like to use or you can use your own scripts. + #hd.institutional_record.cmd_get_hd_institutional_record() + + hd.institutional_record.cmd_set_hd_institutional_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2024-03-18-HD-Record.xlsx') + + #hd.institutional_record.cmd_reset_hd_institutional_record() + + if __name__ == "__main__": hd = HD(log_level="DEBUG") if hd.cmd_log_in_to_hd(): # Comment this function if not needed - run_sw_configs_commands() + #run_sw_configs_commands() # Comment this function if not needed - #run_calibration_commands() + run_calibration_commands() #run_system_commands() #run_usage_info_commands() #run_service_commands() + #run_institutional_commands() +