Space telemetry batch packets 90 seconds apart

This commit is contained in:
mikecarper committed 2026-10-23 19:52:01 -07:00
1 parent 8e8c603eb5
commit 553957fff8
4 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -852,7 +852,7 @@ voltage channel, plus the collected noise-floor snapshots. GPS is never included
in this raw transmission. The history
remains boot-local, so the first scheduled run after a reboot needs about 82.5
hours to fill. On the default two-day interval, each 82.5-hour temperature or
battery packet overlaps its predecessor by 34.5 hours. Packets are paced two
battery packet overlaps its predecessor by 34.5 hours. Packets are queued 90
seconds apart. A queue failure is retried after 30 minutes only for the packet
that did not queue; successfully queued packets are not duplicated.
+3
View File
@@ -63,6 +63,9 @@ history is entirely zero are treated as disconnected and are not sent. The
command requires at least one collected base sample and works even when the
automatic schedule is off.
Packets in manual and scheduled batches are queued 90 seconds apart. Channel
activity and airtime limits can delay actual transmission further.
It also queues a `N1B1` noise-floor packet once the main radio has completed a
15-minute history bucket. With radio2 enabled, it queues a separate `N2B1`
packet for that profile once it has a completed bucket. Each holds the latest
+1 -1
View File
@@ -239,7 +239,7 @@ static const char FLOOD_CHANNEL_SCOPE_USAGE[] =
#define TELEMETRY_HISTORY_TX_PREFS_FILE "/telemetry_tx"
static const uint64_t TELEMETRY_HISTORY_TX_RETRY_MILLIS =
30ULL * 60ULL * 1000ULL;
static const uint64_t TELEMETRY_HISTORY_TX_PACKET_SPACING_MILLIS = 2000ULL;
static const uint64_t TELEMETRY_HISTORY_TX_PACKET_SPACING_MILLIS = 90000ULL;
static const uint8_t TELEMETRY_HISTORY_TX_DEFAULT_DAYS = 2U;
static const uint8_t TELEMETRY_HISTORY_TX_MAX_DAYS = 30U;
static const uint8_t TELEMETRY_HISTORY_TX_TEMPERATURE = 1U;
+3 -1
View File
@@ -454,7 +454,9 @@ static void checkAmbiguousPublicationAndServiceGate() {
assert(healthy.node.packets.size() == 1);
assert(healthy.node.packets[0].payload_len == 184);
assert(!memcmp(healthy.node.packets[0].payload, "TTB1", 4));
test_millis += 2000; healthy.node.serviceTelemetryHistoryTx(); test_millis = 0;
test_millis += 89999; healthy.node.serviceTelemetryHistoryTx();
assert(healthy.node.packets.size() == 1);
test_millis += 1; healthy.node.serviceTelemetryHistoryTx(); test_millis = 0;
assert(healthy.node.packets.size() == 2 && !memcmp(healthy.node.packets[1].payload, "TVB1", 4));
assert(healthy.node.command("send telemetry.tx now").find("OK - telemetry.tx queued") == 0);
}