zigbee架构重新梳理

《docs-05-3474-22-0csg-zigbee-specification-Revision 22 1.0-2017.pdf》
zigbee架构重新梳理_第1张图片

应用层APL分为APS和AF,带上一点的ZDO三个组成部分。

1、APS在AF底下一层,是NWK层与APL应用层的接口。
2、AF:包含ZCL和ZDO的服务发现部分
3、ZDO:包含address management of the device, discovery, binding, and security functions。
3.1、设备发现:IEEE address requests and NWK address requests
3.2、服务发现:match descriptor request

APS:干的活有点类似传输层,围绕数据的传输而展开工作。
1、APSDE负责将AF(ZCL)数据传递给NWK层。
2、APSME provides a variety of services to application objects including security services and binding of devices. It also maintains a database of managed objects, known as the APS information base (AIB)
3、Binding Primitives
4、Information Base Maintenance
5、Group Management

zigbee架构重新梳理_第2张图片
APS的结构体 aps_FrameFormat_t;

结构体afIncomingMSGPacket_t就是APS结构体中的payload的部分!!!

typedef struct
{
  uint8 FrmCtrl;
  uint8 XtndFrmCtrl;
  uint8 DstEndPoint;
  uint8 SrcEndPoint;
  uint16 GroupID;
  uint16 ClusterID;
  uint16 ProfileID;
  uint16 macDestAddr;
  uint8 wasBroadcast;
  uint8 apsHdrLen;
  uint8 *asdu;
  uint8 asduLength;
  uint8 ApsCounter;
  uint8 transID;
  uint8 BlkCount;
  uint8 AckBits;
  uint16 macSrcAddr;
} aps_FrameFormat_t;

《docs-05-3474-22-0csg-zigbee-specification-Revision 22 1.0-2017.pdf》2.4章节
ZDP的命令分为三类:
1、设备服务发现(Device and Service Discovery)
2、End Device Bind, Bind, Unbind, and Bind Management
3、Network Management 。

Device and Service Discovery的命令
zigbee架构重新梳理_第3张图片
End Device Bind, Bind, Unbind, and Bind Management的命令
zigbee架构重新梳理_第4张图片
Network Management
zigbee架构重新梳理_第5张图片

你可能感兴趣的:(Zigbee&Thread)