ZWAVE通过Alarm TypeSupported Get Command获得设备支持的告警类型

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值