ZCL_DIAGNOSTIC这个预定义是干嘛用的?
ZCL_DIAGNOSTIC这个预定义是干嘛用的?
Added support for implementing a Home Automation Diagnostics server
(Section 9.2 of "ZigBee Home Automation Public Application Profile" (see
ZigBee Document 05-3520-29). Three new files have been added to Z-Stack -
ZDiags.c, ZDiags.h, and zcl_diagnostic.c to provide infrastructure for the
entire HA Diagnostics Cluster. New MT_SYS commands have been developed to
support serial access/control of the diagnostic features - see SYS_ZDIAGS
commands in the "Z-Stack Monitor and Test API" document. This Z-Stack Home
release provides implementations for the following diagnostic statistics:
- MAC_TX_UCAST_RETRY
- MAC_TX_UCAST_FAIL
- NWK_DECRYPT_FAILURES
- PACKET_VALIDATE_DROP_COUNT
- APS_TX_BCAST
- APS_TX_UCAST_SUCCESS
- APS_TX_UCAST_RETRY
- APS_TX_UCAST_FAIL
- APS_DECRYPT_FAILURES
- APS_INVALID_PACKETS
- MAC_RETRIES_PER_APS_TX_SUCCESS
> SYSTEM_CLOCK (TI proprietary)
> MAC_RX_CRC_PASS (TI proprietary)
> MAC_RX_CRC_FAIL (TI proprietary)
Support for other diagnostic statistics may be provided in later releases.
这个是 Home Automation新增加的功能,具体的应用场景如上回复