Enabling RELAY feature in nRF Connect SDK

Hi,

I have setup exactly as described in this page Bluetooth: Mesh sensor server — nRF Connect SDK 1.4.2 documentation (nordicsemi.com) ,

I can successfully read the temperature in client, but the message is not relayed to the next board,

After checking, i saw that the RELAY feature is disabled in nRF Mesh mobile app and i'm unable to Set Relay in Configuration Server too(option is blacked out)

But in code , i could see

CONFIG_BT_MESH_RELAY=y in proj.conf
CONFIG_BT_MESH_RELAY=y
CONFIG_BT_MESH_RELAY_ENABLED=y 
CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT=2
CONFIG_BT_MESH_RELAY_RETRANSMIT_INTERVAL=20     in .config
#define CONFIG_BT_MESH_RELAY 1
#define CONFIG_BT_MESH_RELAY_ENABLED 1
#define CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT 2
#define CONFIG_BT_MESH_RELAY_RETRANSMIT_INTERVAL 20     in autoconf.h
Could someone help me out...
TIA
  • Hi,

    Which version of nRF Connect SDK are you using? The latest release at the time of writing is version 2.0.2, while the documentation you refer to is version 1.4.2. Since then the BLE controller has been changed from the Zephyr Controller to the SoftDevice Controller, as well as many additions and some fixes to the Bluetooth mesh stack.

    I do not see anything wrong with the configs. I would expect CONFIG_BT_MESH_RELAY=y to enable the relay feature.

    Do you see the same issue when using the example in the latest release of nRF Connect SDK?

    If you do see the same issue in the latest release of nRF Connect SDK, what are the steps for reproducing? What example, what board, and how do you see it is not relaying?

    Regards,
    Terje

  • Hey,

    I tested it again with multiple boards, and then i could able to see that the message is being relayed, but in the app it says like this, and also im unable to set relay,

  • And iam using the latest 2.0.2 version of SDK with mesh sensor server and mesh sensor client examples

  • Hi,

    I have been able to reproduce; the nRF Mesh app displays the node features as if Relay is disabled, and the Relay section of the configuration server is grayed out. I tested both the sensor server and the chat sample, and both show the same behavior.

    After a "drag downward" gesture in the configuration server view, the values gets reloaded and show the correct values of Retransmit Count 2, Retransmit Interval 20 ms (chat example). Using nRF Mesh v3.2.4 for Android.

    I have asked the mobile apps team for comment.

    Regards,
    Terje

  • Initially, after provisioning, the state of Relay feature is unknown. We only know that it's supported (the flag in Composition Data has supported/not supported meaning). We need to map it to Enabled/Disabled/Not supported (3 states) of the relay state in CDB (database). It may incorrectly be mapped to Disabled until you pull to refresh in Config Server Model screen. Then it reads the current state and should also update Device Features. We'll look into it.

Related