the provisioner how to know a bt mesh device is not in the network

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

Hi:

     I find a question that if a device have been reset to factory,on the app,the device icon and message have not been removed from the provisioner,

            I  want to know if there is any API to notify the provisioner that the device was removed from the mesh network.

    if there is a mechanism that the provisioner can get the network nodes heartbeat during a fixed period

thanks!

  mandy

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

There is a secure process to remove a node from a mesh network, where necessary key refreshments and database changes has to be done.

If anyone intentionally do factory reset to one of the node in the network then provisioner will not be knowing about it at the time of reset. But during the next key refresh procedure, provisioner will know about the unreachable(reset node) node when it does not receive new keys. And this node will be blacklisted by config client and will be notified about it to the user.

You can use below APIs to configure heartbeat publication and subscription.

wiced_bt_mesh_config_heartbeat_publication_set

wiced_bt_mesh_config_heartbeat_publication_get

wiced_bt_mesh_config_heartbeat_subscription_get

wiced_bt_mesh_config_heartbeat_subscription_set

View solution in original post

0 Likes
3 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

There is a secure process to remove a node from a mesh network, where necessary key refreshments and database changes has to be done.

If anyone intentionally do factory reset to one of the node in the network then provisioner will not be knowing about it at the time of reset. But during the next key refresh procedure, provisioner will know about the unreachable(reset node) node when it does not receive new keys. And this node will be blacklisted by config client and will be notified about it to the user.

You can use below APIs to configure heartbeat publication and subscription.

wiced_bt_mesh_config_heartbeat_publication_set

wiced_bt_mesh_config_heartbeat_publication_get

wiced_bt_mesh_config_heartbeat_subscription_get

wiced_bt_mesh_config_heartbeat_subscription_set

0 Likes
mawu_4270096
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

Hi  DheerajP_41 :

      now  I  don't  know how to use  this APIs,  Can you briefly introduce how to use this heartbeat APIs

thanks!

mandy

0 Likes

Hi,

You can get the description of these APIs from wiced_bt_mesh_provision.h. Please go through it.

Also you can refer mesh_provision_client app where these APIs have been used to GET/SET the heartbeat messages.

When mesh core receives the heartbeat messages, it will set the parameters accordingly and give responses. Please check the clientcontrol logs for the sent and received messages.

Thanks,

-Dheeraj