Skip to content

URI probe: the summary answers the drive gate, and a webOS 5+ tester protocol - #1304

Merged
GLinnik21 merged 2 commits into
mainfrom
uri5/pr1-probe-drive-gate
Nov 9, 2026
Merged

GLinnik21 merged 2 commits into
mainfrom
uri5/pr1-probe-drive-gate

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Summary

One drive run of the URI probe on a webOS 5+ set should decide the controls gate (pause, resume, seek, audio) without anyone reading raw ev= lines, and a tester should have one written protocol to arm the probe and copy its log on a set whose /tmp is jailed. This PR adds the missing summary fields, names the firmware on the armed line, and writes the protocol. It changes no production behaviour: the probe is a devtriggers build's.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

What changed

  • rust-modules/play-uri/src/uriprobe.rs (the machine, still Sans-IO: no clock, no file, no global):
    • the summary line gains audio_at_load=<n|none> and clock_period_ms=<ms|-> (every variant), and, on a drive run, seekdone=yes|no, resume_from=<ms|-> and text_ev=yes|no;
    • the armed line gains fw=<release|-> and build=<build|->, from a new Firmware value on Config. Only plain version text is printed (letters, digits, .-_+, at most 32 characters); anything else, or nothing, prints -.
  • rust-modules/play-uri/src/uriprobe_drive.rs: DriverConfig carries the Firmware through to Config.
  • rust-modules/src/dev/uriprobe.rs: the application's side reads plx_platform::tv::device::info() at the IO boundary (Launch::open) and hands it in.
  • docs/uri-mode.md: a "webOS 5+ tester run" section (arming the per-Play trigger on a plain /tmp, through /proc/<pid>/root, and at a persistent /var/palm/jail/<jail>/tmp/<app id>/ path; copying the log while the app runs; every summary token and what each value reads as). The 11.x results row now says "set on 11.1.0-3701, mechanism read on the 11.2.0 image", and the 5.4.2 row says placement and aspect were not reported.
  • rust-modules/play-uri/src/uriprobe_acb_transcript.txt: the recorded ACB effect stream, regenerated for the new tokens (only the armed and summary lines moved).

New line formats:

uriprobe: t=0 armed variant=<variant> scheme=<http|https> kind=<direct|hls> window=<exported|none> app=<app id> fw=<release|-> build=<build|-> [bpsstart=N bpsmax=N bpsmin=N]
uriprobe: t=<ms> summary load=.. playing=.. t_load=.. t_playing=.. currentTime_advanced=.. videoInfo=.. audioInfo=.. window=.. setWindowId=.. variant=.. scheme=.. shape=.. end=.. audio_at_load=<n|none> clock_period_ms=<ms|->
  [drive only:] pause=.. pause_delta=.. resume=.. seek=.. seek_delta=.. text=.. audio=.. subs=.. eos=.. pause_basis=.. pause_samples=.. pause_span_ms=.. pause_end_fresh=.. paused_event=.. seekdone=<yes|no> resume_from=<ms|-> text_ev=<yes|no>

Verification

Test first: the new and changed tests were written against the old machine and failed (20 failed, 211 passed in plx_play_uri) for the right reasons: each new token absent from the line, the armed line without fw=/build=, and the exact-string summary and armed tests. They cover each new field, including a resume that restarts at 0 (resume_from=333 after a pause at 5000), a seek that lands with no seekDone (seek=hit ... seekdone=no), a seekDone from before the Seek call (not counted), an audioInfo before, with and after loadCompleted, an untyped, audio-typed or earlier trackSelected (not text_ev), the median gap (odd, even and fewer than two reports), and firmware text that is empty, odd, too long or carries a URL and token.

On the committed tree (git status --short empty before and after):

make test-crate C=plx_play_uri
test result: ok. 231 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.24s
make test-crate C=app
test result: ok. 1282 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 35.84s
make check-nodef            exit 0
bash ci/check-deps.sh       check-deps: all gates green (no ledger under ci/allow touched)

Not verified on a TV

All 5+ behaviour: that the fields read as described against com.webos.media on a real 5+ firmware, the jail routes in the new docs section (whether the /var/palm/jail/<jail>/tmp/<app id>/ directory exists before the first launch or survives an exit is explicitly marked unestablished there), and the fw=/build= text the boot probe reads on a 5+ set. Those come from tester runs; the development TV is a webOS 4.5 set and was not used.

🤖 Generated with Claude Code

GLinnik21 and others added 2 commits November 9, 2026 18:19
…protocol (#1064)

One `drive` run on a 5+ set should decide the controls without anyone reading
raw `ev=` lines. The probe's summary gains `seekdone=` (a seekDone after the
script's Seek call), `resume_from=` (the first position the service reported
after Resume), `audio_at_load=` (the track an audioInfo named by loadCompleted),
`text_ev=` (a typed text trackSelected after the text selectTrack) and
`clock_period_ms=` (the median gap between currentTime reports). The `armed` line
gains `fw=` and `build=`, read from `tv::device::info()` by the application's
driver (`dev::uriprobe`) and handed to the machine, which reads no global and
prints only plain version text.

docs/uri-mode.md gains the "webOS 5+ tester run" section: arming the per-Play
trigger on a plain, a jailed (/proc) and a persistent-jail /tmp, copying the log
while the app runs, and what every summary token reads as. The 11.x row now says
the set is on 11.1.0-3701 and the mechanism was read on the 11.2.0 image; the
5.4.2 row says placement and aspect were not reported.

No production change: the probe is a devtriggers build's.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…knows

resume=sent is set when the Resume call is pushed, before any reply, so it reads
"sent and not refused"; seek=none also covers a Seek that was sent but never
answered; audio=ok is also confirmed by an audioInfo naming the index, in either
order with the acknowledgement.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit c7c15f4 into main Nov 9, 2026
19 checks passed
@GLinnik21
GLinnik21 deleted the uri5/pr1-probe-drive-gate branch November 9, 2026 16:21
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.

1 participant