Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If End Devices parent is the Coordinator, it may have issues after restart #13

Closed
pwood opened this issue Apr 16, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@pwood
Copy link
Member

pwood commented Apr 16, 2020

When some low power End Devices choose the Coordinator as their parent, they may have issues if ZStack is restarted.

This is caused by ZStack requiring resolution of the IEEE address for any event. As the coordinator is responsible for the End Device it is also responsible for knowing their IEEE address. When ZStack restarts the adapter on Initialise it issues a hard reset, this clears the CC2530's child cache (amongst other things).

return z.writeNVRAM(invokeCtx, ZCDNVStartUpOption{StartOption: 0x03})

This is not a problem for Routers as they regularily reintroduce themselves and the mesh network reforms, some End Devices do not, or do so very infrequently.

It is sensible to issue the hard reset when the adapter is being reconfigured to be a different network, however during normal operation (and restarts) we should not hard reset the adapter.

We could take a couple of approaches:

  • Defer this choice to the ZStack consumer.
  • Query the CC2530 for Channel, Network ID, PAN ID, Extended PAN ID and Network Key, if they differ hard reset.
@pwood
Copy link
Member Author

pwood commented Apr 16, 2020

It should also be noted that if we don't hard reset, then the routers do rejoin the network quicker.

@pwood pwood changed the title End Devices parent is the Coordinator, it may have issues after restart If End Devices parent is the Coordinator, it may have issues after restart Apr 16, 2020
@pwood pwood added the bug Something isn't working label Apr 16, 2020
@pwood pwood closed this as completed in a8315c2 Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant