BLE mesh provision

muditshamaa
Posts: 1
Joined: Sat Jan 02, 2021 12:26 am

BLE mesh provision

Postby muditshamaa » Thu Jan 28, 2021 7:45 pm

Hello,

I'm new to BLE mesh and have been trying to learn using the provided examples.

I have 3 esp32s, 2 of which (node 1 and node 2) have a generic onoff server model and generic onoff client model running on them respectively. Node 1 has an LED which can be toggled from node 2. The third esp32 (node 3) is running the Provisioner example on it.

The issue I'm facing is that the app key to which the provisioner (node 3) binds node 1 and node 2 is not the same (that is what I suspect) because I'm unable to toggle LED on node 1 from node 2. If I use the NRf mesh app and bind the app key, I'm able to control the LED on node 1 from node 2.

Can someone please help me resolve this issue?

Thankyou!

abansal22
Posts: 105
Joined: Wed Apr 22, 2020 8:24 am

Re: BLE mesh provision

Postby abansal22 » Thu Feb 11, 2021 3:06 pm

muditshamaa wrote:
Thu Jan 28, 2021 7:45 pm
Hello,

I'm new to BLE mesh and have been trying to learn using the provided examples.

I have 3 esp32s, 2 of which (node 1 and node 2) have a generic onoff server model and generic onoff client model running on them respectively. Node 1 has an LED which can be toggled from node 2. The third esp32 (node 3) is running the Provisioner example on it.

The issue I'm facing is that the app key to which the provisioner (node 3) binds node 1 and node 2 is not the same (that is what I suspect) because I'm unable to toggle LED on node 1 from node 2. If I use the NRf mesh app and bind the app key, I'm able to control the LED on node 1 from node 2.

Can someone please help me resolve this issue?

Thankyou!
Could you please provide the whole code for node 1, node 2 and node 3. I suspect something is wrong while provisioning of the nodes.

franzhoepfinger
Posts: 18
Joined: Wed Mar 04, 2020 7:14 pm

Re: BLE mesh provision

Postby franzhoepfinger » Fri Mar 19, 2021 8:03 pm

I have the same Topic.

Sorry for opening an issue, i should have look here. https://github.com/espressif/esp-idf/issues/6748


as by Description the "https://github.com/espressif/esp-idf/tr ... rovisioner" example does Provision the Examples https://github.com/espressif/esp-idf/tr ... _mesh_node.

and this works.

i was using 3 Devices, 1x onoff_client, 2x onoff_server, and it happens as follows:

all 3 Devices are provisioned by the Provisioner.

the 2 onoff_server then get a "on" for the RED LED.

Problem:
the onoff_client does NOT work,

Expected: Press a Switch on the onoff_client to Operate the onoff_server.
same as if provisioned by App.


the Provisioner does not bind the onoff_client to the onoff_server, but it binds the Server to the local model "esp_ble_mesh_provisioner_bind_app_key_to_local_model" ...

also:
ESP_BLE_MESH_MODEL_OP_MODEL_APP_BIND

is fixed to ESP_BLE_MESH_MODEL_ID_GEN_ONOFF_SRV, so at the onoff_client it does not execute the bind, because the client expect ESP_BLE_MESH_MODEL_ID_GEN_ONOFF_CLI in the Bind Message.

franzhoepfinger
Posts: 18
Joined: Wed Mar 04, 2020 7:14 pm

Re: BLE mesh provision

Postby franzhoepfinger » Sat Mar 20, 2021 12:24 am

https://github.com/Meisterschulen-am-Os ... rovisioner
this works as explected but i do not like the fact that i need to store so much locally which might be already in the lib inside. ... this can be done for sure nicer.

Who is online

Users browsing this forum: No registered users and 121 guests