mmmm it's not clear to me how free slots are counted..pbrand wrote:I'm not sure about the free memory slots, but I think the Cube works similar to the older ELV devices in that is has a command queue in which all commands to be send are queued. It then processes the commands one by one. I guess the free memory slots is an indication of how full the queue is. If there are no slots available, the memory is full (the queue is full) and the cube will not accept any new commands and therefore discard them.
So we could (or should) keep an eye on the duty cycle to see if the cube has room for commands timeslot wise, and keep an eye on the free memory to see if the cube has room for commands memory (or queue) wise.
But that's only an educated guess
i suppose it's a hex value, so i converted it to decimal and sent a list of commands (auto-manual-auto-manual) to the cube, with a sleep time of 2 seconds between each. this is the result
Code: Select all
Command sent. Duty cycle reached: 42%. Free memory slots: 49
Command sent. Duty cycle reached: 45%. Free memory slots: 49
Command sent. Duty cycle reached: 48%. Free memory slots: 46
Command sent. Duty cycle reached: 50%. Free memory slots: 47
Command sent. Duty cycle reached: 51%. Free memory slots: 49
Command sent. Duty cycle reached: 54%. Free memory slots: 45
Command sent. Duty cycle reached: 54%. Free memory slots: 47
Command sent. Duty cycle reached: 57%. Free memory slots: 49
Command sent. Duty cycle reached: 57%. Free memory slots: 48
Command sent. Duty cycle reached: 60%. Free memory slots: 47
as expected, reaching full duty cycle, commands are accepted but slots go down..
Code: Select all
Command sent. Duty cycle reached: 99%. Free memory slots: 45
Command sent. Duty cycle reached: 99%. Free memory slots: 44
Command sent. Duty cycle reached: 99%. Free memory slots: 43
Command sent. Duty cycle reached: 99%. Free memory slots: 42
Command sent. Duty cycle reached: 99%. Free memory slots: 41
Command sent. Duty cycle reached: 99%. Free memory slots: 40
Command sent. Duty cycle reached: 99%. Free memory slots: 39
Command sent. Duty cycle reached: 99%. Free memory slots: 38
Command sent. Duty cycle reached: 99%. Free memory slots: 37
Command sent. Duty cycle reached: 99%. Free memory slots: 36

mmm curious about return value when duty cycle is 100% and slots are over..
Code: Select all
S:63,0,05 Command sent. Duty cycle reached: 99%. Free memory slots: 5
S:63,0,04 Command sent. Duty cycle reached: 99%. Free memory slots: 4
S:63,0,03 Command sent. Duty cycle reached: 99%. Free memory slots: 3
S:63,0,02 Command sent. Duty cycle reached: 99%. Free memory slots: 2
S:63,0,01 Command sent. Duty cycle reached: 99%. Free memory slots: 1
S:63,0,00 Command sent. Duty cycle reached: 99%. Free memory slots: 0
S:63,1,00 Command sending failed - Command rejected.
Now my cube will go on all night switching my living room heating, but at least we know what to expect

bye!