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!
BLE mesh provision
Re: BLE mesh provision
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.muditshamaa wrote: ↑Thu Jan 28, 2021 7:45 pmHello,
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!
-
- Posts: 21
- Joined: Wed Mar 04, 2020 7:14 pm
Re: BLE mesh provision
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.
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.
-
- Posts: 21
- Joined: Wed Mar 04, 2020 7:14 pm
Re: BLE mesh provision
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.
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: weoiss and 110 guests