Merge branch 'develop' into mueller/rtd-cmds
This commit is contained in:
@ -906,43 +906,9 @@ def add_ploc_supv_cmds(cmd_dict: ServiceOpCodeDictT):
|
||||
"55": ("PLOC Supervisor: Request ADC Report", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||
"56": ("PLOC Supervisor: Reset PL", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||
"57": ("PLOC Supervisor: Enable NVMs", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||
"58": ("PLOC Supervisor: Continue update", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||
}
|
||||
service_ploc_supv_tuple = ("PLOC Supervisor", op_code_dict_srv_ploc_supv)
|
||||
|
||||
op_code_dict_srv_ploc_updater = {
|
||||
"0": (
|
||||
"Ploc Updater: Update uboot on partition A",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
"1": (
|
||||
"Ploc Updater: Update bitstream on partition A",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
"2": (
|
||||
"Ploc Updater: Update linux on partition A",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
"3": (
|
||||
"Ploc Updater: Update application on partition A",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
"4": (
|
||||
"Ploc Updater: Update uboot on partition B",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
"5": (
|
||||
"Ploc Updater: Update bitstream on partition B",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
"6": (
|
||||
"Ploc Updater: Update linux on partition B",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
"7": (
|
||||
"Ploc Updater: Update application on partition B",
|
||||
{OpCodeDictKeys.TIMEOUT: 2.0},
|
||||
),
|
||||
}
|
||||
cmd_dict[CustomServiceList.PLOC_SUPV.value] = service_ploc_supv_tuple
|
||||
cmd_dict[
|
||||
CustomServiceList.PLOC_MEMORY_DUMPER.value
|
||||
|
@ -98,6 +98,7 @@ class SupvActionIds:
|
||||
REQUEST_ADC_REPORT = 57
|
||||
RESET_PL = 58
|
||||
ENABLE_NVMS = 59
|
||||
CONTINUE_UPDATE = 60
|
||||
|
||||
|
||||
class SupvHkIds:
|
||||
@ -397,6 +398,11 @@ def pack_ploc_supv_commands(
|
||||
)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=72, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
elif op_code == "58":
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "PLOC Supervisor: Continue update"))
|
||||
command = object_id + struct.pack("!I", SupvActionIds.CONTINUE_UPDATE)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=73, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
|
||||
return tc_queue
|
||||
|
||||
|
Reference in New Issue
Block a user