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

Question about using Install Code

Hi Sir or Madam,

I tested examples\zigbee\light_control demo recently and I want to test install code function based on this example, the first step is I add install code in coordinator, then I power up coordinator and bulb(without install code function), and I found the bulb still can join the coordinator, does this means the install code function still can't work? If I want to use install code to join the netwrok that coordinator created what else I need to do? Thanks for your help!

if (zb_secur_ic_add(dut_ieee_addr1, ZB_IC_TYPE_128, install_code) != RET_OK){
}
zb_set_installcode_policy(ZB_TRUE);

Parents
  • Hello,

    What SDK version are you using?

    So where do you call this, and what does zb_secur_ic_add() return?

    Please be aware that your check:

    if (zb_secur_ic_add(dut_ieee_addr, ZB_IC_TYPE_128, install_code) != RET_OK)
    {
        // you are not doing anything here.
    }
    zb_set_installcode_policy(ZB_TRUE);

    BR,
    Edvin

  • Thanks Edvin for your reply.

    nRF5_SDK_for_Thread_and_Zigbee_v4.1.0_32ce5f8 is what I use. And I called this after zboss_start_no_autostart(). I already checked the return value of add is RET_OK. Thanks.

    /** Start Zigbee Stack. */
    zb_err_code = zboss_start_no_autostart();
    ZB_ERROR_CHECK(zb_err_code);

    if (zb_secur_ic_add(dut_ieee_addr1, ZB_IC_TYPE_128, install_code) != RET_OK){
    }
    /* Set device installcode policy */
    zb_set_installcode_policy(ZB_TRUE);

Reply
  • Thanks Edvin for your reply.

    nRF5_SDK_for_Thread_and_Zigbee_v4.1.0_32ce5f8 is what I use. And I called this after zboss_start_no_autostart(). I already checked the return value of add is RET_OK. Thanks.

    /** Start Zigbee Stack. */
    zb_err_code = zboss_start_no_autostart();
    ZB_ERROR_CHECK(zb_err_code);

    if (zb_secur_ic_add(dut_ieee_addr1, ZB_IC_TYPE_128, install_code) != RET_OK){
    }
    /* Set device installcode policy */
    zb_set_installcode_policy(ZB_TRUE);

Children
No Data
Related