Zigbee Bind Mechanism

本文详细介绍了ZigBee绑定机制的工作原理,包括属性、集群、端点等概念,以及绑定表的具体实现方式。重点阐述了设备间双向逻辑链接的建立过程,并解释了如何通过绑定请求和响应来维护绑定表。


                                                                                              

ZigBee Bind Mechanism

Beforewe talk about the ZigBee bind mechanism, we should to know some terms about ZigBee.  

Attribute: Thisis a data entity which represents a physical quantity or state.

Cluster: Thisis an application message, which may be a container for one or more attributes.

Endpoint: Thisis a particular component within a unit. Each ZigBee device may support up to240 such components.

Profile ID: anagreement by convention outside the scope of the ZigBee specification on a setof additional restrictions with respect to features declared optional by thespecification itself.

 

   Then, the introduce of bind in ZigBee SPECis like follows:

1TheAPS may maintain a binding table, which allows ZigBee devices to establishdesignated destination for frames from a given source endpoint and with a givencluster ID. Each designated destination shall represent either a specificendpoint on a specific device, or a group address.

2Thisis the creation of a unidirectional logical link between a sourceendpoint/cluster identifier pair and a destination endpoint, which may exist onone or more devices.

3Useunicast.

 

Thisis a demo of ZigBee bind, in the demo, Device 1’s end point 3(switch 1) is bindtogether with Device 2’s end point 5(lamp 1), end point 7(lamp 2), and endpoint 8(lamp 3).

Device1’s end point 21(switch 2) is bind with Device 2’s end point 17(lamp 4).

Thebind Mechanism Between device A and Device B is as follw:

Thedetail of step 3 is as follow:

Thendevice will build a bind table in it’s APS layer, And the Binding TableImplementation means

Adevice designated as containing a binding table shall be able to support abindingtable of implementation-specific length. The binding table shallimplement thefollowing mapping:

(as,es, cs) = {(ad1|, ed1|), (ad2|, ed2|) . (adn|, edn |)}

Thesemantics of this primitive are as follows:

Thebind’s mainly process is as follow:

  1. DeviceB issue a binding request to device A. The NWK dest address is A, And in therequest payload ,the Source address is A, the dest address is B.

  2. Thedevice A relay a bind response .

  3. Asave device B information to it’s binding table. But device B don’t save deviceA’s information to it’s binding table.

  4. Ifthe device A will send message to device B application.  If set address mode to 0x00 and set dest endpoint to specific values in the aps data request primitive.

  5. Thedevice A’s aps layer will search the binding table.

  6. Findout device B’s address, then unicast to device B.

  7. Aboutabove process, if the destination is a group address, step 6 will use multicastmode.

Theend device bind is a particular bind mechanism, the introduce of end device bindin ZigBee SPEC is as follows:

  1. Typicallybased on some user action like a button press. the destination address shall bethat of the ZigBee Coordinator.

  2. Whena Coordinator received an end device bind request, It need to do some checks, startoff a timer, save the info, and wait for the next end device bind request tocome in. ED bind request must come in pairs because two devices will be boundtogether.

  3. Unicast

It’srequest fr0ame is as follow:

BindingTargetis A 16-bit NWK address, the address of the target for the binding. This can beeither the primary binding cache device or the      short address of the local device.

ProfileIDis which is to be matched between two End_Device_Bind_req received at theZigBee Coordinator within the timeout value pre-configured in the ZigBeeCoordinator.

Theprocess of end device bind is like this :


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值