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.

CC2652RSIP: Zigbee BDB Reporting: disable auto-reporting doesn't work

Part Number: CC2652RSIP
Other Parts Discussed in Thread: LP-CC2652RB, TDC7200, TDC1000, SIMPLELINK-CC13XX-CC26XX-SDK

Hi everyone,

i'm working on a custom board with a CC2652RSIP which act as a zed and send data to a coordinator (LP-CC2652RB) through bdb reporting. I started developing from zed_temperaturesensor (for zed) and zc_thermostat (for coordinator). My goal is to take some measurement (thanks to a tdc7200 and tdc1000), send data to coordinator, sleep and repeat the loop. I would like to disable autoreporting (setting maxReportInt to ZCL_REPORTING_OFF) and send data only through calling function Zstackapi_bdbRepChangedAttrValueReq(). However, only if I set a maxReportInt different from zero and ZCL_REPORTIN_OFF then data are received by the coordinator (not after function calling, but periodically, based on maxReportInt value). My configuration is the following:

REPORTABLE CHANGE

reportableChange[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

CLUSTER CONFIGURATION

Req.attrID = ATTRID_TEMPERATURE_MEASUREMENT_MEASURED_VALUE;
Req.cluster = ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT;
Req.endpoint = SAMPLE_ENDPOINT;
Req.maxReportInt = ZCL_REPORTING_OFF;
Req.minReportInt = 0;
OsalPort_memcpy(Req.reportableChange,reportableChange,8);
Zstackapi_bdbRepAddAttrCfgRecordDefaultToListReq(appServiceTaskId,&Req);

REPORT DATA

Req.attrID = ATTRID_TEMPERATURE_MEASUREMENT_MEASURED_VALUE;
Req.cluster = ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT;
Req.endpoint = SAMPLE_ENDPOINT;
Zstackapi_bdbRepChangedAttrValueReq(appServiceTaskId,&Req);

Does somenone have some clues about this behaviour? I read that setting maxReportInt to ZCL_REPORTING_OFF should disable auto report, and data should be send only after calling Zstackapi_bdbRepChangedAttrValueReq but this seems to not work for me.

Thanks

  • Hi Frederico,

    Setting Req.maxReportInt to ZCL_REPORTING_OFF in my zcl_sampletemperaturesensor.c appears to have disabled automatic reporting, as I have not observed any temperature reports in my sniffer log of over 30 minutes.  I'm using SIMPLELINK-CC13XX-CC26XX-SDK v6.20.  Have you tried setting minReportInt and reportableChange to values greater than zero?  What else should I change in order to recreate this behavior?

    Regards,
    Ryan