• Nenhum resultado encontrado

Node power descriptor

No documento ZigBee Specification (páginas 71-75)

APS IB

1.3 The ZigBee application framework

1.3.3 ZigBee descriptors

1.3.3.5 Node power descriptor

The node power descriptor gives a dynamic indication of the power status of the node and is mandatory for each node. There shall be only one node power descriptor in a node.

The fields of the node power descriptor are shown in Table 24 in the order of their transmission.

1.3.3.5.1 Current power mode field

The current power mode field of the node power descriptor is four bits in length and specifies the current sleep/power-saving mode of the node. The current power mode field shall be set to one of the non-reserved values listed in Table 25.

Table 24 Fields of the node power descriptor Field name Length (bits)

Current power mode 4

Available power sources 4

Current power source 4

Current power source level 4

Table 25 Values of the current power mode field Current power mode value

b3b2b1b0 Description

0000 Receiver synchronized with the receiver on when idle sub-field of the node descriptor.

0001 Receiver comes on periodically as defined by the node power descriptor.

0010 Receiver comes on when stimulated, e.g. by a user pressing a but-ton.

0011-1111 Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

1.3.3.5.2 Available power sources field

The available power sources field of the node power descriptor is four bits in length and specifies the power sources available on this node. For each power source supported on this node, the corresponding bit of the available power sources field, as listed in Table 26, shall be set to 1. All other bits shall be set to 0.

1.3.3.5.3 Current power source field

The current power source field of the node power descriptor is four bits in length and specifies the current power source being utilized by the node. For the current power source selected, the corresponding bit of the current power source field, as listed in Table 27, shall be set to 1. All other bits shall be set to 0.

1.3.3.5.4 Current power source level field

The current power source level field of the node power descriptor is four bits in length and specifies the level of charge of the power source. The current power source level field shall be set to one of the non-reserved values listed in Table 28.

Table 26 Values of the available power sources field Available power sources

field bit number Supported power source

0 Constant (mains) power

1 Rechargeable battery

2 Disposable battery

3 Reserved

Table 27 Values of the current power sources field Current power source

field bit number Current power source

0 Constant (mains) power

1 Rechargeable battery

2 Disposable battery

3 Reserved

Table 28 Values of the current power source level field Current power source

level field b3b2b1b0 Charge level

0000 Critical

0100 33%

1000 66%

1100 100%

All other values Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 1.3.3.6 Simple descriptor

The simple descriptor contains information specific to each endpoint contained in this node. The simple descriptor is mandatory for each endpoint present in the node.

The fields of the simple descriptor are shown in Table 29 in their order of transmission. As this descriptor needs to be transmitted over air, the overall length of the simple descriptor shall be less than or equal to maxCommandSize.

1.3.3.6.1 Endpoint field

The endpoint field of the simple descriptor is eight bits in length and specifies the endpoint within the node to which this description refers. Applications shall only use endpoints 1-240.

1.3.3.6.2 Application profile identifier field

The application profile identifier field of the simple descriptor is sixteen bits in length and specifies the profile that is supported on this endpoint. Profile identifiers shall be obtained from the ZigBee Alliance.

1.3.3.6.3 Application device identifier field

The application device identifier field of the simple descriptor is sixteen bits in length and specifies the device description supported on this endpoint. Device description identifiers shall be obtained from the ZigBee Alliance.

Table 29 Fields of the simple descriptor

Field name Length (bits)

Endpoint 8

Application profile identifier 16

Application device identifier 16

Application device version 4

Application flags 4

Application input cluster count 8

Application input cluster list 8*i (where i is the value of the application input cluster count)

Application output cluster count 8

Application output cluster list 8*o (where o is the value of the applica-tion input cluster count)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

1.3.3.6.4 Application device version field

The application device version field of the simple descriptor is four bits in length and specifies the version of the device description supported on this endpoint. The application device version field shall be set to one of the non-reserved values listed in Table 30.

1.3.3.6.5 Application flags field

The application flags field of the simple descriptor is four bits in length and specifies application specific flags. For each feature supported by the application on this endpoint, the corresponding bit of the application flags field, as listed in Table 31, shall be set to 1. All other bits shall be set to 0.

1.3.3.6.6 Application input cluster count field

The application input cluster count field of the simple descriptor is eight bits in length and specifies the number of input clusters, supported on this endpoint, that will appear in the application input cluster list field. If the value of this field is zero, the application input cluster list field shall not be included.

1.3.3.6.7 Application input cluster list

The application input cluster list of the simple descriptor is 8*i bits in length, where i is the value of the application input cluster count field, and specifies the list of input clusters supported on this endpoint, used during the binding procedure.

The application input cluster list field shall be included only if the value of the application input cluster count field is greater than zero.

1.3.3.6.8 Application output cluster count field

The application output cluster count field of the simple descriptor is eight bits in length and specifies the number of output clusters, supported on this endpoint, that will appear in the application output cluster list field. If the value of this field is zero, the application output cluster list field shall not be included.

1.3.3.6.9 Application output cluster list

The application output cluster list of the simple descriptor is 8*o bits in length, where o is the value of the application output cluster count field, and specifies the list of output clusters supported on this endpoint, used during the binding procedure.

Table 30 Values of the application device version field Application device version value

b3b2b1b0 Description

0000 Version 1.0

0001–1111 Reserved

Table 31 Values of the application flags field Application flags

field bit number Supported feature 0 Complex descriptor available 1 User descriptor available

2-3 Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 The application output cluster list field shall be included only if the value of the application output cluster

count field is greater than zero.

No documento ZigBee Specification (páginas 71-75)