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.

Broadcast message in Zigbee network

Other Parts Discussed in Thread: Z-STACK

Hello all,

Currently, i am using Z-stack 1.2.0 in my Zigbee network application. I have one coordinator and 3 end-devices.

I am using ZDO_STATE_CHANGE event to monitor End_device status. If end_device out of network, i will turn off a Zigbee's led indication.

I just do a test with broadcast message in Zigbee network with following parameters :

In coordinator :

zclSampleLight_DstAddr.addrMode = (afAddrMode_t)AddrBroadcast;
  zclSampleLight_DstAddr.endPoint = 10;
  zclSampleLight_DstAddr.addr.shortAddr = 0xFFFD;

and using AF_data_request  to send out the message.

In end_device :

set -DRFD_RCVC_ALWAYS_ON=TRUE to enable receive broadcast message.

And i has been successful to send and receive packets through broadcast mechanism.

----------------------------------------------------------------

But, one problem happens in testing.

In End_device, Zigbee's led turn on when end-device has joined to Coordinator, but it does not turn off the Zigbee's led when coordinator shut down (in my debug process, ZDO_STATE_CHANGE event do not trigger when Coordinator go out).

Please help me to solve it.

Thank you very much.

Phuoc.

  • When ZC is off and ZED becomes no parent, it won't trigger ZDO_STATE_CHANGE event

  • Dear Mr. Yikai Chen,

    Nice to see your support.

    But, please re-check your answer.I want to describe my testing in more detail.

    case 1 : DRFD_RCVC_ALWAYS_ON=FALSE

    when the ZC is off, ZED takes into ZDO_STATE_CHANGE  event and then i check the device type, the Zigbee led is off because it is not in Zigbee network ( it is not END_DEVICE also). And i believe that it goes into this event because the ZC not answer it polling data.

    case 2 : DRFD_RCVC_ALWAYS_ON=TRUE

    when the ZC is off, ZED does not takes into ZDO_STATE_CHANGE  event, the Zigbee  led is not off.  And i can't explain what is exactly phenomenon. 

    Please take a look and help me to solve it.

    Thanks.

    Phuoc.