ble mesh light model

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

ble mesh light model

Postby chegewara » Thu May 28, 2020 8:15 pm

We have generic ON/OFF example and more or less i understand it, but i need to use lighting server/client model.
I know how lighting model should extend generic on/off and generic level models
https://www.bluetooth.com/wp-content/up ... _FINAL.pdf
but now is my question, does it is implemented and i have to add only lighting model to element or i need to add generic on/off and generic level too?
If i build elements this way then nRF mesh shows models in element, but i dont see any options to control like in case of generic on/off model:

Code: Select all

static esp_ble_mesh_model_t extend_model_1[] = {
     ESP_BLE_MESH_MODEL_LIGHT_LIGHTNESS_SETUP_SRV(&light_pub_2, &light_server_2),
     ESP_BLE_MESH_MODEL_LIGHT_LIGHTNESS_SRV(&light_pub_3, &light_server_3),
};

static esp_ble_mesh_model_t extend_model_2[] = {
    ESP_BLE_MESH_MODEL_LIGHT_LC_SRV(&light_pub, &light_server_3),
    ESP_BLE_MESH_MODEL_LIGHT_LC_SETUP_SRV(&light_pub_2, &light_server_2),
};
This may be caused by nRF mesh app not being ready to work with lighting models or which is more probable i have to add more models to element.

Probably i am making big mistake in this line of code:

Code: Select all

ESP_BLE_MESH_MODEL_PUB_DEFINE(light_pub, 2 + 3, ROLE_NODE); // what is message length for different models?
Thanks for any tips.

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

Re: ble mesh light model

Postby abansal22 » Tue Aug 25, 2020 11:35 am

Hello,

As far as my knowledge, till today nrf mesh does not support the lightning model.

Also when I set the sensor server model, the sensor setup model is the extended one. I have to include in the root model. so I think you have to implement the on_off model to get the extension model.

I am very new to the esp32. and my knowledge is very limited.

yashjariwala
Posts: 3
Joined: Thu Oct 28, 2021 5:05 am

Re: ble mesh light model

Postby yashjariwala » Thu Oct 28, 2021 5:25 am

Any progress on this project?

Who is online

Users browsing this forum: Google [Bot], Konstantin, MicroController and 91 guests