Repository navigation
Check the primed read with pr129_check.py, on #20 units and TP1X boards - #138
Merged
Merged
Conversation
The library commit this script pins sends a primer before block 0 of a read under a fragment length, and a dryer here then returned /device/0 at 1024 in 512-byte blocks (2026-11-19). Arm 1 now reads /device/0 after /oic/d, so one handshake per unit tests the fix at the length it targets; arm 2 keeps 512 as the second data point. The resources to read come from --path, default /device/0, so the #20 command is unchanged and a TP1X board can name /information/vs/0 and /oic/res (localthings#504). Each path is checked before anything is sent: absolute, no query, nothing under /oic/sec, at most six. Publish-Approved: 2026-11-20T10:20:00+00:00
On #20 run 2 the washer's directory replies took 0.76 to 5.76 s. Discovery had 3 s with no retry, so it gave up partway and the script printed that the directory lists no secure port, which was false. Each attempt now has 10 s and one retry, and an answer without a port is asked again until the 60 s budget runs out, as silence already was. The time reported for the plaintext check still counts to the first answer. Publish-Approved: 2026-11-20T10:35:00+00:00
…yte rule The review of #138 found that discovery still could not hold #20 run 2's washer. The library gives the filtered doxm lookup at most 1 s, and the washer's doxm replies came later than that, so the port had to come from the multi-block directory: 2.0 s for block 0, 1.6 s for block 1, with a 6 s burst of silence. Discovery now probes with 3 s attempts until the directory first answers, as before, so the check after an arm still sees a returning appliance within seconds. After the first answer it gives each attempt up to 30 s with one retry. No attempt runs past the 60 s budget, so "within 60 s" holds. The docstring said a primed read comes back in smaller blocks and advised listing smaller --path resources first. The firmware never splits a body of 1024 bytes or less, so such a body over the length still fails, and listed first it ends the session. It now says so, and advises listing the large ones first. The run-time estimate left out the new reads. The prompt now gives the worst case for the paths passed: up to 30 s per failed read, in each arm. Publish-Approved: 2026-11-20T11:10:00+00:00
QuiteYellow-reviewer
left a comment
There was a problem hiding this comment.
Automated review at deaeb80.
Not run: no hardware run and no CI on this branch. The script's own tests were not run in this review.
Five points. Four are inline. One is about the PR body:
Problem: The PR body does not describe deaeb80, and its test count is stale.
Trigger: deaeb80 changes discovery: 10 s per attempt, one retry, and another attempt when an answer has no port. The body gives 33 tests. The test file at head has 34.
Fix: Add deaeb80 to the body, give the count at head, and name the commit that the dryer run used.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
pr129_check.py(#135) for #129's newest commit,f74a26e, which sends a primer before block 0 of a read under a fragment length./device/0after/oic/d, so one handshake per unit tests the fix at the length it targets. Arm 2 at 512 is unchanged and gives a second data point.--pathnames the resources to read after/oic/d, once per resource, and defaults to/device/0. The Can't connect to BespokeAI Washer/Dryer #20 command stays the same, and a TP1X board from Washer and Dryer both disconnect from WiFi momentarily when DTLS handshake is attempted mbillow/localthings#504 can name/information/vs/0and/oic/res. Each path is checked before anything is sent: absolute, no query, nothing under/oic/sec, at most six.--pathresources over 1024 bytes first. The prompt gives the worst-case run time for the paths passed.f74a26e. The install note now says git is needed, since that line clones the repository.This branch has no CI.
test_pr129_check.py(36 tests, offline) passes on Python 3.11 and 3.14 with the library atf74a26e. On 2026-11-20, before the discovery change, I ran the script against my dryer from a fresh venv in the bridge image on the host network. Both handshakes completed./device/0(4607 bytes) came back 2.05 at 1024 in 2.0 s and at 512 in 4.1 s, the dryer answered plaintext 0.1 s after each arm, and the output carried no address, UUID or serial. Separately, the pip line atf74a26einstalls in a fresh Python 3.11 venv with pip 24.0. The new discovery is tested offline only: no slow directory was available here.