Button health check¶
The button health check is a timed, guided test that records every level change of the inputs you choose while an operator presses, holds and releases each button. Use it to find a button, cable or connection that misbehaves: one that chatters while held, bounces for too long, or drops out. The device records raw transitions; one shared analyzer works out the findings afterwards, so they read the same whatever kind of device captured them. Operators run the check from the web page; integrators can drive it from a .NET client.
What the check can and cannot tell you¶
- It can expose an unstable contact or connection. If an input changes level while the button is being held or left alone, or takes unusually long to settle, the check reports it, with the numbers behind the finding.
- It cannot prove that a button is fault-free. A clean result means that nothing was seen in the cycles that were tested. Faults that come and go may not show up in a few presses.
- It cannot tell a worn switch from a wiring or interference problem. A bouncing contact, a loose terminal, a long cable that picks up noise and a weak pull-up can all look the same on an input. The report says "instability observed", not "bad switch".
- Ordinary contact bounce is not a fault. Every mechanical switch bounces for a short time when it moves. Settling within the limit (250 ms by default) is treated as normal.
- The thresholds are defaults. The limits that decide what counts as instability are general-purpose values, not calibrated for a particular switch type. Treat a finding as evidence to follow up, not as a verdict.
- Capture has limits of its own. Depending on the device, very short pulses can be missed, or a level has to be inferred. The result lists every such limit for each input. See Coverage limits.
Normal diagnostics (the counters in the input diagnostics dialog) are a different thing. They count edges that the service accepted and cannot show what happened inside a quiet interval.
Monitored and tested inputs¶
A check separates the inputs it watches from the inputs it tests.
- Monitored inputs are every input named in the start request. The device records all of them for the whole check. Normally you monitor every input the device can capture, up to the device's input limit.
- Tested inputs are the monitored inputs that the owner places phase markers for, one guided press and release cycle at a time. You may test only some of the monitored inputs, or none at all (a watch-only run).
- An input that is monitored but never tested is captured only to show spurious activity while nobody is pressing it. Its result says "Monitored only (not tested)". If it recorded no level change and no coverage gap, the finding is "No instability observed". If it recorded any level change, or more changes than could be kept, the finding is "Instability observed", because the input changed while nobody was operating it. If it recorded no changes but had a coverage gap, the finding is "Inconclusive", because activity may have been missed. The checks that apply to a tested input (stuck input, missing baseline, incomplete cycles) are not applied to it.
- The
Finishedmarker ends the whole check. Its input and cycle are ignored, and it does not make any input a tested input.
What happens to the device during a check¶
While a check runs, the whole device is reserved, not only the inputs you selected.
| What | During the check |
|---|---|
| Edge reports | None are sent for any input, selected or not. |
| Trigger actions | None run. |
| Faceoffs and pre-faceoffs | A request with inputs is refused with a message that names the check. A request with no inputs is acknowledged but changes nothing, and any end-of-faceoff actions it carries are not run. |
| Random test triggers | Refused. |
| Configuration changes | Refused. |
| Input levels | The capture tracks selected inputs. On the Uno, normal level updates pause during capture; selected input levels remain visible in health status summaries. All input levels are read and published again when the check ends. |
| Status, diagnostics, results | Still available to every connected client. |
A check cannot start while a faceoff or pre-faceoff is armed. Clear it first (a faceoff request with no inputs). A check also cannot start when no device is available, or when another check is running or still restoring. If the device keeps the result of an earlier check, starting a new one has to say that it replaces it.
Every way a check ends¶
| How it ends | Result state | Reason |
|---|---|---|
The operator completes the last step (the owner moves to Finished) |
Completed | Completed |
| The owner cancels, or closes the web dialog | Cancelled | CancelledByOwner |
| The time limit is reached (default 120 s, at most 300 s) | Cancelled | MaxDuration |
| The owner does nothing for 10 s: no lease renewal and no step marked | Cancelled | LeaseExpired |
| The owner's connection closes | Cancelled | OwnerDisconnected |
| The device is told to shut down, or the service stops | Cancelled | DeviceShutdown |
| The capture fails, for example the card is removed | Failed | CaptureFailure |
Every end keeps what was recorded. A check that did not complete still leaves a partial result, which the analyzer marks as such. Cycles that did not finish are not counted.
What is restored¶
On every exit the device goes back to its normal input path before the check counts as ended:
- On the Advantech card, all interrupts are disarmed, which is the state of a freshly opened device. The next interrupt faceoff arms what it needs, as usual.
- Every input is read again and its level becomes the new baseline. No edge is reported for anything that changed during the check. The levels are published as level updates.
- No faceoff is armed afterwards. Start the next faceoff as you would after a restart.
Reading a result is not possible until restoration has finished; the device answers "busy" until then.
Running the check from the web page¶
- Open the Input diagnostics dialog and choose Button health check. The button is shown only when the server answers the capability query. It is disabled, with the reason beside it, when the device cannot run a check. A server without the feature does not show it.
- Under Buttons to test, select the buttons to test. Each button is tested on its own, one after another. With none selected, the run only watches the inputs. The switch Also watch the other inputs for stray activity (on by default) adds every other capturable input, up to the device's limit; a note says which inputs, if any, cannot be watched.
- Under Length, choose the Cycles per input (default 3; 1 to 10, fewer when many buttons are selected) and the Time limit (seconds) (10 to 300, default 120). The page estimates about 10 seconds per cycle of each input, and warns if the time limit is too short for the selection.
- Check the Capture table. It shows, for each selected input, how it is captured (Interrupt or Polled), the timing resolution, and notes such as "levels inferred from edges" or "pulses shorter than 1 ms may be missed".
- Choose Start test (Start watching for a watch-only run). If the device holds an earlier result, the button reads Replace result and start.
- Follow the instruction on the screen. The steps of each cycle are Released, Press, Hold, Release, Released:
- "Leave input N released." for about 3 seconds at the start of an input, and 1.5 seconds before later cycles.
- "Press input N and keep holding it." The page waits until it sees the press. It does not move on by itself.
- "Keep holding input N." for 2 seconds.
- "Release input N." The page waits until it sees the release.
- "Leave input N released." for 2 seconds.
- If a press or release is not seen, the page says so after about 5 seconds ("No press seen yet. Press the button. If you are already holding it, release it and press again, or choose Next."). Next moves to the next step without the change being seen; the cycle is then likely to be reported as missing a press or release. Skip this cycle abandons the cycle. A skipped cycle is not counted.
- The page shows the time left, the cycles run, and a count of recorded changes for each input. A warning chip appears if an input reaches its limit or has a coverage gap. A watch-only run counts down the time limit and then finishes; Finish now ends it early.
- Cancel test ends the check. Closing the dialog also cancels it. The dialog does not close with Escape or by clicking outside it, so that a running test is not canceled by accident.
- When the last cycle is done the page ends the test, reads the result and shows it. After a canceled or interrupted test, choose View partial result. New test returns to the setup.
While any check runs, the main page shows a banner "Button health check running" for every connected browser, and the faceoff buttons are unavailable.
If the connection drops, the page pauses the test and offers Try again when it is back. The .NET service ends a check as soon as its owner's connection closes, so on that server a dropped connection usually means the test has already ended. The page then offers the partial result.
Reading the result¶
The result shows, for each input, a finding, the evidence for it, a list of coverage limits, some statistics and a timeline.
The three findings¶
| Finding | When the analyzer gives it |
|---|---|
| Instability observed | At least one of: a press or release took longer than the settling limit (250 ms by default) to settle; two or more transitions while the button was held or released, after the boundary allowance and after a press or release that was seen; transitions continued beyond the per-input limit during a hold or released phase. |
| Inconclusive | No evidence of instability, but the data cannot support a clean result: no cycle was completed with both the press and the release seen; a gap overlaps an action; the input was still changing when the window ended; phases were marked out of sequence; the input never changed at all (it may be stuck, disconnected or not operated); or a single stray transition was seen while holding or releasing, which may be an early release or press. |
| No instability observed | At least one completed cycle, full coverage, nothing ambiguous, and no activity beyond ordinary bounce. |
Each finding comes with evidence lines that name the cycle, the phase and the numbers. Read these, not only the chip.
Terms used in the evidence:
- Settling: the time from the first transition of a press or release to the last transition before a quiet interval of 20 ms. The search for the quiet interval continues into the hold or released phase that follows.
- Boundary allowance: a press or release may land up to 50 ms after its step starts, and ordinary bounce may carry into the next step. Activity inside the allowance is not counted against the button.
- Censored: the input was still changing when the window ended, so the settling time shown is a lower bound ("at least", or "still changing"). The analyzer does not call it settled.
- Below resolution: the settling time is shorter than the capture resolution, so the page does not show a precise value.
- Completed cycle: all four steps were marked, and the press and the release were both seen.
The thresholds (quiet interval 20 ms, boundary allowance 50 ms, maximum settling 250 ms) and the analysis version are shown at the bottom of the result and stored in the export.
Coverage limits¶
Every input lists what the capture could not see. Wherever a gap overlaps an action, that action is marked as having incomplete coverage, shows no precise settling value, and does not count as a missing press or release. What was recorded still counts as a lower bound, so positive evidence of instability survives a gap.
| Limit | Meaning |
|---|---|
| Per-input limit reached | The input produced more transitions than can be kept (4096 on the .NET service, 128 on the ESP32). Later ones are counted but not kept, so their timing is unknown. |
| Input masked | The device switched the input off to protect itself from a flood of interrupts. An unknown number of changes was missed from then to the end of the check. |
| Acquisition interrupted | Capture was briefly lost, for example while interrupts were re-armed, or a polled read took much longer than normal. An unknown number of changes was missed. |
| Level mismatch | A read of the input disagreed with the level inferred from interrupts. An odd, unknown number of changes was missed between the last read that agreed and that read, and levels inside the gap may be inverted. |
| Levels inferred | The device saw an edge but not its level, and worked the level out by toggling from the starting level. A missed edge shows only as a level mismatch. |
| One edge direction only | Only one direction (rising or falling) was captured by interrupt. The other was found by polling, so short pulses in that direction can be missed. |
| Polled | The input is sampled on successive reads. Pulses shorter than a read interval can be missed, and several changes between two reads appear as their net change. See the platform's reported resolution and coverage gaps. |
Timeline¶
The timeline for each input draws the level against time, with shaded bands for each guided step. Where coverage is missing, the line is broken and the region is hatched; the page never joins the two sides. Places where many changes share one pixel are drawn as solid blocks. Zoom in, Zoom out and the per-action Zoom buttons change the window.
The export file¶
Export JSON saves one file, button-health-<host>-<yyyyMMdd-HHmmss>Z.json, for later comparison. It contains:
| Member | Content |
|---|---|
format, formatVersion |
"TriggerGate button health check", and version 1 of this layout. New members may appear without a version change. |
exportedAtUtc, appVersion, serverVersion, platform, hostName |
Where and when the file was made. |
capabilities |
What the device reported for the check, when known. |
result |
The result exactly as the device returned it: state, end reason, phase markers, and for each input the acquisition method, resolution, levels, counts and gaps. |
analysis |
The analyzer output, with its version and thresholds. |
trace |
Every recorded transition in order. |
Names are camelCase and enumerations are written as names. Offsets and durations are in .NET ticks (100 ns), counted from the start of the session. A tick count does not mean 100 ns accuracy; the resolution of each input is in result.
Using the check from a .NET client¶
TriggerClient<TTriggerKey> has a method for each hub command. Every command returns TriggerCommandResponse<T>. For these commands, Payload is always present on a failure, and its Failure member holds the machine-readable reason; StatusDescription is text for people.
| Method | Purpose |
|---|---|
GetButtonHealthCapabilities() |
Whether the check is supported, the input list with its capture method and resolution, the limits, and notes. |
StartButtonHealthCheck(StartButtonHealthCheckRequest) |
Reserve the device and begin. Returns SessionId and LeaseToken. |
RenewButtonHealthCheckLease(RenewButtonHealthCheckLeaseRequest) |
Keep the check alive. |
AdvanceButtonHealthCheckPhase(AdvanceButtonHealthCheckPhaseRequest) |
Mark the next step, or Finished. A successful call also renews the lease. Finished ignores its input and cycle. |
CancelButtonHealthCheck(CancelButtonHealthCheckRequest) |
End now, keeping a partial result. |
GetButtonHealthCheckStatus() |
Read the current state. |
GetButtonHealthCheckResult(GetButtonHealthCheckResultRequest) |
Read the retained result. |
GetButtonHealthCheckTrace(GetButtonHealthCheckTraceRequest) |
Read one page of the retained trace. |
DownloadButtonHealthTrace(string, CancellationToken) |
Read every page and return the whole trace. |
AnalyzeButtonHealthCheck(string, ButtonHealthThresholds?, CancellationToken) |
Read the result and trace and run ButtonHealthAnalyzer on them. |
The client also raises ButtonHealthCheckChanged with a ButtonHealthStatus whenever the state or step changes, and at most once per second while capturing.
Example¶
This runs one cycle on one input, keeps the lease alive, finishes, and prints the findings. Marking a step does not make the operator act; the example prints a prompt and waits. Error handling is reduced to a message.
using GameshowPro.TriggerGate.Client;
using GameshowPro.TriggerGate.Model;
static async Task RunButtonHealthCheckAsync<TKey>(TriggerClient<TKey> client, int input)
where TKey : notnull, Enum
{
TriggerCommandResponse<ButtonHealthCapabilities> capabilitiesResponse = await client.GetButtonHealthCapabilities();
if (capabilitiesResponse.Payload is not { Supported: true, Limits: { } limits } capabilities
|| !capabilities.Inputs.Any(i => i.Index == input))
{
Console.WriteLine(capabilitiesResponse.StatusDescription ?? $"Input {input} cannot be checked.");
return;
}
// Clear any armed faceoff first (a faceoff request with no inputs). ReplaceExistingResult discards a retained result.
TriggerCommandResponse<ButtonHealthSessionStarted> start = await client.StartButtonHealthCheck(
new StartButtonHealthCheckRequest([input], limits.DefaultDurationTicks, ReplaceExistingResult: true));
if (start.Payload is not { Failure: ButtonHealthFailure.None, SessionId: { } sessionId, LeaseToken: { } token })
{
Console.WriteLine($"Start failed: {start.StatusDescription}");
return;
}
// Advancing a phase renews the lease too, but a step can last longer than the lease, so keep renewing in between.
using CancellationTokenSource stopRenewing = new();
Task renewing = RenewAsync();
bool finished = false;
try
{
(ButtonHealthPhase Phase, string Prompt, int Seconds)[] steps =
[
(ButtonHealthPhase.ReleasedBaseline, "Leave the button released.", 3),
(ButtonHealthPhase.Press, "Press the button and keep holding it.", 3),
(ButtonHealthPhase.Hold, "Keep holding the button.", 2),
(ButtonHealthPhase.Release, "Release the button.", 3),
(ButtonHealthPhase.ReleasedObservation, "Leave the button released.", 2),
];
foreach ((ButtonHealthPhase phase, string prompt, int seconds) in steps)
{
Console.WriteLine(prompt);
if (!await MarkAsync(phase))
{
return;
}
await Task.Delay(TimeSpan.FromSeconds(seconds));
}
finished = await MarkAsync(ButtonHealthPhase.Finished);
}
finally
{
await stopRenewing.CancelAsync();
await renewing;
if (!finished)
{
// Idempotent: the device ends the check and keeps a partial result.
_ = await client.CancelButtonHealthCheck(new CancelButtonHealthCheckRequest(sessionId, token));
}
}
TriggerCommandResponse<ButtonHealthCheckAnalysis> analysis = await client.AnalyzeButtonHealthCheck(sessionId);
if (analysis.Payload is not { } checkAnalysis)
{
Console.WriteLine($"No result: {analysis.StatusDescription}");
return;
}
foreach (ButtonHealthInputAnalysis inputAnalysis in checkAnalysis.Analysis.Inputs)
{
Console.WriteLine($"Input {inputAnalysis.Index}: {inputAnalysis.Finding}, {inputAnalysis.CompletedCycles} completed cycle(s)");
foreach (string line in inputAnalysis.Evidence)
{
Console.WriteLine($" {line}");
}
}
async Task<bool> MarkAsync(ButtonHealthPhase phase)
{
TriggerCommandResponse<ButtonHealthStatus> response = await client.AdvanceButtonHealthCheckPhase(
new AdvanceButtonHealthCheckPhaseRequest(sessionId, token, phase, input, Cycle: 1, Annotation: null));
if (response.Payload is { Failure: ButtonHealthFailure.None })
{
return true;
}
Console.WriteLine($"Could not mark {phase}: {response.StatusDescription}");
return false;
}
async Task RenewAsync()
{
using PeriodicTimer timer = new(TimeSpan.FromTicks(limits.LeaseTicks / 3));
try
{
while (await timer.WaitForNextTickAsync(stopRenewing.Token))
{
_ = await client.RenewButtonHealthCheckLease(new RenewButtonHealthCheckLeaseRequest(sessionId, token));
}
}
catch (OperationCanceledException)
{
}
}
}
AnalyzeButtonHealthCheck fails if any page of the trace fails, if a page belongs to another session, or if the total changes between pages. It uses the page size from the device's limits.
Ownership and the lease¶
- The connection that starts a check owns it. Start returns a session id and a lease token (32 hexadecimal characters).
- Renew, advance and cancel need the session id and the token. A call that presents the right token makes its connection the owner.
- Renewing or advancing a step extends the lease; reading status does not. The lease is 10 seconds, so renew about every 3 seconds, as the web page does, because a step can last longer than the lease.
- Reading status, the result or the trace needs no token, works from any connection, and never extends the lease.
- The check ends at once when the owner's connection closes. There is no grace period for a reconnect. The lease and the absolute time limit are the backstops.
- Cancel is idempotent. With the right id and token it returns the final status, also after the check has ended.
- The device keeps one result. It stays until a new check replaces it or the service restarts. A start is refused with
ResultWouldBeReplacedwhile one is kept, unless the request setsReplaceExistingResult. The old result is discarded only once the new capture has actually begun. - A result or trace request with another session id fails with
StaleSession; with nothing kept,ExpiredResult. While the session is still capturing or restoring, both fail withBusy.
Marking steps¶
ReleasedBaselineis always allowed for a selected input. It starts or restarts a cycle.- Any other step must be the next one after the last marker, for the same input and the same cycle number: Press, Hold, Release, ReleasedObservation.
Finishedis allowed from any step and completes the check. Its input and cycle are not validated.- An annotation is at most 64 characters. The number of markers per session is limited (see below).
- The device never advances a step by itself. A transition it sees is recorded, not treated as proof that the operator followed the instruction. Do not move from Press to Hold before the press is seen, or the cycle reads as missing its press; a press up to 50 ms into Hold is still credited.
Failure reasons¶
ButtonHealthFailure |
When it occurs |
|---|---|
Unsupported |
The platform or server cannot run a check. Capabilities say why. On the Advantech platform it is also returned while no card is open. |
Busy |
A faceoff or pre-faceoff is armed, or a check is running or restoring (start); the session is still capturing (result and trace). |
InvalidOptions |
No inputs, duplicate or unknown inputs, more inputs than the device limit, a duration of zero or more than the maximum, an annotation over 64 characters, a negative cycle, an input that is not in the session, too many markers, or a trace cursor or page size out of range. |
StaleSession |
The session id is neither the current nor the retained session. |
WrongOwner |
The lease token does not belong to that session. |
ExpiredResult |
No result is kept. |
InvalidPhase |
The step cannot follow the last one. |
DeviceUnavailable |
No device is connected, the device or service is shutting down, or the capture could not begin (for example the card could not be read). |
ResultWouldBeReplaced |
A result is kept and ReplaceExistingResult was not set. |
Limits on the .NET service¶
All of these are reported by GetButtonHealthCapabilities in Limits. Durations are in .NET ticks.
| Limit | Value |
|---|---|
| Inputs per check | 128 |
| Duration | Default 120 s, at most 300 s |
| Transitions kept per input | 4096; more are counted but not kept |
| Trace page | At most 512 transitions |
| Lease | 10 s |
| Phase markers | 256 |
| Progress notifications | At most one per second |
Other devices report their own limits; do not assume these values.
InputDiagnosticsSnapshot.OperatingMode is ButtonHealthCheck while a check runs. See Input diagnostics.
Platforms¶
| Platform | Support |
|---|---|
| Advantech card on Windows | Supported, by interrupt and polling. |
| ESP32 | Supported, by interrupt. |
| Uno | Supported, by polling in Native, SingleTransfer, TwoTransfer, and Combined modes. Native and SingleTransfer were device-tested in K2; TwoTransfer and Combined were not. |
| X-keys | Not supported. |
On an unsupported platform, GetButtonHealthCapabilities answers "not supported" with a reason, and every other check command returns Unsupported.
Advantech card on Windows¶
Inputs that can raise interrupts are captured by interrupt. Every interrupt is stamped by the native timestamp library at the moment it happens and kept, up to the per-input limit. Other inputs are polled.
- The interrupt carries no level. The card says that an input changed, not to which level. The service infers each level by toggling from the level read when the check started. The capability list marks these inputs "level inferred".
- The inferred level is checked. Every port is read every 1 ms. A read of a quiet input that contradicts the inferred level records a "level mismatch" gap and resynchronizes the level. The check lags by about 3 ms, because a read is only judged once interrupts stamped just before it are known. A read taken during activity on an input is skipped, not trusted.
- Some cards raise rising-edge interrupts only. For these, the capability list says "one edge direction only". Falls are found by the 1 ms read and carry that read's stamp, not an exact one. A rise that arrives while the input is inferred high means a fall was missed in between and is recorded as a level mismatch gap. Whether a card accepts both edges is known only after interrupts have been armed on it once since the device was opened. Until then the capability list and the result of the first session say both edges are captured, even if the card then turns out to be rising-only. That session still records the falls by polling and the service writes a warning to its log, but the result still reads "both edges". Treat a first-session result from a rising-only card with that in mind.
- Storms are masked. If an input raises more than 2000 interrupts within 100 ms, it is masked for the rest of the session. It records a "masked" gap and no further transitions. Masking stops and restarts the card's interrupt delivery, which takes about 2 ms; the other interrupt inputs record an "acquisition interrupted" gap for that time.
- Inputs that cannot interrupt are polled. They are read every 1 ms, and a change is stamped with the read that found it. Pulses shorter than 1 ms can be missed. A gap between reads of more than 4 ms is recorded as an "acquisition interrupted" gap.
- At most 63 inputs can be armed for interrupts at once.
- The last few milliseconds of a session may not be recorded. The level checks lag, and the final entries are only applied once they are safely behind the latest read.
- Resolution. For interrupt inputs, the resolution is the performance counter's tick, rounded up to 100 ns, and is reported for each input. For polled inputs it is 1 ms.
- Timestamps come from the performance counter, read as the first act of the interrupt, so a garbage collection in the service does not delay them. Offsets count from the start of the session.
After a session, the diagnostics dialog shows the last accepted edge of each input as unknown until the next accepted edge.
Advantech UNO¶
The check is supported in Native (the default), SingleTransfer, TwoTransfer, and Combined read modes.
It captures raw input-port level changes before the 200 ms press debounce and faceoff rules. Bounce is retained, both
directions are observed, and levels are read rather than inferred. A line configured as the status output cannot be selected.
While the check reserves the device, no input change enters the faceoff path. Ending the check restores every input's level
through InputLevels, without synthesizing a press.
During a Uno check, the normal InputLevels stream pauses. The health status summaries show the selected inputs' captured
levels; the unselected inputs' normal levels are refreshed when the check ends.
| Read mode | Timing and coverage |
|---|---|
| Native | The native I2C reader stamps changes with CLOCK_MONOTONIC, checked against the service's Stopwatch clock. Quiet periods produce no changed-read records and are not gaps. Native read-interval statistics, I2C errors, ring loss, and read-check mismatches determine missing coverage. Read intervals over 2 ms create acquisition gaps. |
| SingleTransfer, TwoTransfer, Combined | The service stamps each read immediately after the I2C operation with Stopwatch. Read intervals over 10 ms create acquisition gaps, as do SingleTransfer read-check mismatches. Shorter pauses still increase the result's reported resolution. |
The managed threshold allows the ordinary 2–3 ms garbage-collection pauses measured in the ordering campaign without making every check inconclusive. The native threshold is more conservative than that campaign's normal intervals below 500 µs, while still flagging a substantial interruption. These thresholds describe coverage loss, not debounce or a guarantee that shorter pulses will be observed. Multiple physical changes between reads can cancel completely.
Capabilities report the active reader's largest measured interval since startup, rounded up to 100 ns ticks. Before a measurement
is available, they use an explicitly identified initial estimate of 0.5 ms for Native or 1 ms for managed reads. No minimum pulse
width is guaranteed (MinObservablePulseTicks is null). The result increases that resolution to include the largest read
interval observed during capture, including pauses below the gap threshold. It is a conservative timing limit, not a fixed
poll rate or a new hardware timing qualification. Native statistics are handed over in batches; when a batch reports loss,
the affected observation window is conservatively marked as a gap because the counters do not locate each missed transition.
The native reader continues sampling through managed garbage collection; waiting in its ring does not itself reduce acquisition
resolution, but a ring overflow does lose data.
The .NET service limits above apply (4096 retained transitions per selected input, 512 per trace page, 10 s lease, 120 s default and 300 s maximum duration, 256 markers), with at most eight physical input lines. Owner disconnect and service shutdown end the check and retain its partial result. Faceoff requests with participants are refused while it runs; they do not cancel it.
Uno device results (K2, 2026-11-27)¶
On one Uno with eight monitored inputs, the shared analyzer matched 18/18 Native case expectations at a 10 ms generator step grid and 18/18 Native expectations at a measured 1 ms grid. Each run retained 19 exports across 18 distinct cases and passed 18/18 separate physical faceoff and level-restoration postflights. All eight inputs reported 3.5958 ms resolution in every 10 ms-grid export and 0.2796 ms in every 1 ms-grid export. Both runs completed all eight control_clean guided cycles without gaps. Late held and released chatter was reported as instability; ordinary press and release bounce was not. Their only coverage gap was the intentional transition-quota gap in overflow.
The SingleTransfer 10 ms-grid run completed the same 18 cases and 18 physical postflights, but the shared analyzer matched 17/18 case expectations. All eight inputs reported 40.081 ms resolution in every export. In control_clean, a 24.6483 ms acquisition gap crossed input 0's released observation and input 1's release. Those two inputs were Inconclusive despite two recorded edges and a completed marked cycle each; inputs 2–7 were NoInstabilityObserved. This is a real coverage limitation in that capture, and its cause was not isolated. The Native web dialog separately completed 1/1 guided input-0 cycle with two changes, no gap, and NoInstabilityObserved at 0.2343 ms reported resolution; its exported analysis matched the shared analyzer, and a separate physical postflight passed. The generator step grid and the device-reported polling resolution are different measurements. These results do not validate TwoTransfer or Combined, and polling can miss shorter changes.
The K2 hardware report links the Native, SingleTransfer, browser and 1 ms-grid per-case evidence.
ESP32¶
The ESP32 firmware implements the check with the same wire contract, so the same web page, client calls and analyzer apply. It captures every input by GPIO interrupt, stamped with a 1 microsecond clock, and reads the level in the interrupt handler. A pulse that ends before the level is sampled cannot be resolved and shows as a coverage gap. Its limits, which GetButtonHealthCapabilities reports:
| Limit | Value |
|---|---|
| Inputs per check | 8 |
| Duration | Default 120 s, at most 300 s |
| Transitions kept per input | 128; more are counted but not kept |
| Trace page | At most 128 transitions |
| Lease | 10 s |
| Phase markers | 128 |
An input is masked, with a coverage gap, once it has produced more than 128 transitions or 256 interrupts in one check. The device is reserved during a check as on the .NET service: faceoff requests with inputs, random triggers and configuration changes are refused.