Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

NRF5 Mesh: LPN polls Friend multiple times after message is published

After LPN publishes message, NRF_MESH_EVT_LPN_FRIEND_POLL_COMPLETE event is generated five times. Also I noticed that instead of transmitting single publication message LPN sends it multiple times too (observed using nrf sniffer). I tried to change Network Transmit parameter in configuration server of LPN, but could not reduce the number of messages.

What could cause such behavior and how to disable automatic Friend polling after the message publication? LPN is set to publish to all Nodes and does that manually (without setting Publication period). Also Retransmission of publication is not set. Message is sensor server publication, sent unacknowledged.

I am using nRF5 Mesh SDK v5.

Parents Reply Children
  • Hello, sorry about the wait.

    I assume that you are seeing it repeating 5 times as that is the default value of MESH_LPN_POLL_RETRY_COUNT. It tries to contact the friend 5 times, before regarding the friendship as terminated. 

    I am not seeing this occurring in the SDK examples, only the standard polling that is happening routinely. I take it that the 5 repeating NRF_MESH_EVT_LPN_FRIEND_POLL_COMPLETE events you saw happened rather instantly / faster than the routinely happening one?

    POLL_TIMEOUT_MS is just the timeout value, and doesn't control how often it is in fact occurring - only the maximum value. To set the interval, you can use mesh_lpn_poll_interval_set() in the LPN.

    mesh777 said:
    Is there a Mesh stack feature that sets LPN to poll Friend automatically after publishing message?

    I believe it does, as the LPN is bound to already be available at that point. 

    Regards,

    Elfving

Related