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

can I stop management Permit Joining Request with API

Hi,

    I use bdb_start_top_level_commissioning(ZB_BDB_NETWORK_STEERING | ZB_BDB_NETWORK_FORMATION) to open zigbee coordinator network.

    my question is :

    1. Is there any API to close the zigbee coordinator network?

    2. I want to change the open time (default is 180s) to 60s, but it likes not work. is there any API to change it ?

          case OpenNet:{                //打开允许入网
              comm_status = bdb_start_top_level_commissioning(ZB_BDB_NETWORK_STEERING | ZB_BDB_NETWORK_FORMATION);
              
              if (ZB_TRUE == comm_status)
              {
                  ret = Z_SUCCESS;
              }
              else
              {
                  ret = Z_FAIL;
              }
              SendApDataMQTT(ret, NULL, 0);
              
              /* for pre - zigbee 3.0 not key change */
              ZB_SCHEDULE_ALARM(
                        (zb_callback_t)zb_bdb_set_legacy_device_support,
                        1,
                        ZB_TIME_ONE_SECOND
                    );
              break;
          }

regards,

  • 1. Is there any API to close the zigbee coordinator network?

    To my knowledge it is not possible to stop the Zigbee network steering procedure before the timeout period has expire. The specification says that the minimum commissioning time (bdbcMinCommissioningTime) should be set to 180 secs, so I don't find it wise to change that either.

      2. I want to change the open time (default is 180s) to 60s, but it likes not work. is there any API to change it ?

    If you anyways want to change the bdbcCommissioningTime I recommend you take look at the permit join request (Mgmt_permit_joining_req) in the BDB specification and function zb_zdo_mgmt_permit_joining_req.

    Best regards,

    Marjeris

     

Related