Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Svc/ActiveTextLogger/ActiveTextLogger.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Svc {

@ Internal interface to send log text messages to component thread
internal port TextQueue(
$text: string size 256 @< The text string
$text: string size FW_LOG_STRING_MAX_SIZE @< The text string
) \
priority 1 \
drop
Expand Down
4 changes: 2 additions & 2 deletions Svc/CmdDispatcher/CmdDispatcher.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module Svc {

@ No-op string command
async command CMD_NO_OP_STRING(
arg1: string size 40 @< The String command argument
arg1: string size Svc.CommandDispatcherCfg.NOOP_STRING_SIZE @< The String command argument
) \
opcode 1

Expand Down Expand Up @@ -162,7 +162,7 @@ module Svc {

@ The command dispatcher has successfully received a NO-OP command from GUI with a string
event NoOpStringReceived(
message: string size 40 @< The NO-OP string that is generated
message: string size FW_LOG_STRING_MAX_SIZE @< The NO-OP string that is generated
) \
severity activity high \
id 8 \
Expand Down
42 changes: 21 additions & 21 deletions Svc/CmdSequencer/Events.fppi
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
@ Sequence file was successfully loaded.
event CS_SequenceLoaded(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
) \
severity activity low \
id 0 \
format "Loaded sequence {}"

@ A command sequence was successfully canceled.
event CS_SequenceCanceled(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
) \
severity activity high \
id 1 \
format "Sequence file {} canceled"

@ The Sequence File Loader could not read the sequence file.
event CS_FileReadError(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
) \
severity warning high \
id 2 \
format "Error reading sequence file {}"

@ The sequence file format was invalid.
event CS_FileInvalid(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
stage: FileReadStage @< The read stage
error: I32 @< The error code
) \
Expand All @@ -34,7 +34,7 @@ event CS_FileInvalid(

@ The format of a command record was invalid.
event CS_RecordInvalid(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
recordNumber: U32 @< The record number
error: I32 @< The error code
) \
Expand All @@ -44,7 +44,7 @@ event CS_RecordInvalid(

@ The sequence file was too large.
event CS_FileSizeError(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
$size: U32 @< Invalid size
) \
severity warning high \
Expand All @@ -53,7 +53,7 @@ event CS_FileSizeError(

@ The sequence file was not found
event CS_FileNotFound(
fileName: string size 60 @< The sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
) \
severity warning high \
id 6 \
Expand All @@ -62,7 +62,7 @@ event CS_FileNotFound(

@ The sequence file validation failed
event CS_FileCrcFailure(
fileName: string size 60 @< The sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
storedCRC: U32 @< The CRC stored in the file
computedCRC: U32 @< The CRC computed over the file
) \
Expand All @@ -72,7 +72,7 @@ event CS_FileCrcFailure(

@ The Command Sequencer issued a command and received a success status in return.
event CS_CommandComplete(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
recordNumber: U32 @< The record number of the command
opCode: FwOpcodeType @< The command opcode
) \
Expand All @@ -82,15 +82,15 @@ event CS_CommandComplete(

@ A command sequence successfully completed.
event CS_SequenceComplete(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
) \
severity activity high \
id 9 \
format "Sequence file {} complete"

@ The Command Sequencer issued a command and received an error status in return.
event CS_CommandError(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
recordNumber: U32 @< The record number
opCode: FwOpcodeType @< The opcode
errorStatus: U32 @< The error status
Expand All @@ -107,7 +107,7 @@ event CS_InvalidMode \

@ Number of records in header doesn't match number in file
event CS_RecordMismatch(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
header_records: U32 @< The number of records in the header
extra_bytes: U32 @< The number of bytes beyond last record
) \
Expand All @@ -117,7 +117,7 @@ event CS_RecordMismatch(

@ The running time base doesn't match the time base in the sequence files
event CS_TimeBaseMismatch(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
time_base: U16 @< The current time
seq_time_base: U16 @< The sequence time base
) \
Expand All @@ -127,7 +127,7 @@ event CS_TimeBaseMismatch(

@ The running time base doesn't match the time base in the sequence files
event CS_TimeContextMismatch(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
currTimeBase: U8 @< The current time base
seqTimeBase: U8 @< The sequence time base
) \
Expand All @@ -137,7 +137,7 @@ event CS_TimeContextMismatch(

@ A local port request to run a sequence was started
event CS_PortSequenceStarted(
filename: string size 60 @< The sequence file
filename: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
) \
severity activity high \
id 15 \
Expand Down Expand Up @@ -167,15 +167,15 @@ event CS_NoSequenceActive \

@ A sequence passed validation
event CS_SequenceValid(
filename: string size 60 @< The sequence file
filename: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
) \
severity activity high \
id 19 \
format "Sequence {} is valid."

@ A sequence passed validation
event CS_SequenceTimeout(
filename: string size 60 @< The sequence file
filename: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
$command: U32 @< The command that timed out
) \
severity warning high \
Expand All @@ -184,7 +184,7 @@ event CS_SequenceTimeout(

@ A command in a sequence was stepped through
event CS_CmdStepped(
filename: string size 60 @< The sequence file
filename: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
$command: U32 @< The command that was stepped
) \
severity activity high \
Expand All @@ -193,15 +193,15 @@ event CS_CmdStepped(

@ A manual sequence was started
event CS_CmdStarted(
filename: string size 60 @< The sequence file
filename: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
) \
severity activity high \
id 22 \
format "Sequence {} started"

@ Wait for the current running sequence file complete
event CS_JoinWaiting(
filename: string size 60 @< The sequence file
filename: string size FW_LOG_STRING_MAX_SIZE @< The sequence file
recordNumber: U32 @< The record number
opCode: FwOpcodeType @< The opcode
) \
Expand All @@ -216,7 +216,7 @@ event CS_JoinWaitingNotComplete() \
format "Still waiting for sequence file to complete"

event CS_NoRecords(
fileName: string size 60 @< The name of the sequence file
fileName: string size FW_LOG_STRING_MAX_SIZE @< The name of the sequence file
) \
severity warning low \
id 25 \
Expand Down
2 changes: 1 addition & 1 deletion Svc/FileManager/Commands.fppi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async command RemoveFile(

@ Perform a Linux shell command and write the output to a log file.
async command ShellCommand(
$command: string size 256 @< The shell command string
$command: string size Svc.FileManagerCfg.FILE_MANAGER_SHELL_COMMAND_SIZE @< The shell command string
logFileName: string size FileNameStringSize @< The name of the log file
) \
opcode 0x04
Expand Down
2 changes: 2 additions & 0 deletions default/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ register_fprime_config(
AUTOCODER_INPUTS
"${CMAKE_CURRENT_LIST_DIR}/AcConstants.fpp"
"${CMAKE_CURRENT_LIST_DIR}/ComCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/CommandDispatcherCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/DpCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/FileDispatcherCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/FpConfig.fpp"
Expand All @@ -19,6 +20,7 @@ register_fprime_config(
"${CMAKE_CURRENT_LIST_DIR}/PlatformCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/PolyDbCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/VersionCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/FileManagerCfg.fpp"
"${CMAKE_CURRENT_LIST_DIR}/TlmPacketizerCfg.fpp"
HEADERS
"${CMAKE_CURRENT_LIST_DIR}/EventManagerCfg.hpp"
Expand Down
14 changes: 14 additions & 0 deletions default/config/CommandDispatcherCfg.fpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ======================================================================
# FPP file for data products configuration
# ======================================================================

module Svc {

module CommandDispatcherCfg {

@ Set the size of the shell execution string
constant NOOP_STRING_SIZE = FW_CMD_STRING_MAX_SIZE;

}

}
14 changes: 14 additions & 0 deletions default/config/FileManagerCfg.fpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ======================================================================
# FPP file for data products configuration
# ======================================================================

module Svc {

module FileManagerCfg {

@ Set the size of the shell execution string
constant FILE_MANAGER_SHELL_COMMAND_SIZE = FW_CMD_STRING_MAX_SIZE;

}

}
Loading