shimmeringbee / zstack

Implementation of a ZNP and support code designed to interface with Texas Instruments Z-Stack, written in Go.

Home Page:https://shimmeringbee.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement persistable network address and IEEE address cache

pwood opened this issue · comments

The Z-Stack software on the CC chips maintain a mapping of network address to IEEE addresses (extended addresses) while they are operating, once they reboot this means that they loose the cache (unless they are children of the coordinator, or there is a binding).

The Z-Stack library has been designed around accepting the IEEE address as a destination for packets/commands because they do not change - as such once the CC chip restarts this can result in z-stack not being able to send messages or receiving messages.

Thus zstack needs a network<->IEEE cache which can be presisted between program runs. Like znp it's probably worth abstracting this out to something that can be provided to zstack on start up, and persisted periodically.