本人小白一个,在研究BLE MESH期间遇到一些问题无法解决,特来请教论坛大佬们。我用3块ESP32C3的开发板,分别烧录并运行“ESP BLE Mesh Client Model Demo”、“ESP BLE Mesh Node demo”和“ESP BLE Mesh Provisioner demo”,想通过Provisioner开发板自动配置client和node两块开发板,然后使用client控制node。现在遇到的问题是,Provisioner开发板给node开发板配置的时候似乎一切正常,可以配置成功,node打印以下信息:
I (2676) EXAMPLE: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer PB-ADV
I (3246) EXAMPLE: ESP_BLE_MESH_MODEL_OP_APP_KEY_ADD
I (3246) EXAMPLE: net_idx 0x0000, app_idx 0x0000
I (3256) AppKey: 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
I (3426) EXAMPLE: ESP_BLE_MESH_MODEL_OP_MODEL_APP_BIND
I (3436) EXAMPLE: elem_addr 0x0006, app_idx 0x0000, cid 0xffff, mod_id 0x1000
I (3606) EXAMPLE: event 0x00, opcode 0x8202, src 0x0001, dst 0x0006
I (3606) EXAMPLE: ESP_BLE_MESH_GENERIC_SERVER_STATE_CHANGE_EVT
I (3606) EXAMPLE: onoff 0x01
但是配置client时不会绑定AppKey,打印信息如下:
I (23675) BLE_MESH: recv, app_idx 0xfffe src 0x0001 dst 0x0005
I (23675) BLE_MESH: recv, len 20: 0000000012121212121212121212121212121212
I (23685) BLE_MESH: send, app_idx 0xfffe src 0x0005 dst 0x0001
I (23695) BLE_MESH: send, len 6: 800300000000
I (23695) EXAMPLE: ESP_BLE_MESH_MODEL_OP_APP_KEY_ADD
I (23705) EXAMPLE: net_idx 0x0000, app_idx 0x0000
I (23705) AppKey: 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
I (23895) BLE_MESH: recv, app_idx 0xfffe src 0x0001 dst 0x0005
I (23905) BLE_MESH: recv, len 8: 803d050000000010
I (23905) BLE_MESH: send, app_idx 0xfffe src 0x0005 dst 0x0001
I (23905) BLE_MESH: send, len 9: 803e02050000000010
I (23995) BLE_MESH: recv, app_idx 0x0000 src 0x0001 dst 0x0005
I (23995) BLE_MESH: recv, len 2: 8201
I (27965) BLE_MESH: recv, app_idx 0x0000 src 0x0001 dst 0x0005
I (27965) BLE_MESH: recv, len 2: 8201
并且也无法使用clent给node发控制消息,client打印以下信息:
I (37295) BOARD: tap cb (RELEASE)
E (37295) EXAMPLE: Send Generic OnOff Set Unack failed
但是我通过手机nRF Mesh APP给client和node配置后可以使用client给node发送消息,请问这是什么原因,应该怎么解决