7.5. SEMS Lite Agent Package Load ProcessΒΆ
When SE update package is loaded to SEMS Lite agent, SEMS Lite agent executes following steps to load package (offline) to the SE.
Check if target entity ID match.
Check tear status which indicate if last load operation succeed. If not, SEMS Lite agent will indicate user to re-run the tear script.
Check if recovery has started and record flag accordingly. This flag is used later in error code handling.
Check if meet minimum previous version and version request.
Decode the protobuf stream to find valid SEMS Lite agent package.
If the package includes host command, take relative actions (reset SE, etc).
If the package includes APDU command, send the APDU command to SE.
Get the status word from SE. Tranlate the status word to customer friendly return value.
Check tear status which indicate if this load operation succeed. If not, SEMS Lite agent will indicate user to re-run the tear script.
Refer to following flowchart for detail:
Flowchart Part 1:

Flowchart Part 2:

Flowchart Part 3:

Flowchart Part 4:

Flowchart Part 5:

Note 1: SEMS Lite agent and iot hub module share protobuf stream processing function. In this function, several keystore endpoints could attach to the dispatcher. But in SEMS Lite agent case, there is only one keystore endpoint which is sems lite agent.