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

[linktap] Bugfix Issue 18076 #18090

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dag81
Copy link
Contributor

@dag81 dag81 commented Jan 11, 2025

[linktap] Bugfix Issue 18076

This is the patch for the main branch for the LinkTap corrections.

Timing changes in the firmware have highlighted some potential race conditions that can occur, with older firmware's it may also happen.

Consequently, these changes ensure that the race conditions cannot happen, meaning the communications stack misses device registration to the gateway's data. New defensive checks on CMD16 ensure that incorrect responses are ignored / handled, which can occur when the gateway is booting up. The new ret code's are being rolled out in a firmware now globally, so these changes ensure that reply has a ret status that shows CMD16 is not ready to be used, the binding falls back, and will try again when the gateway is ready.

In addition it was noted during testing that NoRouteToHost exceptions were not being picked up correctly (when switching WiFi networks during tests), which meant that the auto reconnect capability was not running. This also add's handling by catch the SocketException base class of NoRouteToHostException, to ensure its is handled correctly.

This need's to be cherry picked back to the 4.3.X branch. In case this has to be merged first I'm adding this and linking both the PR's together. (Currently there is a PR against the 4.3.X branch with the same changes in - adding link to the comments).

[linktap] Bugfix Issue 18076

Signed-off-by: David Goodyear <[email protected]>
@dag81
Copy link
Contributor Author

dag81 commented Jan 11, 2025

4.3.X branch PR is here: #18077

@dag81
Copy link
Contributor Author

dag81 commented Jan 11, 2025

@jlaur This is the patch to main, if the patches are cherry picked for the 4.3.X branch, we just need this PR don't we, then it can be cherry picked back to the 4.3.X branch? Sorry first time, I've had to do something that should go backwards as a bug. If so I can close the other PR?

@dag81 dag81 requested a review from lsiepel January 11, 2025 13:51
@dag81 dag81 added the bug An unexpected problem or unintended behavior of an add-on label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant