Index: tests/hd_nvm_scripts.py =================================================================== diff -u -r5c2acb7676c6a38df7fe0683f9c61aee64bd85dd -r902a65965ca2f97fbb0186fdc01f9613b4f5076f --- tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision 5c2acb7676c6a38df7fe0683f9c61aee64bd85dd) +++ tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision 902a65965ca2f97fbb0186fdc01f9613b4f5076f) @@ -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) Dara Navaei -# @date (last) 23-Oct-2023 +# @date (last) 18-Mar-2024 # @author (original) Dara Navaei # @date (original) 10-Feb-2022 # @@ -55,7 +55,7 @@ # 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-08-26-HD-Record.xlsx') + #hd.calibration_record.cmd_set_hd_calibration_excel_to_fw('/home/fw/projects/HD_NV_Records/2024-02-27-HD-Record.xlsx') # For resetting the calibration record to benign values, use the function below #hd.calibration_record.cmd_reset_hd_calibration_record() @@ -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/2023-08-25-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() @@ -102,11 +102,20 @@ # in your computer. #hd.service_record.cmd_get_hd_service_record() - hd.service_record.cmd_set_hd_service_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2023-10-23-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") @@ -123,6 +132,8 @@ #run_usage_info_commands() - run_service_commands() + #run_service_commands() + run_institutional_commands() +