Restore Config Test
  • 24 Nov 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Restore Config Test

  • Dark
    Light
  • PDF

Article summary

Restore Config Test Scenario

This scenario is used for verifying that VODA will restore its configurations after recover from hang condition (with executing while(1) that will triggered WDT and reset the VODA).
The developer has been implemented EEPROM Emulation that can store the specified data with certain size into the address that will be emulated as EEPROM. We save the configuration data into the EEPROM every hour and will be loaded if reset reason is hang (caused by WDT), low voltage, or brown out.

How to Test

The main steps for this scenario is:

  1. activate the VODA
  2. verify the configurations saved in VODA
  3. wait until an hour passed
  4. make it into hang condition
  5. check again the configurations, make sure the configurations is same with step 2 (with MCU hang alarm added)

You can do it in many ways, but here are the steps in most real test possible:

  1. Reset the VODA with executing
py reset_activation.py

make sure the response is shown like below

Fig 1 Success response

if the response is shown like below, please restart the reset activation command.

Fig 2 Failed response
  1. Activate VODA by executing
py sync_config.py

Make sure its successfully activated

  1. Capture the VODA configurations
Fig 3 VODA configurations right after activated
  1. Wait until an hour, and execute this command
py wdt_test.py
  1. Right after step 4 is executed, turn off the VODA
py power_off.py
  1. Check again the VODA configurations
Fig 4 VODA configurations right after WDT is triggered
if the configurations is same with before (with mcu hang alarm added), the test is considered as success.

Was this article helpful?