Dear all,
I am testing the light_switch demo (SDK for Mesh v2.0.1 and softdevice 6.0.0) below the following configuration:
-- One client: nrf52-PCA10040 DK (light_switch_client_nrf52832_xxAA_s132)
-- One server: nrf52-PCA10040 DK (light_switch_server_nrf52832_xxAA_s132)
-- One provisioner: nrf52-PCA10056 DK (light_switch_provisioner_nrf52840_xxAA_s140)
In light_switch_example_common.h:
#define SERVER_NODE_COUNT (1) #define CLIENT_NODE_COUNT (1)
After programming all boards and debugging the provisioner I get:
0>, main.c, 550, ----- BLE Mesh Light Switch Provisioner Demo ----- <t: 0>, mesh_softdevice_init.c, 112, Initializing SoftDevice... <t: 0>, mesh_softdevice_init.c, 77, Enabling BLE... <t: 2>, mesh_softdevice_init.c, 88, Ram base: 0x200032C8 <t: 547>, main.c, 488, Initializing and adding models <t: 581>, main.c, 441, Restored: App data <t: 583>, main.c, 540, Restored: Handles <t: 586>, provisioner_helper.c, 301, m_netkey_handle:0 m_appkey_handle:0 m_self_devkey_handle:1 <t: 592>, main.c, 578, <start> <t: 26844>, main.c, 565, Starting application ... <t: 26846>, main.c, 567, Provisoned Nodes: 0, Configured Nodes: 0 Next Address: 0x0100 <t: 26850>, main.c, 568, Dev key : DD9DFDF59BC9645D89C114C86B2A6F80 <t: 26853>, main.c, 569, Net key : 19C47451084A42576555EE0EABDE9E14 <t: 26856>, main.c, 570, App key : 15C3C014F3B5593AD1EC2A6FE572F309 <t: 26859>, main.c, 571, Press Button 1 to start provisioning and configuration process. <t: 191475>, main.c, 448, Button 1 pressed <t: 191477>, main.c, 361, Waiting for Client node to be provisioned ... <t: 196239>, provisioner_helper.c, 282, Scanning For Unprovisioned Devices <t: 201799>, provisioner_helper.c, 144, UUID seen: 0059ABCDEFABCDEFACCDEFABCDEFABCD <t: 201802>, provisioner_helper.c, 95, UUID filter matched <t: 202407>, provisioner_helper.c, 259, Provisioning link established <t: 216232>, provisioner_helper.c, 254, Static authentication data provided <t: 228301>, provisioner_helper.c, 192, Provisioning completed received <t: 228304>, provisioner_helper.c, 197, Adding device address, and device keys <t: 228309>, provisioner_helper.c, 214, Addr: 0x0100 addr_handle: 0 netkey_handle: 0 devkey_handle: 2 <t: 232418>, provisioner_helper.c, 155, Local provisioning link closed: prov_state: 2 remaining retries: 2 <t: 232422>, main.c, 282, Provisioning successful <t: 232424>, provisioner_helper.c, 181, Provisioning complete. Node addr: 0x0100 elements: 5 <t: 232428>, node_setup.c, 672, Configuring Node: 0x0100 <t: 232431>, node_setup.c, 586, Config client setup: devkey_handle:2 addr_handle:0 <t: 232435>, node_setup.c, 361, Getting composition data <t: 232475>, main.c, 117, Flash write complete <t: 286192>, main.c, 332, Config client event <t: 286195>, node_setup.c, 371, Adding appkey <t: 290313>, main.c, 332, Config client event <t: 290315>, node_setup.c, 234, Unexpected opcode: exp 0x8003 rx 0x0002 <t: 291984>, main.c, 332, Config client event <t: 291986>, node_setup.c, 272, opcode status field: 0 <t: 291989>, node_setup.c, 382, App key bind: Health server <t: 292886>, main.c, 332, Config client event <t: 292889>, node_setup.c, 272, opcode status field: 0 <t: 292891>, node_setup.c, 450, Setting publication address for the health server to 0x0001 <t: 295957>, main.c, 332, Config client event <t: 295959>, node_setup.c, 272, opcode status field: 0 <t: 295962>, node_setup.c, 416, App key bind: Simple On/Off client on element 0x0101 <t: 297624>, main.c, 332, Config client event <t: 297627>, node_setup.c, 272, opcode status field: 0 <t: 297629>, node_setup.c, 416, App key bind: Simple On/Off client on element 0x0102 <t: 298344>, main.c, 332, Config client event <t: 298347>, node_setup.c, 272, opcode status field: 0 <t: 298349>, node_setup.c, 416, App key bind: Simple On/Off client on element 0x0103 <t: 300170>, main.c, 332, Config client event <t: 300172>, node_setup.c, 272, opcode status field: 0 <t: 300174>, node_setup.c, 416, App key bind: Simple On/Off client on element 0x0104 <t: 301127>, main.c, 332, Config client event <t: 301129>, node_setup.c, 272, opcode status field: 0 <t: 301132>, node_setup.c, 301, Set: on/off client: 0x0101 pub addr: 0x0105 <t: 304897>, main.c, 332, Config client event <t: 304899>, node_setup.c, 272, opcode status field: 0 <t: 304902>, node_setup.c, 301, Set: on/off client: 0x0102 pub addr: 0x0106 <t: 308733>, main.c, 332, Config client event <t: 308736>, node_setup.c, 272, opcode status field: 0 <t: 308738>, node_setup.c, 301, Set: on/off client: 0x0103 pub addr: 0xC003 <t: 313549>, main.c, 332, Config client event <t: 313551>, node_setup.c, 272, opcode status field: 0 <t: 313553>, node_setup.c, 301, Set: on/off client: 0x0104 pub addr: 0xC002 <t: 318005>, main.c, 332, Config client event <t: 318007>, node_setup.c, 272, opcode status field: 0 <t: 318010>, main.c, 248, Configuration of device 0 successful <t: 318013>, main.c, 267, All servers provisioned <t: 370499>, main.c, 117, Flash write complete
However, pressing Button 1 on the client board doesn't have any effect on server. Am I making a mistake?