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.

CC2651P3: CC2651P3: ZED SW attributes error

Part Number: CC2651P3

Hello,

My project is based on zed sw which I am trying to connect to Zigbee2MQTT.

I tried to add the attributes  ATTRID_BASIC_MANUFACTURER_NAME, ATTRID_BASIC_MODEL_IDENTIFIER

In my code i added (file name: zcl_samplesw_data.c)

const uint8_t zclSampleSw_ManufacturerName[] = {4, 'N','A','M','E'};
const uint8_t zclSampleSw_ModelIdentifier[] = {6, '1','2','A','B','C','3'};

CONST zclAttrRec_t zclSampleSw_Attrs[] = { ......

{
ZCL_CLUSTER_ID_GENERAL_BASIC,
{ // Attribute record
ATTRID_BASIC_MANUFACTURER_NAME,
ZCL_DATATYPE_CHAR_STR,
ACCESS_CONTROL_READ,
(void *) &zclSampleSw_ManufacturerName //zclSampleSw_ManufacturerName
}
},
{
ZCL_CLUSTER_ID_GENERAL_BASIC,
{ // Attribute record
ATTRID_BASIC_MODEL_IDENTIFIER,
ZCL_DATATYPE_CHAR_STR,
ACCESS_CONTROL_READ,
(void *) &zclSampleSw_ModelIdentifier
}
}, .....}

After successfully joined in the network, when i tried to read the Manufacturer Name or Model Identifier or even ZCL version I am getting the error SOFTWARE_FAILURE.

I tried implementing the callback function as mentioned here, still i am getting the error.

Thanks

 

  • Hello Anandu,

    What SimpleLink CC13XX/CC26XX SDK version are you using to build the zed_sw code?  The Manufacturer Name is provided by default in SDK v7.10, and zclDiagnostic_ReadWriteAttrCB is already implemented if ZCL_DIAGNOSTIC is pre-defined.  Are you able to read any other attributes, such as ones you did not add?  What changes did you add to zcl_samplesw.c?  Do you have a sniffer log you can share, and are you able to use the CCS debugger to set a breakpoint inside your ReadWriteAttrCB to determine whether it is ever entered?

    Regards,
    Ryan

  • What SimpleLink CC13XX/CC26XX SDK version are you using to build the zed_sw code?

    I am using the version 7.10

    Are you able to read any other attributes, such as ones you did not add?

    No, i couldn't read any attribute.

    What changes did you add to zcl_samplesw.c?

    No i didn't changed anything

    Do you have a sniffer log you can share

    Publish 'set' 'read' to '0x00124b0014fb8588' failed: 'Error: Read 0x00124b0014fb8588/1 genBasic(["manufacturerName"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'SOFTWARE_FAILURE')'

    are you able to use the CCS debugger to set a breakpoint inside your ReadWriteAttrCB to determine whether it is ever entered?

    #ifdef ZCL_DIAGNOSTIC
    // Register the application's callback function to read/write attribute data.
    // This is only required when the attribute data format is unknown to ZCL.
    zcl_registerReadWriteCB( SAMPLESW_ENDPOINT, zclDiagnostic_ReadWriteAttrCB, NULL );

    if ( zclDiagnostic_InitStats() == ZSuccess )
    {
    // Here the user could start the timer to save Diagnostics to NV
    }
    #endif

    Call back function is not registering cause ZCL_DIAGNOSTIC is not defined and when i tried to define, i am getting some errors

  • You have provided a host display/terminal log which is not the same as a packet sniffer, I apologize for the confusion.  Since you have not implemented a read/write attribute callback, the command returns as unsupported.  You can either take the zcl_samplesw.c ReadWriteAttrCB code outside of ZCL_DIAGNOSTIC ifdef or add ZCL_DIAGNOSTIC and FEATURE_SYSTEM_STATS to Project Properties -> CCS Build -> Arm Compiler -> Predefined Symbols as well as include Common/zcl/zcl_diagnostic.c in the project build.

    Regards,
    Ryan

  • Thanks for your patience.  I now recall a previous E2E thread in which the resolution is to add ACCESS_CONTROL_AUTH_READ based on the way zclProcessInReadCmd is handled.

    Regards,
    Ryan