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

Open two clients at the same time, fail to configure the network

mesh sdk:v1.0.1

example:light_switch

The steps are as follows:
1.three devices, 2 client A and B, 1 server C
2.power on A and B, then power on C
3.which device will be configured by C, A or B?
4.Log is as follows, configuration failed
 0> <t:         32>, main.c, 2236, ----- BLE Mesh Light Switch Client Demo -----
 0> <t:         40>, nrf_mesh_sdk.c,  191, Initializing softdevice
 0> <t:         46>, nrf_mesh_sdk.c,  206, Initializing mesh stack
 0> <t:        580>, main.c,  535, Setting up access layer and models
 0> <t:    2839469>, provisioner.c,  232, Local provisioning link closed
 0> <t:    2839476>, provisioner.c,  235, Provisioning failed. Retrying...
 0> <t:    5343302>, provisioner.c,  232, Local provisioning link closed
 0> <t:    5343309>, provisioner.c,  235, Provisioning failed. Retrying...
 0> <t:    8096501>, provisioner.c,  232, Local provisioning link closed
 0> <t:    8096508>, provisioner.c,  235, Provisioning failed. Retrying...
 0> <t:   10435432>, provisioner.c,  277, Local provisioning link established
 0> <t:   10437792>, provisioner.c,  263, Using static authentication
 0> <t:   10516742>, provisioner.c,  272, Static authentication data provided
 0> <t:   10529542>, main.c,  853, Provisioning complete. Adding address 0x0100.
 0> <t:   10529553>, provisioner.c,  116, Getting composition data
 0> <t:   10533323>, provisioner.c,  232, Local provisioning link closed
 0> <t:   12495652>, main.c,  827, Configuration of device 0 failed
In the case of A and B, how to let C join one of A or B?
Parents Reply Children
  • Hi,

    You should be able to have A configure C if you have A and C turned on first. I guess the reason it is failing configuring the network is the client is coded in way that it will provision the server when both are on. So by having two client on at the same time, it might be some issue when both tries to provision the server.

    Is there a reason you want both client on at the same time? Also have you considered moving to Mesh SDK v2.1.1?

Related