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

Provisioning BLE mesh using Android Application

Hi All,

I'm very new to this Bluetooth mesh technology. Currently I'm referring to client/server switch example.

Without making any changes in the firmware I compiled and flashed to the board and using android application I could able to provision. But after provision I'm not able to communicate between the nodes. 

Can anyone please help me on this. And also I see some additional parameter which user can edit in android application can anyone let me know how this parameters are related to firmware or commutation between nodes.

Below are the SDK and H/W details:

1)Hardware :  NRF52840

2) SDK : nRF5_SDK_15.2.0_9412b96

3)Mesh SDK : nrf5_SDK_for_Mesh_v3.1.0_src

Thanks in advance.

Domneck

  • Hello Domneck,

    Provisioning the devices only include the devices into the network. In order to control the light bulb/server from the light switch/client, you need to configure the devices. Using Nordic's Tools there are two ways of doing so.

    1: If you have a third DK, you can program the provisioner example found in SDK_for_Mesh\examples\light_switch\provisioner. This will search for both devices, provision them and configure them to publish and subscribe to the same channel.

    2: You can use the nRF Mesh mobile application. What you need to do is to do all the steps that the provisioner example does:

    • First you need to connect to, and provision both the light switch server and client, like I believe you have already done. 
    • Then you need to configure the light switch client to publish to a specific channel, and then configure the light switch server to subscribe to that same channel.

    Configure light_switch client:

    1. select the device named nRF5x Mesh Switch : 000X (Do not press the (i) icon, but click in the middle of the device in the nRF Mesh app.)
    2. Select "ELEMENT 1. UNICAST: 000X", "Generic OnOff Client"
    3. Tap "APPKEY BINDING".
    4. Select AppKey 1, 2 or 3, but remember which one you chose. You must use the same key for the other device. Let us use AppKey 1 for now.
    5. Select "PUBLICATION ADDRESS"
    6. tap "Publication Address" again,
    7. Select an address. For now, we will use 0xC001. Press "Set"
    8. tap "Apply Publication" in the top right corner.
    9. Navigate back to "Network" to continue with configuring the light bulb/server.

    Configure light_switch server:

    1. Select the device named nRF5x Mesh Light : 000x (Do not press the (i) icon, but click in the middle of the device in the nRF Mesh app.)
    2. Click the "Generic OnOff Server"
    3. Tap "APPKEY BINDING"
    4. Select the same AppKey as you used for the client/switch (AppKey1).
    5. Select "Add Subscription Address" (under "SUBSCRIPTION ADDRESSES").
    6. Type the same address as you used for the client (C001)
    7. Navigate back to the network (subscription configuration doesn't have the "Apply Subscription", like the "Apply Publication" for publication configurations).

    When this is done, then the first two buttons on the DK running the light_switch client should be using the same channels as the LED on the DK running light_switch server.

    Let me know if any of these methods work, or if they don't.

    As you may notice, the client/switch has two Generic OnOff Client elements. If you have several DKs, you can set up the other one to use another publication address, and program another DK with the server example, and set this to subscribe to that address.

    Please note that the addresses that you use must be "group addresses", meaning that they must start with 0b11, or 0xC, 0xD, 0xE or 0xF (0xF with some exceptions). You can read more about adresses here:

    https://www.bluetooth.com/blog/the-fundamental-concepts-of-bluetooth-mesh-networking-part-2/

    Best regards,

    Edvin

  • Hi Edvin,

    Sorry for the delay.

    Where is "Select "ELEMENT 1. UNICAST: 000X", "Generic OnOff Client"" this in application I'm not seeing anything.

    I've attached screenshots of apps.

  • Any User manual is available.

    I see so many options in application.

  • Hello,

    Sorry. I don't think there is. We are working on making it more intuitive to use.

    It should be listed under one of the "Elements". I am not that familiar with android, but it should be Element 2 or/and 3. (Element 2 uses button 1 and 2 on the DK, and Element 3 uses button 3 and 4).

Related