Bluetooth mesh network setup with the nRF 52840 DK and bluetooth mesh samples

Hi, I am new to blue tooth mesh, but want to develop a test system with blue tooth mesh. Eventually I would like to be able to create a blue tooth mesh network to provision and connect to smart lightbulbs, i.e. Sylvania or Sengled bulbs. To start I am just trying to get two separate boards or devices connected over bluetooth mesh. I am using zephyr and have tried the mesh_provisioner sample, the sample mesh sample in zephyr/samples/bluetooth/mesh, and the onoff-app sample in zephyr/samples/boards/nordic/mesh/onoff-app. The onoff-app and simple mesh sample will flash to the board correctly, but I have not been successful connecting to them from another device. I am using nrf connect and nrf mesh on my phone, they both recognize the board but stall out when connecting. When I try to provision the onoff-app sample with my phone, the uart sample gives this error: <err> bt_adv: No valid legacy adv to resume. I have tried enabling and disabling GATT and ADV provisioning but the result was the same. The simple mesh sample, is also recognized but doesn't respond to provisioning. If I try to connect on my phone to either of these it gets stuck on the status connecting screen. Are these samples compatible with the nrf mesh app? If not how else should I connect to them.

The mesh_provisioner sample has also had issues connecting to the devices. It recognizes, the device id, but it throws this error when I start provisioning:

Device ded7d67e952c1b660000000000000000 detected, press button 1 to provision.
Provisioning ded7d67e952c1b660000000000000000
Waiting for node to be added...
***** MPU FAULT *****
  Stacking error (context area might be not valid)
  Data Access Violation
  MMFAR Address: 0x200045ec
r0/a1:  0x00000000  r1/a2:  0x00000000  r2/a3:  0x00000000
r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x00000000
 xpsr:  0x00000000
Faulting instruction address (r15/pc): 0x00000000

Do you all know what this means or what would be causing it? I receive the same error when I've tried to provision light bulbs with the board.

I am new to bluetooth mesh development and could have missed crucial steps to set up the network. Are there configuration steps which have to take place on either the nrf mesh app or in the sample software?

Thank you for the help.

Parents
  • Hello,

    I have not tested this sample, but perhaps you can try the sample:

    NCS\nrf\samples\bluetooth\mesh\light_ctrl.

    See that link for a description on how to build and run the sample application.

    If you have another DK, you can program that with the ligth_switch, and after configuring them through the provisionner using the nRF Mesh for iOS/Android, you can control the light_ctrl DK from the ligth_switch DK.

    Best regards,

    Edvin

Reply
  • Hello,

    I have not tested this sample, but perhaps you can try the sample:

    NCS\nrf\samples\bluetooth\mesh\light_ctrl.

    See that link for a description on how to build and run the sample application.

    If you have another DK, you can program that with the ligth_switch, and after configuring them through the provisionner using the nRF Mesh for iOS/Android, you can control the light_ctrl DK from the ligth_switch DK.

    Best regards,

    Edvin

Children
No Data
Related