您的位置:首页 > 其它

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.

 

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ZWAVE alarm
相关文章推荐