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.

CC2652P: How to use API to customize pollrate for ZED devices

Part Number: CC2652P
Other Parts Discussed in Thread: SYSCONFIG, Z-STACK

I use SDK to develop cc2652p zed device.

I find that it is effective to change pollrate using API in this way. However, after running for a period of time (when the device sends dataRequest at a long interval), the power consumption of the device has not been reduced. Under normal conditions, the power consumption of the device is about 5ua. It is observed that after the device sends dataRequest based on long interval, the power consumption cannot return to the normal level, which is about 3 ~ 4mA.

I use the API to customize pollrate. The source code is as follows:

zstack_sysConfigWriteReq_t req;

memset(&req, 0, sizeof(zstack_sysConfigWriteReq_t));

req.has_disablePollRate = TRUE;
Zstackapi_sysConfigWriteReq(appServiceTaskId, &req);

req.has_disablePollRate = FALSE;
req.has_pollRate = TRUE;
req.pollRateType = POLL_RATE_TYPE_DEFAULT;
req.pollRate = 500; //pollCtrl->shortInterval:0.5s,longInterval:1620s
Zstackapi_sysConfigWriteReq(appServiceTaskId, &req);

Due to product requirements, the pollrate needs to be changed during the operation of the equipment (the short interval of datarequest is 0.5 seconds and the long interval is 27 minutes).

I think the power consumption of the device may be related to calling API to set pollrate. I want to know the correct method of using API to customize pollrate. Is there any sample code?

Thank you~