<?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>Wireless MCUのトピックRe: Manufacturer Specific Attributes</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Manufacturer-Specific-Attributes/m-p/1154922#M10159</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I hope you are doing great.&lt;/P&gt;
&lt;P&gt;What is the AN that you are adding the&amp;nbsp;&lt;SPAN class="lia-link-navigation lia-link-disabled"&gt;Manufacturer Specific Attributes&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the code that you are assigning to the&amp;nbsp;&lt;SPAN&gt;CLD_ONOFF_ATTR_MAN_SPEC_CONFIG?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you try to read out the attribute value?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mario&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 15:41:11 GMT</pubDate>
    <dc:creator>mario_castaneda</dc:creator>
    <dc:date>2020-09-17T15:41:11Z</dc:date>
    <item>
      <title>Manufacturer Specific Attributes</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Manufacturer-Specific-Attributes/m-p/1150983#M10130</link>
      <description>&lt;P&gt;Good day!&lt;BR /&gt;&lt;BR /&gt;I have implemented some manufacturer specific attributes according to:&lt;BR /&gt;ZigBee Cluster Library (for ZigBee 3.0) User Guide / Appenix E.1&lt;BR /&gt;&lt;BR /&gt;I am attempting to add a configuration variable in the OnOff cluster that will modify OnOff behaviours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zcl_options.h&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;#define CLD_ONOFF_ATTR_MAN_SPEC // "enable manufacturer specific attribute(s)&lt;BR /&gt;#define CLD_ONOFF_ATTR_MAN_SPEC_CONFIG&lt;BR /&gt;#define E_CLD_ONOFF_ATTR_ID_MAN_SPEC_CONFIG 0x10 // attribute ID&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;OnOff.h&lt;BR /&gt;&lt;BR /&gt;/* On/Off Cluster */&lt;BR /&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt;...&lt;BR /&gt;#ifdef CLD_ONOFF_ATTR_MAN_SPEC_CONFIG&lt;BR /&gt;&amp;nbsp; &amp;nbsp;zuint16 u16Config;&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;} tsCLD_OnOff;&lt;BR /&gt;&lt;BR /&gt;OnOff.c&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;const tsZCL_AttributeDefinition asCLD_OnOffClusterAttributeDefinitions[] = {&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#ifdef CLD_ONOFF_ATTR_MAN_SPEC_CONFIG&lt;BR /&gt;{E_CLD_ONOFF_ATTR_ID_MAN_SPEC_CONFIG, (E_ZCL_AF_RD|E_ZCL_AF_WR|E_ZCL_AF_MS), E_ZCL_UINT16, (uint32)(&amp;amp;((tsCLD_OnOff*)(0))-&amp;gt;u16Config),0},&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;app_zcl_task.c&lt;BR /&gt;&lt;BR /&gt;PRIVATE void APP_vZCL_DeviceSpecific_Init( uint8_t type )&lt;BR /&gt;{&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;#ifdef CLD_ONOFF_ATTR_MAN_SPEC_CONFIG&lt;BR /&gt;&amp;nbsp; sBaseDevice.sOnOffServerCluster.u16Config = 0x00;&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;When I attempt to write a value of 0x03 to Attribute 0x10 of Cluster 0x0006, I see the following error(s):&lt;BR /&gt;&lt;BR /&gt;BDB: APP_vGenCallback [1 1] Pass to ZCL&lt;BR /&gt;ZCL_Task endpoint event:1 WRITE Individual attribute for Cluster = 6&lt;BR /&gt;AttributeDataType = 255 u16AttributeEnum = 16 eAttributeStatus = 134&lt;BR /&gt;EP EVT: Write Individual Attribute Status 00&lt;BR /&gt;EP EVT: Write Attributes&lt;BR /&gt;&lt;BR /&gt;AttributeDataType = 255 - is unknown (should be uint16 / 0x21)&lt;BR /&gt;u16AttributeEnum = 16 / 0x10 - correct&lt;BR /&gt;eAttributeStatus = 134 / 0x86 -&amp;nbsp;E_ZCL_CMDS_UNSUPPORTED_ATTRIBUTE&lt;BR /&gt;&lt;BR /&gt;I'm not sure where I've gone wrong.&lt;BR /&gt;&lt;BR /&gt;Appendix E.1.4 states:&lt;BR /&gt;&lt;BR /&gt;"Add the new attribute to the source (.c) file for the cluster, being careful to add the attribute in the correct sequential position" ...&lt;BR /&gt;&lt;BR /&gt;This is unclear to me.&amp;nbsp; I've positioned it directly after the mandatory attributes (OFF/ON/TOGGLE) and chose 0x10 as it's &amp;gt; 2 &amp;lt; 0x40 (E_CLD_ONOFF_CMD_OFF_EFFECT) ...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Attached are grabs of the command and reply from wireshark.&lt;BR /&gt;&lt;BR /&gt;Best regards, and thank you in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 09:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Manufacturer-Specific-Attributes/m-p/1150983#M10130</guid>
      <dc:creator>cj_veeneman</dc:creator>
      <dc:date>2020-09-09T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Manufacturer Specific Attributes</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Manufacturer-Specific-Attributes/m-p/1154922#M10159</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I hope you are doing great.&lt;/P&gt;
&lt;P&gt;What is the AN that you are adding the&amp;nbsp;&lt;SPAN class="lia-link-navigation lia-link-disabled"&gt;Manufacturer Specific Attributes&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the code that you are assigning to the&amp;nbsp;&lt;SPAN&gt;CLD_ONOFF_ATTR_MAN_SPEC_CONFIG?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you try to read out the attribute value?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mario&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 15:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Manufacturer-Specific-Attributes/m-p/1154922#M10159</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2020-09-17T15:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Manufacturer Specific Attributes</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Manufacturer-Specific-Attributes/m-p/1156891#M10172</link>
      <description>&lt;P&gt;Hello Mario, thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;I am using AN-1217 v1005.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CLD_ONOFF_ATTR_MAN_SPEC_CONFIG ==&amp;nbsp;0x4004&amp;nbsp; (I changed it from 0x10)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Turns out the fault was with the output cluster (client) on the remote end.&amp;nbsp; I had noticed that the manufacturer specific bit was not set and by adding the manufacturer code to the client side I was able to get it working.&amp;nbsp; My implementation was correct all along.&lt;BR /&gt;(what a headache)&amp;nbsp; But thanks for your reply, I it prompted me to look elsewhere.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 11:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Manufacturer-Specific-Attributes/m-p/1156891#M10172</guid>
      <dc:creator>cj_veeneman</dc:creator>
      <dc:date>2020-09-22T11:31:19Z</dc:date>
    </item>
  </channel>
</rss>

