ISU - Version and Customisation¶
In order to store and identify each part of the firmware-version and -customisation
string, the classes FSCustomisation
and FSVersion
were created. Additionally,
there are two RegEx-strings that are used to verify the given verison or customisation
string:
# e.g. ir-mmi-FS2026-0500-0015
RE_CUSTOMISATION = r"^\w*-\w\*-(FS\d{4})-\d{4}-\d{4}"
# e.g. 2.6.17c4.EX53330-V1.08
RE_VERSION = r"^\d*([.][\d]*\w*\d*){2}[.].*-.*"
Both classes mentioned above can be created with and without their attributes. To load
a verison or customisation string, you can use the loads()
method in both classes.
- class fsapi.isu.product.FSCustomisation¶
Customisation for Frontier-Smart products.
- get_module_name() str ¶
Returns the printable module name of this customisation.
- Returns:
the module name
- Return type:
str
- loads(buffer: str)¶
Tries to parse the given string
- Parameters:
buffer (str) – the input to parse
- class fsapi.isu.product.FSVersion(firmware_version: str = None, sdk_version: str = None, revision: str = None, branch: str = None)¶
Frontier-Smart version representation.
- loads(buffer: str)¶
Parses the given input.
- Parameters:
buffer (str) – the full version representation