Hi TI friends:
We have found that when sensor went to orphan scan state,it will not sleep after enter the second orphan scan.
Glad to see SDK simplelink_cc13x0_sdk_2_20_00_38 has solved this bug.
But after we upgrade our sensor to simplelink_cc13x0_sdk_2_20_00_38,one time of orphan scan need 5-6 seconds of non-sleep time and the current during this time is 5-6mA,which made the power consume not so good.(we set orphan scan interval to 1 minute,so the average current is about 500uA).
I see from code in jdllc.c
void Jdllc_process(void)
{
.....
/* Process scan backoff in case of orphan scan */
if(Jdllc_events & JDLLC_SCAN_BACKOFF)
{
switchState(devInfoBlock.prevDevState);
if(devInfoBlock.prevDevState == Jdllc_deviceStates_scanOrphan) {
ApiMac_mlmeSetReqBool(ApiMac_attribute_RxOnWhenIdle, true);
} //TI added in SDK2.20
/* Clear the event */
Util_clearEvent(&Jdllc_events, JDLLC_SCAN_BACKOFF);
}
....
}
my question:
1.what change do you made to solve the orphan scan ?
2.why you add this processing in jdllc.c?
3.Is there way we can do to decrease the current when in orphan scan mode without increase the orphan scan time interval?