Good day,
I am currently using NCS V3.1.1 and nrf52840 devices.
We are making use of the light control server model and a ambient lux sensor device.
I do have the following enabled in my prj.conf:
CONFIG_BT_MESH_LIGHT_CTRL_SRV_REG=y CONFIG_BT_MESH_LIGHT_CTRL_REG_SPEC=y
I have noticed some odd behaviour in the light control server regulator when trying to turn the light off.
To reproduce:
Set the run and prolong lux to some values like 150 and 50 with run time of 60 seconds and a prolong time of 5 seconds.
Send a Light on/off = On with the Light Controller enabled
The PI regulator will run until the desired lux level is reached (within the set error bound)
After a while send a Light on/off = Off. The light takes a very long time to turn off. It does not immediately turn off. The time it takes to turn off seems to depend on the Kp and Ki values configured in the property IDs.
According to the MshMDLv1.0.1.pdf, table 6.51 specifies that when you are in an off state, the Lightness Out Formula is 0. It should not be dependent on what is currently stored in the regulator.... If you use high Ki values, then the light ramps down very fast (as expected). So seems like it could be integral error winding up, I am not 100% sure.
Not sure if I am misunderstanding something here or in the specification...
I would be happy to get some feedback on this potential issue. Please let me know if I can provide more information or have not explained the problem clearly enough. Happy to provide more information.
Thanks in advance!