Updater
An OreSat application has the ability to update the board it is running on thru update archives.
Update Archive
Basics
Sending a update archive to the node will not trigger an update, only when the update subindex in the object dictionary is set an update will start.
Can also generate status file that can be used to make future updates and to know what is install on the board.
If a update fails the update file cache will be clear as it is assume all future updates require older updates.
States
- class olaf._internals.updater.UpdaterState(value)[source]
The integer value Updater’s update() will return
- UPDATE_SUCCESSFUL = 0
The last update was successfully installed. Default State.
- PRE_UPDATE_FAILED = 1
The last update failed during the inital non critical section. Either the was an error using the file cache, when opening tarfile, or reading the instructions file.
- UPDATE_FAILED = 2
The update failed during the critical section. The updater fail while following the instructions.
- UPDATING = 255
Updater is updating