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

Combining Provisioner & Client role and Self Provisioning & Configuring client node

Hi,

   Iam working on a project based on Ble Mesh, Iam using nrf5_SDK_for_Mesh_v4.2.0_src. Iam trying to form a BLE Mesh network and control the light bulb. For my application I need provisioner and client combined and will need to switch between client and provisioner roles. So I want my application should provision bulbs and also configure itself as a client node. 
1. I tried provisioning & configuring client but when I send message from client to On/Off sever led, Iam getting "Mesh assert at 0x0002CA32". How can I provision and configure client node itself? 
2. Iam not able get the composition data from sever when I use more than one access element (Error when #define ACCESS_ELEMENT_COUNT (2) )

Parents
  • Hi,

    1. Did you provision and configure the client successfully? You can use addr2line tool to see where the assert occurs, see this.

    I suggest you take a look at the Client example from Mesh SDK v1.0.1. The provisioner and client was combined in this example. The SDK version is old but you can use the example as a reference. This post is also relevant.

    2, What kind of error do you receive? What do you use to provision the device? Have you made any other modifications to the example other than changing the Element Count?

  • 1. Yes for provisioning I used prov_helper_provision_self() & app_default_models_bind_setup() and configuration I added and set group address (0xC001) as publish address. And have subscribed server to same group address. 
    I checked with address line tool error in timer_scheduler "/home/qmax02/Ble_Mesh/nrf5_SDK_for_Mesh_v4.2.0_src/mesh/core/src/timer_scheduler.c:214 (discriminator 1)".

    2. This is another case - I used static provisioner, after combining provisioner and client role. Initially I had element count as 2 now I tried to provision a sever by this time I didn't get composition data, it went on retrying for three times and then configuration failed.

Reply
  • 1. Yes for provisioning I used prov_helper_provision_self() & app_default_models_bind_setup() and configuration I added and set group address (0xC001) as publish address. And have subscribed server to same group address. 
    I checked with address line tool error in timer_scheduler "/home/qmax02/Ble_Mesh/nrf5_SDK_for_Mesh_v4.2.0_src/mesh/core/src/timer_scheduler.c:214 (discriminator 1)".

    2. This is another case - I used static provisioner, after combining provisioner and client role. Initially I had element count as 2 now I tried to provision a sever by this time I didn't get composition data, it went on retrying for three times and then configuration failed.

Children
No Data
Related