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.

Z-Stack Lighting CC2530ZDK-ZLL Remote Control problem

My setup is SampleBridge based router that acts as a gateway, and several lamps. I used to target-target touchlink the bridge and remote, and then use the remote to TL new lamps into the network.

However, this was with ZLLRC Rev. 1.1.1 SN 000A6. With this, everything works like a charm.

But the new remote, ZLLRC Rev. 1.1.1.1 SN00386 doesn't do what I expect. It target-target TL with the bridge, and it TL with lamps, but no device annouce is received anymore. And I can't turn on/off my lamps with it. They do indicate being joined to a network though.

 I don't know where to start looking. As it is, using the old 1.1.1 remote, everything works fine. Both have never been flashed by me.

 Is there any changelog available, possibly something changed in the SampleRemote firmware?

Thanks,

Sjef.

  • Sjef,

        The ZLLRC Rev. 1.1.1 SN 000A6 devices used an internal version of FW, the ZLLRC Rev. 1.1.1.1 SN00386 version uses the publically released ZStack-Lighting-1.0.2 FW. Can you try continuously pressing a button on the ZLL remote during the joining phase, the issue may be that the remote goes to sleep before sending the DeviceAnnc.

    If this is the case then it could have been something like an OSAL timer in the Application that kept the ZLLRC awake long enough to send the DeviceAnnce.

    Regards, TC.

  • TC,


    Thanks. I tried your suggestion but it doesn't change anything. It's very unfortunate.


    I use RC to TL to bridge, no problem. Get ZLL_TL_IND and DEVICE_ANNCE of the RC. So now I have a network with bridge and remote.


    Then I use RC to TL lamp. Lamp flashes, indicate joined. But no device anounce. No cycling through lamps with < and > to select one and turn on/off. So at this point, remote is useless for use with lamps.

    Experiment: No bridge, just lamps. Then it (cycling through lamps and turn on/off) works.

    I hope it's still possible to use the RC as a commissioning tool. I really liked that idea. Is it possible to get the internal firmware?

  • Update:

    When starting the network with a ZLight and ZLLRC remote controller and then touch-linking the Bridge everything  works as expected. But this use case is not preferred.

    Preference is to let the bridge start the network (ZLL_MT_APP_RPC_CMD_START_DISTRIB_NWK), touch-link the remote with it and then touch-link lamps with the remote to expand the network. This only works with the 1.1.1 remote. With 1.1.1.1 the remote does show up in the bridge's neighbor table, and I'm able to touch-link lamps with it, but those lamps seem to be in another network (not in bridge NB table, bridge not receiving announce, and, surprisingly remote can't control those lamps either).

    It's a complicated thing to debug. So if there is anyone who can give me any support I would be very grateful.

  •  

    Sjef,

        I just tested this with SmartRF05 Evaluation Boards:

    1. SampleBridge-EB-Router

    2. SampleRemote-EB-EndDevice

    3. SampleLight-EB-Router

    I used the following test procedure:

    1. Press S1 + Joystick Down on SampleBridge to make it create a ZLL network.

    2. Hold SampleBridge close to SampleRemote and press joystick Left on both boards.

    3. Hold SampleRemote close to SampleLight and press joystick left on SampleRemote.

    4. Control SampleLight from SampleRemote.

    This worked in this setup. Can you confirm that the test procedure is correct? I'll retest now replacing the SampleRemote-EB-EndDevice with a ZLLRC running SampleRemote-ZLLRC-EndDevice.

    Regards, TC.

  •  

    I carried out the same test procedure on a ZLLRC programmed with the ZStack-Lighting-1.0.2 SampleRemote-ZLLRC-EndDevice. This also worked, can you confirm that this is 100% reproducible or does this only happen on some occasions and I was lucky in my testing?

    I will program my ZLLRC with the kit FW you are using. Do you have the ability to update the ZLLRC FW to run the one from ZStack-Lighting-1.0.2?

    Also what are the FW versions of the Bridge and Lights? Can you use the FW from ZStack-Lighting-1.0.2 on these device as well so we are aligned?

    Regards, TC.

  • The issue can be replicated in ZStack-Lighting-1.0.2 by uncommenting #define ZLL_DEV_FIXED_NWK_KEY, this is something that was done for the ZLL Kit FW to make it easier to decode packet traces that are posted on E2E. However, defining this exposes a bug when the Remote touchlinks a Light after the Remote is touchlinked into an existing network (Remote-Remote TL, or Remote-Bridge TL). As mentioned earlier in this thread it is not seen in a scenario where an FN Remote touchlinks a Light. We are working to get to the bottom of this bug, but for now please undfine #define ZLL_DEV_FIXED_NWK_KEY on the Remote if you need to work around this issue. #define ZLL_DEV_FIXED_NWK_KEY is only used as a development tool, so this bug will not be present in certified devices.

    Regards, TC.

  • Attached is a ZLLRC hex file that does not have ZLL_DEV_FIXED_NWK_KEY defined. Please reprogram the ZLLRC with this image to avoid the issue mentioned in this thread.

    Regards, TC.

    6052.ZllRemote-ZLLRC.hex

     

  • TC,

    Thank you for your great support. Indeed, undefining ZLL_DEV_FIXED_NWK_KEY for the remote does the trick!

    Best Regards,

    Sjef.