<?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>Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62014/can-i-receive-a-device-generated-command-at-the-zigbee-cli-agent</link><description>I can send a command to a custom cluster through the Zigbee CLI, which is installed and running as a Coordinator on a nrf52840 dongle. 
 
 However, I must respond to commands with server generated commands. Can I receive those commands at the Zigbee CLI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jun 2020 08:31:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62014/can-i-receive-a-device-generated-command-at-the-zigbee-cli-agent" /><item><title>RE: Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/thread/253198?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 08:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6daadf69-eb40-40c3-be82-b029c8770c28</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am not sure I understand.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 TX: zcl cmd F4CE36E7389B99B0 10 F16F -p 0104 20
communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 RX:  
communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 RX: zcl cmd F4CE36E7389B99B0 10 F16F -p 0104 20
communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 RX: Done&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;These prints are from your python scripts, right? Can you see where they are printed? Can you use these events for anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/thread/253182?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 07:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08441933-d4e9-45c9-ae36-7615e7daa432</guid><dc:creator>francisco.colaco</dc:creator><description>&lt;p&gt;I cannot use, since what I receive is the default response to the command the python application sent.&amp;nbsp; There is no acknowledgment or impression of any command that is generated by the device.&lt;/p&gt;
&lt;p&gt;So I must conclude the answer is a resounding &amp;quot;no, you cannot see any device generated commands&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks for your attention.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/thread/253161?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 06:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da8536d-aa6e-4614-8535-7ee2cd321e84</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Arent those prints printed from the python script? Can you use those events to do what you want?&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t used the zigbee python scripts. Which one are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/thread/253050?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 13:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4c8144a-6dc8-4515-bb41-d8d7453606ab</guid><dc:creator>francisco.colaco</dc:creator><description>&lt;p&gt;The problem is that I receive a default response, but not the command I send.&amp;nbsp; Thus when I send a command from the coordinator through the script, I get the following transaction:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 TX: zcl cmd F4CE36E7389B99B0 10 F16F -p 0104 20 &lt;br /&gt;communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 RX: &amp;nbsp;&lt;br /&gt;communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 RX: zcl cmd F4CE36E7389B99B0 10 F16F -p 0104 20 &lt;br /&gt;communicator.py: DEBUG: CLI::UartConn: /dev/ttyACM0@115200 RX: Done&lt;/p&gt;
&lt;p&gt;Now, there is a response command sent from the end device (so server generated), which I see with a sniffer on Wireshark.&amp;nbsp; Can I read that server-generated command with the nordic CLI and have it available on a python script, at the PC side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/thread/252991?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 12:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62f827ec-5ec2-4687-9208-ef3d8a034a7f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So you are using the CLI example from the SDK? You can look for the callbacks that print the reply from the commands, and try to add your custom function there, perhaps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/thread/252822?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 16:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741e80e0-19f0-4fad-86ff-1693706687c3</guid><dc:creator>francisco.colaco</dc:creator><description>&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I would like is to receive commands originated from the devices (server generated).&amp;nbsp; Ideally the arrival of messages should trigger some sort of callback.&amp;nbsp; But having to poll the stream will do, nonetheless.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Nordic has done a fantastic job creating the Zigbee python API, but I could not find any way to receive and process commands originated from the devices.&amp;nbsp; I have seen the commands originated from the device in wireshark, using a Bluetooth sniffer module, and would like a simple way to build a coordinator that doubles as a gateway to the Internet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I receive a device-generated command at the Zigbee CLI Agent?</title><link>https://devzone.nordicsemi.com/thread/252745?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 12:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92504fc3-688e-43e2-9d85-b9bc411b972d</guid><dc:creator>Edvin</dc:creator><description>[quote user=""]Can I receive those commands at the Zigbee CLI asynchronously?[/quote]
&lt;p&gt;&amp;nbsp;Do you mean that you want to &amp;quot;auto-respond&amp;quot; with some sort of function within the CLI example?&lt;/p&gt;
&lt;p&gt;And what do you mean by: &amp;quot;to which endpoint and cluster must I direct the commands&amp;quot;? I guess your custom cluster would need an endpoint which you can write to in order to send a response back to the device, or is that not what you mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>