mirror of
https://github.com/ruvnet/RuView
synced 2026-08-10 20:31:42 +00:00
feat: ADR-073 enable multi-frequency channel hopping from NVS
- main.c: call csi_collector_set_hop_table() at boot when hop_count > 1 - provision.py: add --hop-channels and --hop-dwell flags, write chan_list blob and dwell_ms to NVS matching firmware's expected format - Validated: Node 1 hopping ch 1/6/11, Node 2 hopping ch 3/5/9, 200ms dwell, null subcarriers reduced from 19% to 16% Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -167,6 +167,17 @@ void app_main(void)
|
||||
}
|
||||
#else
|
||||
csi_collector_init();
|
||||
|
||||
/* ADR-073: Start multi-frequency channel hopping if configured in NVS. */
|
||||
if (g_nvs_config.channel_hop_count > 1) {
|
||||
ESP_LOGI(TAG, "Starting channel hopping: %u channels, dwell=%lu ms",
|
||||
(unsigned)g_nvs_config.channel_hop_count,
|
||||
(unsigned long)g_nvs_config.dwell_ms);
|
||||
csi_collector_set_hop_table(
|
||||
g_nvs_config.channel_list,
|
||||
g_nvs_config.channel_hop_count,
|
||||
g_nvs_config.dwell_ms);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* ADR-039: Initialize edge processing pipeline. */
|
||||
|
||||
Reference in New Issue
Block a user