zigbeer / zigbee-shepherd

An open source ZigBee gateway solution with node.js.
MIT License
250 stars 89 forks source link

Using CC2531 Hex image as router #47

Open elvis-epx opened 6 years ago

elvis-epx commented 6 years ago

Are the Hex images somehow hardcoded to be coordinators? I am trying to use it as a router with ccznp alone. It does work, but at pairing time, there are two problems: 1) the commission command always returns timeout, and 2) the ZNP resets itself right after finding the network and moving ZDO state to 7 (connected), losing the pairing. The workaround is to disconnect the dongle right after ZDO goes to 7, avoiding this reset, so it retains the binding and works well from that point on.