1.3 The ZigBee application framework Jae Shin Lee
Contents Creating a ZigBee profile Standard data type formats Zigbee descriptors AF frame formats KVP command frames Functional description Q & A
1.3.1 Creating a ZigBee profile Getting a profile identifier from the ZigBee Alliance Device descriptions Cluster identifiers Service types (KVP or MSG) Defining device descriptions and clusters Profile identifier - 16 bit Cluster identifier – 8 bit Attributes – 16 bit (KVP case)
1.3.1 Creating a ZigBee profile (cont) Deploying the profile on endpoints Device – the entire device is supported by a single radio with a unique IEEE and NWK address. Endpoints – 8 bit field that describes different applications that are supported by a single radio. - 0x00 is used to address the device profile - 0xff is used to address all active endpoints - 0xf1~0xfe are reserved - 0x01~0xf0 are used for 240 applications
1.3.1 Creating a ZigBee profile (cont)
Enabling service discovery Mixing standard and proprietary profiles Enabling backward compatibility
1.3.2 Standard data type formats 0000 – No data (Length 0) 0001 – Unsigned 8 bit integer (Length 1) 0010 – Signed 8 bit integer (Length 1) 0011 – Unsigned 16 bit integer (Length 2) 0100 – Signed 16 bit integer (Length 2) 0101 ~1010 – Reserved 1011 – Semi-precision (Length 2) 1100 – Absolute time (Length 4) 1101 – Relative time (Length 4) 1110 – Character string (Defined in first octet) 1111 – Octet string (Defined in first octet)
1.3.2 Standard data type formats (cont) 1011 – Semi-precision (Length 2) 1100 – Absolute time (Length 4) 1101 – Relative time (Length 4)
1.3.2 Standard data type formats (cont) 1110 – Character string (Defined in first octet) 1111 – Octet string (Defined in first octet)
1.3.3 ZigBee descriptors
1.3.3 ZigBee descriptors (cont) transmission of descriptors Discovery via descriptors Composite devices
1.3.3 ZigBee descriptors (cont) Node descriptor
1.3.3 ZigBee descriptors (cont) Logical type field APS flags field (not supported)
1.3.3 ZigBee descriptors (cont) Frequency band field
1.3.3 ZigBee descriptors (cont) MAC capability flags filed
1.3.3 ZigBee descriptors (cont) Manufacturer code field Allocated by the ZigBee Alliance Maximum buffer size field Maximum size of data or commands passed to or from the application by the application support sub-layer Maximum transfer size field This value can exceed the value of the node maximum buffer size field
1.3.3 ZigBee descriptors (cont) Node power descriptor
1.3.3 ZigBee descriptors (cont) Current power mode field
1.3.3 ZigBee descriptors (cont) Available power sources field
1.3.3 ZigBee descriptors (cont) Current power source
1.3.3 ZigBee descriptors (cont) Current power source level field
1.3.3 ZigBee descriptors (cont) Simple descriptor
1.3.3 ZigBee descriptors (cont) Endpoint field Application profile identifier field Application device identifier field
1.3.3 ZigBee descriptors (cont) Application device version field
1.3.3 ZigBee descriptors (cont) Application flags field
1.3.3 ZigBee descriptors (cont) Application input cluster count field Application input cluster list Application output cluster count field Application output cluster list
1.3.3 ZigBee descriptors (cont) Complex Descripor
1.3.3 ZigBee descriptors (cont) Language and character set field
1.3.3 ZigBee descriptors (cont) Manufacturer name field Model name field Serial number field Device URL field Icon field Icon URL field
1.3.3 ZigBee descriptors (cont) User descripor
1.3.4 AF frame formats
1.3.4 AF frame formats (cont) Transaction count field Number of transactions Frame type field
1.3.4 AF frame formats (cont) transaction sequence number field transaction data field KVP – MSG – Format of individual frame types KVP – Key Value Pair MSG - message
1.3.4 AF frame formats (cont) Key value pair (KVP) frame format
1.3.4 AF frame formats (cont) Command type identifier field
1.3.4 AF frame formats (cont) Attribute data type field (table 19) Attribute identifier field (16 bit) Error code field Attribute data field
1.3.4 AF frame formats (cont) MSG frame format
1.3.4 AF frame formats (cont) Transaction length field Transaction data field
1.3.5 KVP command frames Get with acknowledgement command frame
1.3.5 KVP command frames (cont) Get response command frame
1.3.5 KVP command frames (cont) set with acknowledgement command frame
1.3.5 KVP command frames (cont) Set response command frame
1.3.5 KVP command frames (cont) Event with acknowledgement
1.3.5 KVP command frames (cont) Event response command frame
1.3.6 Functional description Aggregate transactions Reception and rejection
Question END Q & A