咨询各位大神一些BLE MESH的相关问题

tangguirong
Posts: 10
Joined: Wed Feb 08, 2023 4:23 am

咨询各位大神一些BLE MESH的相关问题

Postby tangguirong » Wed Feb 08, 2023 5:18 am

本人小白一个,在研究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打印以下信息:
  1. I (2676) EXAMPLE: ESP_BLE_MESH_NODE_PROV_LINK_CLOSE_EVT, bearer PB-ADV
  2. I (3246) EXAMPLE: ESP_BLE_MESH_MODEL_OP_APP_KEY_ADD
  3. I (3246) EXAMPLE: net_idx 0x0000, app_idx 0x0000
  4. I (3256) AppKey: 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
  5. I (3426) EXAMPLE: ESP_BLE_MESH_MODEL_OP_MODEL_APP_BIND
  6. I (3436) EXAMPLE: elem_addr 0x0006, app_idx 0x0000, cid 0xffff, mod_id 0x1000
  7. I (3606) EXAMPLE: event 0x00, opcode 0x8202, src 0x0001, dst 0x0006
  8. I (3606) EXAMPLE: ESP_BLE_MESH_GENERIC_SERVER_STATE_CHANGE_EVT
  9. I (3606) EXAMPLE: onoff 0x01
但是配置client时不会绑定AppKey,打印信息如下:
  1. I (23675) BLE_MESH: recv, app_idx 0xfffe src 0x0001 dst 0x0005
  2. I (23675) BLE_MESH: recv, len 20: 0000000012121212121212121212121212121212
  3. I (23685) BLE_MESH: send, app_idx 0xfffe src 0x0005 dst 0x0001
  4. I (23695) BLE_MESH: send, len 6: 800300000000
  5. I (23695) EXAMPLE: ESP_BLE_MESH_MODEL_OP_APP_KEY_ADD
  6. I (23705) EXAMPLE: net_idx 0x0000, app_idx 0x0000
  7. I (23705) AppKey: 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
  8. I (23895) BLE_MESH: recv, app_idx 0xfffe src 0x0001 dst 0x0005
  9. I (23905) BLE_MESH: recv, len 8: 803d050000000010
  10. I (23905) BLE_MESH: send, app_idx 0xfffe src 0x0005 dst 0x0001
  11. I (23905) BLE_MESH: send, len 9: 803e02050000000010
  12. I (23995) BLE_MESH: recv, app_idx 0x0000 src 0x0001 dst 0x0005
  13. I (23995) BLE_MESH: recv, len 2: 8201
  14. I (27965) BLE_MESH: recv, app_idx 0x0000 src 0x0001 dst 0x0005
  15. I (27965) BLE_MESH: recv, len 2: 8201
并且也无法使用clent给node发控制消息,client打印以下信息:
  1. I (37295) BOARD: tap cb (RELEASE)
  2. E (37295) EXAMPLE: Send Generic OnOff Set Unack failed
但是我通过手机nRF Mesh APP给client和node配置后可以使用client给node发送消息,请问这是什么原因,应该怎么解决

tangguirong
Posts: 10
Joined: Wed Feb 08, 2023 4:23 am

Re: 咨询各位大神一些BLE MESH的相关问题

Postby tangguirong » Thu Feb 09, 2023 5:02 am

哪位大佬帮帮忙指导下,可付费,谢谢了

Who is online

Users browsing this forum: No registered users and 163 guests