RuView icon indicating copy to clipboard operation
RuView copied to clipboard

Only node 1 works

Open 7cmdehdrb opened this issue 8 months ago • 1 comments

Even if I write data to each ESP32-S3 flash, They always have "node_id=1".


1-1. 칩 전체 초기화

python -m esptool --chip esp32s3 --port COM11 erase-flash

1-2. 부트로더, 파티션 테이블, OTA 데이터, 앱 통합 플래싱

python -m esptool --chip esp32s3 --port COM11 --baud 460800 write-flash --flash-mode dio --flash-size 8MB --flash-freq 80m 0x0 esp/bootloader.bin 0x8000 esp/partition-table.bin 0xf000 esp/ota_data_initial.bin 0x20000 esp/esp32-csi-node.bin

python firmware/esp32-csi-node/provision.py --port COM11 --ssid "gyueni_mesh_2G" --password "@@" --target-ip 192.168.0.53 --node-id 2 --tdm-slot 0 --tdm-total 2

python -m serial.tools.miniterm COM11 115200


This is my command in order to write flash.

I (2446) csi_collector: Promiscuous mode enabled for CSI capture I (2456) csi_collector: CSI collection initialized (node_id=1, channel=1)


Moreover, when I see http://localhost:3000/ui/index.html to check the state of ESP32, the "sensing" tab seems like blinking.

I guess it is because different ESP node send data as same name "node1"

7cmdehdrb avatar Mar 16 '26 18:03 7cmdehdrb

Fixed in commit 8a84748 on main.

Root cause: The firmware had CONFIG_CSI_NODE_ID (compile-time constant, always = 1) hardcoded in 6 places instead of using the NVS runtime value (g_nvs_config.node_id). Your --node-id 2 provisioning was writing correctly to NVS, but the actual CSI frames, vitals packets, and log messages all ignored it and used the Kconfig default of 1.

What was fixed:

  • CSI frame header (byte 4) — now uses NVS node_id
  • Compressed frame header — now uses NVS node_id
  • Vitals packet (32-byte and 48-byte) — now uses NVS node_id
  • WASM output packet — now uses NVS node_id
  • Display UI system info — now shows correct node ID
  • Log message — now shows correct node ID

After updating: reflash with the latest main build (or wait for the next release), then re-provision each node. You should see the correct node IDs in both serial output and the server UI.

The blinking on the sensing tab was likely caused by all 3 nodes reporting as node_id=1, so the server kept overwriting the same node's data instead of tracking 3 separate nodes.

Thanks for the clear bug report — the provisioning command + serial output made the issue obvious.

ruvnet avatar Mar 16 '26 19:03 ruvnet