Home/Support/Support Forum/How to send a ZCL command to a device or gateway via DigiCloud
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to send a ZCL command to a device or gateway via DigiCloud

0 votes
I'd like to send commands to a device (e.g. SafePlug) but I cannot find how to do it in the programming guide.

The commands I want to execute are
- read_attributes
- send_ZCL
- start_reports
- stop_reports
- etc.

I can execute above commands in the debug console (https://digi-se.appspot.com) but I don't know how to do it via Device Cloud web service.

If you have any idea about this, please let me know. Thanks!
asked Oct 30, 2014 in Web Services by wongni New to the Community (2 points)

Please log in or register to answer this question.

1 Answer

0 votes
From the API Explorer, you can get read attributes with the following syntax with the following showing the meter reading attribute:

/ws/DataPoint/se/attr/00000000-00000000-00409DFF-FFXXXXXX/00:11:22:33:44:55:66:77/1/0/1794/0?


You would fill in your Device ID and the EUI 64 address for the end node.

ZCL example from API Explorer path /ws/sci:

<sci_request version="1.0">
<send_message>
<targets>
<device id="00000000-00000000-00409DFF-FFXXXXXX" />
</targets>
<rci_request version="1.1">
<do_command target="RPC_request">
<send_ZCL synchronous="true">
<destination_address type="MAC">00:11:22:33:44:55:66:77</destination_address>
<source_endpoint_id>0x5E</source_endpoint_id>
<destination_endpoint_id>0x10</destination_endpoint_id>
<cluster_id>0x0003</cluster_id>
<server_or_client>0</server_or_client>
<disable_default_response type="bool">false</disable_default_response>
<command_identifier>0x00</command_identifier>
<command_type>1</command_type>
<payload type="base16">1E00</payload>
</send_ZCL>
</do_command>
</rci_request>
</send_message>
</sci_request>

Reporting example can be found here, along with other useful examples for Smart Energy:

http://ftp1.digi.com/support/documentation/90001195_C.pdf
answered Oct 31, 2014 by userid0 Veteran of the Digi Community (2,158 points)
...