roblans / ZWave4Net

ZWave4Net is a .NET library that interfaces with the Aeotec / Aeon Labs Z-Stick.
MIT License
41 stars 33 forks source link

Binary Switch Timeout Getting State #63

Closed jdomnitz closed 1 year ago

jdomnitz commented 1 year ago

I'm able to call set on a binary switch and the light does indeed turn on and off. If I call get the command times out.

Transmitted: SOF Request SendData NodeID:004, Command:[Class:SwitchBinary, Command:Get, Payload:], CallbackID:1 2023-04-14 20:53:25.502 Received: ACK 2023-04-14 20:53:25.503 Received: SOF Response SendData Payload:01 2023-04-14 20:53:25.503 Transmitted: ACK 2023-04-14 20:53:25.525 Received: SOF Request SendData CallbackID:1, CompleteOk 2023-04-14 20:53:25.525 Transmitted: ACK 2023-04-14 20:53:25.534 Received: SOF Request 168 Payload:00-01-04-03-25-03-00-00-A9 2023-04-14 20:53:25.534 Transmitted: ACK 2023-04-14 20:53:30.650 Timeout on: NodeID:004, Command:[Class:SwitchBinary, Command:Get, Payload:], Reponse:3. Retrying attempt: 1 2023-04-14 20:53:31.657 Transmitted: SOF Request SendData NodeID:004, Command:[Class:SwitchBinary, Command:Get, Payload:], CallbackID:2 2023-04-14 20:53:31.662 Received: ACK 2023-04-14 20:53:31.663 Received: SOF Response SendData Payload:01 2023-04-14 20:53:31.663 Transmitted: ACK 2023-04-14 20:53:31.684 Received: SOF Request SendData CallbackID:2, CompleteOk 2023-04-14 20:53:31.684 Transmitted: ACK 2023-04-14 20:53:31.694 Received: SOF Request 168 Payload:00-01-04-03-25-03-00-00-AC 2023-04-14 20:53:31.695 Transmitted: ACK 2023-04-14 20:53:36.766 Timeout on: NodeID:004, Command:[Class:SwitchBinary, Command:Get, Payload:], Reponse:3. Retrying attempt: 2

roblans commented 1 year ago

Can you check if the basic get command works?

var basic = node.GetCommandClass(); var report = await basic.Get();

jdomnitz commented 1 year ago

It doesn't appear so.

2023-04-19 20:18:17.163 Transmitted: SOF Request GetNodeProtocolInfo Payload:04 2023-04-19 20:18:17.167 Received: ACK 2023-04-19 20:18:17.168 Received: SOF Response GetNodeProtocolInfo Payload:D3-9C-00-04-10-01-00 Node: 004, Generic = SwitchBinary, Basic = RoutingSlave, Listening = True 2023-04-19 20:18:17.168 Transmitted: ACK 2023-04-19 20:18:17.168 Transmitted: SOF Request GetRoutingTableLine Payload:04 2023-04-19 20:18:17.175 Received: ACK 2023-04-19 20:18:17.175 Received: SOF Response GetRoutingTableLine Payload:01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 Node: 004, Neighbours = 001 2023-04-19 20:18:17.175 Transmitted: ACK 2023-04-19 20:18:17.181 Transmitted: SOF Request SendData NodeID:004, Command:[Class:Basic, Command:Get, Payload:], CallbackID:1 2023-04-19 20:18:17.186 Received: ACK 2023-04-19 20:18:17.186 Received: SOF Response SendData Payload:01 2023-04-19 20:18:17.188 Transmitted: ACK 2023-04-19 20:18:17.207 Received: SOF Request SendData CallbackID:1, CompleteOk 2023-04-19 20:18:17.208 Transmitted: ACK 2023-04-19 20:18:17.216 Received: SOF Request 168 Payload:00-01-04-03-20-03-00-00-B5 2023-04-19 20:18:17.217 Transmitted: ACK 2023-04-19 20:18:22.332 Timeout on: NodeID:004, Command:[Class:Basic, Command:Get, Payload:], Reponse:3. Retrying attempt: 1 2023-04-19 20:18:23.344 Transmitted: SOF Request SendData NodeID:004, Command:[Class:Basic, Command:Get, Payload:], CallbackID:2 2023-04-19 20:18:23.349 Received: ACK 2023-04-19 20:18:23.350 Received: SOF Response SendData Payload:01 2023-04-19 20:18:23.350 Transmitted: ACK 2023-04-19 20:18:23.370 Received: SOF Request SendData CallbackID:2, CompleteOk 2023-04-19 20:18:23.370 Transmitted: ACK 2023-04-19 20:18:23.379 Received: SOF Request 168 Payload:00-01-04-03-20-03-00-00-B5 2023-04-19 20:18:23.379 Transmitted: ACK 2023-04-19 20:18:28.451 Timeout on: NodeID:004, Command:[Class:Basic, Command:Get, Payload:], Reponse:3. Retrying attempt: 2 2023-04-19 20:18:29.458 Transmitted: SOF Request SendData NodeID:004, Command:[Class:Basic, Command:Get, Payload:], CallbackID:3

roblans commented 1 year ago

Could you please upgrade the ZWave4Net package to version 1.2.0 and check if the Timeout issue is fixed.

jdomnitz commented 1 year ago

That fixed the timeout issue!

I can now get switch status and query supported command classes which was also timing out. Thank you!