<?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 Re: How to know Event Update Generated by Scene or Level Control in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948825#M7538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on the cluster that you are requesting.&lt;/P&gt;&lt;P&gt;For example, if you set on/off to the level control cluster.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    &lt;SPAN class="comment token"&gt;/* Set up a callback to let the user know that an update event occurred */&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;u8EndPoint           &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; psEndPointDefinition&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;u8EndPointNumber&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;psClusterInstance    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; psClusterInstance&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pZPSevent            &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; NULL&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;eEventType           &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; E_ZCL_CBET_CLUSTER_UPDATE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    psEndPointDefinition&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;pCallBackFunctions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Previously, the routine found the cluster with the cluster instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2019 19:24:21 GMT</pubDate>
    <dc:creator>mario_castaneda</dc:creator>
    <dc:date>2019-08-26T19:24:21Z</dc:date>
    <item>
      <title>How to know Event Update Generated by Scene or Level Control</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948824#M7537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using JN5169 and SW4170&lt;/P&gt;&lt;P&gt;I have some confusion when handle event&amp;nbsp;E_ZCL_CBET_CLUSTER_UPDATE generated by Scene and Level Control.&lt;/P&gt;&lt;P&gt;Now in your SDK it is this event with both Scene and Level Control has the same parametter, so if i want to know what (Scene or Level Control) generate&amp;nbsp;&lt;SPAN&gt;event&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;E_ZCL_CBET_CLUSTER_UPDATE?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With&amp;nbsp;Level Control, in function eCLD_LevelControlUpdate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;...
if (bGenerateEvent == TRUE) {
/* Set up a callback to let the user know that an update event occurred */
sZCL_CallBackEvent.u8EndPoint = psEndPointDefinition-&amp;gt;u8EndPointNumber;
sZCL_CallBackEvent.psClusterInstance = psClusterInstance;
sZCL_CallBackEvent.pZPSevent = NULL;
sZCL_CallBackEvent.eEventType = E_ZCL_CBET_CLUSTER_UPDATE;

/* Call callback to let user know an update occurred */
psEndPointDefinition-&amp;gt;pCallBackFunctions(&amp;amp;sZCL_CallBackEvent);

#if (defined CLD_SCENES) &amp;amp;&amp;amp; (defined SCENES_SERVER)
vCLD_ScenesUpdateSceneValid( psEndPointDefinition);
#endif
}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With Scene update, in function eCLD_LevelControlSceneEventHandler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;...

case E_ZCL_SCENE_EVENT_RECALL:
...
    /* Inform the application that the cluster has just been updated */
    sZCL_CallBackEvent.u8EndPoint = psEndPointDefinition-&amp;gt;u8EndPointNumber;
    sZCL_CallBackEvent.psClusterInstance = psClusterInstance;
    sZCL_CallBackEvent.pZPSevent = NULL;
    sZCL_CallBackEvent.eEventType = E_ZCL_CBET_CLUSTER_UPDATE;

    // call user
    psEndPointDefinition-&amp;gt;pCallBackFunctions(&amp;amp;sZCL_CallBackEvent);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 18.2px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 04:28:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948824#M7537</guid>
      <dc:creator>trungkstn</dc:creator>
      <dc:date>2019-08-21T04:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to know Event Update Generated by Scene or Level Control</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948825#M7538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on the cluster that you are requesting.&lt;/P&gt;&lt;P&gt;For example, if you set on/off to the level control cluster.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    &lt;SPAN class="comment token"&gt;/* Set up a callback to let the user know that an update event occurred */&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;u8EndPoint           &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; psEndPointDefinition&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;u8EndPointNumber&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;psClusterInstance    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; psClusterInstance&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pZPSevent            &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; NULL&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;eEventType           &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; E_ZCL_CBET_CLUSTER_UPDATE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    psEndPointDefinition&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;pCallBackFunctions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;sZCL_CallBackEvent&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Previously, the routine found the cluster with the cluster instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2019 19:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948825#M7538</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-08-26T19:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to know Event Update Generated by Scene or Level Control</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948826#M7539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for replying. But I see your answer not meet my expectation. In my question, I want to know event E_ZCL_CBET_CLUSTER_UPDATE, for example with Level Control Cluster, generated by updating&amp;nbsp;&lt;STRONG&gt;Scene&lt;/STRONG&gt; (when run&amp;nbsp;eCLD_ScenesUpdate) or by updating &lt;STRONG&gt;Level&lt;/STRONG&gt; (when run&amp;nbsp;eCLD_LevelControlUpdate).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 02:37:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948826#M7539</guid>
      <dc:creator>trungkstn</dc:creator>
      <dc:date>2019-08-30T02:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to know Event Update Generated by Scene or Level Control</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948827#M7540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases, but it will depend on the command that you send.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eCLD_LevelControlUpdate - will update the Level.&lt;/P&gt;&lt;P&gt;eCLD_ScenesHandleStoreSceneRequest - Handles store scene request.&lt;/P&gt;&lt;P&gt;Each scene corresponds to a set of stored values of specified attributes for one or more clusters on the same endpoint as the scenes cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a better reference look at the&amp;nbsp;ZigBee Cluster Library Specification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 21:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-to-know-Event-Update-Generated-by-Scene-or-Level-Control/m-p/948827#M7540</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-08-30T21:20:19Z</dc:date>
    </item>
  </channel>
</rss>

