<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82080/zigbee-groups-handler-bug</link><description>Hello, 
 I am using nRF Connect SDK 1.7.0 and wrote a light-bulb-device. It has two identical dimmer-endpoints and I reconized there is a bug with the ZCL Groups cluster. 
 For example: 
 Adding a group to endpoint number 1 (ZB_ZCL_CMD_GROUPS_ADD_GROUP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jan 2022 10:38:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82080/zigbee-groups-handler-bug" /><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/349490?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 10:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8697f18-3d0c-42ee-bf3e-a2d940eae5d0</guid><dc:creator>Alex_T</dc:creator><description>&lt;p&gt;By coincidence I just found this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73876/multi-endpoints-zigbee-device-answers-to-get_group_membership_req-with-the-group-list-of-the-entire-device"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/73876/multi-endpoints-zigbee-device-answers-to-get_group_membership_req-with-the-group-list-of-the-entire-device&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It appears to be the same problem but 9 Month ago.&lt;/p&gt;
&lt;p&gt;I am confused why this has not been further investigated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/348066?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 13:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:539f9906-4f57-499f-988a-3ecb26303a82</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Another update from the developers. They confirmed what I said in my previous reply, that group memberships is handled correctly, and that the only issue is the Get Group Membership Response command. View Group command works, so it is possible to use this to check group membership, but&amp;nbsp;this will of course have the same issue as when using&amp;nbsp;zb_aps_is_endpoint_in_group, where you have to check for a specific group ID.&lt;/p&gt;
&lt;p&gt;The Get Group Membership bug has been reported to DSR, who are responsible for the ZBOSS stack. The fix should show up in the release notes as&amp;nbsp;ZBS-676.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/347763?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 12:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:859b1706-0946-414f-8c8f-5d95c5aac0f9</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I have an update from the developers.&lt;/p&gt;
&lt;p&gt;They have been able to reproduce the issue and gather some more information regarding it. It seems the issue is with the Get Group Membership Response command, which always returns all groups the device is added to, ignoring the endpoint. By looking at internal logs in the stack they found that adding an endpoint to a group works fine, and sending the Remove Group command from a particular group to and endpoint that is not a member of the group returned that the group was not found. So it seems like group membership is handled correctly otherwise. However, they are still working on this and will keep on testing to make sure that is correct, and to figure out how to solve the issue.&lt;/p&gt;
&lt;p&gt;Regarding&amp;nbsp;your question about&amp;nbsp;getting group membership on the device, the developers confirmed that zb_aps_is_endpoint_in_group() is the only option at the moment.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/342667?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 10:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:029ecf13-460b-49f0-b12e-65949e5ff629</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Thank you for the information. I have forwarded it to the developers.&lt;/p&gt;
&lt;p&gt;They have not gotten back to me regarding a workaround yet.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/342295?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 11:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98d43597-df8d-420f-9b83-3a33c18eea26</guid><dc:creator>Alex_T</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;I just went back to nRF Connect 1.5.1 (which is the certified zigbee platform).&lt;/p&gt;
&lt;p&gt;Unfortunately that version has the same issue. Would be great to get a workaround soon.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/342285?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 10:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90463dee-e4b8-41a1-8462-11b1ef0b6a08</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;The developers are looking into the issue, but it might take some time until they have a fix.&lt;/p&gt;
&lt;p&gt;I do not know of any other ways currently. I tested some methods, but eventually ended up with the same issue as you, that the structs and functions in zb_aps.h are not available to the application. I have asked the developers if they know of any ways to get this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/341779?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 07:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61eff077-5950-4ebb-bc22-1e5d514dbc56</guid><dc:creator>Alex_T</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Okay, thank you!&lt;/p&gt;
&lt;p&gt;Maybe you know a way for reading a list of existing groups so I can overwrite these commands from my application level?&lt;/p&gt;
&lt;p&gt;The zb_apsme_get_group_membership_conf_t &amp;amp; zb_apsme_get_group_membership_request does not seem to be accessible.&lt;/p&gt;
&lt;p&gt;As far as I can tell there is only the zb_aps_is_endpoint_in_group function available to access groups. Finding the list of groups would mean checking (bruteforcing) group 0-ffff for membership which is not really an option.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/341224?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 09:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9314a58-18fa-4e36-be44-05b96947e6d1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;You are correct that making changes to zcl_groups.c would be to change the library. You can read about certification of the Zigbee ZBOSS stack and Zigbee libraries in nRF Connect SDK here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrfxlib/zboss/doc/zboss_certification.html"&gt;ZBOSS library certification&lt;/a&gt;. The ZBOSS stack from DSR is certified together with nRF Connect SDK and Nordic SoCs. This stack is precompiled so part of the stack is not possible to change by the user anyway, and the stack is included as the ZBOSS Zigbee stack library in nrfxlib, so all the files under&amp;nbsp;ncs/nrfxlib/zboss.&lt;/p&gt;
&lt;p&gt;I have not heard from the developers yet, but I will let you know as soon as I hear anything.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/341132?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 16:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d20d9eb8-fb64-4be0-9bcb-b7b5063aa677</guid><dc:creator>Alex_T</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Great when you can reproduce it now. Looking forward to a workaround for this.&lt;/p&gt;
&lt;p&gt;I can change zcl_groups.c to get this fixed but as far as I know this would be &amp;quot;changing the library&amp;quot; which is part of the &amp;quot;certified platform&amp;quot; which would make the certification process complicated?&lt;/p&gt;
&lt;p&gt;Where do I actually find out which files belong to the certified platform and which files may be changed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/341120?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 15:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e430ba64-a722-4a2a-b459-82413f556b05</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Thank you for providing the sniffer log, it was very helpful in seeing the behavior you described. I have been able to confirm this on my side, and I&amp;nbsp;also saw that when groupcasting a command the endpoint that was not part of the group the command was sent to would respond with an ACK to the command.&lt;/p&gt;
&lt;p&gt;I will report this internally to our developers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/341056?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 11:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59574cf8-988e-4f90-8820-102ff9a271f6</guid><dc:creator>Alex_T</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;I have modified a devboard as send-tool for sending packets to my DUT-device.&lt;/p&gt;
&lt;p&gt;Please find Sniffer logs of what I am doing attached.&amp;nbsp;Key for wireshark ist &amp;quot;7a2cc0bb6504e93b7a55ff79d45569f0&amp;quot;.&lt;/p&gt;
&lt;p&gt;recommended filter in wireshark: ((!(wpan.frame_type == 0x2)) &amp;amp;&amp;amp; !(zbee_aps.type == 0x2)) &amp;amp;&amp;amp; !(zbee_nwk.cmd.id == 0x08)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think the sniffer log is explaining my problem best:&lt;/p&gt;
&lt;p&gt;Starting with two identical dimmer endpoints (ep10 and ep11):&lt;/p&gt;
&lt;p&gt;- First I verify both are in no group.&lt;/p&gt;
&lt;p&gt;- add group id 1 to ep10&lt;/p&gt;
&lt;p&gt;- add group id 2 to ep10&lt;/p&gt;
&lt;p&gt;- add group id 2 to ep11&lt;/p&gt;
&lt;p&gt;- get group membership of ep10 (sending with group count 0 - means return all groups of the entity)&lt;/p&gt;
&lt;p&gt;-&amp;gt; ep10 has both groups as expected&lt;/p&gt;
&lt;p&gt;- get group membership of ep11 (sending with group count 0 - means return all groups of the entity)&lt;/p&gt;
&lt;p&gt;-&amp;gt; ep11 also has both groups!?? -&amp;gt; BUG!&lt;/p&gt;
&lt;p&gt;- remove the additinal shown group 1 from ep11&lt;/p&gt;
&lt;p&gt;-&amp;gt; ep11 says error that group 1 is not found (on this endpoint)&lt;/p&gt;
&lt;p&gt;- verify group membership with get group membership of ep11 (sending with group count 0 - means return all groups of the entity)&lt;/p&gt;
&lt;p&gt;-&amp;gt; still says both groups are present on this endpoint&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Groups_5F00_7a2cc0bb6504e93b7a55ff79d45569f0.pcapng"&gt;devzone.nordicsemi.com/.../Groups_5F00_7a2cc0bb6504e93b7a55ff79d45569f0.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/341030?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 10:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb6bd546-8144-40ba-af67-f21e18afc8ea</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Can you share&amp;nbsp;how you&amp;nbsp;are implementing this, especially how you add the endpoint to a group and how you send the get group membership command? Can you also get a sniffer log of when you send the get group membership command and upload it here as a pcap file?&lt;/p&gt;
&lt;p&gt;When I tested this myself, only the endpoint with a group membership sent a Get Group Membership Response command.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee Groups Handler Bug</title><link>https://devzone.nordicsemi.com/thread/340927?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 14:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35e1bf1c-4e2b-4100-ad6b-988dd7d1e57b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Alex&lt;/p&gt;
&lt;p&gt;We will look into this, and return to you by the end of Monday&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>