Skip to content

Commit d69b7a1

Browse files
authored
Add Core Subtopologies: ComFprime, ComCcsds, DataProducts, FileHandling (#3768)
* Added led-blinker workflow for aarch64-linux platform * Update runner label * Added Tags to RPI self hosted workflows, sparse-checkout-cone-mode false * Add subtopologies to Svc/ restructing of Ref to include CDH subtopology * CDHCore Subtopology added under Svc and integrated into Ref * Health instance within CDHCore references CDHCoreConfig for queue size * Update metadata check-spelling run (push) for add-subtopologies Signed-off-by: check-spelling-bot <[email protected]> on-behalf-of: @check-spelling <[email protected]> * Added AssertFatalAdapter Version PassiveTextLogger to Subtopology, config clarity improvements * Comms subtopology without cmdSeq created, integrated in Ref * Added cmdSeq to Comms Subtopology, integrated into Ref * Add FileHandling Subtopology, initial structure * Fixed Spelling, Flie -> File * Update metadata check-spelling run (push) for add-subtopologies Signed-off-by: check-spelling-bot <[email protected]> on-behalf-of: @check-spelling <[email protected]> * Added working FileHandling, DataProducts subtopology, integrated into Ref * prmDb part of FileHandling, fatalHandler part of CDHCore * Update metadata check-spelling run (push) for add-subtopologies Signed-off-by: check-spelling-bot <[email protected]> on-behalf-of: @check-spelling <[email protected]> * Update comment for clarity * Initial move to phasing components * Fixing Phasing: Adding initial Phasing for CDHCore, DataProducts, FileHandling * Renaming topologydefs.hpp, phasing fully working on all four subtopologies, needs cleaning up * Cleanup with Ports_ComPacketQueue, definition only in Comms.fpp now * Base project with all 4 subtopologies, integrated into Ref, and passing CI * Initial Commit with all Subtopologies in Svc/Subtopologies * Added posixtime back in to Ref Deployment (Accidentally Deleted) * Updates to match new subtopology structure, integrate CCSDS into Ref * Changes to CommCCSDS that go with last changes * Standardize subtopology structure and naming to PascalCase * Namespace fixe for ComFprime * CDHCore->Cdhcore for consistency * Rename CDHCore to CdhCore for consistency * Update metadata check-spelling run (pull_request_target) for add-subtopologies Signed-off-by: check-spelling-bot <[email protected]> on-behalf-of: @check-spelling <[email protected]> * Reorder on teardown phases for Com Subtopolgies * Cpp check style fix * Fix: Add missing tearDownComponents cleanup for DataProducts dpBufferManager * Delete old comments, test using same mallocator for all subtopologies * fix: Deallocated DataProducts BufferMgr * Fix DataProducts subtopology memory cleanup * Fix: Dataproducts subtopology teardown order * Added tearDownComponents(state) * Consolidate all cleanup to teardowncomponents * Fix memory leaks: restore teardown phases * Removal of redundant teardowncomponents() * Revert "Removal of redundant teardowncomponents()" This reverts commit 29d4ff8. * Fix formatting, remove commented out code * Swap hardcoded numbers to config constants in subtopologies * register_fprime_config() in config modules, isolated ComDriver into a separate config fpp file * Added explicit CMake Module Names and Depends between Subtopologies and their Configs * Fixed CCSDS case, more config constants * Added explicit depends for each subtopology config * added mallocator config, subtopology state structure * Update subtopology config names for clarity, fixes #3571 * Fix reference to dpBuffer config Constants --------- Signed-off-by: check-spelling-bot <[email protected]> Co-authored-by: Moises Mata <[email protected]>
1 parent c602046 commit d69b7a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1243
-504
lines changed

.github/actions/spelling/expect.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ CCB
6868
CComponent
6969
ccsds
7070
ccsparc
71-
CDH
71+
cdh
7272
CDHCORE
7373
cerrno
7474
CFDP
@@ -95,6 +95,10 @@ CODEFILE
9595
COLORSTYLE
9696
colorwheel
9797
COMBUFFER
98+
COMCCSDS
99+
COMCCSDSSUBTOPOLOGY
100+
COMFPRIME
101+
COMFPRIMESUBTOPOLOGY
98102
comlogger
99103
COMMANDDISPATCHERIMPL
100104
COMMANDDISPATCHERIMPLCFG
@@ -133,6 +137,8 @@ ctu
133137
culates
134138
cuz
135139
CYCLEOUT
140+
DATAPRODUCTS
141+
DATAPRODUCTSSUBTOPOLOGY
136142
DATAROOTDIR
137143
DDDTHH
138144
Debian
@@ -213,11 +219,12 @@ ffff
213219
Ffs
214220
FILEDOWNLINK
215221
FILEDOWNLINKCFG
222+
FILEHANDLING
223+
FILEHANDLINGSUBTOPOLOGY
216224
FILEID
217225
FILEOPENERROR
218226
FILEWRITEERROR
219227
fio
220-
FLDP
221228
FNDELAY
222229
FONTPATH
223230
foodoodie
@@ -390,7 +397,6 @@ multitool
390397
mutexattr
391398
Mutexed
392399
mycompany
393-
NACI
394400
nasafprime
395401
nbits
396402
ncsl
@@ -451,7 +457,6 @@ PASSIVERATEGROUP
451457
PASSIVERATEGROUPIMPLTESTER
452458
patsubst
453459
pdflatex
454-
PEB
455460
penv
456461
PERLMOD
457462
PINGENTRIES

Ref/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ int main(int argc, char* argv[]) {
8282
}
8383
// Object for communicating state to the reference topology
8484
Ref::TopologyState inputs;
85-
inputs.hostname = hostname;
86-
inputs.port = port_number;
85+
inputs.comCcsds.hostname = hostname;
86+
inputs.comCcsds.port = port_number;
8787

8888
// Setup program shutdown via Ctrl-C
8989
signal(SIGINT, signalHandler);

Ref/Top/RefPackets.fppi

Lines changed: 72 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
11
telemetry packets RefPackets {
22

33
packet CDH id 1 group 1 {
4-
CDHCore.cmdDisp.CommandsDispatched
4+
CdhCore.cmdDisp.CommandsDispatched
5+
6+
FileHandling.fileUplink.FilesReceived
7+
FileHandling.fileUplink.PacketsReceived
8+
FileHandling.fileDownlink.FilesSent
9+
FileHandling.fileDownlink.PacketsSent
10+
FileHandling.fileManager.CommandsExecuted
11+
12+
ComCcsds.cmdSeq.CS_LoadCommands
13+
ComCcsds.cmdSeq.CS_CancelCommands
14+
ComCcsds.cmdSeq.CS_CommandsExecuted
15+
ComCcsds.cmdSeq.CS_SequencesCompleted
16+
ComCcsds.comQueue.comQueueDepth
17+
ComCcsds.comQueue.buffQueueDepth
18+
ComCcsds.commsBufferManager.TotalBuffs
19+
ComCcsds.commsBufferManager.CurrBuffs
20+
ComCcsds.commsBufferManager.HiBuffs
21+
#ComCcsds.tlmSend.SendLevel
22+
523
Ref.rateGroup1Comp.RgMaxTime
624
Ref.rateGroup2Comp.RgMaxTime
725
Ref.rateGroup3Comp.RgMaxTime
8-
Ref.cmdSeq.CS_LoadCommands
9-
Ref.cmdSeq.CS_CancelCommands
10-
Ref.cmdSeq.CS_CommandsExecuted
11-
Ref.cmdSeq.CS_SequencesCompleted
12-
Ref.fileUplink.FilesReceived
13-
Ref.fileUplink.PacketsReceived
14-
Ref.commsBufferManager.TotalBuffs
15-
Ref.commsBufferManager.CurrBuffs
16-
Ref.commsBufferManager.HiBuffs
17-
Ref.fileDownlink.FilesSent
18-
Ref.fileDownlink.PacketsSent
19-
Ref.fileManager.CommandsExecuted
20-
Ref.comQueue.comQueueDepth
21-
Ref.comQueue.buffQueueDepth
22-
#CDHCore.tlmSend.SendLevel
2326
}
2427

2528
packet CDHErrors id 2 group 1 {
29+
CdhCore.$health.PingLateWarnings
30+
31+
FileHandling.fileUplink.Warnings
32+
FileHandling.fileDownlink.Warnings
33+
FileHandling.fileManager.Errors
34+
35+
ComCcsds.cmdSeq.CS_Errors
36+
ComCcsds.commsBufferManager.NoBuffs
37+
ComCcsds.commsBufferManager.EmptyBuffs
38+
2639
Ref.rateGroup1Comp.RgCycleSlips
2740
Ref.rateGroup2Comp.RgCycleSlips
2841
Ref.rateGroup3Comp.RgCycleSlips
29-
Ref.cmdSeq.CS_Errors
30-
Ref.fileUplink.Warnings
31-
Ref.fileDownlink.Warnings
32-
CDHCore.$health.PingLateWarnings
33-
Ref.fileManager.Errors
34-
Ref.commsBufferManager.NoBuffs
35-
Ref.commsBufferManager.EmptyBuffs
36-
Ref.fileManager.Errors
3742
}
3843

3944
packet DriveTlm id 3 group 1 {
@@ -175,94 +180,97 @@ telemetry packets RefPackets {
175180
}
176181

177182
packet DataProducts id 21 group 3 {
178-
Ref.dpCat.CatalogDps
179-
Ref.dpCat.DpsSent
180-
Ref.dpMgr.NumSuccessfulAllocations
181-
Ref.dpMgr.NumFailedAllocations
182-
Ref.dpMgr.NumDataProducts
183-
Ref.dpMgr.NumBytes
184-
Ref.dpWriter.NumBuffersReceived
185-
Ref.dpWriter.NumBytesWritten
186-
Ref.dpWriter.NumSuccessfulWrites
187-
Ref.dpWriter.NumFailedWrites
188-
Ref.dpWriter.NumErrors
189-
Ref.dpBufferManager.TotalBuffs
190-
Ref.dpBufferManager.CurrBuffs
191-
Ref.dpBufferManager.HiBuffs
192-
Ref.dpBufferManager.NoBuffs
193-
Ref.dpBufferManager.EmptyBuffs
183+
DataProducts.dpCat.CatalogDps
184+
DataProducts.dpCat.DpsSent
185+
186+
DataProducts.dpMgr.NumSuccessfulAllocations
187+
DataProducts.dpMgr.NumFailedAllocations
188+
DataProducts.dpMgr.NumDataProducts
189+
DataProducts.dpMgr.NumBytes
190+
191+
DataProducts.dpWriter.NumBuffersReceived
192+
DataProducts.dpWriter.NumBytesWritten
193+
DataProducts.dpWriter.NumSuccessfulWrites
194+
DataProducts.dpWriter.NumFailedWrites
195+
DataProducts.dpWriter.NumErrors
196+
197+
DataProducts.dpBufferManager.TotalBuffs
198+
DataProducts.dpBufferManager.CurrBuffs
199+
DataProducts.dpBufferManager.HiBuffs
200+
DataProducts.dpBufferManager.NoBuffs
201+
DataProducts.dpBufferManager.EmptyBuffs
194202
}
195203

196204
packet Version1 id 22 group 2 {
197-
CDHCore.version.FrameworkVersion
198-
CDHCore.version.ProjectVersion
205+
CdhCore.version.FrameworkVersion
206+
CdhCore.version.ProjectVersion
199207
}
200208

201209
packet Version_Library1 id 23 group 2 {
202-
CDHCore.version.LibraryVersion01
203-
CDHCore.version.LibraryVersion02
210+
CdhCore.version.LibraryVersion01
211+
CdhCore.version.LibraryVersion02
204212
}
205213

206214
packet Version_Library2 id 24 group 2 {
207-
CDHCore.version.LibraryVersion03
208-
CDHCore.version.LibraryVersion04
215+
CdhCore.version.LibraryVersion03
216+
CdhCore.version.LibraryVersion04
209217
}
210218

211219
packet Version_Library3 id 25 group 2 {
212-
CDHCore.version.LibraryVersion05
213-
CDHCore.version.LibraryVersion06
220+
CdhCore.version.LibraryVersion05
221+
CdhCore.version.LibraryVersion06
214222
}
215223

216224
packet Version_Library4 id 26 group 2 {
217-
CDHCore.version.LibraryVersion07
218-
CDHCore.version.LibraryVersion08
225+
CdhCore.version.LibraryVersion07
226+
CdhCore.version.LibraryVersion08
219227
}
220228

221229
packet Version_Library5 id 27 group 2 {
222-
CDHCore.version.LibraryVersion09
223-
CDHCore.version.LibraryVersion10
230+
CdhCore.version.LibraryVersion09
231+
CdhCore.version.LibraryVersion10
224232
}
225233

226234
packet Version_Custom1 id 28 group 2 {
227-
CDHCore.version.CustomVersion01
235+
CdhCore.version.CustomVersion01
228236
}
229237

230238
packet Version_Custom2 id 29 group 2 {
231-
CDHCore.version.CustomVersion02
239+
CdhCore.version.CustomVersion02
232240
}
233241

234242
packet Version_Custom3 id 30 group 2 {
235-
CDHCore.version.CustomVersion03
243+
CdhCore.version.CustomVersion03
236244
}
237245

238246
packet Version_Custom4 id 31 group 2 {
239-
CDHCore.version.CustomVersion04
247+
CdhCore.version.CustomVersion04
240248
}
241249

242250
packet Version_Custom5 id 32 group 2 {
243-
CDHCore.version.CustomVersion05
251+
CdhCore.version.CustomVersion05
244252
}
245253

246254
packet Version_Custom6 id 33 group 2 {
247-
CDHCore.version.CustomVersion06
255+
CdhCore.version.CustomVersion06
248256
}
249257

250258
packet Version_Custom7 id 34 group 2 {
251-
CDHCore.version.CustomVersion07
259+
CdhCore.version.CustomVersion07
252260
}
253261

254262
packet Version_Custom8 id 35 group 2 {
255-
CDHCore.version.CustomVersion08
263+
CdhCore.version.CustomVersion08
256264
}
257265

258266
packet Version_Custom9 id 36 group 2 {
259-
CDHCore.version.CustomVersion09
267+
CdhCore.version.CustomVersion09
260268
}
261269

262270
packet Version_Custom10 id 37 group 2 {
263-
CDHCore.version.CustomVersion10
271+
CdhCore.version.CustomVersion10
264272
}
265273

266274
} omit {
267-
CDHCore.cmdDisp.CommandErrors
268-
}
275+
CdhCore.cmdDisp.CommandErrors
276+
}

0 commit comments

Comments
 (0)