Implemented history writer

This commit is contained in:
Martino Ferrari
2026-06-14 14:09:51 +02:00
parent f25bd7f08e
commit dd7dd22cb0
27 changed files with 1537 additions and 104 deletions
+16 -9
View File
@@ -125,10 +125,10 @@ cat > "$HUB_CFG" <<EOF
/**
* StreamHub configuration — auto-generated by run_streamhub.sh
*
* Three sources matching the combined_test MARTe2 configuration:
* scalar : 1 kHz scalar signals (Counter, Time, Sine1, Sine2)
* arrays1 : 5 kHz packed arrays (Ch1 FirstSample, Ch2 LastSample)
* arrays2 : 5 kHz FullArray (Ch3, Ch4 with per-sample timestamps)
* Three sources matching the streamhub_demo MARTe2 configuration:
* scalar : 1 kHz scalar sines @ 1 ksps (Sine1, Sine2)
* med : 1 kHz arrays @ 1 Msps (Ch1, Ch2)
* fast : 5 kHz arrays @ 5 Msps (Ch3, Ch4)
*/
Hub = {
WSPort = ${WS_PORT}
@@ -137,21 +137,28 @@ Hub = {
MaxPushPoints = 2000
RingTemporal = 1000000
RingScalar = 100000
+History = {
Directory = "/tmp/streamhub_history"
DurationHours = 1
Decimation = 10
FlushIntervalSec = 5
MinDiskFreeMB = 200
}
Sources = {
scalar = {
Label = "Scalar Signals (1 kHz)"
Label = "Scalar Sines (1 ksps)"
Addr = "127.0.0.1"
Port = 44500
MulticastGroup = "239.0.0.1"
DataPort = 44503
}
arrays1 = {
Label = "Array Signals First/Last (5 kHz)"
med = {
Label = "1 Msps Sines (Ch1 1kHz, Ch2 5kHz)"
Addr = "127.0.0.1"
Port = 44501
}
arrays2 = {
Label = "Array Signals FullArray (5 kHz)"
fast = {
Label = "5 Msps Sines (Ch3 10kHz, Ch4 50kHz)"
Addr = "127.0.0.1"
Port = 44502
}