Hello,
I am working with LPN example of SDK 3.1.0. In the example I need to change the poll interval time based on our application requirement.
I looked at this equation used in lpn.c file.
m_lpn.poll_interval_ms = m_lpn.poll_timeout_ms -
(m_lpn.receive_delay_ms + m_lpn.receive_window_ms) * (MESH_LPN_POLL_RETRY_COUNT + 1);
In my application poll_timeout_ms is = 10000
receive_delay_ms = 100
receive_window_ms = 255 (I believe this parameter is set by the friend node)
MESH_LPN_POLL_RETRY_COUNT = 5
Hence, the poll_interval_ms comes to 7870 ms. But when I cross verify this with the current drawn by the chipset, I see a peak after every 2 sec. I believe it is a friend polling peak only. Please check attached the figure and correct me if I am wrong.
Is there any other way to change the poll interval??