update events and retvals #170

Merged
muellerr merged 13 commits from thermal_controller into main 2023-04-03 15:12:05 +02:00
6 changed files with 56 additions and 38 deletions
Showing only changes of commit e612e086ab - Show all commits

View File

@ -10,6 +10,11 @@ list yields a list of all related PRs for each release.
# [unreleased]
# [v2.19.3] 2023-03-21
- Update generated files
- Improve STR commanding a bit
# [v2.19.2] 2023-03-17
- Update generated files

View File

@ -1,4 +1,4 @@
__version__ = "2.19.2"
__version__ = "2.19.3"
import logging
from pathlib import Path
@ -6,7 +6,7 @@ from pathlib import Path
SW_NAME = "eive-tmtc"
VERSION_MAJOR = 2
VERSION_MINOR = 19
VERSION_REVISION = 2
VERSION_REVISION = 3
EIVE_TMTC_ROOT = Path(__file__).parent
PACKAGE_ROOT = EIVE_TMTC_ROOT.parent

View File

@ -259,6 +259,7 @@ Event ID (dec); Event ID (hex); Name; Severity; Description; File Path
14006;0x36b6;CURRENT_IMAGE_INFO;INFO;P1: Current Chip, P2: Current Copy;bsp_q7s/core/CoreController.h
14007;0x36b7;REBOOT_COUNTER;INFO;Total reboot counter, which is the sum of the boot count of all individual images.;bsp_q7s/core/CoreController.h
14008;0x36b8;INDIVIDUAL_BOOT_COUNTS;INFO;Get the boot count of the individual images. P1: First 16 bits boot count of image 0 0, last 16 bits boot count of image 0 1. P2: First 16 bits boot count of image 1 0, last 16 bits boot count of image 1 1.;bsp_q7s/core/CoreController.h
14010;0x36ba;I2C_UNAVAILABLE_REBOOT;MEDIUM;No description;bsp_q7s/core/CoreController.h
14100;0x3714;NO_VALID_SENSOR_TEMPERATURE;MEDIUM;No description;mission/controller/controllerdefinitions/tcsCtrlDefs.h
14101;0x3715;NO_HEALTHY_HEATER_AVAILABLE;MEDIUM;No description;mission/controller/controllerdefinitions/tcsCtrlDefs.h
14102;0x3716;SYRLINKS_OVERHEATING;HIGH;No description;mission/controller/controllerdefinitions/tcsCtrlDefs.h

1 Event ID (dec) Event ID (hex) Name Severity Description File Path
259 14005 14006 0x36b5 0x36b6 VERSION_INFO CURRENT_IMAGE_INFO INFO P1: Byte 0: Major, Byte 1: Minor, Byte 2: Patch, Byte 3: Has Git Hash P2: First four letters of Git SHA is the last byte of P1 is set. P1: Current Chip, P2: Current Copy bsp_q7s/core/CoreController.h
260 14006 14007 0x36b6 0x36b7 CURRENT_IMAGE_INFO REBOOT_COUNTER INFO P1: Current Chip, P2: Current Copy Total reboot counter, which is the sum of the boot count of all individual images. bsp_q7s/core/CoreController.h
261 14007 14008 0x36b7 0x36b8 REBOOT_COUNTER INDIVIDUAL_BOOT_COUNTS INFO Total reboot counter, which is the sum of the boot count of all individual images. Get the boot count of the individual images. P1: First 16 bits boot count of image 0 0, last 16 bits boot count of image 0 1. P2: First 16 bits boot count of image 1 0, last 16 bits boot count of image 1 1. bsp_q7s/core/CoreController.h
262 14010 0x36ba I2C_UNAVAILABLE_REBOOT MEDIUM No description bsp_q7s/core/CoreController.h
263 14008 14100 0x36b8 0x3714 INDIVIDUAL_BOOT_COUNTS NO_VALID_SENSOR_TEMPERATURE INFO MEDIUM Get the boot count of the individual images. P1: First 16 bits boot count of image 0 0, last 16 bits boot count of image 0 1. P2: First 16 bits boot count of image 1 0, last 16 bits boot count of image 1 1. No description bsp_q7s/core/CoreController.h mission/controller/controllerdefinitions/tcsCtrlDefs.h
264 14010 14101 0x36ba 0x3715 I2C_UNAVAILABLE_REBOOT NO_HEALTHY_HEATER_AVAILABLE MEDIUM No description bsp_q7s/core/CoreController.h mission/controller/controllerdefinitions/tcsCtrlDefs.h
265 14100 14102 0x3714 0x3716 NO_VALID_SENSOR_TEMPERATURE SYRLINKS_OVERHEATING MEDIUM HIGH No description mission/controller/ThermalController.h mission/controller/controllerdefinitions/tcsCtrlDefs.h

View File

@ -190,8 +190,8 @@ Full ID (hex); Name; Description; Unique ID; Subsytem Name; File Path
0x2207;TMF_AllDeleted;No description;7;TM_STORE_FRONTEND_IF;fsfw/src/fsfw/tmstorage/TmStoreFrontendIF.h
0x2208;TMF_InvalidData;No description;8;TM_STORE_FRONTEND_IF;fsfw/src/fsfw/tmstorage/TmStoreFrontendIF.h
0x2209;TMF_NotReady;No description;9;TM_STORE_FRONTEND_IF;fsfw/src/fsfw/tmstorage/TmStoreFrontendIF.h
0x2401;MT_TooDetailedRequest;No description;1;MATCH_TREE_CLASS;fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
0x2402;MT_TooGeneralRequest;No description;2;MATCH_TREE_CLASS;fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
0x2401;MT_NoPacketFound;No description;1;MATCH_TREE_CLASS;fsfw/src/fsfw/globalfunctions/DleParser.h
0x2402;MT_PossiblePacketLoss;No description;2;MATCH_TREE_CLASS;fsfw/src/fsfw/globalfunctions/DleParser.h
0x2403;MT_NoMatch;No description;3;MATCH_TREE_CLASS;fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
0x2404;MT_Full;No description;4;MATCH_TREE_CLASS;fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
0x2405;MT_NewNodeCreated;No description;5;MATCH_TREE_CLASS;fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
@ -370,8 +370,8 @@ Full ID (hex); Name; Description; Unique ID; Subsytem Name; File Path
0x3e03;HKM_PeriodicHelperInvalid;No description;3;HOUSEKEEPING_MANAGER;fsfw/src/fsfw/datapoollocal/LocalDataPoolManager.h
0x3e04;HKM_PoolobjectNotFound;No description;4;HOUSEKEEPING_MANAGER;fsfw/src/fsfw/datapoollocal/LocalDataPoolManager.h
0x3e05;HKM_DatasetNotFound;No description;5;HOUSEKEEPING_MANAGER;fsfw/src/fsfw/datapoollocal/LocalDataPoolManager.h
0x3f01;DLEE_NoPacketFound;No description;1;DLE_ENCODER;fsfw/src/fsfw/globalfunctions/DleParser.h
0x3f02;DLEE_PossiblePacketLoss;No description;2;DLE_ENCODER;fsfw/src/fsfw/globalfunctions/DleParser.h
0x3f01;DLEE_StreamTooShort;No description;1;DLE_ENCODER;fsfw/src/fsfw/globalfunctions/DleEncoder.h
0x3f02;DLEE_DecodingError;No description;2;DLE_ENCODER;fsfw/src/fsfw/globalfunctions/DleEncoder.h
0x4201;PUS11_InvalidTypeTimeWindow;No description;1;PUS_SERVICE_11;fsfw/src/fsfw/pus/Service11TelecommandScheduling.h
0x4202;PUS11_InvalidTimeWindow;No description;2;PUS_SERVICE_11;fsfw/src/fsfw/pus/Service11TelecommandScheduling.h
0x4203;PUS11_TimeshiftingNotPossible;No description;3;PUS_SERVICE_11;fsfw/src/fsfw/pus/Service11TelecommandScheduling.h
@ -401,9 +401,9 @@ Full ID (hex); Name; Description; Unique ID; Subsytem Name; File Path
0x4403;UXOS_CommandError;Command execution failed;3;LINUX_OSAL;fsfw/src/fsfw_hal/linux/CommandExecutor.h
0x4404;UXOS_NoCommandLoadedOrPending;;4;LINUX_OSAL;fsfw/src/fsfw_hal/linux/CommandExecutor.h
0x4406;UXOS_PcloseCallError;No description;6;LINUX_OSAL;fsfw/src/fsfw_hal/linux/CommandExecutor.h
0x4500;HSPI_OpeningFileFailed;No description;0;HAL_SPI;fsfw/src/fsfw_hal/linux/spi/SpiComIF.h
0x4501;HSPI_FullDuplexTransferFailed;No description;1;HAL_SPI;fsfw/src/fsfw_hal/linux/spi/SpiComIF.h
0x4502;HSPI_HalfDuplexTransferFailed;No description;2;HAL_SPI;fsfw/src/fsfw_hal/linux/spi/SpiComIF.h
0x4500;HSPI_HalTimeoutRetval;No description;0;HAL_SPI;fsfw/src/fsfw_hal/stm32h7/spi/spiDefinitions.h
0x4501;HSPI_HalBusyRetval;No description;1;HAL_SPI;fsfw/src/fsfw_hal/stm32h7/spi/spiDefinitions.h
0x4502;HSPI_HalErrorRetval;No description;2;HAL_SPI;fsfw/src/fsfw_hal/stm32h7/spi/spiDefinitions.h
0x4601;HURT_UartReadFailure;No description;1;HAL_UART;fsfw/src/fsfw_hal/linux/serial/SerialComIF.h
0x4602;HURT_UartReadSizeMissmatch;No description;2;HAL_UART;fsfw/src/fsfw_hal/linux/serial/SerialComIF.h
0x4603;HURT_UartRxBufferTooSmall;No description;3;HAL_UART;fsfw/src/fsfw_hal/linux/serial/SerialComIF.h
@ -448,8 +448,6 @@ Full ID (hex); Name; Description; Unique ID; Subsytem Name; File Path
0x52b5;RWHA_NoReply;Reaction wheel only responds with empty frames.;181;RW_HANDLER;mission/devices/devicedefinitions/rwHelpers.h
0x52b6;RWHA_NoStartMarker;Expected a start marker as first byte;182;RW_HANDLER;mission/devices/devicedefinitions/rwHelpers.h
0x52b7;RWHA_SpiReadTimeout;Timeout when reading reply;183;RW_HANDLER;mission/devices/devicedefinitions/rwHelpers.h
0x5300;STRH_NoReplyAvailable;No description;0;STR_HANDLER;linux/devices/ImtqPollingTask.h
0x5302;STRH_InvalidCrc;No description;2;STR_HANDLER;linux/devices/ScexHelper.h
0x53a0;STRH_TemperatureReqFailed;Status in temperature reply signals error;160;STR_HANDLER;linux/devices/startracker/StarTrackerHandler.h
0x53a1;STRH_PingFailed;Ping command failed;161;STR_HANDLER;linux/devices/startracker/StarTrackerHandler.h
0x53a2;STRH_VersionReqFailed;Status in version reply signals error;162;STR_HANDLER;linux/devices/startracker/StarTrackerHandler.h
@ -475,6 +473,8 @@ Full ID (hex); Name; Description; Unique ID; Subsytem Name; File Path
0x53b6;STRH_StartrackerAlreadyBooted;Star tracker is already in firmware mode;182;STR_HANDLER;linux/devices/startracker/StarTrackerHandler.h
0x53b7;STRH_StartrackerRunningFirmware;Star tracker is in firmware mode but must be in bootloader mode to execute this command;183;STR_HANDLER;linux/devices/startracker/StarTrackerHandler.h
0x53b8;STRH_StartrackerRunningBootloader;Star tracker is in bootloader mode but must be in firmware mode to execute this command;184;STR_HANDLER;linux/devices/startracker/StarTrackerHandler.h
0x5400;DWLPWRON_NoReplyAvailable;No description;0;DWLPWRON_CMD;linux/devices/ImtqPollingTask.h
0x5402;DWLPWRON_InvalidCrc;No description;2;DWLPWRON_CMD;linux/devices/ScexHelper.h
0x54e0;DWLPWRON_InvalidMode;Received command has invalid JESD mode (valid modes are 0 - 5);224;DWLPWRON_CMD;linux/devices/devicedefinitions/PlocMPSoCDefinitions.h
0x54e1;DWLPWRON_InvalidLaneRate;Received command has invalid lane rate (valid lane rate are 0 - 9);225;DWLPWRON_CMD;linux/devices/devicedefinitions/PlocMPSoCDefinitions.h
0x5700;PLSPVhLP_RequestDone;No description;0;PLOC_SUPV_HELPER;linux/devices/ploc/PlocSupvUartMan.h
@ -506,6 +506,12 @@ Full ID (hex); Name; Description; Unique ID; Subsytem Name; File Path
0x5d03;GOMS_InvalidParamSize;No description;3;GOM_SPACE_HANDLER;mission/devices/GomspaceDeviceHandler.h
0x5d04;GOMS_InvalidPayloadSize;No description;4;GOM_SPACE_HANDLER;mission/devices/GomspaceDeviceHandler.h
0x5d05;GOMS_UnknownReplyId;No description;5;GOM_SPACE_HANDLER;mission/devices/GomspaceDeviceHandler.h
0x5da0;GOMS_InvalidSpeed;Action Message with invalid speed was received. Valid speeds must be in the range of [-65000, 1000] or [1000, 65000];160;GOM_SPACE_HANDLER;mission/devices/RwHandler.h
0x5da1;GOMS_InvalidRampTime;Action Message with invalid ramp time was received.;161;GOM_SPACE_HANDLER;mission/devices/RwHandler.h
0x5da2;GOMS_SetSpeedCommandInvalidLength;Received set speed command has invalid length. Should be 6.;162;GOM_SPACE_HANDLER;mission/devices/RwHandler.h
0x5da3;GOMS_ExecutionFailed;Command execution failed;163;GOM_SPACE_HANDLER;mission/devices/RwHandler.h
0x5da4;GOMS_CrcError;Reaction wheel reply has invalid crc;164;GOM_SPACE_HANDLER;mission/devices/RwHandler.h
0x5da5;GOMS_ValueNotRead;No description;165;GOM_SPACE_HANDLER;mission/devices/RwHandler.h
0x5ea0;PLMEMDUMP_MramAddressTooHigh;The capacity of the MRAM amounts to 512 kB. Thus the maximum address must not be higher than 0x7d000.;160;PLOC_MEMORY_DUMPER;linux/devices/ploc/PlocMemoryDumper.h
0x5ea1;PLMEMDUMP_MramInvalidAddressCombination;The specified end address is lower than the start address;161;PLOC_MEMORY_DUMPER;linux/devices/ploc/PlocMemoryDumper.h
0x5fa0;PDEC_AbandonedCltuRetval;No description;160;PDEC_HANDLER;linux/ipcore/PdecHandler.h
@ -535,12 +541,11 @@ Full ID (hex); Name; Description; Unique ID; Subsytem Name; File Path
0x64a0;FSHLP_SdNotMounted;SD card specified with path string not mounted;160;FILE_SYSTEM_HELPER;bsp_q7s/fs/FilesystemHelper.h
0x64a1;FSHLP_FileNotExists;Specified file does not exist on filesystem;161;FILE_SYSTEM_HELPER;bsp_q7s/fs/FilesystemHelper.h
0x65a0;PLMPHLP_FileClosedAccidentally;File accidentally close;160;PLOC_MPSOC_HELPER;linux/devices/ploc/PlocMPSoCHelper.h
0x66a0;SADPL_InvalidSpeed;Action Message with invalid speed was received. Valid speeds must be in the range of [-65000, 1000] or [1000, 65000];160;SA_DEPL_HANDLER;mission/devices/RwHandler.h
0x66a1;SADPL_InvalidRampTime;Action Message with invalid ramp time was received.;161;SA_DEPL_HANDLER;mission/devices/RwHandler.h
0x66a2;SADPL_SetSpeedCommandInvalidLength;Received set speed command has invalid length. Should be 6.;162;SA_DEPL_HANDLER;mission/devices/RwHandler.h
0x66a3;SADPL_ExecutionFailed;Command execution failed;163;SA_DEPL_HANDLER;mission/devices/RwHandler.h
0x66a4;SADPL_CrcError;Reaction wheel reply has invalid crc;164;SA_DEPL_HANDLER;mission/devices/RwHandler.h
0x66a5;SADPL_ValueNotRead;No description;165;SA_DEPL_HANDLER;mission/devices/RwHandler.h
0x66a0;SADPL_CommandNotSupported;No description;160;SA_DEPL_HANDLER;mission/devices/SolarArrayDeploymentHandler.h
0x66a1;SADPL_DeploymentAlreadyExecuting;No description;161;SA_DEPL_HANDLER;mission/devices/SolarArrayDeploymentHandler.h
0x66a2;SADPL_MainSwitchTimeoutFailure;No description;162;SA_DEPL_HANDLER;mission/devices/SolarArrayDeploymentHandler.h
0x66a3;SADPL_SwitchingDeplSa1Failed;No description;163;SA_DEPL_HANDLER;mission/devices/SolarArrayDeploymentHandler.h
0x66a4;SADPL_SwitchingDeplSa2Failed;No description;164;SA_DEPL_HANDLER;mission/devices/SolarArrayDeploymentHandler.h
0x67a0;MPSOCRTVIF_CrcFailure;Space Packet received from PLOC has invalid CRC;160;MPSOC_RETURN_VALUES_IF;linux/devices/devicedefinitions/MPSoCReturnValuesIF.h
0x67a1;MPSOCRTVIF_ReceivedAckFailure;Received ACK failure reply from PLOC;161;MPSOC_RETURN_VALUES_IF;linux/devices/devicedefinitions/MPSoCReturnValuesIF.h
0x67a2;MPSOCRTVIF_ReceivedExeFailure;Received execution failure reply from PLOC;162;MPSOC_RETURN_VALUES_IF;linux/devices/devicedefinitions/MPSoCReturnValuesIF.h

1 Full ID (hex) Name Description Unique ID Subsytem Name File Path
190 0x2207 TMF_AllDeleted No description 7 TM_STORE_FRONTEND_IF fsfw/src/fsfw/tmstorage/TmStoreFrontendIF.h
191 0x2208 TMF_InvalidData No description 8 TM_STORE_FRONTEND_IF fsfw/src/fsfw/tmstorage/TmStoreFrontendIF.h
192 0x2209 TMF_NotReady No description 9 TM_STORE_FRONTEND_IF fsfw/src/fsfw/tmstorage/TmStoreFrontendIF.h
193 0x2401 MT_NoPacketFound No description 1 MATCH_TREE_CLASS fsfw/src/fsfw/globalfunctions/DleParser.h
194 0x2402 MT_PossiblePacketLoss No description 2 MATCH_TREE_CLASS fsfw/src/fsfw/globalfunctions/DleParser.h
195 0x2403 MT_NoMatch No description 3 MATCH_TREE_CLASS fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
196 0x2404 MT_Full No description 4 MATCH_TREE_CLASS fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
197 0x2405 MT_NewNodeCreated No description 5 MATCH_TREE_CLASS fsfw/src/fsfw/globalfunctions/matching/MatchTree.h
370 0x3e02 0x3e03 HKM_ReportingStatusUnchanged HKM_PeriodicHelperInvalid No description 2 3 HOUSEKEEPING_MANAGER fsfw/src/fsfw/datapoollocal/LocalDataPoolManager.h
371 0x3e03 0x3e04 HKM_PeriodicHelperInvalid HKM_PoolobjectNotFound No description 3 4 HOUSEKEEPING_MANAGER fsfw/src/fsfw/datapoollocal/LocalDataPoolManager.h
372 0x3e04 0x3e05 HKM_PoolobjectNotFound HKM_DatasetNotFound No description 4 5 HOUSEKEEPING_MANAGER fsfw/src/fsfw/datapoollocal/LocalDataPoolManager.h
373 0x3e05 0x3f01 HKM_DatasetNotFound DLEE_StreamTooShort No description 5 1 HOUSEKEEPING_MANAGER DLE_ENCODER fsfw/src/fsfw/datapoollocal/LocalDataPoolManager.h fsfw/src/fsfw/globalfunctions/DleEncoder.h
374 0x3f01 0x3f02 DLEE_StreamTooShort DLEE_DecodingError No description 1 2 DLE_ENCODER fsfw/src/fsfw/globalfunctions/DleEncoder.h
375 0x3f02 0x4201 DLEE_DecodingError PUS11_InvalidTypeTimeWindow No description 2 1 DLE_ENCODER PUS_SERVICE_11 fsfw/src/fsfw/globalfunctions/DleEncoder.h fsfw/src/fsfw/pus/Service11TelecommandScheduling.h
376 0x4201 0x4202 PUS11_InvalidTypeTimeWindow PUS11_InvalidTimeWindow No description 1 2 PUS_SERVICE_11 fsfw/src/fsfw/pus/Service11TelecommandScheduling.h
377 0x4202 0x4203 PUS11_InvalidTimeWindow PUS11_TimeshiftingNotPossible No description 2 3 PUS_SERVICE_11 fsfw/src/fsfw/pus/Service11TelecommandScheduling.h
401 0x4402 0x4403 UXOS_BytesRead UXOS_CommandError Some bytes have been read from the executing process Command execution failed 2 3 LINUX_OSAL fsfw/src/fsfw_hal/linux/CommandExecutor.h
402 0x4403 0x4404 UXOS_CommandError UXOS_NoCommandLoadedOrPending Command execution failed 3 4 LINUX_OSAL fsfw/src/fsfw_hal/linux/CommandExecutor.h
403 0x4404 0x4406 UXOS_NoCommandLoadedOrPending UXOS_PcloseCallError No description 4 6 LINUX_OSAL fsfw/src/fsfw_hal/linux/CommandExecutor.h
404 0x4406 0x4500 UXOS_PcloseCallError HSPI_HalTimeoutRetval No description 6 0 LINUX_OSAL HAL_SPI fsfw/src/fsfw_hal/linux/CommandExecutor.h fsfw/src/fsfw_hal/stm32h7/spi/spiDefinitions.h
405 0x4500 0x4501 HSPI_HalTimeoutRetval HSPI_HalBusyRetval No description 0 1 HAL_SPI fsfw/src/fsfw_hal/stm32h7/spi/spiDefinitions.h
406 0x4501 0x4502 HSPI_HalBusyRetval HSPI_HalErrorRetval No description 1 2 HAL_SPI fsfw/src/fsfw_hal/stm32h7/spi/spiDefinitions.h
407 0x4502 0x4601 HSPI_HalErrorRetval HURT_UartReadFailure No description 2 1 HAL_SPI HAL_UART fsfw/src/fsfw_hal/stm32h7/spi/spiDefinitions.h fsfw/src/fsfw_hal/linux/serial/SerialComIF.h
408 0x4601 0x4602 HURT_UartReadFailure HURT_UartReadSizeMissmatch No description 1 2 HAL_UART fsfw/src/fsfw_hal/linux/serial/SerialComIF.h
409 0x4602 0x4603 HURT_UartReadSizeMissmatch HURT_UartRxBufferTooSmall No description 2 3 HAL_UART fsfw/src/fsfw_hal/linux/serial/SerialComIF.h
448 0x52b4 0x52b5 RWHA_MissingEndSign RWHA_NoReply HDLC decoding mechanism never receives the end sign 0x7E Reaction wheel only responds with empty frames. 180 181 RW_HANDLER mission/acs/rwHelpers.h mission/devices/devicedefinitions/rwHelpers.h
449 0x52b5 0x52b6 RWHA_NoReply RWHA_NoStartMarker Reaction wheel only responds with empty frames. Expected a start marker as first byte 181 182 RW_HANDLER mission/acs/rwHelpers.h mission/devices/devicedefinitions/rwHelpers.h
450 0x52b6 0x52b7 RWHA_NoStartMarker RWHA_SpiReadTimeout Expected a start marker as first byte Timeout when reading reply 182 183 RW_HANDLER mission/acs/rwHelpers.h mission/devices/devicedefinitions/rwHelpers.h
0x52b7 RWHA_SpiReadTimeout Timeout when reading reply 183 RW_HANDLER mission/acs/rwHelpers.h
0x53a0 STRH_TemperatureReqFailed Status in temperature reply signals error 160 STR_HANDLER mission/acs/str/StarTrackerHandler.h
451 0x53a1 0x53a0 STRH_PingFailed STRH_TemperatureReqFailed Ping command failed Status in temperature reply signals error 161 160 STR_HANDLER mission/acs/str/StarTrackerHandler.h linux/devices/startracker/StarTrackerHandler.h
452 0x53a2 0x53a1 STRH_VersionReqFailed STRH_PingFailed Status in version reply signals error Ping command failed 162 161 STR_HANDLER mission/acs/str/StarTrackerHandler.h linux/devices/startracker/StarTrackerHandler.h
453 0x53a3 0x53a2 STRH_InterfaceReqFailed STRH_VersionReqFailed Status in interface reply signals error Status in version reply signals error 163 162 STR_HANDLER mission/acs/str/StarTrackerHandler.h linux/devices/startracker/StarTrackerHandler.h
473 0x53b7 0x53b6 STRH_StartrackerNotRunningFirmware STRH_StartrackerAlreadyBooted Star tracker must be in firmware mode to run this command Star tracker is already in firmware mode 183 182 STR_HANDLER mission/acs/str/StarTrackerHandler.h linux/devices/startracker/StarTrackerHandler.h
474 0x53b8 0x53b7 STRH_StartrackerNotRunningBootloader STRH_StartrackerRunningFirmware Star tracker must be in bootloader mode to run this command Star tracker is in firmware mode but must be in bootloader mode to execute this command 184 183 STR_HANDLER mission/acs/str/StarTrackerHandler.h linux/devices/startracker/StarTrackerHandler.h
475 0x54e0 0x53b8 DWLPWRON_InvalidMode STRH_StartrackerRunningBootloader Received command has invalid JESD mode (valid modes are 0 - 5) Star tracker is in bootloader mode but must be in firmware mode to execute this command 224 184 DWLPWRON_CMD STR_HANDLER linux/payload/plocMpscoDefs.h linux/devices/startracker/StarTrackerHandler.h
476 0x5400 DWLPWRON_NoReplyAvailable No description 0 DWLPWRON_CMD linux/devices/ImtqPollingTask.h
477 0x5402 DWLPWRON_InvalidCrc No description 2 DWLPWRON_CMD linux/devices/ScexHelper.h
478 0x54e1 0x54e0 DWLPWRON_InvalidLaneRate DWLPWRON_InvalidMode Received command has invalid lane rate (valid lane rate are 0 - 9) Received command has invalid JESD mode (valid modes are 0 - 5) 225 224 DWLPWRON_CMD linux/payload/plocMpscoDefs.h linux/devices/devicedefinitions/PlocMPSoCDefinitions.h
479 0x5700 0x54e1 PLSPVhLP_RequestDone DWLPWRON_InvalidLaneRate No description Received command has invalid lane rate (valid lane rate are 0 - 9) 0 225 PLOC_SUPV_HELPER DWLPWRON_CMD linux/payload/PlocSupvUartMan.h linux/devices/devicedefinitions/PlocMPSoCDefinitions.h
480 0x5701 0x5700 PLSPVhLP_NoPacketFound PLSPVhLP_RequestDone No description 1 0 PLOC_SUPV_HELPER linux/payload/PlocSupvUartMan.h linux/devices/ploc/PlocSupvUartMan.h
506 0x5c09 0x5d03 STRHLP_InvalidTypeId GOMS_InvalidParamSize Reply has invalid type ID (should be of action reply type) No description 9 3 STR_HELPER GOM_SPACE_HANDLER linux/acs/StrComHandler.h mission/devices/GomspaceDeviceHandler.h
507 0x5c0a 0x5d04 STRHLP_ReceptionTimeout GOMS_InvalidPayloadSize No description 10 4 STR_HELPER GOM_SPACE_HANDLER linux/acs/StrComHandler.h mission/devices/GomspaceDeviceHandler.h
508 0x5c0b 0x5d05 STRHLP_DecodingError GOMS_UnknownReplyId No description 11 5 STR_HELPER GOM_SPACE_HANDLER linux/acs/StrComHandler.h mission/devices/GomspaceDeviceHandler.h
509 0x5da0 GOMS_InvalidSpeed Action Message with invalid speed was received. Valid speeds must be in the range of [-65000, 1000] or [1000, 65000] 160 GOM_SPACE_HANDLER mission/devices/RwHandler.h
510 0x5da1 GOMS_InvalidRampTime Action Message with invalid ramp time was received. 161 GOM_SPACE_HANDLER mission/devices/RwHandler.h
511 0x5da2 GOMS_SetSpeedCommandInvalidLength Received set speed command has invalid length. Should be 6. 162 GOM_SPACE_HANDLER mission/devices/RwHandler.h
512 0x5da3 GOMS_ExecutionFailed Command execution failed 163 GOM_SPACE_HANDLER mission/devices/RwHandler.h
513 0x5da4 GOMS_CrcError Reaction wheel reply has invalid crc 164 GOM_SPACE_HANDLER mission/devices/RwHandler.h
514 0x5da5 GOMS_ValueNotRead No description 165 GOM_SPACE_HANDLER mission/devices/RwHandler.h
515 0x5d00 0x5ea0 GOMS_PacketTooLong PLMEMDUMP_MramAddressTooHigh No description The capacity of the MRAM amounts to 512 kB. Thus the maximum address must not be higher than 0x7d000. 0 160 GOM_SPACE_HANDLER PLOC_MEMORY_DUMPER mission/power/GomspaceDeviceHandler.h linux/devices/ploc/PlocMemoryDumper.h
516 0x5d01 0x5ea1 GOMS_InvalidTableId PLMEMDUMP_MramInvalidAddressCombination No description The specified end address is lower than the start address 1 161 GOM_SPACE_HANDLER PLOC_MEMORY_DUMPER mission/power/GomspaceDeviceHandler.h linux/devices/ploc/PlocMemoryDumper.h
517 0x5d02 0x5fa0 GOMS_InvalidAddress PDEC_AbandonedCltuRetval No description 2 160 GOM_SPACE_HANDLER PDEC_HANDLER mission/power/GomspaceDeviceHandler.h linux/ipcore/PdecHandler.h
541 0x61a2 0x64a0 RS_ClkInversionFailed FSHLP_SdNotMounted Failed to invert clock and thus change the time the data is updated with respect to the tx clock SD card specified with path string not mounted 162 160 RATE_SETTER FILE_SYSTEM_HELPER linux/ipcore/PtmeConfig.h bsp_q7s/fs/FilesystemHelper.h
542 0x61a3 0x64a1 RS_TxManipulatorConfigFailed FSHLP_FileNotExists Failed to change configuration bit of tx clock manipulator Specified file does not exist on filesystem 163 161 RATE_SETTER FILE_SYSTEM_HELPER linux/ipcore/PtmeConfig.h bsp_q7s/fs/FilesystemHelper.h
543 0x6201 0x65a0 JSONBASE_JsonFileNotExists PLMPHLP_FileClosedAccidentally Specified json file does not exist File accidentally close 1 160 ARCSEC_JSON_BASE PLOC_MPSOC_HELPER mission/acs/str/ArcsecJsonParamBase.h linux/devices/ploc/PlocMPSoCHelper.h
544 0x6202 0x66a0 JSONBASE_SetNotExists SADPL_CommandNotSupported Requested set does not exist in json file No description 2 160 ARCSEC_JSON_BASE SA_DEPL_HANDLER mission/acs/str/ArcsecJsonParamBase.h mission/devices/SolarArrayDeploymentHandler.h
545 0x6203 0x66a1 JSONBASE_ParamNotExists SADPL_DeploymentAlreadyExecuting Requested parameter does not exist in json file No description 3 161 ARCSEC_JSON_BASE SA_DEPL_HANDLER mission/acs/str/ArcsecJsonParamBase.h mission/devices/SolarArrayDeploymentHandler.h
546 0x63a0 0x66a2 NVMB_KeyNotExists SADPL_MainSwitchTimeoutFailure Specified key does not exist in json file No description 160 162 NVM_PARAM_BASE SA_DEPL_HANDLER mission/memory/NvmParameterBase.h mission/devices/SolarArrayDeploymentHandler.h
547 0x64a0 0x66a3 FSHLP_SdNotMounted SADPL_SwitchingDeplSa1Failed SD card specified with path string not mounted No description 160 163 FILE_SYSTEM_HELPER SA_DEPL_HANDLER bsp_q7s/fs/FilesystemHelper.h mission/devices/SolarArrayDeploymentHandler.h
548 0x64a1 0x66a4 FSHLP_FileNotExists SADPL_SwitchingDeplSa2Failed Specified file does not exist on filesystem No description 161 164 FILE_SYSTEM_HELPER SA_DEPL_HANDLER bsp_q7s/fs/FilesystemHelper.h mission/devices/SolarArrayDeploymentHandler.h
0x65a0 PLMPHLP_FileClosedAccidentally File accidentally close 160 PLOC_MPSOC_HELPER linux/payload/PlocMpsocHelper.h
549 0x66a0 0x67a0 SADPL_CommandNotSupported MPSOCRTVIF_CrcFailure No description Space Packet received from PLOC has invalid CRC 160 SA_DEPL_HANDLER MPSOC_RETURN_VALUES_IF mission/SolarArrayDeploymentHandler.h linux/devices/devicedefinitions/MPSoCReturnValuesIF.h
550 0x66a1 0x67a1 SADPL_DeploymentAlreadyExecuting MPSOCRTVIF_ReceivedAckFailure No description Received ACK failure reply from PLOC 161 SA_DEPL_HANDLER MPSOC_RETURN_VALUES_IF mission/SolarArrayDeploymentHandler.h linux/devices/devicedefinitions/MPSoCReturnValuesIF.h
551 0x66a2 0x67a2 SADPL_MainSwitchTimeoutFailure MPSOCRTVIF_ReceivedExeFailure No description Received execution failure reply from PLOC 162 SA_DEPL_HANDLER MPSOC_RETURN_VALUES_IF mission/SolarArrayDeploymentHandler.h linux/devices/devicedefinitions/MPSoCReturnValuesIF.h

View File

@ -186,7 +186,10 @@ def acs_cmd_defs(defs: TmtcDefinitionWrapper):
oce.add(keys=OpCodes.INERTIAL, info=Info.INERTIAL)
oce.add(keys=OpCodes.SAFE_PTG, info=Info.SAFE_PTG)
oce.add(keys=OpCodes.RESET_MEKF, info=Info.RESET_MEKF)
oce.add(keys=OpCodes.RESTORE_MEKF_NONFINITE_RECOVERY, info=Info.RESTORE_MEKF_NONFINITE_RECOVERY)
oce.add(
keys=OpCodes.RESTORE_MEKF_NONFINITE_RECOVERY,
info=Info.RESTORE_MEKF_NONFINITE_RECOVERY,
)
oce.add(keys=OpCodes.SET_PARAMETER_SCALAR, info=Info.SET_PARAMETER_SCALAR)
oce.add(keys=OpCodes.SET_PARAMETER_VECTOR, info=Info.SET_PARAMETER_VECTOR)
oce.add(keys=OpCodes.SET_PARAMETER_MATRIX, info=Info.SET_PARAMETER_MATRIX)
@ -269,7 +272,9 @@ def pack_acs_ctrl_command(p: ServiceProviderParams):
q.add_pus_tc(create_action_cmd(ACS_CONTROLLER, ActionId.RESET_MEKF))
elif op_code in OpCodes.RESTORE_MEKF_NONFINITE_RECOVERY:
q.add_log_cmd(f"{Info.RESTORE_MEKF_NONFINITE_RECOVERY}")
q.add_pus_tc(create_action_cmd(ACS_CONTROLLER, ActionId.RESTORE_MEKF_NONFINITE_RECOVERY))
q.add_pus_tc(
create_action_cmd(ACS_CONTROLLER, ActionId.RESTORE_MEKF_NONFINITE_RECOVERY)
)
elif op_code in OpCodes.SET_PARAMETER_SCALAR:
q.add_log_cmd(f"{Info.SET_PARAMETER_SCALAR}")
set_acs_ctrl_param_scalar(q)

View File

@ -16,6 +16,7 @@ from eive_tmtc.utility.input_helper import InputHelper
from spacepackets.ecss.tc import PusTelecommand
from tmtccmd.config import TmtcDefinitionWrapper, OpCodeEntry
from tmtccmd.config.tmtc import tmtc_definitions_provider
from tmtccmd.tc.pus_3_fsfw_hk import create_request_one_diag_command, make_sid
from tmtccmd.tc import DefaultPusQueueHelper
from tmtccmd.tc.pus_200_fsfw_mode import pack_mode_data, Mode
from tmtccmd.util import ObjectIdU32
@ -96,6 +97,12 @@ class OpCodes:
NORMAL = "nml"
OFF = "off"
PING = "ping"
REQUEST_SOLUTION_SET = "request_sol_set"
TAKE_IMAGE = "take_image"
class Info:
REQUEST_SOLUTION_SET = "Request Solution Set HK once"
class SetId(enum.IntEnum):
@ -196,6 +203,9 @@ def pack_star_tracker_commands(
q.add_log_cmd("Star tracker: Mode Off")
data = pack_mode_data(obyt, Mode.OFF, 0)
q.add_pus_tc(PusTelecommand(service=200, subservice=1, app_data=data))
if op_code == OpCodes.REQUEST_SOLUTION_SET:
q.add_log_cmd(Info.REQUEST_SOLUTION_SET)
q.add_pus_tc(create_request_one_diag_command(make_sid(obyt, SetId.SOLUTION)))
if op_code == "4":
q.add_log_cmd("Star tracker: Mode Raw")
data = pack_mode_data(obyt, Mode.RAW, 0)
@ -348,7 +358,7 @@ def pack_star_tracker_commands(
+ bytearray(json_file, "utf-8")
)
q.add_pus_tc(PusTelecommand(service=8, subservice=128, app_data=data))
if op_code == "27":
if op_code == OpCodes.TAKE_IMAGE:
q.add_log_cmd("Star tracker: Take image")
actionid = int(input("Specify parameter ID (take image - 4): "))
data = (
@ -610,18 +620,6 @@ def pack_star_tracker_commands(
+ bytearray(firmware, "utf-8")
)
q.add_pus_tc(PusTelecommand(service=8, subservice=128, app_data=data))
if op_code == "70":
q.add_log_cmd("Star tracker: Disable timestamp generation")
command = obyt + struct.pack(
"!I", StarTrackerActionId.DISBALE_TIMESTAMP_GENERATION
)
q.add_pus_tc(PusTelecommand(service=8, subservice=128, app_data=command))
if op_code == "71":
q.add_log_cmd("Star tracker: Enable timestamp generation")
command = obyt + struct.pack(
"!I", StarTrackerActionId.ENABLE_TIMESTAMP_GENERATION
)
q.add_pus_tc(PusTelecommand(service=8, subservice=128, app_data=command))
def pack_read_command(object_id: bytes) -> bytearray:
@ -695,7 +693,9 @@ def unpack_time_hk(hk_data: bytes, current_idx: int, pw: PrintWrapper) -> int:
(ticks, unix_time) = struct.unpack(
ticks_time_fmt, hk_data[current_idx : current_idx + fmt_len]
)
unix_as_dt = datetime.datetime.fromtimestamp(unix_time, tz=datetime.timezone.utc)
unix_as_dt = datetime.datetime.fromtimestamp(
int(round(unix_time / 10e6)), tz=datetime.timezone.utc
)
pw.dlog(f"Ticks: {ticks} | UNIX time: {unix_time}")
pw.dlog(f"UNIX as datetime: {unix_as_dt}")
current_idx += fmt_len
@ -786,18 +786,21 @@ def handle_solution_set(hk_data: bytes, pw: PrintWrapper):
current_idx += 4
solution_strategy = hk_data[current_idx]
pw.dlog(f"Solution strategy: {solution_strategy}")
current_idx += 1
pw.printer.print_validity_buffer(hk_data[current_idx:], 23)
@tmtc_definitions_provider
def add_str_cmds(defs: TmtcDefinitionWrapper):
oce = OpCodeEntry()
oce.add(OpCodes.ON_BOOTLOADER, "Star Tracker: Mode On, Submode Bootloader")
oce.add(OpCodes.ON_FIRMWARE, "Star Tracker: Mode On, Submode Firmware")
oce.add(OpCodes.NORMAL, "Star Tracker: Mode Normal")
oce.add(OpCodes.OFF, "Star Tracker: Mode Off")
oce.add(OpCodes.ON_BOOTLOADER, "Mode On, Submode Bootloader")
oce.add(OpCodes.ON_FIRMWARE, "Mode On, Submode Firmware")
oce.add(OpCodes.NORMAL, "Mode Normal")
oce.add(OpCodes.OFF, "Mode Off")
oce.add("4", "Star Tracker: Mode Raw")
oce.add(OpCodes.PING, "Star Tracker: Ping")
oce.add(OpCodes.TAKE_IMAGE, "Take Image")
oce.add(OpCodes.REQUEST_SOLUTION_SET, "Request Solution Set HK")
oce.add("6", "Star Tracker: Switch to bootloader program")
oce.add("7", "Star Tracker: Request temperature")
oce.add("8", "Star Tracker: Request version")
@ -819,7 +822,6 @@ def add_str_cmds(defs: TmtcDefinitionWrapper):
oce.add("24", "Star Tracker: Set matching parameters")
oce.add("25", "Star Tracker: Set validation parameters")
oce.add("26", "Star Tracker: Set algo parameters")
oce.add("27", "Star Tracker: Take image")
oce.add("28", "Star Tracker: Stop str helper")
oce.add("30", "Star Tracker: Set name of download image")
oce.add("31", "Star Tracker: Request histogram")