Part Number: CC2652R7
Other Parts Discussed in Thread: ENERGYTRACE
Good day,
I am using the CC2652R7 launchpad, and I have a function defined below called "configureSED()" that sets the data poll period for a sleepy end device to every 10 seconds.
I then utilized the EnergyTrace in CCS, and below is a screenshot of data captured for a duration of 60 seconds.
Now the radio turns ON around 14 seconds, then at 24 seconds and so on....
Now in between the switching ON of the radio, there is a constant current consumption spike of around 4.6mA.
Questions:
1. I read that it still requires a power analyzer to get an accurate current consumption reading. Is this current consumption between these intervals in relation to the Energy Trace circuitry onboard or possibly the MCU running a task such as the Radio that could be consuming this amount of current.
2. During these intervals I am able to send COAP messages to the COAP server.
How is that possible? Should the radio not be OFF? And are there flags I read to see when the radio is OFF or ON.
3. How do I determine how long the radio can be ON for? I am a bit unclear on that matter.
// Sleepy End Device Setup
void configureSED(uint32_t aPollPeriod)
{
otError error;
otLinkModeConfig LinkMode;
LinkMode.mDeviceType = 0; // MTD
LinkMode.mNetworkData = 1; // Network Data
LinkMode.mRxOnWhenIdle = 0; // SED
error = otThreadSetLinkMode(OtInstance_get(), LinkMode);
if(error != OT_ERROR_NONE)
{
// Error Handle
}
error = otLinkSetPollPeriod(OtInstance_get(), aPollPeriod);
if(error != OT_ERROR_NONE)
{
// Error Handle: Invalid poll period
}
}
