feat(readers): same-code debounce at the dispatcher, per-reader window (default 5000 ms)
Build & push images / images (push) Successful in 3m7s
Build & push images / images (push) Successful in 3m7s
park-2, 2026-10-11: the DT-008 entry reader reported one card twice 560 ms
apart; the permit flow opened two sessions on the same permit and pulsed the
barrier twice (caught by the new relay-pulse log). The 24h before showed
2 entry + 2 exit opens within 2 s of the previous one.
ReadDispatcher now treats the same value from the same reader inside the
reader's debounceMs window as ONE presentation: the first verdict is replayed
(same beep, no second decision, nothing signed twice) and the repeat lands in
device_events as unsigned telemetry. Every lane and every credential kind,
so a ticket re-scanned at exit inside its grace period no longer signs a
noSession refusal for a car that just left. The window slides with repeats;
a repeat arriving while the first read is still deciding gets that decision.
The window is a Setup field on all three reader drivers ("Same-code
debounce (ms)", default 5000, 0 = off); readers configured before the field
existed get the default.
This commit is contained in:
@@ -3528,3 +3528,10 @@ each plate is settled once per loop, debounce keyed `deviceId:plate`, credential
|
||||
subscriber, pass sample per plated car. Also re-confirmed the camera event model: 2780 pushes, all
|
||||
`activePostCount=1`, median 1.2 s apart, never `inactive` — nothing is held for 30 s on the camera
|
||||
side. `anpr-entry.ts`, `anpr-entry.test.ts` (20), [[lane-presence-and-anpr-entry]] updated.
|
||||
|
||||
## [2026-10-11] built | Same-code read debounce at the dispatcher (per-reader `debounceMs`, default 5000)
|
||||
park-2 double-read: the DT-008 reported one card twice 560 ms apart → two permit sessions, two barrier
|
||||
pulses (caught by the new relay-pulse log on deploy day). `ReadDispatcher` now treats the same value
|
||||
from the same reader inside the reader's `debounceMs` as one presentation: first verdict replayed,
|
||||
repeat → unsigned telemetry, nothing signed twice. Every lane and credential kind. Setup field on all
|
||||
reader drivers. [[dingtian-dt008-reader]] updated; `read-dispatch-debounce.test.ts` (7).
|
||||
|
||||
Reference in New Issue
Block a user