Skip to content
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

[mercedesme] Websocket decoupling #17753

Merged
merged 9 commits into from
Dec 1, 2024

Conversation

weymann
Copy link
Contributor

@weymann weymann commented Nov 17, 2024

Warnings from MercedesMe websocket reported in community, After analysis design flaw in current binding needs to solved:
Websocket thread is performing the complete chain from reading bytestream up to channel updates. While this other messages are dismissed
Structural change to free websocket thread as early as possible:

  1. Websocket thread responsible for reading stream in bytes and enqueue for AccountHandler.
  2. AccountHamdler thread responsible for encoding proto message. In case of update enqueue proto message at VehicleHandöer
  3. VehicleHandler responsible to update channels

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
@weymann weymann changed the title Mercedesme socket decoupling [WIP][mercedesme] Websocket decoupling Nov 17, 2024
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
@weymann weymann changed the title [WIP][mercedesme] Websocket decoupling [mercedesme] Websocket decoupling Nov 17, 2024
@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label Nov 17, 2024
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Left some minor comments. Otherwise LGTM

@weymann
Copy link
Contributor Author

weymann commented Nov 23, 2024

Got some negative feedback which I still want to investigate. Please wait with merging!

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
@weymann
Copy link
Contributor Author

weymann commented Dec 1, 2024

@lsiepel PR can be merged.
Feedback is clearly based on decoding messages which needs to be further analyzed but not related to these code changes.

@lsiepel lsiepel merged commit c991856 into openhab:main Dec 1, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.3 milestone Dec 1, 2024
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Dec 16, 2024
* decouple websocket thread from handler update

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Jan 2, 2025
* decouple websocket thread from handler update

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants