BLE_MESH:多块ESP32开发板在不依赖手机APP的情况下可否自动组网?

chenluhui2019
Posts: 30
Joined: Wed Apr 10, 2019 9:08 am

BLE_MESH:多块ESP32开发板在不依赖手机APP的情况下可否自动组网?

Postby chenluhui2019 » Tue Apr 16, 2019 3:31 am

比如我手头有三块ESP32-DEVKITC开发板,里面都烧写ble_mesh_node的代码,在不使用手机app连接的情况下,他们可否组网?
如果可以,需要在demo代码里做哪些修改?
Last edited by chenluhui2019 on Wed Apr 17, 2019 1:24 am, edited 1 time in total.

chenluhui2019
Posts: 30
Joined: Wed Apr 10, 2019 9:08 am

Re: 多块ESP32开发板在不依赖手机APP的情况下可否自动组网?

Postby chenluhui2019 » Tue Apr 16, 2019 7:31 am

Hi,espressif
现在贵司ble_mesh demo的思路,装有ble_mesh_provisioner代码的板子可以和ble_mesh_node的板子发起组网。
1.比如我现在有三块板子烧写ble_mesh_node,一块板子烧写ble_mesh_provisioner。那么这四块板子会自动组网。这样子组成一个ble-mesh网络,那么此时,我的手机APP是否已经无法加入到此ble-mesh网络了?
如果我四块板子都烧写ble_mesh_node,那么就无法组网了?
2.ble_mesh_client_model的代码说明里,
After both onoff client and server devices are provisioned, use UART1 to input the unicast address of the element within the server device;
如何使用UART1输入unicast address呢?
Last edited by chenluhui2019 on Thu Apr 18, 2019 3:34 am, edited 1 time in total.

chenluhui2019
Posts: 30
Joined: Wed Apr 10, 2019 9:08 am

Re: BLE_MESH:多块ESP32开发板在不依赖手机APP的情况下可否自动组网?

Postby chenluhui2019 » Wed Apr 17, 2019 11:47 am

Hi,Espressif
贵司的demo代码,当provisioner和node组网后,可否调用prov_send(buf)函数进行通讯?

Wangcheng
Posts: 50
Joined: Wed Mar 06, 2019 3:26 am

Re: BLE_MESH:多块ESP32开发板在不依赖手机APP的情况下可否自动组网?

Postby Wangcheng » Thu Apr 18, 2019 11:14 am

chenluhui2019 wrote:
Tue Apr 16, 2019 3:31 am
比如我手头有三块ESP32-DEVKITC开发板,里面都烧写ble_mesh_node的代码,在不使用手机app连接的情况下,他们可否组网?
如果可以,需要在demo代码里做哪些修改?
1 有三块ESP32-DEVKITC开发板,里面都烧写ble_mesh_node的代码,是不能自组网的,mesh 规范中规定的是由 provisioner 去配置 unprovision device入网。
2 你可以一个板子烧写ble_mesh_provisioner ,另外两个烧写ble_mesh_node的代码。这样3个板子就能组网了。

Wangcheng
Posts: 50
Joined: Wed Mar 06, 2019 3:26 am

Re: BLE_MESH:多块ESP32开发板在不依赖手机APP的情况下可否自动组网?

Postby Wangcheng » Thu Apr 18, 2019 11:16 am

chenluhui2019 wrote:
Wed Apr 17, 2019 11:47 am
Hi,Espressif
贵司的demo代码,当provisioner和node组网后,可否调用prov_send(buf)函数进行通讯?
Hi chenluhui2019,
我不知道prov_send(buf)是什么?你应该调用我们提供的API进行发送消息。具体的你可以参考我们提供的demo。

Who is online

Users browsing this forum: No registered users and 0 guests