这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Conversation

@MichaelKlemm
Copy link
Contributor

Currently the CUL sending thread will produce a timeout of 2s if a command is sent that will not provide a response. This is the case when sending a FS20 message ("F" prefix). The major purpose of this PR is to provide a generic solution for such commands and only fix the problem for the FS20 protocol as there is no other equipment for testing available.

Additional Minor changes and refactorings:

  • Use a queue that is blocking instead of polling in a busy loop
  • Use monitors / synchronized methods to wait for a response instead of using a boolean local member

@MichaelKlemm MichaelKlemm force-pushed the master branch 2 times, most recently from 97e7c1a to 30362b2 Compare April 27, 2019 16:41
Signed-off-by: Michael Klemm <michael@klemm-dachau.de>
Signed-off-by: Michael Klemm <michael@klemm-dachau.de>
Signed-off-by: Michael Klemm <michael@klemm-dachau.de>
Signed-off-by: Michael Klemm <michael@klemm-dachau.de>
Signed-off-by: Michael Klemm <michael@klemm-dachau.de>
Signed-off-by: Michael Klemm <michael@klemm-dachau.de>
Signed-off-by: Michael Klemm <michael@klemm-dachau.de>
Copy link
Contributor Author

@MichaelKlemm MichaelKlemm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for review.

@MichaelKlemm
Copy link
Contributor Author

Hi! How to proceed with this PR?

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@kaikreuzer kaikreuzer merged commit 70d4436 into openhab:master Jun 16, 2019
@wborn wborn added this to the 1.14.0 milestone Dec 7, 2019
@wborn wborn added the bug label Dec 7, 2019
@kaikreuzer kaikreuzer changed the title Fix CUL 2s blocking problem after sending FS20 message [cul] Fix 2s blocking problem after sending FS20 message Dec 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants