tth and Claude Fable 5
6e076a6e8d
fix(mesh/tx): requeue failed transmits with backoff instead of dropping
...
A TX that fails to start (startTransmit error) or never completes
(send-complete IRQ lost) was released permanently — with an nRF52
SoftDevice servicing BLE connection events this silently ate ~40 % of
DIRECT-route forwards (measured A/B on mast-three: direct_rx +5 / direct_tx
+3 with an idle BLE connection, 5/5 with BLE off). Flood redundancy
masked the same loss for flood traffic.
Retry up to MESH_TX_RETRIES (3) with a short growing backoff; a
duplicate on air is harmless (hasSeen dedup). New tallies
tx_start_fail/tx_timeout in stats-packets + ERR_EVENT_TX_* flags make
this failure class visible at last.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-21 13:43:34 +02:00
tth and Claude Opus 4.8
5c092498ff
feat(core): capture per-packet RSSI at RX (Packet::_rssi)
...
SNR was already stored on the Packet at parse time, but RSSI was only
transiently available via Radio::getLastRSSI() -- valid synchronously in
checkRecv(), but stale by the time a score-delayed flood packet reaches
its handler (onAdvertRecv etc.). Store RSSI alongside _snr so downstream
code (e.g. the mesh analyzer) gets the correct last-hop RSSI regardless
of when it reads it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-12 00:19:20 +02:00
ripplebiz
71e1e63dfd
Merge pull request #1297 from ViezeVingertjes/feature/duty-cycle-token-bucket
...
Implement token bucket duty cycle enforcement
2026-03-08 23:54:32 +11:00
Scott Powell
0c8a5c80cf
* Dispatcher bug fixes
2026-02-23 23:51:30 +11:00
Scott Powell
62320b64c5
* refactor of Contact/Client out_path_len (stored in files), from signed to unsigned byte (+2 squashed commits)
...
Squashed commits:
[f326e25] * misc
[fa5152e] * new 'path mode' parsing in Dispatcher
2026-02-21 19:35:51 +11:00
ViezeVingertjes
c8672fcb1c
Updated the Dispatcher logic to replace hardcoded values with defined constants for minimum TX budget reserve and airtime division.
2026-02-07 19:07:33 +01:00
ViezeVingertjes
3cf3845d9f
Update logic in Dispatcher to ensure refill is only applied when greater than zero.
2026-02-07 18:26:39 +01:00
ViezeVingertjes
40a09e9450
Implement token bucket duty cycle enforcement
2026-01-04 21:33:46 +01:00
Chris
142cd33e2d
Add a counter to track rx time for repeater stats
2025-07-30 09:41:20 -07:00
Scott Powell
58426b150a
* fix for when AGC reset is disabled (interval = 0)
2025-06-13 14:25:09 +10:00
Scott Powell
b7be7f7966
* repeater and room server: new CLI setting "agc.reset.interval" (seconds)
2025-06-13 14:15:21 +10:00
Scott Powell
c3fd16d5fa
* interference threshold now stored in prefs, CLI: set/get "int.thresh"
2025-05-26 17:18:49 +10:00
Scott Powell
adc2d6fbbf
* dynamic noise floor sampling
2025-05-25 21:44:15 +10:00
Scott Powell
4c95201e60
* added Radio::loop() virtual function
...
* RadioLibWrapper: new isChannelActive() based on current RSSI being above noise_floor + THRESHOLD
2025-05-24 21:24:44 +10:00
Scott Powell
71b93bfe5a
* Dispatcher::checkSend() bug: getOutboundCount() should only count non-future packets
2025-05-14 16:50:11 +10:00
Scott Powell
2fef457f32
* CommonCLI: added "clear stats" command
2025-05-13 18:12:58 +10:00
Scott Powell
16df8c33a2
* Repeater/Room server: new diagnostics, stats.n_full_events now repurposed to 'err_events' (bit flags)
...
* new Radio::isInRecvMode() method
2025-05-13 15:38:10 +10:00
Scott Powell
0ec236e6c6
* startSendRaw() now returns false if fail
2025-05-12 17:26:44 +10:00
Scott Powell
f6ad1b2118
minor refactor
2025-04-11 19:11:06 +10:00
Scott Powell
122223a9aa
* added Packet::getRawLength() helper
2025-04-11 15:12:04 +10:00
Scott Powell
20da4046b9
* Packet::header, new: ROUTE_TYPE_TRANS_FLOOD, ROUTE_TYPE_TRANS_DIRECT
...
* Packet wire format change: (optional) extra 4 bytes for two trans_codes
2025-04-11 04:56:13 +10:00
Scott Powell
f1c2c96fb8
* Dispatcher: now impose a max time for CAD fail (ie. channel busy), defined by getCADFailMaxDuration(), default 4 seconds.
...
(an sx126x bug _might_ be making radio->isReceiving() return true indefinitely)
2025-03-28 20:50:42 +11:00
Scott Powell
3aa7cf5652
* redesigned TRACE packet structure
2025-03-17 17:56:12 +11:00
Scott Powell
a63a6ec6d4
Merge branch 'dev' into trace
...
# Conflicts:
# examples/companion_radio/main.cpp
# src/Dispatcher.cpp
2025-03-15 15:12:50 +11:00
Scott Powell
31aca85109
* repeater and room server: MESH_PACKET_LOGGING, now dumps RAW: rx packet contents
...
* Dispatcher: MESH_PACKET_LOGGING, added " hash={packet-hash}"
2025-03-09 20:36:49 +11:00
Scott Powell
82b53fb64d
* PUSH_CODE_LOG_RX_DATA: is now just: {snr*4},{rssi},{raw-lora-packet}
2025-03-09 17:04:22 +11:00
Scott Powell
b6f9bd6a76
* Dispatcher: added guard for packet payload size too large
2025-03-08 19:38:36 +11:00
Scott Powell
ddded8a3e6
* refactor Packet::_snr to single byte
2025-03-07 12:32:23 +11:00
Scott Powell
c762c4440d
* TRACE packet logging fix
2025-03-07 12:24:18 +11:00
Scott Powell
8379a785cc
Merge branch 'dev' into trace
...
# Conflicts:
# src/Dispatcher.cpp
# src/Mesh.cpp
# src/helpers/BaseChatMesh.cpp
2025-03-07 12:14:26 +11:00
Scott Powell
7c1c273255
* new Dispatcher::getCADFailRetryDelay()
2025-02-27 04:05:50 +11:00
Scott Powell
6af88ed02f
* MESH_DEBUG_PRINTLN fixes
2025-02-20 18:04:35 +11:00
Scott Powell
159c4ce8c2
* Mesh/Dispatcher: MESH_DEBUG_ and MESH_PACKET_LOGGING now output date-time. (new getLogDateTime() virtual)
...
* MESH_PACKET_LOGGING now parity with dynamic/file logging (src/dest hashes)
2025-02-20 12:41:47 +11:00
Scott Powell
01e8096e66
* SimpleMeshTables: ACKs now handled separately
...
* Dispatcher: logging methods now with 'len' param
2025-02-18 22:59:03 +11:00
Scott Powell
4cccaf6d47
* repeater: new CLI commands: "log start", "log stop", "log erase", and "log"
2025-02-18 13:20:48 +11:00
Scott Powell
bea3ccb116
* new Packet type: PAYLOAD_TYPE_TRACE
2025-02-17 19:22:31 +11:00
Scott Powell
e140649e4d
* bug fix for rxdelay 0
2025-02-06 11:16:17 +11:00
Scott Powell
63381dac25
* new RX delays based on SNR
2025-02-04 12:35:53 +11:00
Scott Powell
4a601f8241
* Terminal Chat: new commands "card" and "import"
2025-02-01 21:45:34 +11:00
Scott Powell
de27dfacb6
* basic CAD before TX, for sx126x wrappers
2025-01-21 13:37:32 +11:00
Scott Powell
e4ec9aec0b
* tidy ups
2025-01-20 10:20:42 +11:00
Scott Powell
382b73f6c5
* Dispatcher: more stats added
2025-01-19 00:36:59 +11:00
Scott Powell
20cd756c88
* Radio:: getLastSNR(), getLastRSSI()
...
* MESH_PACKET_LOGGING
2025-01-15 17:02:49 +11:00
Scott Powell
6c7efdd0f6
Initial commit
2025-01-13 14:07:48 +11:00