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.

Clusters使用咨询

Other Parts Discussed in Thread: CC2538, CC2592

1.Clusters和Cluster Commands以及Cluster Attributes是什么区别?

2.我的理解Cluster Commands是ZCL_FRAME_CLIENT_SERVER_DIR的时候用的,

而Cluster Attributes是ZCL_FRAME_SERVER_CLIENT_DIR的时候用的,不知理解是否正确?

3.以On/Off Cluster Commands为例,下面用到的之外的命令我是否可以自定义?比如0x03到0x40之间

/*******************************/
/*** On/Off Cluster Commands ***/
/*******************************/
#define COMMAND_OFF 0x00
#define COMMAND_ON 0x01
#define COMMAND_TOGGLE 0x02
#define COMMAND_OFF_WITH_EFFECT 0x40
#define COMMAND_ON_WITH_RECALL_GLOBAL_SCENE 0x41
#define COMMAND_ON_WITH_TIMED_OFF 0x42

  • CC2538的宏定义如下:home 1.2.2
    请问MULTICAST_ENABLED=FALSE是关闭组播的意思吗?
    组播控制是不是要改为TRUE?
    ewarm
    CC2538_USE_ALTERNATE_INTERRUPT_MAP=1
    FEATURE_RESET_MACRO
    SECURE=1
    TC_LINKKEY_JOIN
    NV_INIT
    NV_RESTORE
    xHOLD_AUTO_START
    ZTOOL_P1
    MT_TASK
    MT_APP_FUNC
    MT_SYS_FUNC
    MT_ZDO_FUNC
    MULTICAST_ENABLED=FALSE
    ZCL_READ
    ZCL_WRITE
    ZCL_REPORT
    xZCL_EZMODE
    ZCL_BASIC
    ZCL_IDENTIFY
    ZCL_ON_OFF
    ZCL_SCENES
    ZCL_GROUPS
    ZCL_LEVEL_CTRL
    ZCL_DIAGNOSTIC
    FEATURE_SYSTEM_STATS
    xHAL_PWM
    xHAL_LED=FALSE
    HAL_PA_LNA_CC2592
  • 9.8 Multicast Messages This feature is a ZigBee PRO only feature (must have ZIGBEEPRO as a compile flag). This feature is similar to sending to an APS Group, but at the network layer.

    A multicast message is sent from a device to a group as a MAC broadcast message. The receiving device will determine if it is part of that group: if it isn’t part of the group, it will decrement the non-member radius and rebroadcast; if it is part of the group it will first restore the group radius and then rebroadcast the message. If the radius is decremented to 0, the message isn’t rebroadcast.

    The difference between multicast and APS group messages can only be seen in very large networks where the nonmember radius will limit the number of hops away from the group.

    _NIB.nwkUseMultiCast is used by the network layer to enable multicast (default is TRUE if ZIGBEEPRO defined) for all Group messages, and if this field is FALSE the APS Group message is sent as a normal broadcast network message.

    zgApsNonMemberRadius is the value of the group radius and the non-member radius. This variable should be controlled by the application to control the broadcast distribution. If this number is too high, the effect will be the same as an APS group message. This variable is defined in ZGlobals.c and ZCD_NV_APS_NONMEMBER_RADIUS (defined in ZComDef.h) is the NV item.
x 出现错误。请重试或与管理员联系。