Hi Nordic team,
I am tring to make a BLE mesh net, I use two promicro(nrf52840), one for mesh_provisioner_example, one for mesh_on_off_app_example.
But mesh_provisioner_example will stuck, how can I fix this?
Due to easy debug, I add some log in code, also I remove OOB in mesh_on_off_app_example
static const struct bt_mesh_prov prov = {
.uuid = dev_uuid,
// .output_size = 6,
// .output_actions = (BT_MESH_DISPLAY_NUMBER | BT_MESH_DISPLAY_STRING),
// .output_number = output_number,
// .output_string = output_string,
.complete = prov_complete,
.reset = prov_reset,
};
Here is node log(mesh_on_off_app_example),machine still alive.
*** Booting nRF Connect SDK v3.1.0-6c6e5b32496e ***
*** Using Zephyr OS v4.1.99-1612683d4010 ***
Initializing...
[00:00:00.012,573] <inf> fs_nvs: 3 Sectors of 4096 bytes
[00:00:00.012,573] <inf> fs_nvs: alloc wra: 0, e88
[00:00:00.012,603] <inf> fs_nvs: data wra: 0, 20c
[00:00:00.013,427] <inf> bt_sdc_hci_driver: SoftDevice Controller build revision:
fc de 41 eb a2 d1 42 24 00 b5 f8 57 9f ac 9d 9e |..A...B$ ...W....
aa c9 b4 34 |...4
[00:00:00.017,456] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.017,486] <inf> bt_hci_core: HW Variant: nRF52x (0x0002)
[00:00:00.017,517] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 252.16862 Build 1121034987
[00:00:00.017,883] <inf> bt_hci_core: No ID address. App must call settings_load()
Bluetooth initialized
[00:00:00.154,296] <inf> bt_hci_core: HCI transport: SDC
[00:00:00.154,388] <inf> bt_hci_core: Identity: C7:D6:01:06:B1:FA (random)
[00:00:00.154,418] <inf> bt_hci_core: HCI: version 6.1 (0x0f) revision 0x1069, manufacturer 0x0059
[00:00:00.154,479] <inf> bt_hci_core: LMP: version 6.1 (0x0f) subver 0x1069
[00:00:00.162,078] <inf> bt_mesh_provisionee: Device UUID: fab10601-d6c7-0000-0000-000000000000
Mesh initialized
[00:00:10.777,191] <dbg> bt_mesh_provisionee: prov_invite: Attention Duration: 0 seconds
[00:00:12.181,152] <dbg> bt_mesh_provisionee: prov_start: Algorithm: 0x01
[00:00:12.181,182] <dbg> bt_mesh_provisionee: prov_start: Public Key: 0x00
[00:00:12.181,213] <dbg> bt_mesh_provisionee: prov_start: Auth Method: 0x00
[00:00:12.181,213] <dbg> bt_mesh_provisionee: prov_start: Auth Action: 0x00
[00:00:12.181,243] <dbg> bt_mesh_provisionee: prov_start: Auth Size: 0x00
[00:00:12.358,337] <dbg> bt_mesh_provisionee: prov_pub_key: Remote Public Key: cefe4522223ebb1a9c1b110ae021a5d94d06cfa327b88094e22757b59b07c5198d8d7d4bb
[00:00:12.386,901] <dbg> bt_mesh_provisionee: prov_dh_key_gen: DHkey: 0bc7864542365a5cfb003e6cf616b895cae3616f3fbcf9b64a4a0bc0bde17b0c
[00:00:12.387,023] <dbg> bt_mesh_provisionee: send_pub_key: Local Public Key: 27dcacf75cd701006dcabe49b24f7bfe6f10b6cb8d352713d84ea9201514541f2dfc92f9bd
[00:00:13.345,062] <dbg> bt_mesh_provisionee: prov_confirm: Remote Confirm: 6cfeb7113e6ac6b732d2f3636a722847c817e7aaa12c231944b0bf06ed382ccb
[00:00:13.345,153] <dbg> bt_mesh_provisionee: send_confirm: ConfInputs[0] 0004000300000000000000000100000000cefe4522223ebb1a9c1b110ae021a5
[00:00:13.345,245] <dbg> bt_mesh_provisionee: send_confirm: ConfInputs[32] d94d06cfa327b88094e22757b59b07c5198d8d7d4bad5cf1c2138afceb1e8a91
[00:00:13.345,306] <dbg> bt_mesh_provisionee: send_confirm: ConfInputs[64] 20938fac91c768ac7b22b54e95b0aa62fb27dcacf75cd701006dcabe49b24f7b
[00:00:13.345,367] <dbg> bt_mesh_provisionee: send_confirm: ConfInputs[96] fe6f10b6cb8d352713d84ea9201514541f2dfc92f9b6d49f21ce543eeec763ff
[00:00:13.345,428] <dbg> bt_mesh_provisionee: send_confirm: ConfInputs[128] b9a30ae5846f702c5f8ea2345d3246ad0d
[00:00:13.346,099] <dbg> bt_mesh_provisionee: send_confirm: ConfirmationSalt: fdf1c74eacb17beb325dbbf9b7dbf24d97386d569c241043d0afc54a1ca8020d
[00:00:13.346,160] <dbg> bt_mesh_provisionee: send_confirm: AuthValue 0000000000000000000000000000000000000000000000000000000000000000
[00:00:13.347,351] <dbg> bt_mesh_provisionee: send_confirm: ConfirmationKey: f1bace7116e868b7a32f31a94c21aed2d24c51b8ee22fb9ccbdba76e116e7e9f
[00:00:13.347,595] <dbg> bt_mesh_provisionee: send_confirm: LocalRandom: 1030ac8f4ea74114b1b80aa0a3a320e2a1c98fc9dc7a7ec4e14bbda3d444a308
[00:00:14.299,468] <dbg> bt_mesh_provisionee: prov_random: Remote Random: b7e2d87da92fc4bb7a7a3b42f6004ec40af45e06f09b5377333e4c923ec2927f
[00:00:14.300,659] <dbg> bt_mesh_provisionee: prov_random: ProvisioningSalt: 93e0b98aa3946283ddffc7b4a552aa58
[00:00:15.207,916] <dbg> bt_mesh_provisionee: prov_data:
[00:00:15.209,716] <dbg> bt_mesh_provisionee: prov_data: Nonce: 74a69a9b5c0a1d7e1888deb1f3
[00:00:15.210,876] <dbg> bt_mesh_provisionee: prov_data: net_idx 0 iv_index 0x00000000, addr 0x0002
[00:00:15.211,090] <inf> bt_mesh_main: Primary Element: 0x0002
[00:00:15.211,120] <dbg> bt_mesh_main: bt_mesh_provision: net_idx 0x0000 flags 0x00 iv_index 0x0000
provisioning complete for net_idx 0x0000 addr 0x0002
button_press_cnt 0x01 onoff_state 0x01
Button press worker triggered.
Here is provisioner log, this machine is stuck here.
*** Booting nRF Connect SDK v3.1.0-6c6e5b32496e ***
*** Using Zephyr OS v4.1.99-1612683d4010 ***
Initializing...
[00:00:00.008,666] <inf> fs_nvs: 8 Sectors of 4096 bytes
[00:00:00.008,666] <inf> fs_nvs: alloc wra: 0, 9e8
[00:00:00.008,666] <inf> fs_nvs: data wra: 0, 950
[00:00:00.009,277] <inf> bt_sdc_hci_driver: SoftDevice Controller build revision:
fc de 41 eb a2 d1 42 24 00 b5 f8 57 9f ac 9d 9e |..A...B$ ...W....
aa c9 b4 34 |...4
[00:00:00.014,617] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.014,648] <inf> bt_hci_core: HW Variant: nRF52x (0x0002)
[00:00:00.014,678] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 252.16862 Build 1121034987
[00:00:00.015,167] <inf> bt_hci_core: No ID address. App must call settings_load()
Bluetooth initialized
Mesh initialized
Loading stored settings
[00:00:00.159,667] <inf> bt_hci_core: HCI transport: SDC
[00:00:00.159,759] <inf> bt_hci_core: Identity: E9:B3:8F:AE:D4:94 (random)
[00:00:00.159,790] <inf> bt_hci_core: HCI: version 6.1 (0x0f) revision 0x1069, manufacturer 0x0059
[00:00:00.159,820] <inf> bt_hci_core: LMP: version 6.1 (0x0f) subver 0x1069
✅ prov_complete callback! net_idx=0x0000, addr=0x0001
Setting node_addr from prov_complete
Using stored CDB
[00:00:00.175,170] <inf> bt_mesh_main: Primary Element: 0x0001
[00:00:00.175,201] <dbg> bt_mesh_main: bt_mesh_provision: net_idx 0x0000 flags 0x00 iv_index 0x0000
Using stored settings
📡 Unprovisioned beacon: fab10601d6c700000000000000000000
📡 Unprovisioned beacon: fab10601d6c700000000000000000000
📡 Unprovisioned beacon: fab10601d6c700000000000000000000
📍 Button IRQ: pin_logic = 1
⬇️ BUTTON PRESSED - Starting 5-second timer
📍 Button IRQ: pin_logic = 0
BTN release
BTN pair logic start
Waiting for unprovisioned beacon...
📡 Unprovisioned beacon: fab10601d6c700000000000000000000
Device fab10601d6c700000000000000000000 detected, starting provisioning...
[00:00:06.312,469] <dbg> bt_mesh_provisioner: link_open: Provisioning 00000000-0000-0000-0000-c7d60106b1fa
Provisioning in progress... waiting for completion signal.
[00:00:06.382,080] <dbg> bt_mesh_provisioner: send_invite:
[00:00:07.114,624] <dbg> bt_mesh_provisioner: prov_capabilities: Elements: 4
[00:00:07.114,654] <dbg> bt_mesh_provisioner: prov_capabilities: Algorithms: 0x03
[00:00:07.114,654] <dbg> bt_mesh_provisioner: prov_capabilities: Public Key Type: 0x00
[00:00:07.114,685] <dbg> bt_mesh_provisioner: prov_capabilities: Static OOB Type: 0x00
[00:00:07.114,685] <dbg> bt_mesh_provisioner: prov_capabilities: Output OOB Size: 0
[00:00:07.114,715] <dbg> bt_mesh_provisioner: prov_capabilities: Output OOB Action: 0x0000
[00:00:07.114,746] <dbg> bt_mesh_provisioner: prov_capabilities: Input OOB Size: 0
[00:00:07.114,746] <dbg> bt_mesh_provisioner: prov_capabilities: Input OOB Action: 0x0000
[00:00:07.114,776] <dbg> bt_mesh_provisioner: send_start:
[00:00:07.828,338] <dbg> bt_mesh_provisioner: send_pub_key: Local Public Key: cefe4522223ebb1a9c1b110ae021a5d94d06cfa327b880b
[00:00:08.205,261] <dbg> bt_mesh_provisioner: prov_pub_key: Remote Public Key: 27dcacf75cd701006dcabe49b24f7bfe6f10b6cb8d352d
[00:00:08.233,459] <dbg> bt_mesh_provisioner: prov_dh_key_gen: DHkey: 0bc7864542365a5cfb003e6cf616b895cae3616f3fbcf9b64a4a0bc
[00:00:08.233,520] <dbg> bt_mesh_provisioner: send_confirm: ConfInputs[0] 0004000300000000000000000100000000cefe4522223ebb5
[00:00:08.233,581] <dbg> bt_mesh_provisioner: send_confirm: ConfInputs[32] d94d06cfa327b88094e22757b59b07c5198d8d7d4bad5cf11
[00:00:08.233,642] <dbg> bt_mesh_provisioner: send_confirm: ConfInputs[64] 20938fac91c768ac7b22b54e95b0aa62fb27dcacf75cd701b
[00:00:08.233,734] <dbg> bt_mesh_provisioner: send_confirm: ConfInputs[96] fe6f10b6cb8d352713d84ea9201514541f2dfc92f9b6d49ff
[00:00:08.233,795] <dbg> bt_mesh_provisioner: send_confirm: ConfInputs[128] b9a30ae5846f702c5f8ea2345d3246ad0d
[00:00:08.234,405] <dbg> bt_mesh_provisioner: send_confirm: ConfirmationSalt: fdf1c74eacb17beb325dbbf9b7dbf24d97386d569c2410d
[00:00:08.234,497] <dbg> bt_mesh_provisioner: send_confirm: AuthValue 000000000000000000000000000000000000000000000000000000
[00:00:08.235,626] <dbg> bt_mesh_provisioner: send_confirm: ConfirmationKey: f1bace7116e868b7a32f31a94c21aed2d24c51b8ee22fb9f
[00:00:08.235,900] <dbg> bt_mesh_provisioner: send_confirm: LocalRandom: b7e2d87da92fc4bb7a7a3b42f6004ec40af45e06f09b5377333f
[00:00:09.148,010] <dbg> bt_mesh_provisioner: prov_confirm: Remote Confirm: 8c966f4c2baeffcbf46dc9a097bc5546ebedcb9b937719f8a
[00:00:10.101,715] <dbg> bt_mesh_provisioner: prov_random: Remote Random: 1030ac8f4ea74114b1b80aa0a3a320e2a1c98fc9dc7a7ec4e18
[00:00:10.102,844] <dbg> bt_mesh_provisioner: prov_random: ProvisioningSalt: 93e0b98aa3946283ddffc7b4a552aa58
[00:00:10.104,644] <dbg> bt_mesh_provisioner: send_prov_data: Nonce: 74a69a9b5c0a1d7e1888deb1f3
[00:00:10.117,645] <dbg> bt_mesh_provisioner: send_prov_data: net_idx 0, iv_index 0x00000000, addr 0x0002

