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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章