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

config ZigBee permit join interval and it's broadcast address

Hi

I'm using ZigBee light control coordinator example in "nRF5 SDK for Thread and Zigbee v3.1.0" on nRF52840 evaluation board.

when it will execute bdb_start_top_level_commissioning(ZB_BDB_NETWORK_STEERING) under ZB_BDB_SIGNAL_DEVICE_FIRST_START switch case, by default 180 seconds of permit join is started. So, how can I modify this default 180 seconds interval, as well as broadcasting address of permit join?

Parents
  • Hi,

    I think you could use function zb_nlme_permit_joining_request().This function is used to allow permit joining requests for a given amount of time, and block it otherwise. I'm sorry, this function is not described in our documentation, but there is a brief description inside zboss_api_nwk.h and you could implement something like this:

    void join_permit(zb_uint8_t param)
    {
      zb_buf_t *buf = ZB_BUF_FROM_REF(param);
      zb_nlme_permit_joining_request_t *req_param = ZB_GET_BUF_PARAM(buf, zb_nlme_permit_joining_request_t);
    
      /* permit joining forever */
      req_param->permit_duration = 0xff; /* in seconds */
    
    
      zb_nlme_permit_joining_request(param);
    }
    
    

    Keep in mind that the default 180 seconds minimum permit join is specified in the BDB specification, so I am not sure how wise it will be to open the network for values lower than that.

    I am not sure what you mean by broadcasting address of permit join? Could you explain yourself a bit more?

    Best Regards,

    Marjeris

Reply
  • Hi,

    I think you could use function zb_nlme_permit_joining_request().This function is used to allow permit joining requests for a given amount of time, and block it otherwise. I'm sorry, this function is not described in our documentation, but there is a brief description inside zboss_api_nwk.h and you could implement something like this:

    void join_permit(zb_uint8_t param)
    {
      zb_buf_t *buf = ZB_BUF_FROM_REF(param);
      zb_nlme_permit_joining_request_t *req_param = ZB_GET_BUF_PARAM(buf, zb_nlme_permit_joining_request_t);
    
      /* permit joining forever */
      req_param->permit_duration = 0xff; /* in seconds */
    
    
      zb_nlme_permit_joining_request(param);
    }
    
    

    Keep in mind that the default 180 seconds minimum permit join is specified in the BDB specification, so I am not sure how wise it will be to open the network for values lower than that.

    I am not sure what you mean by broadcasting address of permit join? Could you explain yourself a bit more?

    Best Regards,

    Marjeris

Children
No Data
Related