This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

52840 ncs mesh question

hi,  customer use nrf52840 made mesh node. use nrf connect SDK v1.6. they have two quetion.

1:   How to set 125kb low speed and long rang in BT mesh network,

2:   How to enable low power mode in the SDK, do we have any low power mode exmple in the SDK?

Parents Reply Children
  • Hi,

    A small update: There are no examples in the SDK where LPN is enabled, but for all examples you can enable LPN the way I described. Friend feature is enabled by default in all examples, so as long as you have a non-LPN node in the network the LPN node should be able to find a friend for keeping and relaying the incoming messages.

    Regards,
    Terje

  • Hi Terje,

    I tried to enable the setting of "Support for Low Power features" <BT_MESH_LOW_POWER> in NCS mesh light switch example, it can enter into LPN mode with low current consumption. I found the light on/off publication can send to light node immediately, however , the light on/off subscription from light node is received over 10 seconds. I tried to change "Receive delay requested by local node" <BT_MESH_LPN_RECV_DELAY> from 100 to 10 , but it does not have much improvement of receiving time. How can change the setting that make the LPN polling the cached message from friend node faster?

    Thanks

    Patrick

  • Hi Patrick, 

    I assume it takes longer to receive the status message send from light server to the light switch LPN, correct ? 
    It's because if you don't proactively poll the friend node it will only poll it to avoid friendship termination. This is why you only receive the packet from the server after average 10 seconds. 

    What you need to do is define a timer and in the timer handler you call bt_mesh_lpn_poll(). This will periodically poll the friend node if there is any message for the LPN node. 
    Of course the drawback of calling bt_mesh_lpn_poll() too often is that you will consume more current. 

Related