Node Information Frame
qq:380939960
在gateway上层应用程序中,可能我们会想知道某个节点支持哪些功能?例如是否支持user code?是否支持schedule?等等。通过Node Information Frame我们可以获得相关信息。
The Node InformationFrame (NIF) is used to inform other devices about node capabilities. The NIFcontains a structure with a protocol specific part that is handled by theZ-Wave protocol and an application specific part that is filled in by theapplication. The protocol specific part consists of a bit telling if the nodeis a continuously listening device, the Basic Device Class the device is basedon etc. The application specific part consists of the Generic and SpecificDevice Class and the Command Classes that are supported and/or controlled bythe device.
Zwave设备通过NIF来告知其他设备它自己所支持的功能。NIF中包含由Z-Wave协议栈来处理的protocol specific part,以及由上层应用处理的application specific part;protocol specific part中使用一个bit来说明zwave设备是否可以处于持续无线监听状态(通常都是AC供电的),这样的节点可以由于一直在线,所以可以实时控制,实时获取它的状态;同样它也给出这个设备属于哪个Basic Device Class;application specific part部分包含设备的Generic and Specific Device Class,以及这个设备自己可以支持或者控制的命令类。
A NIF will be sentto the controller when a node is to be included in the network, excluded fromthe network or upon request.
当设备被添加/删除/或者被主动请求NIF时,它会发送NIF给Z-Wave网络中的controller。
The figure belowshows the parameters hosted by NIF. 下图是NIF帧的具体描述
Byte descriptor \ bit number |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Capability |
Liste- ning |
Z-Wave Protocol Specific Part |
||||||
Security |
Opt. Func. |
Z-Wave Protocol Specific Part |
||||||
Reserved |
Z-Wave Protocol Specific Part |
|||||||
Basic *) |
Basic Device Class (Z-Wave Protocol Specific Part) |
|||||||
Generic |
Generic Device Class |
|||||||
Specific |
Specific Device Class |
|||||||
NodeInfo[0] |
Command Class 1 |
|||||||
… |
… |
|||||||
NodeInfo[n-1] |
Command Class n |
The Z-WaveProtocol in a c