This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

调用zclGeneral_SendAddScene添加情景不成功

路由节点可以正常的加入到我的协调器中,并且可以正常的被协调器控制。然后我先将路由节点加入到组id为1的组中也能成功,但使用zclGeneral_SendAddScene来添加情景后,COMMAND_SCENE_VIEW_RSP中的status值是0x85或0x8A,请问下这个status值的具体含义是社么呐?

  • 接收應該是在 zclGeneral_ProcessInScenesServer,建議你調試一下這部份的代碼
  • /*** Error Status Codes ***/
    #define ZCL_STATUS_SUCCESS 0x00
    #define ZCL_STATUS_FAILURE 0x01
    // 0x02-0x7D are reserved.
    #define ZCL_STATUS_NOT_AUTHORIZED 0x7E
    #define ZCL_STATUS_MALFORMED_COMMAND 0x80
    #define ZCL_STATUS_UNSUP_CLUSTER_COMMAND 0x81
    #define ZCL_STATUS_UNSUP_GENERAL_COMMAND 0x82
    #define ZCL_STATUS_UNSUP_MANU_CLUSTER_COMMAND 0x83
    #define ZCL_STATUS_UNSUP_MANU_GENERAL_COMMAND 0x84
    #define ZCL_STATUS_INVALID_FIELD 0x85
    #define ZCL_STATUS_UNSUPPORTED_ATTRIBUTE 0x86
    #define ZCL_STATUS_INVALID_VALUE 0x87
    #define ZCL_STATUS_READ_ONLY 0x88
    #define ZCL_STATUS_INSUFFICIENT_SPACE 0x89
    #define ZCL_STATUS_DUPLICATE_EXISTS 0x8a
    #define ZCL_STATUS_NOT_FOUND 0x8b
    #define ZCL_STATUS_UNREPORTABLE_ATTRIBUTE 0x8c
    #define ZCL_STATUS_INVALID_DATA_TYPE 0x8d
    #define ZCL_STATUS_INVALID_SELECTOR 0x8e
    #define ZCL_STATUS_WRITE_ONLY 0x8f
    #define ZCL_STATUS_INCONSISTENT_STARTUP_STATE 0x90
    #define ZCL_STATUS_DEFINED_OUT_OF_BAND 0x91
    #define ZCL_STATUS_INCONSISTENT 0x92
    #define ZCL_STATUS_ACTION_DENIED 0x93
    #define ZCL_STATUS_TIMEOUT 0x94
    #define ZCL_STATUS_ABORT 0x95
    #define ZCL_STATUS_INVALID_IMAGE 0x96
    #define ZCL_STATUS_WAIT_FOR_DATA 0x97
    #define ZCL_STATUS_NO_IMAGE_AVAILABLE 0x98
    #define ZCL_STATUS_REQUIRE_MORE_IMAGE 0x99

    // 0xbd-bf are reserved.
    #define ZCL_STATUS_HARDWARE_FAILURE 0xc0
    #define ZCL_STATUS_SOFTWARE_FAILURE 0xc1
    #define ZCL_STATUS_CALIBRATION_ERROR 0xc2