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