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.

CC2530: CC2530: Error sending multicast group command

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

Hi,

We are using CC2530 RTU controller interfaced with WiFi module. The wifi module sends the commands for Unicast/Multicast functionality to switch.

We are trying to issue a multicast command from wifi module through UART, but failing in doing so.

I want to know following things.

1. what is the command to assign each switch to particular group/endpoint

2. what is the command for multicast to send data to particular endpoint/group

Thanks.

Anirudh

  • Couldn't understand your question well. Do you run Z-Stack on your CC2530? Are you asking about ZCL command running on CC2530? If so, does your CC2530 act as switch device or light device?

  • Hi Anirudh,

    Which version of Z-Stack are you using and what is the role of your device (ZC/ZED/ZR/ZNP)?  Please refer to the Monitor and Test API and explain what commands you have tried so far.  A UART and/or sniffer log may also help to show the behavior you are observing.  You can also view the "Similar topics" on the right side of this web page to see if you issue has been resolved in another thread.

    Regards,
    Ryan

  • Yes im using ZCL command running on CC2530. Yes switch device acting as endpoint.. we are using multiple switches and we want to implement multicast functionality ie all switches should turn on/off at same time ..Can you send me some examples based on multicast communications which describes about the commands needed to be sent from controller to the switch.

  • We are using Z-Stack 1.2.2 and the device is acting as ZC. We are referring to Monitor and test API document, tried ZDO_EXT_ADD_GROUP command and AF_DATA_REQUEST_EXT(setting DstAddrMode as 1). We are not sure if this is a right way to go. Want to know the procedure for doing the same/Any examples based on multicast communications which describes about the commands needed to be sent from controller to the switch.

  • You can also refer to Section 9.8 of the Z-Stack Developer's Guide.  You may need to use ZDO_EXT_SET_PARAMS to set multicast but it is typically enabled by default.  How have you determined that the messages are failing?  You will need a sniffer log to see whether the messages are being properly transmit over-the-air and ensure that the switches have added the group locally (this is not done by ZDO_EXT_ADD_GROUP).  The groups cluster may not be supported by the other devices and you should check how both the ZC and ZRs react to MT and ZCL commands through further debugging (ZEDs could be sleepy and thus not receive multicast messages).  You can also refer to the Zigbee Cluster Library SimpleLink Academy Lab.

    Regards,
    Ryan 

  • ZDO_EXT_ADD_GROUP is local command to add device itself to a specific group. I don't see TI MT command support sending ZCL add group command over the air. If you mean to send ZCL add group command over the air, you can refer to zclGeneral_SendAddGroupRequestEx in zcl_global.c/.h to implement your own custom command to do this. AF_DATA_REQUEST_EXT with DstAddrMode as 1 is correct way to send group cast.

  • Im not able to find zcl_global.c/.h in the project folder. Which is the application level command to send add group request from ZC to ZED.  Im referring  to the  Monitor and Test API. 

  • zclGeneral_SendAddGroupRequestEx is not available in CC2530 Z-Stack but you can download and install CC26x2 SDK which include Zigbee related examples to check how zclGeneral_SendAddGroupRequestEx is implemented and porting it to CC2530 Z-Stack?

  • ok in a nut shell multicast is not supported in CC2530

  • Actually, CC2530 support multicast but you have to implement ZCL Over-the-Air Add Group command by yourself. That's what we did in our products.

  • "CC26x2 SDK do not support CC2530 HW. We have ready product in market based on CC2530 and Stack version 1.2.2a we wish to implement multicasting on same HW and FW stack only, please provide me pointers and documents to implement multicast on CC2530

  • ZCL add group command is more related to application software and I have replied you that download and install CC26x2 SDK which include Zigbee related examples to check how zclGeneral_SendAddGroupRequestEx is implemented and porting it to CC2530 Z-Stack. Or, you can refer to ZCL spec to implement it by yourself.