Is there an API for manually scanning potential Friend nodes?

Hello,

we are trying to implement a custom Friend node research policy, before the friendship is established.

Since bt_mesh_lpn_poll() works only when the frienship is active, we are looking for something similar in bluetooth/mesh/main.h when the local node scans for Friend nodes.

The custom policy is intended to reduce the power consumption as much as possible while searching for Friend nodes.

We enabled the following config:

#Perform the Friendship establishment using low power, with the help of a reduced scan duty cycle.
#The downside of this is that the node may miss out on messages intended for it
#until it has successfully set up Friendship with a Friend node.
CONFIG_BT_MESH_LPN_ESTABLISHMENT=y

and also set this config to a proper value for when the frienship is already established.

# Each LPN poll event consumes power. Extending the interval between poll events will improve power consumption
# PollTimeout timer is used to measure time between two consecutive requests sent by the Low Power node.
# If no requests are received by the Friend node before the PollTimeout timer expires, then the friendship is considered terminated.
# The value is in units of 100 milliseconds, so e.g. a value of 300 means 30 seconds.
CONFIG_BT_MESH_LPN_POLL_TIMEOUT=50


Is an API foreseen for polling new Friend nodes manually?

thanks for your support,

enrico

Related