ZigBee HA框架学习笔记之DeviceID针对智能家居相关产品的开发

IEEE先有标准,ZigBee alliance在此基础上建立了zigbee协议,TI 的Zstack 是一种具体的实现

在Z-Stack 2.5.1a以后按照Application Profile的方式来发布了,

主要包括两部分,

1)核心协议栈Core Stack

2)应用协议栈 Profile,这部分主要跟实际应用相关的,Home Automation 协议栈里都是ZigBee Home Automation Profile相关的实现。Z-Stack Lghting 和Z-Stack Energy 也是一个Core Stack再加上应用上的Profile。

1)Z-Stack Home 1.2.1 针对智能家居相关产品的开发

2)Z-Stack Lighting 1.0.2 针对ZLL相关产品的开发

3)Z-Stack Energy 1.0.1 针对智能能源,Meter, In Home Display, 等相关产品的开发

4)Z-Stack Mesh 1.0.0 针对相关私有应用的产品的开发,只利用标准ZigBee协议相关功能, Mesh路由等,应用层有开发者自己定义。

这里我们主要看一下Z-Stack Home在HA中支持的 Device ID

ZigBee HA框架学习笔记之DeviceID针对智能家居相关产品的开发_第1张图片
以上是智能家居通用设备的ID
ZigBee HA框架学习笔记之DeviceID针对智能家居相关产品的开发_第2张图片
ZigBee HA框架学习笔记之DeviceID针对智能家居相关产品的开发_第3张图片
Device ID 在zstatck 代码中的定义
在 zstack ha中,Device ID定义在 zcl_ha.h 中, 摘抄定义如下:
// Generic Device IDs
#define ZCL_HA_DEVICEID_ON_OFF_SWITCH 0x0000
#define ZCL_HA_DEVICEID_LEVEL_CONTROL_SWITCH 0x0001
#define ZCL_HA_DEVICEID_ON_OFF_OUTPUT 0x0002
#define ZCL_HA_DEVICEID_LEVEL_CONTROLLABLE_OUTPUT 0x0003
#define ZCL_HA_DEVICEID_SCENE_SELECTOR 0x0004
#define ZCL_HA_DEVICEID_CONFIGURATION_TOOL 0x0005
#define ZCL_HA_DEVICEID_REMOTE_CONTROL 0x0006
#define ZCL_HA_DEVICEID_COMBINED_INTERFACE 0x0007
#define ZCL_HA_DEVICEID_RANGE_EXTENDER 0x0008
#define ZCL_HA_DEVICEID_MAINS_POWER_OUTLET 0x0009
#define ZCL_HA_DEVICEID_DOOR_LOCK 0x000A
#define ZCL_HA_DEVICEID_DOOR_LOCK_CONTROLLER 0x000B
#define ZCL_HA_DEVICEID_SIMPLE_SENSOR 0x000C
#define ZCL_HA_DEVICEID_CONSUMPTION_AWARENESS_DEVICE 0x000D
#define ZCL_HA_DEVICEID_HOME_GATEWAY 0x0050
#define ZCL_HA_DEVICEID_SMART_PLUG 0x0051
#define ZCL_HA_DEVICEID_WHITE_GOODS 0x0052
#define ZCL_HA_DEVICEID_METER_INTERFACE 0x0053

// This is a reserved value which could be used for test purposes
#define ZCL_HA_DEVICEID_TEST_DEVICE 0x00FF

// Lighting Device IDs
#define ZCL_HA_DEVICEID_ON_OFF_LIGHT 0x0100
#define ZCL_HA_DEVICEID_DIMMABLE_LIGHT 0x0101
#define ZCL_HA_DEVICEID_COLORED_DIMMABLE_LIGHT 0x0102
#define ZCL_HA_DEVICEID_ON_OFF_LIGHT_SWITCH 0x0103
#define ZCL_HA_DEVICEID_DIMMER_SWITCH 0x0104
#define ZCL_HA_DEVICEID_COLOR_DIMMER_SWITCH 0x0105
#define ZCL_HA_DEVICEID_LIGHT_SENSOR 0x0106
#define ZCL_HA_DEVICEID_OCCUPANCY_SENSOR 0x0107

// Closures Device IDs
#define ZCL_HA_DEVICEID_SHADE 0x0200
#define ZCL_HA_DEVICEID_SHADE_CONTROLLER 0x0201
#define ZCL_HA_DEVICEID_WINDOW_COVERING_DEVICE 0x0202
#define ZCL_HA_DEVICEID_WINDOW_COVERING_CONTROLLER 0x0203

// HVAC Device IDs
#define ZCL_HA_DEVICEID_HEATING_COOLING_UNIT 0x0300
#define ZCL_HA_DEVICEID_THERMOSTAT 0x0301
#define ZCL_HA_DEVICEID_TEMPERATURE_SENSOR 0x0302
#define ZCL_HA_DEVICEID_PUMP 0x0303
#define ZCL_HA_DEVICEID_PUMP_CONTROLLER 0x0304
#define ZCL_HA_DEVICEID_PRESSURE_SENSOR 0x0305
#define ZCL_HA_DEVICEID_FLOW_SENSOR 0x0306
#define ZCL_HA_DEVICEID_MINI_SPLIT_AC 0x0307

// Intruder Alarm Systems (IAS) Device IDs
#define ZCL_HA_DEVICEID_IAS_CONTROL_INDICATING_EQUIPMENT 0x0400
#define ZCL_HA_DEVICEID_IAS_ANCILLARY_CONTROL_EQUIPMENT 0x0401
#define ZCL_HA_DEVICEID_IAS_ZONE 0x0402
#define ZCL_HA_DEVICEID_IAS_WARNING_DEVICE 0x0403

你可能感兴趣的:(zigbee)