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.

ZHA and ZLL

Other Parts Discussed in Thread: CC2530, Z-STACK

Hi

I am trying to check the interoperability of ZLL and ZHA. I have cc2530zdk-zll. I have a XBee module from Digi. I intend to configure the XBee as coordinator, as a switch to control lamps. So, I want to know whether the ZLL network would be able to capture the RF packets from the ZHA coordinator? If yes what are the step by step procedures for commissioning ZLL devices into the ZHA network? (like scan request, response etc.). I understand that the commissioning on ZHA is different, EZ-mode commissioning. So what sequence is followed in this procedure? I couldn't find a document on this.

  • Why you are using XBee module though CC2530 has Zigbee Transceiver integrated with it.

  •  

    You should look at:

    zllTarget_ClassicalCommissioningStart

    In Z-Stack Lighting 1.0.2\Documents\API\Z-Stack Lighting API.pdf

    Classical commissioning in ZLL is the normal MAC association used in HA networks. So the ZLL device will join the network created by the HA Coordinator the same as a HA device. The ZLL Spec mandates network level IOP, so a ZLL device must join a HA network. Past this network level IOP there is no mandate that a ZLL device should behave like a HA device, ZLL has no support for EZ-Mode commissioning. However the TI release tries to make a ZLL light/remote look as much like a HA light/switch as possible. We use HA profile ID and device ID's in the simple descriptor so that a Coordinator can discover the device the same as a HA device. Traditionally when a coordinator see a device announce it will send active EP request and simple descriptor request to discover the devices that have joined the network, in this case a TI ZLL light will appear the same as a HA Light. At the ZCL level HA and ZLL share the same ZCL commands, so should IOP once classically commissioned and discovered.

    Regards, TC.

  •  

    Reshmi Khanna said:

    Why you are using XBee module though CC2530 has Zigbee Transceiver integrated with it.

    I think the question was how to control a CC2530 ZLL device from an XBee Coordinator, not physically controlling/wiring the CC2530 to an XBee module.

    But I would ask why you are using an XBee module to control  ZLL devices? TI has an end to end solution for controlling ZLL lights from a smartphone or cloud server using a ZLL control bridge (note HA devices can not join ZLL networks). More information can be found here:

    http://processors.wiki.ti.com/index.php/ZigBee_Lighting_Gateway

    Regards, TC.

  • Thank you. 

    I download the zlight2 with the sampleapp and press the button for more than 5 seconds. And I am able to discover my XBee coordinator device (pDiscoveredNwkParamList  is showing the XBee device details). But I am not sure whether the commissioning has been successful between these devices. I see that there is a permit join feature provided with the short press of the button. What exactly is the function? I don't find any documentation regarding this. And the zlight blinks once after the classical joining button is pressed for more than 5 seconds.

  • I understand. But I am trying to check the IOP feature of zigbee devices from different vendors. 

    I am not trying to join HA to ZLL network. I have a single zlight working in ZLL standard, to which I am trying to form a network using just a HA coordinator which is XBee module.

  •  

    I am not sure how the XBee module discovers devices. If the ZLight is showing in the "pDiscoveredNwkParamList " then I guess it has joined the network. If you can see the network Addr in the list then try to send a ZCL on request to that nwkAddr with Endpoint 0x0B.

    The permit join on ZLight is to open the ZLight for joining. This is typically done by the Coordinator in a HA network. In a ZLL network which uses distributed security (no centralized trust center) the button can be pressed to allow a device to join through that ZLight. This is required for one of the tests during certification.

    Regards, TC. 

  • hi

    since it is not possible that the zha coordinator can form a network with zll network, i have tried with single zll lamp and one zha coordinator. Now can zll remote coexist in this network? If yes how to join it to the network?

  • "   The permit join on ZLight is to open the ZLight for joining. This is typically done by the Coordinator in a HA network. In a ZLL network which uses distributed security (no centralized trust center) the button can be pressed to allow a device to join through that ZLight. This is required for one of the tests during certification.    "

    I didn't understand the above. I understand that ZLL has no trust center since it has no coordinator. zlight is the router. Now what type of device is allowed to join through zlight? another non-ZLL router or non-ZLL end device?

  • Hooray!!

    I am able to control my zlight from the XBee! I set my XBee as trust center and it works fine. So I understand that, the radio packet reception is independent of TI specific files.

  • hi

    since it is not possible that the zha coordinator can form a network with zll network, i have tried with single zll lamp and one zha coordinator. Now can zll remote coexist in this network? If yes how to join it to the network?

  • Yes the same classical commissioning mechanism must be supported for all ZLL devices but the means that this is invoked is manufacturers specific. On the TI ZLL remote reference design pressing the red and yellow scene button when the remote is factory new (pin button on back will set it to factory new) will make it join a HA network.

    Once on the HA network a ZLL device can touchlink another ZLL device on the HA network. So from a users perspective this is transparent, as long as all devices are on the HA network they will be have the same as when on a ZLL network. Touchlink will pair a ZLL remote to a ZLL light. When a remote is on a HA network it con not touchlink a factory new light and bring it onto the network as this will compromise the trustcenter.

    Regards, TC.

  • when the remote joins the zha network, it will be end device. when zlight joins zha it will be router. now whwn i touchlink zlight and remote, will the remote still be end device? SOmehow, the remote changes its role into router. Why is this? And then my light loses its joining from zha.

  • And waht exactly do you mean by factory new? When remote is set to factory new, what program would it be running?

  •  Factory New is a concept in ZLL. It means that the device is set back to factory defaults and there is a specific ZLL command to do this. It is in the Standard ZLL Remote image in our ZLL Remote Reference Design in the ZLL Kit. Making the ZLL Remote Factory New can be done by a ZLL OTA command or by pressing the button in the back of the Remote (in the pin hole).

    Regards, TC.

  •  

    Sorry, I missed this:

    Sherin Sam said:

    when the remote joins the zha network, it will be end device. when zlight joins zha it will be router. now when i touchlink zlight and remote, will the remote still be end device? Somehow, the remote changes its role into router. Why is this? And then my light loses its joining from zha.

    The Remote is always and end device, it never changes to a router. What happened here is that the remote was not joined to the HA network, when you touchlinked it "stolen" the Light from its previous network. You need to insure the remote and the light is on the HA network before touch link.

    Regards, TC.

  • Exactly. I understand it. My problem was the RF Packet Buffering Timeout was very low. So even before the remote receive packets, it was lost. When I increased this parameter I was able to successfully join the remote to XBee coordinator's network. 

    Now I am able to control my ZLights from XBee as well as the remote. 

    Now I have read that we can use a lighting gateway for controlling from internet. Using beaglebone black and the usb dongle. I want to use my XBee device instead of the dongle. Does this Ninja Blocks image support a UART connection to the XBee device? I want to send commands to XBee over ethernet and BBB is to give this command to XBee over the UART.

    Thank you.

  • Can I use your sample code as a base for a commercial product with cc2530?

  • Is it possible to create a temperature measurement cluster in the ZLL devices sample code? I want to integrate an external temperature sensor to my cc2530/31. 

     Is it in conformance with ZLL standard that my device supports other ZCL clusters, other than in the ZLL spec?