Xinyuan-LilyGO / T-ZigBee

Zigbee Ultra Low Power IOT Development Board
GNU Affero General Public License v3.0
77 stars 21 forks source link

Is light_demo expected to be working fine after reset? #41

Open 0h41 opened 7 months ago

0h41 commented 7 months ago

I have succesfully ran light_demo and joined my network. Both sending and receiving messages works, until I reset the board. After restarting, device is still in the network, can send messages, but doesn't receive anything from the coordinator. From coordinator side it just times out.

Is this expected behaviour for this demo? Do I need to send some re-join command somehow?

asat232 commented 3 weeks ago

If you are speaking about zigbee2mqtt coordinator that its not sending back to light_demo anything. Then keep in mind, coordinator maintaining two separate list of joined devices, one in TLSR8258 firmware, another in so called db (files app_db.h /.cpp) in Esp32c3 firmware. But each of them does not know anything about another. So, let say you cleared "devicelist" in app_db, but TLSR8258 still having devices list in which your light_demo node exist. Solution is simple, to implement full reset command of coordinator (can be by button press or by external command) to clear TLSR8258 by zbhci_BdbFactoryReset() and implement app_db "deviceslist" clear. From this moment both will have the same device nodes in their lists.