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

Reconnection of serial cable after a disconnect doesn't work and needs HA restart #24

Open
mattsaxon opened this issue Jan 29, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mattsaxon
Copy link
Owner

No description provided.

@mattsaxon mattsaxon added the bug Something isn't working label Jan 29, 2022
@mattsaxon mattsaxon self-assigned this Jan 29, 2022
@mattsaxon
Copy link
Owner Author

mattsaxon commented Jan 29, 2022

Improved the error handling, but is still doesn't reconnect if you put the cable back. However it no longer fills the logs or hangs HA,

Suspect there is an issue with pyserial or Raspberry Pi handling of it.

@mattsaxon mattsaxon changed the title Disconnect of serial cable fill the logs and eventually crashes HA Reconnection of serial cable after a disconnect doesn't work and needs HA restart Jan 29, 2022
@mattsaxon mattsaxon removed their assignment Jan 29, 2022
@sjeffrey101
Copy link
Collaborator

yes error handling needs improvement.

im sure i only get the issue if i unplug the USB to serial adapter...... so the port disappears.. Some times when plugging back in, its assisnged a different ttyUSB# which causes issues. I can unplug the serial from the usb and plug it back in and the code continues. Guess Same as when i power off the speakercraft, the serial just sits waiting for next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants