Page 1 of 1

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

Posted: Sat Dec 18, 2021 3:53 am
by binhla
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,

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

Posted: Thu Dec 23, 2021 12:05 pm
by mm_1993
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

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

Posted: Tue Jan 04, 2022 9:23 am
by binhla
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

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

Posted: Tue Jan 04, 2022 10:08 am
by mm_1993
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 ?

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

Posted: Tue Jan 04, 2022 11:29 am
by binhla
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!

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

Posted: Tue Jan 04, 2022 3:43 pm
by mm_1993
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

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

Posted: Wed Jan 05, 2022 1:40 am
by binhla
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.

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

Posted: Mon Feb 26, 2024 10:17 pm
by chegewara
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).