cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Light LC Server Model

Rmats.1
Associate II

We are currently using BlueNRG-2 and STSW-BNRG-Mesh v1.10 embedded SDK. The Light LC Server Model is included and we would like to use it.

Does the current library capacity only support up to 1 element? Does it mean that Light LC Server Model is not available yet?

We have tried the following steps:

a. Enable Light LC Server Model

#define ENABLE_LIGHT_MODEL_SERVER_LC (2)

b. Atleast 2 elements are required for LC Server

#define APPLICATION_NUMBER_OF_ELEMENTS (2)

c. Other elements are:

#define ENABLE_GENERIC_MODEL_SERVER_ONOFF (3)
#define ENABLE_GENERIC_MODEL_SERVER_LEVEL (3)
#define ENABLE_GENERIC_MODEL_SERVER_POWER_ONOFF (3)
#define ENABLE_GENERIC_MODEL_SERVER_POWER_ONOFF_SETUP (3)
 
#define ENABLE_LIGHT_MODEL_SERVER_LIGHTNESS (1)
#define ENABLE_LIGHT_MODEL_SERVER_LIGHTNESS_SETUP (1)

I got the following warning message.

BlueNRG-Mesh Library Version = 01.13.000

[Library Capabilities]

Net Keys = 1

App Keys = 1

Elements per Node = 1

Models per Element = 12

Subscription per Model = 6

96260 Appli_BleSetNumberOfElementsCb --Number of Elements enabled in application exceeding from Library Capability!

3 REPLIES 3
Winfred LU
ST Employee

It works for me with the same configurations:

#define ENABLE_LIGHT_MODEL_SERVER_LC (2)
 
#define APPLICATION_NUMBER_OF_ELEMENTS (2)
 
#define ENABLE_GENERIC_MODEL_SERVER_ONOFF (3)
#define ENABLE_GENERIC_MODEL_SERVER_LEVEL (3)
#define ENABLE_GENERIC_MODEL_SERVER_POWER_ONOFF (3)
#define ENABLE_GENERIC_MODEL_SERVER_POWER_ONOFF_SETUP (3)

The messages in console:

Unprovisioned device
 
********************
[Features Supported]
Relay = Enabled
Proxy = Enabled
 
[Options]
PB-ADV = Enabled
PB-GATT = Enabled
 
[Library Capabilities]
Net Keys = 1
App Keys = 1
Elements per Node = 1
Models per Element = 12
Subscription per Model = 6
 
[Enabled Models]
For Element Index = 0 or Element Number = 1
Vendor Server
Generic On Off Server
Generic Level Server
Generic Power On Off Server
Light Lightness Server
For Element Index = 1 or Element Number = 2
Generic On Off Server
Generic Level Server
Generic Power On Off Server
Light LC Server
 
[Important Information]
To Unprovision : Do Power On-Off/Reset 5 time
Models data will be saved in Flash
Models data for all messages wll be saved
Number of Elements enabled in Application: 2
********************
 
BlueNRG-Mesh Lighting Demo Version = 1.13.000
BlueNRG-Mesh Library Version = 01.13.000
UUID = [f8] [1d] [4f] [ae] [7d] [ec] [4b] [53] [a1] [54] [bd] [c9] [7e] [a4] [71] [fe]
2094 Appli_Generic_PowerOnOff_Set - Appli_Generic_PowerOnOff_Set callback received for elementIndex 0
2103 Appli_Generic_PowerOnOff_Set - Appli_Generic_PowerOnOff_Set callback received for elementIndex 1

Thank you for your reply. I got the following message too.

********************
[Features Supported]
Relay = Enabled
Proxy = Enabled
 
[Options]
PB-ADV = Enabled
PB-GATT = Enabled
 
[Library Capabilities]
Net Keys = 1
App Keys = 1
Elements per Node = 1
Models per Element = 12
Subscription per Model = 6
 
[Enabled Models]
For Element Index = 0 or Element Number = 1
Vendor Server
Generic On Off Server
Generic Level Server
Generic Power On Off Server
Light Lightness Server
For Element Index = 1 or Element Number = 2
Generic On Off Server
Generic Level Server
Generic Power On Off Server
Light LC Server
 
[Important Information]
To Unprovision : Do Power On-Off/Reset 5 time
Models data will be saved in Flash
Models data for all messages wll be saved
Number of Elements enabled in Application: 2
********************
 
BlueNRG-Mesh Lighting Demo Version = 1.13.000
BlueNRG-Mesh Library Version = 01.13.000
UUID = [f8] [1d] [4f] [ae] [7d] [ec] [4b] [53] [a1] [54] [77] [74] [d5] [52] [08] [e3]
2099 Appli_Generic_PowerOnOff_Set - Appli_Generic_PowerOnOff_Set callback received for elementIndex 0
2108 Appli_Generic_Level_Set - Appli_Generic_Level_Set callback received for elementIndex 0
2116 Appli_Generic_PowerOnOff_Set - Appli_Generic_PowerOnOff_Set callback received for elementIndex 1

​Then, when I provisioned the device using ST BLE MESH app, I got the following message. Only Element1 is displayed in app as attached.

​Does it mean that the element 2 is not available in ST BLE MESH app? How can I use element 2 and Light LC Server Model?

13873 Appli_BleSetNumberOfElementsCb - Number of Elements enabled in application exceeding from Library Capability!
16497 Appli_BleUnprovisionedIdentifyCb - Unprovisioned Node Identifier received: 0a
17499 Appli_BleAttentionTimerCb -
18499 Appli_BleAttentionTimerCb -
19499 Appli_BleAttentionTimerCb -
20499 Appli_BleAttentionTimerCb -
21499 Appli_BleAttentionTimerCb -
22499 Appli_BleAttentionTimerCb -
23499 Appli_BleAttentionTimerCb -
24499 Appli_BleAttentionTimerCb -
25499 Appli_BleAttentionTimerCb -
26499 Appli_BleAttentionTimerCb -
31357 Appli_BleSetNumberOfElementsCb - Number of Elements enabled in application exceeding from Library Capability!
Device is provisioned by provisioner
AppKey Add received for netKeyIndex 00, appKeyIndex 00
Status is : 00

0693W000006HUjEQAW.jpg

In BLE Mesh SDK, multiple mesh libraries exist with different configurations. The default mesh library supports one element only.

A library supporting at least two elements shall be used. Please link the appropriate library available at path Embedded\Middlewares\ST\ST_BLE_Mesh\Library\libBlueNRG_Mesh_CM0_2E_1N_1A_12M.a