Relax SUS FDIR #677

Merged
muellerr merged 17 commits from relax-sus-fdir into main 2023-09-12 10:16:07 +02:00
11 changed files with 12 additions and 9 deletions
Showing only changes of commit b2b6e2e797 - Show all commits

View File

@ -1,7 +1,7 @@
/**
* @brief Auto-generated event translation file. Contains 296 translations.
* @details
* Generated on: 2023-06-13 07:42:34
* Generated on: 2023-06-13 07:54:32
*/
#include "translateEvents.h"

View File

@ -2,7 +2,7 @@
* @brief Auto-generated object translation file.
* @details
* Contains 171 translations.
* Generated on: 2023-06-13 07:42:34
* Generated on: 2023-06-13 07:54:32
*/
#include "translateObjects.h"

View File

@ -294,4 +294,4 @@ Event ID (dec); Event ID (hex); Name; Severity; Description; File Path
14312;0x37e8;DUMP_MISC_CANCELLED;LOW;P1: Number of dumped packets. P2: Total dumped bytes.;mission/persistentTmStoreDefs.h
14313;0x37e9;DUMP_HK_CANCELLED;LOW;P1: Number of dumped packets. P2: Total dumped bytes.;mission/persistentTmStoreDefs.h
14314;0x37ea;DUMP_CFDP_CANCELLED;LOW;P1: Number of dumped packets. P2: Total dumped bytes.;mission/persistentTmStoreDefs.h
14500;0x38a4;TEMPERATURE_IS_ALL_ONES;LOW;No description;mission/acs/SusHandler.h
14500;0x38a4;TEMPERATURE_IS_ALL_ONES;LOW;Possible indicator that the SUS device is glitchy;mission/acs/SusHandler.h

1 Event ID (dec) Event ID (hex) Name Severity Description File Path
294 14301 14312 0x37dd 0x37e8 FILE_TOO_LARGE DUMP_MISC_CANCELLED LOW File in store too large. P1: Detected file size P2: Allowed file size P1: Number of dumped packets. P2: Total dumped bytes. mission/persistentTmStoreDefs.h
295 14302 14313 0x37de 0x37e9 BUSY_DUMPING_EVENT DUMP_HK_CANCELLED INFO LOW No description P1: Number of dumped packets. P2: Total dumped bytes. mission/persistentTmStoreDefs.h
296 14305 14314 0x37e1 0x37ea DUMP_OK_STORE_DONE DUMP_CFDP_CANCELLED INFO LOW P1: Number of dumped packets. P2: Total dumped bytes. mission/persistentTmStoreDefs.h
297 14306 14500 0x37e2 0x38a4 DUMP_NOK_STORE_DONE TEMPERATURE_IS_ALL_ONES INFO LOW P1: Number of dumped packets. P2: Total dumped bytes. Possible indicator that the SUS device is glitchy mission/persistentTmStoreDefs.h mission/acs/SusHandler.h

View File

@ -294,4 +294,4 @@ Event ID (dec); Event ID (hex); Name; Severity; Description; File Path
14312;0x37e8;DUMP_MISC_CANCELLED;LOW;P1: Number of dumped packets. P2: Total dumped bytes.;mission/persistentTmStoreDefs.h
14313;0x37e9;DUMP_HK_CANCELLED;LOW;P1: Number of dumped packets. P2: Total dumped bytes.;mission/persistentTmStoreDefs.h
14314;0x37ea;DUMP_CFDP_CANCELLED;LOW;P1: Number of dumped packets. P2: Total dumped bytes.;mission/persistentTmStoreDefs.h
14500;0x38a4;TEMPERATURE_IS_ALL_ONES;LOW;No description;mission/acs/SusHandler.h
14500;0x38a4;TEMPERATURE_IS_ALL_ONES;LOW;Possible indicator that the SUS device is glitchy;mission/acs/SusHandler.h

1 Event ID (dec) Event ID (hex) Name Severity Description File Path
294 14301 14312 0x37dd 0x37e8 FILE_TOO_LARGE DUMP_MISC_CANCELLED LOW File in store too large. P1: Detected file size P2: Allowed file size P1: Number of dumped packets. P2: Total dumped bytes. mission/persistentTmStoreDefs.h
295 14302 14313 0x37de 0x37e9 BUSY_DUMPING_EVENT DUMP_HK_CANCELLED INFO LOW No description P1: Number of dumped packets. P2: Total dumped bytes. mission/persistentTmStoreDefs.h
296 14305 14314 0x37e1 0x37ea DUMP_OK_STORE_DONE DUMP_CFDP_CANCELLED INFO LOW P1: Number of dumped packets. P2: Total dumped bytes. mission/persistentTmStoreDefs.h
297 14306 14500 0x37e2 0x38a4 DUMP_NOK_STORE_DONE TEMPERATURE_IS_ALL_ONES INFO LOW P1: Number of dumped packets. P2: Total dumped bytes. Possible indicator that the SUS device is glitchy mission/persistentTmStoreDefs.h mission/acs/SusHandler.h

View File

@ -1,7 +1,7 @@
/**
* @brief Auto-generated event translation file. Contains 296 translations.
* @details
* Generated on: 2023-06-13 07:42:34
* Generated on: 2023-06-13 07:54:32
*/
#include "translateEvents.h"

View File

@ -2,7 +2,7 @@
* @brief Auto-generated object translation file.
* @details
* Contains 175 translations.
* Generated on: 2023-06-13 07:42:34
* Generated on: 2023-06-13 07:54:32
*/
#include "translateObjects.h"

View File

@ -1,7 +1,7 @@
/**
* @brief Auto-generated event translation file. Contains 296 translations.
* @details
* Generated on: 2023-06-13 07:42:34
* Generated on: 2023-06-13 07:54:32
*/
#include "translateEvents.h"

View File

@ -2,7 +2,7 @@
* @brief Auto-generated object translation file.
* @details
* Contains 175 translations.
* Generated on: 2023-06-13 07:42:34
* Generated on: 2023-06-13 07:54:32
*/
#include "translateObjects.h"

View File

@ -95,6 +95,8 @@ ReturnValue_t SusHandler::interpretDeviceReply(DeviceCommandId_t id, const uint8
// UPDATE: Step1: First determine how often and whether this happens at all
if (reply->tempRaw == 0xfff) {
// Prevent spam if a device is glitchy for prolonged periods by only triggering with a
// maximum interval.
if (faultyDataEventCd.hasTimedOut()) {
triggerEvent(TEMPERATURE_IS_ALL_ONES);
faultyDataEventCd.resetTimer();

View File

@ -17,6 +17,7 @@ class SusHandler : public DeviceHandlerBase {
static const uint8_t INTERFACE_ID = CLASS_ID::SUS_HANDLER;
static const uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::SUS_HANDLER;
//! [EXPORT] : [COMMENT] Possible indicator that the SUS device is glitchy
static constexpr Event TEMPERATURE_IS_ALL_ONES = event::makeEvent(SUBSYSTEM_ID, 0, severity::LOW);
muellerr marked this conversation as resolved Outdated

prob medium severity

prob medium severity
SusHandler(uint32_t objectId, uint8_t susIdx, object_id_t deviceCommunication,

2
tmtc

@ -1 +1 @@
Subproject commit 00205f0e759970dda3bdd06150bbe85297f9d176
Subproject commit 2b2ad0a23a8477f81413f10ff4b39053562cabc5