Hello,
I am improving my app to control the MAX! heater thermostats and it sometimes works perfect.
The only problem is when i try to change the temperatures a few times after each other.
My log shows the not enough credit messages:
2021.04.10 11:21:09 2: cm, CUL not enough credit! credit10ms is 32, but we need 110. Waiting 78 seconds. Currently 1 messages are waiting to be sent
2021.04.10 11:22:30 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 1 messages are waiting to be sent
2021.04.10 11:24:20 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 3 messages are waiting to be sent
2021.04.10 11:26:09 2: cm, CUL not enough credit! credit10ms is 3, but we need 113. Waiting 110 seconds. Currently 4 messages are waiting to be sent
2021.04.10 11:28:02 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 4 messages are waiting to be sent
2021.04.10 11:29:51 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 5 messages are waiting to be sent
2021.04.10 11:31:41 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 6 messages are waiting to be sent
2021.04.10 11:33:30 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 7 messages are waiting to be sent
2021.04.10 11:35:20 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 8 messages are waiting to be sent
2021.04.10 11:37:09 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 9 messages are waiting to be sent
2021.04.10 11:38:59 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 9 messages are waiting to be sent
2021.04.10 11:40:48 2: cm, CUL not enough credit! credit10ms is 3, but we need 110. Waiting 107 seconds. Currently 10 messages are waiting to be sent
In my code i check the desired temperature from my database. If that is not the same as the MAX thermostat, i try to update it to the desired temperature.
The problem is when the 2 temperatures are not the same and the credits are empty, my program keeps trying to change the desired temperatures on the radiator thermostats so i keep getting more and more requests.
Is there a better way to improve this, i saw this (
https://blog.mjwconsult.co.uk/modifying-cul-firmware-to-increase-send-limit-for-eq3-max-heating-thermostats/) but i am not sure if this will work on an arduino (Devices/CUL is changed, i use Devices/NanoCul), and also i don't know if this is "legal"?
Thanks for the help
Update:
Also, to just change 1 desired temperature, the cul uses 100 credits, is this normal? It seems a lot but maybe it is normal