Multiple performCommand works on Unsecure, fails on S2

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
calypso2k
Posts: 11
Joined: 12 Sep 2021 17:55

Multiple performCommand works on Unsecure, fails on S2

Post by calypso2k »

Z-Uno bootloader version:2.1.7
Security:S2
Frequency:EU
Device included:yes
Device included securely by controller:yes
Controller:RaZberry 5.39/Z-Way 3.2.0
Devel system - only controller and Z-Uno in network

Hi,
I have this situation, I've made 10 switches with

Code: Select all

ZUNO_SETUP_CHANNELS(ZUNO_SWITCH_BINARY(getter0, setter0),
                    ZUNO_SWITCH_BINARY(getter1, setter1),
                    ZUNO_SWITCH_BINARY(getter2, setter2),
                    ZUNO_SWITCH_BINARY(getter3, setter3),
                    ZUNO_SWITCH_BINARY(getter4, setter4),
                    ZUNO_SWITCH_BINARY(getter5, setter5),
                    ZUNO_SWITCH_BINARY(getter6, setter6),
                    ZUNO_SWITCH_BINARY(getter7, setter7),
                    ZUNO_SWITCH_BINARY(getter8, setter8),
                    ZUNO_SWITCH_BINARY(getter9, setter9)
                    );
all setters and getters looks the same, only different state variable

Code: Select all

byte getter0() {
  return lastSetValue_R0;
}

void setter0(byte newValue) {
  if (newValue > 0) {
    digitalWrite(RELAY_PIN0, LOW);
  } else {
    digitalWrite(RELAY_PIN0, HIGH);
  }

  lastSetValue_R0 = newValue;
  digitalWrite(STATUS_LED, LOW);
}
When the bootloader is Unsecure and sketch is compiled as Unsecure I can send (rapidly) 10 performCommands in a row to Z-Uno and it switches accordingly. You can also make a Scene where you choose 10 switches and set them to ON or OFF.

When the bootloader is S2 and sketch is compiled as S2 Authenticated sending more then two (rapidly) commands in a row, results in no action on Z-Uno side. Also creating a scene shows the same.

This is easily reproducible. Log shows that all was delivered. Can you point me to solution? Thanks.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Multiple performCommand works on Unsecure, fails on S2

Post by PoltoS »

Can you show the log? Sure you have re-included Z-Uno with S2 and entered PIN code?
Post Reply