Ble Mesh: How to provision a device that exceed the reach of the provisioner

binhla
Posts: 10
Joined: Tue Nov 12, 2019 2:25 am

Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby binhla » Sat Dec 18, 2021 3:53 am

Hi Guys,

I am trying to create a Ble Mesh network.

It working well with Devices that inside the reach of the Provisioner. But with the Devices that the Provisioner cannot reach, it seem like there is no way the Provisioner can add them to the network.
I try to add them by a phone with the same NetKey, but the Provisioner cannot communication with them.

So where is the mistake and is there any better way to do it?

Regards,

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby mm_1993 » Thu Dec 23, 2021 12:05 pm

Hi
I Have the Same Problem and another Problem is I dont know what data should I save in NVS that after restart esp module it reconnect to BLE Mesh network again automatically and reconnect to the phone

thanks

binhla
Posts: 10
Joined: Tue Nov 12, 2019 2:25 am

Re: Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby binhla » Tue Jan 04, 2022 9:23 am

Did you mean when using Fast Prov example?

If it was not that case, you can try:
In menu config -> Component config -> ESP BLE Mesh support -> Store BLE Mesh configuration persistently

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby mm_1993 » Tue Jan 04, 2022 10:08 am

binhla wrote:
Tue Jan 04, 2022 9:23 am
Did you mean when using Fast Prov example?

If it was not that case, you can try:
In menu config -> Component config -> ESP BLE Mesh support -> Store BLE Mesh configuration persistently
Hi
thank you so much man. I found this on github isuues and solved this
but I have a new problem and that is:
I want to connect multi client(phone devices or client ESP) to one onoff node server to control a led for onoff
did you have any Idea ?

binhla
Posts: 10
Joined: Tue Nov 12, 2019 2:25 am

Re: Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby binhla » Tue Jan 04, 2022 11:29 am

mm_1993 wrote:
Tue Jan 04, 2022 10:08 am
binhla wrote:
Tue Jan 04, 2022 9:23 am
Did you mean when using Fast Prov example?

If it was not that case, you can try:
In menu config -> Component config -> ESP BLE Mesh support -> Store BLE Mesh configuration persistently
Hi
thank you so much man. I found this on github isuues and solved this
but I have a new problem and that is:
I want to connect multi client(phone devices or client ESP) to one onoff node server to control a led for onoff
did you have any Idea ?
Dears,

I donn't know how to implement on the phone, but it is possible on the ESP.

Just use the example of onoff_client and onoff_server
1. Provisioned all the devices into your net
2. Add AppKey to the nodes
3. Bind AppKey to the client model and the server model (Remember to used the same AppKey for all Node and model)
Done.

In the example, the client send message broadcast.

Code: Select all

common.ctx.addr = 0xFFFF;   /* to all nodes */
So that if there is any device inside the network, sharing the same AppKey, it must receive the client node's message.

Goodluck!

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby mm_1993 » Tue Jan 04, 2022 3:43 pm

binhla wrote:
Tue Jan 04, 2022 11:29 am
Dears,

I donn't know how to implement on the phone, but it is possible on the ESP.

Just use the example of onoff_client and onoff_server
1. Provisioned all the devices into your net
2. Add AppKey to the nodes
3. Bind AppKey to the client model and the server model (Remember to used the same AppKey for all Node and model)
Done.

In the example, the client send message broadcast.

Code: Select all

common.ctx.addr = 0xFFFF;   /* to all nodes */
So that if there is any device inside the network, sharing the same AppKey, it must receive the client node's message.

Goodluck!
thanks a lot @binhla
I will try and test it.
but I need a sample code to understand it well and I found nothing like this.
and another question is :
Is it possible for an ESP-node to be a server and a client at the same time?

regards

binhla
Posts: 10
Joined: Tue Nov 12, 2019 2:25 am

Re: Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby binhla » Wed Jan 05, 2022 1:40 am

mm_1993 wrote:
Tue Jan 04, 2022 3:43 pm
binhla wrote:
Tue Jan 04, 2022 11:29 am
Dears,

I donn't know how to implement on the phone, but it is possible on the ESP.

Just use the example of onoff_client and onoff_server
1. Provisioned all the devices into your net
2. Add AppKey to the nodes
3. Bind AppKey to the client model and the server model (Remember to used the same AppKey for all Node and model)
Done.

In the example, the client send message broadcast.

Code: Select all

common.ctx.addr = 0xFFFF;   /* to all nodes */
So that if there is any device inside the network, sharing the same AppKey, it must receive the client node's message.

Goodluck!
thanks a lot @binhla
I will try and test it.
but I need a sample code to understand it well and I found nothing like this.
and another question is :
Is it possible for an ESP-node to be a server and a client at the same time?

regards
Dears,

Test code is at esp_idf example folder.
Link: https://github.com/espressif/esp-idf/tr ... _mesh_node

And yes, you can implement both the server and client model in the same node.

Best regards.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Ble Mesh: How to provision a device that exceed the reach of the provisioner

Postby chegewara » Mon Feb 26, 2024 10:17 pm

binhla wrote:
Sat Dec 18, 2021 3:53 am
Hi Guys,

I am trying to create a Ble Mesh network.

It working well with Devices that inside the reach of the Provisioner. But with the Devices that the Provisioner cannot reach, it seem like there is no way the Provisioner can add them to the network.
I try to add them by a phone with the same NetKey, but the Provisioner cannot communication with them.

So where is the mistake and is there any better way to do it?

Regards,
Now it is/ will be possible. Mesh v1.1 introduces remote provisioning (please see examples in master branch).

Who is online

Users browsing this forum: No registered users and 138 guests