- Print
- DarkLight
- PDF
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:
- activate the VODA
- verify the configurations saved in VODA
- wait until an hour passed
- make it into hang condition
- 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:
- Reset the VODA with executing
py reset_activation.py
make sure the response is shown like below

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

- Activate VODA by executing
py sync_config.py
Make sure its successfully activated
- Capture the VODA configurations

- Wait until an hour, and execute this command
py wdt_test.py
- Right after step 4 is executed, turn off the VODA
py power_off.py
- Check again the VODA configurations
