ZWAVE通过Alarm TypeSupported Get Command获得设备支持的告警类型
2016-11-21 12:28
459 查看
Alarm TypeSupported Get Command
qq:380939960
The Alarm TypeSupported Get Command is used to request the supported alarm types. 对于ZWAVE gateway编程人员来说,有时候可能想知道某个ZWAVE设备支持哪些类型的告警,此时可以通过下发Alarm Type Supported Get Command命令给设备来获得查询结果。
The Alarm TypeSupported Report Command MUST be returned in response to an Alarm TypeSupported Get command.
This command MUSTNOT be issued via multicast addressing. A receiving node MUST NOT return aresponse if this command is received via multicast addressing. The Z-WaveMulticast frame, the broadcast NodeID and the Multi Channel multi-End Pointdestination are
all considered multicast addressing methods.
Alarm TypeSupported Report Command
The Alarm TypeSupported Report Command used to advertise the supported alarm types in theapplication.
ZWAVE设备通过这个命令上报给感兴趣的节点:自己支持的告警类型;
V1 Alarm (1 bit)
0 = the deviceimplements only Notification CC V2 (or newer) Notification Type(s). 告知自己只支持Notification Command Class V2版本(应该也就是Alarm Command Class V2)或者以上版本的Notification Type。
1 = the deviceimplements Notification CC V2 Notification Types as well as proprietary AlarmCC V1 Alarm Types and Alarm Levels. 支持Notification Command Class V2版本也支持Alarm Command Class V1中的告警类型。
Reserved
This field MUST beset to 0 by a sending node and MUST be ignored by a receiving node.
Number of BitMasks (5 bits)
Indicates the Numberof Bit Masks fields used in bytes.
Bit Mask (NBytes)
The Bit Maskfields describe the supported Z-Wave Alarm Types by the device.
按照联盟给出的告警类型(Notification Type)值进行Bit Mask。
l Bit 0 in Bit Mask 1 is not allocated to any Z-Wave AlarmType and MUST therefore be set to zero.
l Bit 1 in Bit Mask 1 indicates if Z-Wave Alarm Type = 1(Smoke) is supported.
l Bit 2 in Bit Mask 1 indicates if Z-Wave Alarm Type = 2(CO) is supported.
l Bit 3 in Bit Mask 1 indicates if Z-Wave Alarm Type = 3(CO2) is supported
…
If the Z-Wave Alarm Typeis supported the corresponding bit MUST be set to 1. If the Z-Wave Alarm Typeis not supported the corresponding bit MUST be set to 0.
Z-Wave Alarm Type = 0xFF(Return first Alarm on supported list) MUST NOT be advertised in the Bit Masks.
The number of Bit Maskfields MUST match the value advertised in the Number of Bit Masks field.
Note that the mapping of bit 1 to Alarm Type=1 differs from the support mapping used by the Multilevel Sensor CommandClass. The Multilevel Sensor Command Class maps bit 0 to Sensor Type = 1.
qq:380939960
The Alarm TypeSupported Get Command is used to request the supported alarm types. 对于ZWAVE gateway编程人员来说,有时候可能想知道某个ZWAVE设备支持哪些类型的告警,此时可以通过下发Alarm Type Supported Get Command命令给设备来获得查询结果。
The Alarm TypeSupported Report Command MUST be returned in response to an Alarm TypeSupported Get command.
This command MUSTNOT be issued via multicast addressing. A receiving node MUST NOT return aresponse if this command is received via multicast addressing. The Z-WaveMulticast frame, the broadcast NodeID and the Multi Channel multi-End Pointdestination are
all considered multicast addressing methods.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Command Class = COMMAND_CLASS_ALARM | |||||||
Command = ALARM_TYPE_SUPPORTED_GET |
Alarm TypeSupported Report Command
The Alarm TypeSupported Report Command used to advertise the supported alarm types in theapplication.
ZWAVE设备通过这个命令上报给感兴趣的节点:自己支持的告警类型;
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Command Class = COMMAND_CLASS_ALARM | |||||||
Command = ALARM_TYPE_SUPPORTED_REPORT | |||||||
V1 Alarm | Reserved | Number of Bit Masks | |||||
Bit Mask 1 | |||||||
... | |||||||
Bit Mask N |
V1 Alarm (1 bit)
0 = the deviceimplements only Notification CC V2 (or newer) Notification Type(s). 告知自己只支持Notification Command Class V2版本(应该也就是Alarm Command Class V2)或者以上版本的Notification Type。
1 = the deviceimplements Notification CC V2 Notification Types as well as proprietary AlarmCC V1 Alarm Types and Alarm Levels. 支持Notification Command Class V2版本也支持Alarm Command Class V1中的告警类型。
Reserved
This field MUST beset to 0 by a sending node and MUST be ignored by a receiving node.
Number of BitMasks (5 bits)
Indicates the Numberof Bit Masks fields used in bytes.
Bit Mask (NBytes)
The Bit Maskfields describe the supported Z-Wave Alarm Types by the device.
按照联盟给出的告警类型(Notification Type)值进行Bit Mask。
l Bit 0 in Bit Mask 1 is not allocated to any Z-Wave AlarmType and MUST therefore be set to zero.
l Bit 1 in Bit Mask 1 indicates if Z-Wave Alarm Type = 1(Smoke) is supported.
l Bit 2 in Bit Mask 1 indicates if Z-Wave Alarm Type = 2(CO) is supported.
l Bit 3 in Bit Mask 1 indicates if Z-Wave Alarm Type = 3(CO2) is supported
…
If the Z-Wave Alarm Typeis supported the corresponding bit MUST be set to 1. If the Z-Wave Alarm Typeis not supported the corresponding bit MUST be set to 0.
Z-Wave Alarm Type = 0xFF(Return first Alarm on supported list) MUST NOT be advertised in the Bit Masks.
The number of Bit Maskfields MUST match the value advertised in the Number of Bit Masks field.
Note that the mapping of bit 1 to Alarm Type=1 differs from the support mapping used by the Multilevel Sensor CommandClass. The Multilevel Sensor Command Class maps bit 0 to Sensor Type = 1.
相关文章推荐
- Alarm Set Command控制设备是否上报某个类型的告警
- How to get camped network type name - Android应用如何获得Phone当前注册的网络类型
- 通过lwjgl获得显示设备当前分辨率、可支持分辨率列表
- WindowsAPI详解——GetDriveType 获得逻辑驱动器的类型
- 通过封装编写Book类。要求:类具有私有属性书名title、页数pageNum、类型type(默认为计算机类),并为这三个属性分别编写set和get方法。其中,页数不能少于200页,否则输出错误信息,
- WindowsAPI详解——GetDriveType 获得逻辑驱动器的类型
- AFNetworking 获得header头部的信息 以及添加Content-Type支持的类型
- 父类通过泛型获得子类Class类型 以及Type体系
- 在 Android 通过 get_event 获得 input 设备 上报event
- windows phone 7获得当前使用网络类型(设备是否通过zune与PC相连)
- 通过IP获得ACE_SOCK_Dgram_Mcast需要的net_if网络设备名
- 黑莓浏览器通过BES服务器访问Tomcat服务器上的Word文档,报错,不支持的媒体类型:application/vnd.ms-wsworld
- the Project type is not supported by installation 项目类型不能正确加载
- 无法通过给定的扩展名确定设备类型
- 【原创】C#两种任意类型转换支持(示例:String convert to Type)
- 通过反射获得泛型的参数化类型
- [转]利用IoBuildDeviceIoControlRequest构造irp获得存储设备总线类型源代码
- C#中通过Type类访问数据类型信息
- Type通过类型调用拷贝构造函数构建对象(反射)
- TypeList 之TypeAt 通过索引查找TypeList的类型