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

Does Light_switch sample code used as PROXY + RELAY node ??

After enabling both the Macro MESH_FEATURE_RELAY_ENABLED and MESH_FEATURE_GATT_PROXY_ENABLED as mentioned in this link ....

Does the proxy and relay feature work for light_switch client and server example ??

I want to configure topology using 3 nrf kit and mobile app as follows...

1) nrf DK named A works as on/of server ( light )

2) nrf DK named B works as on/of client ( switch )

( Both A-client and B-server are not in radio range.... But A is in range with C...and also B is in range with C )

3) nrf DK named C works as PROXY + RELAY node. ( communication between A and B should be via node C)

4) Provisioning of proxy node C is done by nrf mesh mobile app.

 

My question is what are the steps ...or which sample code I should use for nrf kit C ( PROXY + RELAY ) ???

  • Hi,

    Both relay feature and GATT proxy feature are enabled by default by the light switch examples. (That is, both light switch server and light switch client has that on by default.) This means for nodes A and B you can use the light switch examples directly for your purpose. If you do not want them to have the GATT proxy feature enabled, then you must disable that by removing the define of MESH_FEATURE_GATT_PROXY_ENABLED from nrf_mesh_config_app.h, for each example. Please note that in order to provision the devices from a smartphone, you do need the MESH_FEATURE_PB_GATT_ENABLED on, as that is how they get provisioned over GATT.

    If you do not have the MESH_FEATURE_GATT_PROXY_ENABLED, then in order to configure those nodes from a smartphone you do need at least one node in the network with the GATT proxy feature enabled, and connect to that device in order for the smartphone to communicate with other nodes over the network.

    For node C, you can use any example with both relay feature and GATT proxy feature enabled. For instance one of the light_switch examples. We do not have an example that is relay and GATT proxy only, that is, without any other models such as light switch server, light switch client, etc. If you want a node that does not have any specific model, then you need to start with an example and remove e.g. the light switch server from it.

    Please note that all devices must be provisioned into the network. If you plan to use a smartphone to provision node C, then I highly recommend to provision the other two nodes using smartphone as well. For that they need MESH_FEATURE_PB_GATT_ENABLED, which is the GATT provisioning bearer. They do not need the GATT proxy feature enabled as you can configure them through connecting to a different node on the network which has the GATT proxy feature, but I would say it is most practical to both provision and configure the node directly over GATT.

    Regards,
    Terje

Related