This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

A ZLL Light can not join "ZigBee Lighting Gateway"



Hi TheDarkSide:

     I have downloaded the "ZigBee Lighting Gateway SW" from "New Lighting gateway SW wiki page". But I can not use ZLL 1.0.1 light to join the Gateway.

    Status:

    Gateway config:  SampleGateway-CoordinatorEB, Patched from ZStack 2.5.1a, No other modify.

    Light config: ZLL 1.0.1 SampleLight - EB -Router, No other modify.

    Operation:  

        Press the joystick-UP on Gateway EB to permit join. LED_2 blinking. Then press the joystick-UP to start "zllTarget_ClassicalCommissioningStart".

        The LCD on the ZLL EB shows "Assoc Cnf Success", After that display, the ZLL EB  RESET!!!   Join failed.

    I have tracked the code, found that reset comes from "DEV_END_DEVICE_UNAUTH", the trust center doesn't give authority.

    And I have found if I disable "NV_RESTORE" in Gateway EB, the ZLL EB can join the new GW. 

    Why?  How should I solve this problem?

Thanks!

Ryan.He

    

  • Hi Ryan,

        Can you please check if the Flash is erased during programming, in options->debugger->Texas Instrument : "Erase flash" check box. It could be that the NV has old data stored and with NV_RESTORE enable this is trying to be restored and causing issues.

    Regards, TC.

  • Hi TopCat:

           I have checked the "Erase flash" option, it was enabled. And I have tried disable or enable it, neither can work.

           Any other suggestion?

     Thanks

    Ryan.He

  • Ryan,

        I will be able to test this again on Monday. I'll get back to you with the results ASAP.

    Regards, TC.

  • Ryan, 

        I tested this on my setup and it is all working as expected. The Light joins the network and I am able to control it.

    The issue that you are seeing seems to be related to the Coordinator not sending the nwk key. Can you check in the project options->C/C++ compiler->Preprocessor->Defined Symbols, that the nwk key setting are correct: 

    SECURE=1
    TC_LINKKEY_JOIN

    Also if you can provide a packet trace (.psd from TI packet sniffer), that will be helpful.

    Regards, TC.