-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[modbus] Validate poller count and write count according to modbus spec #8370
[modbus] Validate poller count and write count according to modbus spec #8370
Conversation
Related to discussion in openhab#8228 Signed-off-by: Sami Salonen <[email protected]>
WIP. Needs to be tested with real setup as well. Especially data thing going offline/online properly when poller is invalid/valid. |
Travis tests were successfulHey @ssalonen, |
...inding.modbus/src/main/java/org/openhab/binding/modbus/handler/ModbusPollerThingHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sami Salonen <[email protected]> Co-authored-by: Hilbrand Bouwkamp <[email protected]>
Small changes to 'length' and 'Discovery' descriptions.
Travis failed due spotless issues, need to run the formatting. |
Travis tests have failedHey @ssalonen, |
Travis tests were successfulHey @ssalonen, |
Signed-off-by: Sami Salonen <[email protected]>
Signed-off-by: Sami Salonen <[email protected]>
ab2526b
to
24004da
Compare
Travis tests were successfulHey @ssalonen, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When you're done testing, please remove the work-in-progress and we can merge this pr. |
According to further testing and reading the spec. Limit is in fact 123 (not 125 like in the PR) registers with modbus tcp. Spec says with RTU it is 125. We might simply limit all to 123. Need to change and document this. Online/offline thing handling seems to work well itself. Poller status is propagated correctly to data thing. EDIT: Internet is full of mixed information on this. Following the official spec here. |
Internet is full of interpretation and variations. We follow the spec. Signed-off-by: Sami Salonen <[email protected]>
This is good to merge once the tests pass. |
…ec (openhab#8370) * Related to discussion in openhab#8228 * Documented where the limits come from. * Internet is full of interpretation and variations. We follow the spec. Signed-off-by: Sami Salonen <[email protected]>
…ec (openhab#8370) * Related to discussion in openhab#8228 * Documented where the limits come from. * Internet is full of interpretation and variations. We follow the spec. Signed-off-by: Sami Salonen <[email protected]>
…ec (openhab#8370) * Related to discussion in openhab#8228 * Documented where the limits come from. * Internet is full of interpretation and variations. We follow the spec. Signed-off-by: Sami Salonen <[email protected]>
Related to discussion in #8228
Signed-off-by: Sami Salonen [email protected]