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

Grouping device in Mesh

I tried to assigned each device to different group(subscriptions) by the following code segment.

    for (uint16_t i=0; i < devCnt; i++) {

......

      ERROR_CHECK(config_client_server_set(m_devkey_handles[client_idx],m_server_handles[client_idx]));      
      ERROR_CHECK(config_client_model_subscription_overwrite(element_address, address, model_id));

}

The above routine is triggered by an Android BLE App, thru nus_data_handler

But it is found that the Mesh/BLE stack will no longer response, after i set successfully for the first device, and just hanged there at the second device.

Dose there any constraint on the sequence on calling the above routine?

If by BLE do the device one by one, it is absolutely okay., Why?

Regards,

Ajay

Parents
  • How are you provisioning the mesh nodes? Do you just want to update the group subscriptions via the Android app or do the whole provisioning via the Android app?

  • Yes, the provision is already done.

    What i want to do is just update the group subscriptions via a BLE command from Android app

    On the Bluetooth Mesh Side.

    I already have a device as a client (As a provisioner, and manager the group info of the Mesh network.)

    and 3Servers already provisioned with the client. They by default will be assigned to the subscription address of 0xCAFE.

    Now, what i want to is, when the client receive an BLE command, then it will assigned the servers to the Group accordingly.

  • If you have an iPhone, I would check out the nrf mesh app on the app store. This app should let you update the group subscriptions. If you do not have an iPhone, the Android version should be coming to the Google Play Store very soon.

  • no, i am doing the android app on my own..

  • And i would like to do the UI on my own. That's why ..

  • Once the Android app is out on the play store, it should be possible to download the source code on the Nordic Semiconductor github code. Then, you can use that app as a groundwork for writing your own mesh app.

Reply
  • Once the Android app is out on the play store, it should be possible to download the source code on the Nordic Semiconductor github code. Then, you can use that app as a groundwork for writing your own mesh app.

Children