Skip to content

Rework connection logic for reset sequence#155

Draft
elupus wants to merge 4 commits intoDanielhiversen:masterfrom
elupus:connection
Draft

Rework connection logic for reset sequence#155
elupus wants to merge 4 commits intoDanielhiversen:masterfrom
elupus:connection

Conversation

@elupus
Copy link
Collaborator

@elupus elupus commented Feb 17, 2025

Rework the connection logic for for how to handle reset actions and server disconnections.

  1. Some devices disconnect from USB when issued a reset command. So we need to take that into account when performing a reset sequence on serial ports
  2. We must flush network packets on reset, to ensure we only get the post reset packets after

elupus added 4 commits May 3, 2025 17:39
Reopen the serial port instead of just flushing the input
Make sure we flush the reception queue
when we reset the device to avoid spurious
payload after reset.
@amacraigne
Copy link

amacraigne commented Sep 22, 2025

I have the problem mentioned here home-assistant/core#136368
How can I deploy and test the pull-request ? I'm on HA OS.

@alec-pinson
Copy link

alec-pinson commented Sep 30, 2025

I have the problem mentioned here home-assistant/core#136368 How can I deploy and test the pull-request ? I'm on HA OS.

uv pip install git+https://github.com/elupus/pyRFXtrx@connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants