15. Mesh

15.1. Overview

This example shows how to use ble mesh.

15.2. Usage steps

  • Install bl_mesh_app.apk on your phone

  • Download and compile the customer_app/bl602_demo_event project

  • Run following Mesh commands in the serial monitor:

    #stack_ble

    #blemesh_init

    #blemesh_pb 2 1

../../_images/image222.png
  • Open the app and select ADD NODE in the Network column

../../_images/image231.png
  • Select your device

../../_images/image241.png
  • Click the IDENTIFY button

../../_images/image251.png
  • Click the PROVISION button

../../_images/image261.png
  • Select No OOB in the pop-up window and click ok

../../_images/image271.png
  • Click ok

../../_images/image281.png
  • Your node is automatically added to the Network column, click on your connected device

../../_images/image291.png
  • Locate Elements option and click it’s drop-down button

../../_images/image301.png
  • Select the Generic On Off Server option

../../_images/image312.png
  • Click the BIND KEY button

../../_images/image321.png
  • Click Application key 1

../../_images/image331.png
  • Click on the ON and OFF buttons to control the LED switch

../../_images/image361.png
  • The following information can be seen in the serial monitor, indicating that the LED is successfully controlled

../../_images/image411.png
  • Click the SUBSCRIBE button

../../_images/image341.png
  • Select “Create a new group to subscribe” option

../../_images/image351.png
  • Follow the same steps to add another node. Then click on your group

../../_images/image371.png
  • In the group, clicking on ON and OFF buttons prints the LED information in the serial monitor, indicating that the mesh is working

../../_images/image381.png
../../_images/image411.png