Other Parts Discussed in Thread: Z-STACK,
Hi,
I'm using CC2650MODA on custom board. For our application, it is necessary to change poll-rate during runtime. The reconfiguration of poll-rate is done by the following code:
zstack_sysConfigWriteReq_t writeReq = { 0 };
// Set the new poll rate
writeReq.has_pollRate = true;
writeReq.pollRate = newPollRate;
(void) Zstackapi_sysConfigWriteReq(staEntity, &writeReq);
The default poll-rate (configured in f8wConfig.cfg) is set to -DPOLL_RATE=200, as this is required on first power-up. Afterwards, it is reconfigured frequently by executing the code above. This approach works perfectly till CC2650 rejoins network. Then poll-rate is set to default value. As far as I can see this happens somewhere in ZDApp.c, but I don't know where exactly and debugging of ZStackCore is not supported. Is there a way to be informed by z-stack if device has lost connection and network rejoin succeeded, so I can overwrite poll-rate again? Alternatively, could you tell me where I have to modify ZStackCore to prevent poll-rate change to default value? I would appreciate your support.
BR
Robert