-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the Set Serial API (0x0B) to reset nodeId to 8 bits #1969
base: main
Are you sure you want to change the base?
Conversation
The other PR was not going to work without major refactoring to allow both 8 and 16 bit node IDs. Since the binding can not support LR nodes anyway (S2 and Smart Start are also required), this PR sends a message to use 8bit. It worked on a zooz 800 with SDK 7.22 originally using 16bit. (I used Simplicity studio to change the zooz 700 controller on 7.21.41. Signed-off-by: Bob Eckhoff <[email protected]>
Minor edits of the new SetNodeIdType message class. Signed-off-by: Bob Eckhoff <[email protected]>
This reverts commit 2176694. Signed-off-by: Bob Eckhoff <[email protected]>
Minor edits with removed extraneous classpath file. Signed-off-by: Bob Eckhoff <[email protected]>
Don't know if you are busy or waiting on more information. In case of the latter here is a sample of the debug files;
|
Sorry - I missed that you'd removed the draft tag. I'll try and take a look later today. |
Added SetNodeIdTypeTest and minor edits. Signed-off-by: Bob Eckhoff <[email protected]>
Thanks. Two points. Firstly, does this work on old controllers or will it (possibly) cause a problem? I'm just wondering if we shouldn't make this conditional and only send it on 800 controllers? Second point - can you pull out the constants and put them at the top of the file as |
The third Debug above was a run on my original (several years ago) Aeotec 5. The firmware had been upgraded FW 6.07, but the Library was 1.
My conclusion from the response was that serial command 0x0B was not in that library so no harm no foul. The device returned 00 80, so I adjusted the condition for the debug statement to be positive, since 8-bit NodeId is the only option for Library <7. I did look at putting the Library 7 condition and ran into "making a static reference to dynamic method java error". The AI suggested creating a new local version of the Version class, but wasn't sure it would pick up that property since it was just identified from the previous command. Decided to do what I did. EDIT also had concerns if I bypassed the message in Command class what would happen (would it just go to the next command)
Are you referencing these constants?
to something like this;
|
Thanks. Yes, those are the constants I meant. Instead of calling them |
Clarified the constants and moved to the top of the class. Signed-off-by: Bob Eckhoff <[email protected]>
...ava/org/openhab/binding/zwave/internal/protocol/serialmessage/SetNodeIdTypeMessageClass.java
Outdated
Show resolved
Hide resolved
"final" edits and caps for constants. Signed-off-by: Bob Eckhoff <[email protected]>
The other PR was not going to work without major refactoring to allow both 8 and 16 bit node IDs. Since the binding can not support LR nodes anyway (S2 and Smart Start are also required), this PR sends a message to use 8bit. It worked on a zooz 800 with SDK 7.22 originally using 16bit. (I used Simplicity studio to change the zooz 700 controller on 7.21.41.
Signed-off-by: Bob Eckhoff [email protected]