9. Firmware Manager API¶
Module: typhoon.api.firmware_manager
The Firmware Manager API provides functions to update and change firmware configurations using python.
Note
Care must be taken to guarantee that power is not removed from the HIL while firmware update is on course, especially considering that firmware update can occur in an automated test run without being noticed.
9.1. API references¶
-
update_firmware
(device_id=0, configuration_id=None, force=False)¶ Uploads firmware with given configuration id to HIL device with chosen id. If HIL device already have the same configuration, only upload if force parameter is set.
- Parameters
device_id (int) – id of HIL device whose firmware is to be updated
configuration_id (int) – Update to a firmware with given configuration id
force (boolean) – Force upload even if desired firmware is the same as the one already in HIL device
Notes
There should be only one device with a given device id, otherwise exception will be raised.
If configuration_id is not provided, it is considered as the current firmware id in the device.