the direction of the binding problem : When using Zdp_enddevicereq () to bind, there are four parameters about the input and output clusters, if a-side output cluster can match the B-party input cluster, then the binding is successful, and the binding table is established in a-party (the party that owns the output cluster). Also, if the input cluster of a can match the output cluster of B. Then two-way success. A binding table is also created in B at this point. At this point A and B can control each other. However, if a has only an output cluster, and B has an input cluster. Then the binding can only be understood as a one-way success. Is that a can control B, and in turn B cannot control a.
Binding Application: The following is the use of binding tables to send and receive data,
Zclsamplesw_dstaddr.addrmode = (afaddrmode_t) addrnotpresent;
Zclsamplesw_dstaddr.endpoint = 0;
zclSampleSw_DstAddr.addr.shortAddr = 0;
Zdp_matchdescreq is used to find out if there's a match.
Zdp_enddevicebindreq is finding a match and then going to bind the
---restore content ends---
Bindings and matching in ZigBee