<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Zigbee group addressing in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Zigbee-group-addressing/m-p/171291#M11519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to send data to a ZED group, using Zigbee group addressing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used this code for ZEDs to add them to a group:&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;BR /&gt;&lt;BR /&gt;uint8_t groupId[2] = {0xFA,0xFA};&lt;BR /&gt;&lt;/DIV&gt;&lt;PRE&gt;void BeeAppInit() {&amp;nbsp;&amp;nbsp; ......&amp;nbsp;&amp;nbsp; zbApsmeAddGroupReq_t addGroupRequest; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy2Bytes(addGroupRequest.aGroupId,groupId);&amp;nbsp;&amp;nbsp; addGroupRequest.endPoint = 0x01;&amp;nbsp;&amp;nbsp; (void)APSME_AddGroupRequest(&amp;amp;addGroupRequest);
&amp;nbsp;&amp;nbsp; ......
}
&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;And in the ZC I used this code to send the message:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;BR /&gt;&lt;BR /&gt;uint8_t groupId[2] = {0xFA,0xFA};&lt;BR /&gt;&lt;/DIV&gt;&lt;PRE&gt;void sendMessage() {

&amp;nbsp;&amp;nbsp;&amp;nbsp; afAddrInfo_t addrInfo;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.dstAddrMode = gZbAddrModeGroup_c;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy2Bytes(addrInfo.dstAddr.aNwkAddr,groupId);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.dstEndPoint = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.srcEndPoint = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.txOptions = gApsTxOptionNone_c;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.radiusCounter = afDefaultRadius_c;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy2Bytes(addrInfo.aClusterId, appDataCluster);&amp;nbsp;&amp;nbsp;&amp;nbsp; (void)AF_DataRequest(&amp;amp;addrInfo,10,"Message",NULL);
}
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;The ZC sends the message when receives a request message from one of the ZEDs.&lt;BR /&gt;In my app I have a ZC (with short address 0000) and 2 ZEDs (with short addresses 796F and 7970 respectively).&lt;BR /&gt;The problem is that if I turn off one of the 1st ZED (796F) after it has joined with ZC and the other remaining (7970) sends the request message, it doesn't receive any message. It seems (from ZTC log) that the ZC tries to deliver message to 796F first, with no success obviously (because 796F is turned off).&lt;BR /&gt;&lt;BR /&gt;Why is this behavior happening? Maybe did I wrong something in code structure?&lt;BR /&gt;Maybe does ZED (796F) must send a NLME-LEAVE message to ZC? However it seems strange that if a ZED i turned off without inform the ZC the network hangs.&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:19:46 GMT</pubDate>
    <dc:creator>CecchiSandrone</dc:creator>
    <dc:date>2020-10-29T09:19:46Z</dc:date>
    <item>
      <title>Zigbee group addressing</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Zigbee-group-addressing/m-p/171291#M11519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to send data to a ZED group, using Zigbee group addressing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used this code for ZEDs to add them to a group:&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;BR /&gt;&lt;BR /&gt;uint8_t groupId[2] = {0xFA,0xFA};&lt;BR /&gt;&lt;/DIV&gt;&lt;PRE&gt;void BeeAppInit() {&amp;nbsp;&amp;nbsp; ......&amp;nbsp;&amp;nbsp; zbApsmeAddGroupReq_t addGroupRequest; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy2Bytes(addGroupRequest.aGroupId,groupId);&amp;nbsp;&amp;nbsp; addGroupRequest.endPoint = 0x01;&amp;nbsp;&amp;nbsp; (void)APSME_AddGroupRequest(&amp;amp;addGroupRequest);
&amp;nbsp;&amp;nbsp; ......
}
&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;And in the ZC I used this code to send the message:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;BR /&gt;&lt;BR /&gt;uint8_t groupId[2] = {0xFA,0xFA};&lt;BR /&gt;&lt;/DIV&gt;&lt;PRE&gt;void sendMessage() {

&amp;nbsp;&amp;nbsp;&amp;nbsp; afAddrInfo_t addrInfo;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.dstAddrMode = gZbAddrModeGroup_c;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy2Bytes(addrInfo.dstAddr.aNwkAddr,groupId);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.dstEndPoint = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.srcEndPoint = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.txOptions = gApsTxOptionNone_c;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrInfo.radiusCounter = afDefaultRadius_c;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy2Bytes(addrInfo.aClusterId, appDataCluster);&amp;nbsp;&amp;nbsp;&amp;nbsp; (void)AF_DataRequest(&amp;amp;addrInfo,10,"Message",NULL);
}
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;The ZC sends the message when receives a request message from one of the ZEDs.&lt;BR /&gt;In my app I have a ZC (with short address 0000) and 2 ZEDs (with short addresses 796F and 7970 respectively).&lt;BR /&gt;The problem is that if I turn off one of the 1st ZED (796F) after it has joined with ZC and the other remaining (7970) sends the request message, it doesn't receive any message. It seems (from ZTC log) that the ZC tries to deliver message to 796F first, with no success obviously (because 796F is turned off).&lt;BR /&gt;&lt;BR /&gt;Why is this behavior happening? Maybe did I wrong something in code structure?&lt;BR /&gt;Maybe does ZED (796F) must send a NLME-LEAVE message to ZC? However it seems strange that if a ZED i turned off without inform the ZC the network hangs.&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Zigbee-group-addressing/m-p/171291#M11519</guid>
      <dc:creator>CecchiSandrone</dc:creator>
      <dc:date>2020-10-29T09:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zigbee group addressing</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Zigbee-group-addressing/m-p/171292#M11520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You are adding Groups to the stack before you have started it and nvm has been restored, so you code in BeeAppInit Does not have any effect.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Set the group after the device has joined the network.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BR,&lt;/DIV&gt;&lt;DIV&gt;Mads&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 08:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Zigbee-group-addressing/m-p/171292#M11520</guid>
      <dc:creator>Mads</dc:creator>
      <dc:date>2007-12-11T08:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Zigbee group addressing</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Zigbee-group-addressing/m-p/171293#M11521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Mads, I've done it in ZDP callback, but however the results remain the same. If I shut down a device of the group, the network hangs.&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;zbApsmeAddGroupReq_t addGroupRequest;  switch(event) {    case gMatch_Desc_rsp_c:      pMatchRsp = &amp;amp;(pMsg-&amp;gt;msgData.matchDescriptorResponse);      if (pMatchRsp-&amp;gt;status == gZbSuccess_c) {        /* remember destination (nwkaddr + endpoint) */        dstEndPoint = pMatchRsp-&amp;gt;matchList[0];  /* match to first endpoint */        Copy2Bytes(dstAddr, pMatchRsp-&amp;gt;aNwkAddrOfInterest);        LCD_ClearDisplay();        LCD_WriteString(1,(uint8_t *)"ZED started");        LED_SetLed(LED2, gLedOn_c);        Copy2Bytes(addGroupRequest.aGroupId,groupId);        addGroupRequest.endPoint = 0x01;        (void)APSME_AddGroupRequest(&amp;amp;addGroupRequest);      }      break&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Zigbee-group-addressing/m-p/171293#M11521</guid>
      <dc:creator>CecchiSandrone</dc:creator>
      <dc:date>2020-10-29T09:19:48Z</dc:date>
    </item>
  </channel>
</rss>

