Creating Bindings and Reporting entries using the EmberZNet CLI
12/362/2017 | 11:38 PM
This particular KBA works with:
Simplicity Studio Platform v4.1.14
Wireless Tools v4.25
EmberZNet stack v6.1.0
In this KBA our network will have two nodes where one node requests the other node to create a binding and report changes back to it.
After forming and joining our network we have two nodes: a coordinator (ZC), and a router (ZR). Here the coordinator will request the router to create a binding and report on that particular binding to the coordinator.
The ZC will send a ZDO Bind Request to the ZR using the following command.
zdo bind (args)
<int16u> Two byte destination node id
<int8u> Endpoint on the device where the binding table is being created
<int8u> Remote endpoint to bind to
<int16u> Cluster on which to bind
<string> Remote node EUI64
<string> Binding's dest EUI64. Usually the local node's EUI64
The ZC will send a Global ZCL Send Me a Report Command to the ZR using the following commands. First the ZCL Global command is constructed, and then sent via unicast.
zcl global send-me-a-report (args)
<int16u> Cluster id for requested report.
<int16u> Attribute for requested report.
<int8u> Two byte zigbee type value for the requested report
<int16u> Minimum number of seconds between reports.
<int16u> Maximum number of seconds between reports.
<string> Byte array. Amount of change to trigger a report.
CLI Example:
ZC> zcl global send-me-a-report 0x0006 0x0000 0x10 0 20 "0x0000"
send (args)
<int16u> Two byte destination node id
<int8u> Remote device's source endpoint to bind
<int8u> Remote endpoint to bind
CLI Example:
ZC> send 0x2834 1 1
Alternatively, this can also be done locally using the following commands on the router where we set the binding and reporting table entries.
ZR> option binding-table set
ZR> plugin reporting add
Creating Bindings and Reporting entries using the EmberZNet CLI
This particular KBA works with:
In this KBA our network will have two nodes where one node requests the other node to create a binding and report changes back to it.
After forming and joining our network we have two nodes: a coordinator (ZC), and a router (ZR). Here the coordinator will request the router to create a binding and report on that particular binding to the coordinator.
The ZC will send a ZDO Bind Request to the ZR using the following command.
CLI Example:
The ZC will send a Global ZCL Send Me a Report Command to the ZR using the following commands. First the ZCL Global command is constructed, and then sent via unicast.
CLI Example:
CLI Example:
Alternatively, this can also be done locally using the following commands on the router where we set the binding and reporting table entries.