import can from scripts.base.base import Base class SoftwareUpdateScript(Base): def __init__(self): super().__init__() def _verify_signature(self): pass def _verify_key(self): pass def _get_target_stack(self): pass def update_software_packages(self, packages_dir: str, stack_to_update: str = None): # 1. Verify signature # 2. Verify key # 3. Read XML file for to find the packages to update # 4. Decrypt the content # 5. Send the data to bootloader # 6. Wait for the bootloader to ack/nack or timeout after 3000 ms # 7. Send the entire file # 8. Show progress pass