Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Mesh 4.0.0 Light Switch Server Not Provisioned

Hello,

I'm using nRFSDK16.0.0 and Mesh SDK 4.0.0 on nRF52840 boards. Soft device is 7.0.1. I want to test simple Light Switch example using nRFMesh mobile app as provisioner and one board as server (light) and the other as client (switch). 

I'm following this guide: https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.0.0/md_examples_light_switch_README.html

I can successfully provision the switch but cannot do the same for light. Here is the log from RTT viewer:

main.c, 249, ----- BLE Mesh Light Switch Server Demo -----
00> <t: 8681>, main.c, 218, Initializing and adding models
00> <t: 8684>, main.c, 113, App OnOff Model Handle: 2
00> <t: 13581>, mesh_app_utils.c, 65, Device UUID (raw): 5611860C225C174DB4D8F89A59153D41
00> <t: 13584>, mesh_app_utils.c, 70, Device UUID : 0C861156-5C22-4D17-B4D8-F89A59153D41<t: 8498823>, ble_softdevice_support.c, 104, Successfully updated connection parameters<t: 8069132>, ble_softdevice_support.c, 104, Successfully updated connection parameters<t: 15700158>, ble_softdevice_support.c, 104, Successfully updated connection parameters

I have made sure that SDK_ROOT was set correctly and boards were "Erase All" before programming. Yet I wonder why this is happening for one device but not for the other. Isn't the provisioning process same for both devices?

Parents Reply Children
  • Please attach the screenshot directly here (you can copy and paste image) I can't access the image on the link you sent. You can convert the case to private if you want. 

    I had a quick test here and saw no problem provisioning the light switch server. 

  • Here is the video:

  • Thanks for the record. It seems that the connection was established but the phone couldn't discover the service. 
    Could you try to capture a sniffer trace: https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer ? 

    I suspect that the phone has a bond with the device earlier that no longer valid. Could you go to the Bluetooth support of the phone and erase any bonded device there ? 

    If you flash the light switch client on the same board , would it work ?

  • Yes you are right. I had to go to Mobile phone's Settings->Bluetooth->Paired devices and removed this device (unpaired). Next, the Mesh app successfully provisioned the device.

    Thanks for the help.

Related