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.

CC2530: CC2530: ZC can't reply default response automatically

Part Number: CC2530

Hi all:

I use zstack-1.2.0.

I found ZC won't reply default response automatically, when ZC receive a ZCL report from ZED.

Is this correct ?

Here is the call stack snapshot.

Here is the snapshot of sniffer.

Thanks.

  • Hi harkdtrt, 

    This is possibly known behavior that has already been addressed for our SimpleLink CC13X2/CC26X2 SDK: https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/t/775098/

    In zcl.c please have them make the following change:

    //if ( UNICAST_MSG( inMsg.msg ) && inMsg.hdr.fc.disableDefaultRsp == 0 )                              // REMOVE THIS LINE
    if ( (UNICAST_MSG( inMsg.msg ) && ((inMsg.hdr.fc.disableDefaultRsp == 0 ) || (status != ZSuccess))))  // RECOMMENDED REPLACEMENT

    Please report back as to whether this improves their behavior or not.

    Regards,
    Ryan

  • Hi Ryan:

       I use MT in ZC.

       It didn't help.
      Thanks.

  • Inside of afBuildMSGIncoming the message is intercepted by the MT if the ZDO has not registered for this endpoint and MT_AF_CB_FUNC is defined, in this state it would never be processed by the task.  Please further investigate this.

    #if defined ( MT_AF_CB_FUNC )
      // If ZDO or SAPI have registered for this endpoint, dont intercept it here
      if (AFCB_CHECK(CB_ID_AF_DATA_IND, *(epDesc->task_id)))
      {
        MT_AfIncomingMsg( (void *)MSGpkt );
        // Release the memory.
        OsalPort_msgDeallocate( (void *)MSGpkt );
      }
      else
    #endif
      {
        // Send message through task message.
        OsalPort_msgSend( *(epDesc->task_id), (uint8_t *)MSGpkt );
      }

    Regards,
    Ryan