Hi,
I am using nrf52832 for a battery powered PIR sensor. I want the device to be awake only when in it detects motion. Can anyone guide me to use the lpn example in the SDK and how to program a friend node?
Hi,
I am using nrf52832 for a battery powered PIR sensor. I want the device to be awake only when in it detects motion. Can anyone guide me to use the lpn example in the SDK and how to program a friend node?
Hello Rohan,
Since you are saying "the LPN example" I assume you are referring to nRF5 Mesh SDK example (as there is no LPN example in the nRF Connect SDK), however I would recommend you to use nRF Connect SDK for all new development projects (particularly when using Bluetooth Mesh) as that is the SDK that will be worked on going forward.
If you want to use nRF 5 SDK either way, the documentation on the nRF 5 LPN Example, and how to use it and test it can be found here.
In order to support low power mode in NCS, simply set the configuration CONFIG_BT_MESH_LOW_POWER=y in your configuration file. To make the device enter low power mode, either set CONFIG_BT_MESH_LPN_AUTO=y or call bt_mesh_lpn_set(true). Note that low power mode can only be enabled after provisioning completes.
Regards,
Elfving
Hi,
Thank you for your reply.
I am using nRF Mesh SDK. I will try out your suggestion.
Another doubt I had was that do we need to configure other mesh nodes in anyway for it to support friendship or can all nodes be a friend node. I had this confusion since there was no specific example regarding friend node.