Skip to content

Commit 582d663

Browse files
committed
Merge branch 'startup' of github.com:Open-Source-Space-Foundation/proves-core-reference into startup
2 parents be0fabc + 9889928 commit 582d663

File tree

4 files changed

+100
-1
lines changed

4 files changed

+100
-1
lines changed

FprimeZephyrReference/ReferenceDeployment/Top/ReferenceDeploymentPackets.fppi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ telemetry packets ReferenceDeploymentPackets {
6161
ReferenceDeployment.antennaDeployer.LastDistance
6262
}
6363

64+
packet FileStatus id 9 group 4{
65+
66+
FileHandling.fileUplink.FilesReceived
67+
FileHandling.fileUplink.PacketsReceived
68+
FileHandling.fileDownlink.FilesSent
69+
FileHandling.fileDownlink.PacketsSent
70+
FileHandling.fileManager.CommandsExecuted
71+
FileHandling.fileManager.Errors
72+
FileHandling.fileUplink.Warnings
73+
FileHandling.fileDownlink.Warnings
74+
75+
}
76+
6477
} omit {
6578
CdhCore.cmdDisp.CommandErrors
6679
# Only has one library, no custom versions

FprimeZephyrReference/ReferenceDeployment/Top/topology.fpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module ReferenceDeployment {
1717
import CdhCore.Subtopology
1818
import ComCcsds.FramingSubtopology
1919
import ComCcsdsUart.Subtopology
20+
import FileHandling.Subtopology
2021

2122
# ----------------------------------------------------------------------
2223
# Instances used in the topology
@@ -56,7 +57,7 @@ module ReferenceDeployment {
5657
health connections instance CdhCore.$health
5758
time connections instance rtcManager
5859
telemetry connections instance CdhCore.tlmSend
59-
param connections instance prmDb
60+
param connections instance FileHandling.prmDb
6061

6162
# ----------------------------------------------------------------------
6263
# Telemetry packets (only used when TlmPacketizer is used)
@@ -124,6 +125,7 @@ module ReferenceDeployment {
124125
rateGroup10Hz.RateGroupMemberOut[0] -> comDriver.schedIn
125126
rateGroup10Hz.RateGroupMemberOut[1] -> ComCcsdsUart.aggregator.timeout
126127
rateGroup10Hz.RateGroupMemberOut[2] -> ComCcsds.aggregator.timeout
128+
rateGroup10Hz.RateGroupMemberOut[3] -> FileHandling.fileManager.schedIn
127129

128130
# Slow rate (1Hz) rate group
129131
rateGroupDriver.CycleOut[Ports_RateGroups.rateGroup1Hz] -> rateGroup1Hz.CycleIn
@@ -137,6 +139,7 @@ module ReferenceDeployment {
137139
rateGroup1Hz.RateGroupMemberOut[7] -> burnwire.schedIn
138140
rateGroup1Hz.RateGroupMemberOut[8] -> antennaDeployer.schedIn
139141
rateGroup1Hz.RateGroupMemberOut[9] -> fsSpace.run
142+
rateGroup1Hz.RateGroupMemberOut[10] -> FileHandling.fileDownlink.Run
140143

141144
}
142145

@@ -161,5 +164,17 @@ module ReferenceDeployment {
161164
imuManager.magneticFieldGet -> lis2mdlManager.magneticFieldGet
162165
imuManager.temperatureGet -> lsm6dsoManager.temperatureGet
163166
}
167+
168+
connections ComCcsds_FileHandling {
169+
# File Downlink <-> ComQueue
170+
FileHandling.fileDownlink.bufferSendOut -> ComCcsds.comQueue.bufferQueueIn[ComCcsds.Ports_ComBufferQueue.FILE]
171+
ComCcsds.comQueue.bufferReturnOut[ComCcsds.Ports_ComBufferQueue.FILE] -> FileHandling.fileDownlink.bufferReturn
172+
173+
# Router <-> FileUplink
174+
ComCcsds.fprimeRouter.fileOut -> FileHandling.fileUplink.bufferSendIn
175+
FileHandling.fileUplink.bufferSendOut -> ComCcsds.fprimeRouter.fileBufferReturnIn
176+
}
177+
178+
164179
}
165180
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# ======================================================================
2+
# AcConstants.fpp
3+
# F Prime configuration constants
4+
# ======================================================================
5+
6+
@ Number of rate group member output ports for ActiveRateGroup
7+
constant ActiveRateGroupOutputPorts = 15
8+
9+
@ Number of rate group member output ports for PassiveRateGroup
10+
constant PassiveRateGroupOutputPorts = 10
11+
12+
@ Used to drive rate groups
13+
constant RateGroupDriverRateGroupPorts = 3
14+
15+
@ Used for command and registration ports
16+
constant CmdDispatcherComponentCommandPorts = 30
17+
18+
@ Used for uplink/sequencer buffer/response ports
19+
constant CmdDispatcherSequencePorts = 5
20+
21+
@ Used for dispatching sequences to command sequencers
22+
constant SeqDispatcherSequencerPorts = 2
23+
24+
@ Used for sizing the command splitter input arrays
25+
constant CmdSplitterPorts = CmdDispatcherSequencePorts
26+
27+
@ Number of static memory allocations
28+
constant StaticMemoryAllocations = 4
29+
30+
@ Used to ping active components
31+
constant HealthPingPorts = 25
32+
33+
@ Used for broadcasting completed file downlinks
34+
constant FileDownCompletePorts = 1
35+
36+
@ Used for number of Fw::Com type ports supported by Svc::ComQueue
37+
constant ComQueueComPorts = 2
38+
39+
@ Used for number of Fw::Buffer type ports supported by Svc::ComQueue
40+
constant ComQueueBufferPorts = 1
41+
42+
@ Used for maximum number of connected buffer repeater consumers
43+
constant BufferRepeaterOutputPorts = 10
44+
45+
@ Size of port array for DpManager
46+
constant DpManagerNumPorts = 5
47+
48+
@ Size of processing port array for DpWriter
49+
constant DpWriterNumProcPorts = 5
50+
51+
@ The size of a file name string
52+
constant FileNameStringSize = 200
53+
54+
@ The size of an assert text string
55+
constant FwAssertTextSize = 256
56+
57+
@ The size of a file name in an AssertFatalAdapter event
58+
@ Note: File names in assertion failures are also truncated by
59+
@ the constants FW_ASSERT_TEXT_SIZE and FW_LOG_STRING_MAX_SIZE, set
60+
@ in FpConfig.h.
61+
constant AssertFatalAdapterEventFileSize = FileNameStringSize
62+
63+
# ----------------------------------------------------------------------
64+
# Hub connections. Connections on all deployments should mirror these settings.
65+
# ----------------------------------------------------------------------
66+
67+
constant GenericHubInputPorts = 10
68+
constant GenericHubOutputPorts = 10
69+
constant GenericHubInputBuffers = 10
70+
constant GenericHubOutputBuffers = 10

FprimeZephyrReference/project/config/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ register_fprime_config(
1414
"${CMAKE_CURRENT_LIST_DIR}/LoRaCfg.hpp"
1515
"${CMAKE_CURRENT_LIST_DIR}/FpConfig.h"
1616
"${CMAKE_CURRENT_LIST_DIR}/TlmPacketizerCfg.hpp"
17+
"${CMAKE_CURRENT_LIST_DIR}/AcConstants.fpp"
1718
INTERFACE
1819
)

0 commit comments

Comments
 (0)