Skip to content

fix(esp32): use runtime node_id from NVS in outgoing packets#232

Open
melodykke wants to merge 2 commits intoruvnet:mainfrom
melodykke:fix/runtime-node-id
Open

fix(esp32): use runtime node_id from NVS in outgoing packets#232
melodykke wants to merge 2 commits intoruvnet:mainfrom
melodykke:fix/runtime-node-id

Conversation

@melodykke
Copy link
Copy Markdown

Summary

Fix an ESP32 firmware issue where outgoing packets could use the compile-time node ID instead of the runtime node ID loaded from NVS.

In multi-node setups, this could cause a provisioned board to still appear with the wrong node_id on the receiver side.

Root Cause

Some packet serialization paths were still using CONFIG_CSI_NODE_ID instead of g_nvs_config.node_id.

That meant NVS provisioning could succeed while transmitted packets still carried the compile-time default.

Changes

Use g_nvs_config.node_id consistently in outgoing packet paths.

Validation

Tested with a real ESP32-S3 setup.

  • provisioned a board with node_id=2 via NVS
  • rebuilt and reflashed firmware
  • confirmed RuView then reported node_id=2 correctly

Impact

This makes runtime node provisioning behave correctly for multi-node deployments.

- 为 Rust sensing server 增加空间布局配置入口,支持加载节点位置与语义区域定义,并扩展空间融合解释输出。

- 在 Docker 镜像中打包 config 目录,确保部署后可直接读取 spatial-layout.json。

- 修正 ESP32 显示界面中的节点编号来源,改为使用运行时 NVS 配置而非编译期常量。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant