This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

zigbee stack reset coordinator

hi!

when resetting the coordinator (zb_bdb_reset_via_local_action(0)), an error occurs, the program hangs. It looks like the "zb_address_unlock" function. The same when using the command "bdb factory_reset" in the cli example. I use ver 4.1.0. 

Parents Reply Children
  • We seem to have identified a workaround for Routers and Coordinators.

    No side effects have been discovered so far.

      // WORKAROUND zb_bdb_reset_via_local_action fails due to a bug in zboss if this is not done. Reason unclear.
      zb_address_ieee_ref_t addr_ref;
      if (zb_address_by_short(ZB_PIBCACHE_NETWORK_ADDRESS(), ZB_FALSE, ZB_FALSE, &addr_ref) == RET_OK) {
        zb_address_delete(addr_ref);
      }
    
      zb_bdb_reset_via_local_action(0);
      zf_system_request_reboot(false, ZF_SYSTEM_CONFIG_STORE_REBOOT_DELAY);

    Best regards

    Markus

Related