<?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 electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65199/zigbee-electrical-measurement-cluster---sending-data</link><description>Hello, I&amp;#39;m trying to send some payload via ELECTRICAL_MEASUREMENT cluster. The sending is realized in the similar way to the zigbee_light_switch example. I&amp;#39;m sending data to the broadcast addr: Where the macro is: After that I&amp;#39;m trying to find those data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Oct 2020 09:41:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65199/zigbee-electrical-measurement-cluster---sending-data" /><item><title>RE: Zigbee electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/thread/272920?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 09:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11bb96e1-2594-45f8-98ec-3c2a2b9d7792</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="kubavit123"]Open &amp;lt;proj_dir&amp;gt;/testing/zigbee_cli/config.yaml and update COM port (B) and eui64 with addr from 1.[/quote]
&lt;p&gt;I am a bit confused by your post. There is no Zigbee CLI example currently released for NCS so I am not sure where did you find this CLI example? Tomchy linked to the CLI example from the nRF5 SDK for Thread&amp;amp;Zigbee v4.1.0. I recommend you use this one since the example is still not available on NCS. It is possible to run the CLI example from the nRF5 SDK and run the light bulb on NCS and have both on the same network. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/thread/267860?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 13:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7fc4df-287b-4290-a8be-1135a9eda5a6</guid><dc:creator>jwitowski</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried the cli example but I occured some problems.&lt;br /&gt;Let me describe the whole procedure:&lt;br /&gt;&lt;br /&gt;1. Update &amp;lt;proj_dir&amp;gt;/nrf-thread-sdk/examples/zigbee/light_control/light_bulb/main.c with function to read device address just after &amp;#39;zb_set_long_address(ieee_addr);&amp;#39; call:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;zb_get_long_address(buf);

for(int i = 0 ; i &amp;lt; 8; i++)
{
    NRF_LOG_INFO(&amp;quot;MY ADDR: %X&amp;quot;, buf[i]);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2. Connect first nRF52-DK (A) make and flash it with &amp;lt;proj_dir&amp;gt;/nrf-thread-sdk/examples/zigbee/light_control/light_bulb/ hex file&lt;/p&gt;
&lt;p&gt;3. Connect second nRF52-DK (B) and flash it with cli example&lt;/p&gt;
&lt;p&gt;4. Open &amp;lt;proj_dir&amp;gt;/testing/zigbee_cli/config.yaml and update COM port (B) and eui64 with addr from 1.&lt;/p&gt;
&lt;p&gt;5. Run mqtt broker (mosquitto.exe)&lt;/p&gt;
&lt;p&gt;6. Run python3 cli.py&lt;/p&gt;
&lt;p&gt;7.&amp;nbsp; &amp;#39;Client started&amp;#39; occurs in the cli.py output and LED3 on (B) lights up.&lt;/p&gt;
&lt;p&gt;8. Type &amp;#39;mosquitto_pub -t home/light2/on_off/state -m 0&amp;#39;.&lt;/p&gt;
&lt;p&gt;9.&amp;nbsp; Notice that logs in the cli.py terminal occured:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cli.py: INFO: Message - Topic: home/light2/on_off/state ,Payload: b&amp;#39;0&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cli.py: INFO: CLI cmd send : EUI64=F4CE36CC34102197 EP=10 CLUSTER=0006 CMD=0000 RESP=True PAYLOAD=None&lt;/p&gt;
&lt;p&gt;PROBLEMS:&lt;/p&gt;
&lt;p&gt;- The LED on (A) - light bulb does not change its state&lt;br /&gt;- The sniffer doesn&amp;#39;t see any Zigbee traffic on channel 16&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suppose that there is still something i do wrong.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Jakub&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/thread/266916?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 09:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b6aeaf4-60f2-4711-b884-a55c15eebd2a</guid><dc:creator>tomchy</dc:creator><description>&lt;p&gt;That&amp;#39;s correct!&lt;br /&gt;In Zigbee the sensor data is stored as an attribute value. The other device may:&lt;br /&gt;- Query for the current value via the Read Attribute Request.&lt;br /&gt;- Subscribe to the attribute value changes via binding &amp;amp; configuring the reporting.&lt;/p&gt;
&lt;p&gt;There is a CLI example inside the SDK that is capable of doing both things.The sequence of commands, required to test the reporting can be found here:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_multi_sensor_example.html?cp=7_3_3_8_5_3_1#zigbee_multi_sensor_example_test"&gt;https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_multi_sensor_example.html?cp=7_3_3_8_5_3_1#zigbee_multi_sensor_example_test&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The command that you were asking should be sent in response to the Get Measurement Profile Info command.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Tomchy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/thread/266829?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 19:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f6c2bf6-f569-4818-b070-7a7b87a97361</guid><dc:creator>jwitowski</dc:creator><description>&lt;p&gt;Thanks a lot. I am doing something wrong for sure &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;. In the ZB_ZCL_ELECTRICAL_MEASUREMENT_SEND_GET_MEASUREMENT_PROFILE_INFO_RESP&amp;nbsp; there is no place for the measured value. So in my understanding I should do the following:&lt;br /&gt;&lt;br /&gt;1. Update the measured value &amp;quot;internally&amp;quot; by calling the ZB_ZCL_SET_ATTRIBUTE.&lt;br /&gt;2. Gateway should send me request with proper ID to get those measured data.&lt;br /&gt;3. The ZB stack will send the response automatically in the background with updated (in I-st step) parameters.&lt;br /&gt;&lt;br /&gt;Please correct me if I am wrong.&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Jakub&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/thread/266522?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 13:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ad6f9f-1e59-453b-9d07-e00df0c20e6a</guid><dc:creator>tomchy</dc:creator><description>&lt;p&gt;That might be a bit tricky - in the newest version of ZBOSS &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/3f51b79d3415604d31289ac85d04b152e5facf22/zboss/include/zcl/zb_zcl_el_measurement.h#L900"&gt;github.com/.../zb_zcl_el_measurement.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/thread/266520?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 13:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5135f7-91b2-47e3-8d96-a667a390b038</guid><dc:creator>jwitowski</dc:creator><description>&lt;p&gt;Thank You, where can I find the ZB_ZCL_ELECTRICAL_MEASUREMENT_SEND_GET_MEASUREMENT_PROFILE_INFO_RESP macro ? It seems not to be available in the sdk files ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee electrical measurement cluster - sending data</title><link>https://devzone.nordicsemi.com/thread/266511?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 13:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1fea7a7-3117-4c79-a3e5-015a65436a00</guid><dc:creator>tomchy</dc:creator><description>&lt;p&gt;Hello Jakub,&lt;br /&gt;Your packet is malformed, because it sends non-manufacturer specific command and the payload is not formatted according to the ZCL specification.&lt;/p&gt;
&lt;p&gt;Please describe which command you would like to send, find it inside the ZCL specification and append all required fields to the packet.&lt;/p&gt;
&lt;p&gt;The command &amp;quot;Get Measurement Profile Response&amp;quot; requires at least 5 fields and there is a macro to construct it correctly: ZB_ZCL_ELECTRICAL_MEASUREMENT_SEND_GET_MEASUREMENT_PROFILE_INFO_RESP.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Tomchy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>