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

Setting public key for provisioning in Mesh Shell example

Hello Community,

I am trying to provision a mesh node into the network using zephyr / ncs' mesh shell example. I am able to provision and control the nodes which do not use static oob- public key provisioning. But I cannot provision a mesh node which has secure provisioning enabled (according to Bluetooth Mesh SIG's recommendation

I also tried setting the value via `bt_mesh_prov_remote_pub_key_set` as mentioned in the link. Here is my log

bt_mesh_provisioner.bt_mesh_pb_adv_open: Provisioning XXXX
[00:11:53.013,244] <dbg> bt_mesh_provisioner.send_invite: 
[00:11:53.496,185] <dbg> bt_mesh_provisioner.prov_capabilities: Elements:          2
[00:11:53.496,185] <dbg> bt_mesh_provisioner.prov_capabilities: Algorithms:        1
[00:11:53.496,215] <dbg> bt_mesh_provisioner.prov_capabilities: Public Key Type:   0x01
[00:11:53.496,215] <dbg> bt_mesh_provisioner.prov_capabilities: Static OOB Type:   0x01
[00:11:53.496,215] <dbg> bt_mesh_provisioner.prov_capabilities: Output OOB Size:   0
[00:11:53.496,215] <dbg> bt_mesh_provisioner.prov_capabilities: Output OOB Action: 0x0000
[00:11:53.496,215] <dbg> bt_mesh_provisioner.prov_capabilities: Input OOB Size:    0
[00:11:53.496,215] <dbg> bt_mesh_provisioner.prov_capabilities: Input OOB Action:  0x0000
[00:11:53.496,246] <dbg> bt_mesh_provisioner.send_start: 
[00:11:53.624,206] <dbg> bt_mesh_provisioner.send_pub_key: Local Public Key: HEX-VALUE-NOT-MATCHING-THE-PUBLIC-KEY-SET~
[00:11:53.746,276] <wrn> bt_mesh_provisioner: Error: 0x02
[00:11:54.019,500] <dbg> bt_mesh_provisioner.pub_key_ready: Local public key ready
Provisioning link closed on PB-ADV

Am I configuring incorrectly or missing any steps here? It would be great if we have an example for this. 

My system configuration:

NCS: 1.5.1 / 1.5.99 (Tested on both)

Zephyr: 2.49

NRF52840

Thanks!

Related