Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Separating HID Idle Reports From New Key Events on a USB Keypad | Crystal & Oscillator Handbook

Holding a test key can yield periodic identical input reports. Separate host polling from device rules for reissuing unchanged states and the application's interpretation of a hold. The log does not by itself indicate contact bounce or an unstable 12 MHz reference.

A poll does not always return new data

Applicable USB HID devices can use idle duration to control repetition of unchanged input reports. Zero suppresses repetition indefinitely while content stays the same. A nonzero duration uses 4 ms units. After the interval, the device can prepare the same report and deliver it at a host polling opportunity. A stable pressed state can therefore produce identical reports at intervals.

The host can poll while the device indicates no data during suppression. This does not establish a communications fault or absence of polling. Composite devices can use different idle settings by report ID. Combining timestamps from multiple IDs can create a misleading apparent cadence change.

The upper layer may treat identical key state as one continuing press or produce its own autorepeat after a hold. Several identical raw reports cannot establish several presses. Lack of duplicate reports also does not establish device failure if content is unchanged and idle rules suppress repeats.

Worked example: a one-millisecond polling opportunity does not mandate a report each time

Suppose an offline interface offers a poll every 1 ms and already reported the held state. At ten idle units, the nominal repeat interval is 10 × 4 ms = 40 ms. Actual delivery depends on polling, timing tolerance and any state changes. The example does not specify a keyboard's exact delivery time.

ExamplePolling opportunityUnchanged state
Zero idle durationEvery 1 ms in the exampleNo time-based repeat
Ten idle unitsEvery 1 ms in the exampleSame report may become due around 40 ms
Actual state changeSame polling cadenceNew content is distinct from repetition

There can be roughly 40 polling opportunities in an ideal aligned 40 ms interval without 40 user actions. An actual pressed-to-released-to-pressed sequence is different and may involve contacts, scanning or controller logic. Count identical reports and changes separately.

If one report ID has a stable keypad while another has a moving knob, aggregate arrivals do not define keypad idle behavior. Group by ID and content before measuring intervals. State which fields acceptance uses.

Keep raw reports, state changes and application events

Use authorized owned equipment and an isolated bench. Use non-sensitive test keys or offline samples. Retain timestamp, report ID and state with the corresponding application log. Test tap, hold and release separately to locate the first extra event. No third-party input capture or abnormal USB traffic is needed.

Record host and idle behavior. Repetition can differ across hosts with the same peripheral. Compare active settings and device state against equivalent holds on one timebase. Identical reports with one application press and release can be expected. An extra application action on every duplicate suggests interpretation. Raw press and release toggling calls for contact or scan checks.

Verify the reference independently. Duplicate-report frequency cannot establish 12 MHz accuracy. If other timing behaves abnormally, trace clock and division using approved points. If only a report type follows idle configuration, investigate protocol and implementation. A changing interval after a clock swap does not isolate prior frequency error when polling and device policy can also differ.

Capture before and after entry into the stable state and leave a longer observation. Separate a missing state transition from a missing repeat. A tool that provides only event totals cannot distinguish them.

Qualify the oscillator and hold behavior separately

If a controller board needs a 12 MHz active CMOS reference, Epson SG-210STF code X1G004171001800 is a listed option. Verify supply, input, footprint and full order conditions for the approved revision. It is a candidate rather than an identified finished keypad part, and actual USB timing need not run directly at 12 MHz.

Specify whether a hold should produce one action, independent autorepeat or raw state only. Record host, duration, allowed duplicates and per-ID reporting. Different product contexts can have different requirements. Record expected behavior for idle and for actual changes separately.

Frequently asked questions

Does idle zero mean every poll should return a report? It suppresses time-based duplicates. Actual changes are still reported at an available transfer opportunity.

Do two identical reports prove two contact bounces? Repeated state can be normal. Check whether raw press and release states actually changed and where that change first appeared.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.