feat(devices): DT-008 reader discovery + auto-configuration over the vendor UDP protocol
Build & push images / images (push) Successful in 3m7s
Build & push images / images (push) Successful in 3m7s
The Dingtian DT-008's Windows-only config tool speaks a small binary UDP protocol (reader :24680 unicast get/set, :24582 broadcast search/set-network), reversed in wiki/raw/dingtian_qr_linux (PROTOCOL.md + dingtian_qr.py, copied to scripts/). Reading park-2's readers with it from the booth found both in WG26 output mode — the "beeps but captures nothing" enrolment failure: they never pushed HTTP at all. The app now speaks the protocol itself (packages/devices dingtian-qr-config.ts, Node dgram, host-network container) and the dingtian-qr-reader driver uses it: - discover(): first driver to implement the wizard's Scan capability; rows show serial, IP, output mode, current server target, card format, firmware. - preconditions: output type must be HTTP (fixable — save switches it); typed serial must equal the reported one and the reader must answer on UDP (both block the save). - configureInputPush(): set-network the reader's server to this booth's IP + listen port, confirmed by polling (the reader applies it without an ack and is silent for seconds). - usesPushAuth=false: the scan GET carries no credentials, so no push secret is stored. - a reader saved without an IP warns instead of failing (legacy vendor-tool setup). Verified on the bench unit: WG26→HTTP, target 8080→8081→8080, struct byte-identical after. 15 protocol tests against a fake reader + 17 adapter tests. Wiki: device-discovery, first-run-setup, dingtian-dt008-reader, site-device-installation §2 (SSH procedure; the "needs a Windows laptop" claim withdrawn), new source page dingtian-qr-linux-tool.
This commit is contained in:
+36
@@ -3379,3 +3379,39 @@ service's. `HTTP_PORT` / `SERVER_PORT` / `VISION_HOST_PORT` now flow from the st
|
||||
`docker-compose.prod.yml` into Caddy (`{$HTTP_PORT:80}` / `{$SERVER_PORT:3000}`), the host-net
|
||||
server (`PORT`) and vision's loopback publish; defaults reproduce the booth layout exactly. park-lab
|
||||
sets 8080 / 3100 / 8189. Pages: [[container-deployment]], [[fleet-deployment-komodo]] §park-lab.
|
||||
|
||||
## 2026-10-08 — park-2: card enrolment "beeps but captures nothing" = the readers never push
|
||||
|
||||
Three capture arms at 07:37–07:38Z, 37 polls, not one reader request; the whole 21 h server log has
|
||||
zero `/qa/mcardsea` hits and `device_events` has no reader category at all — the two DT-008s
|
||||
(serials HC009E84 / HC00D3B0, added to the wizard 2026-09-08) have never reached the booth. The beep
|
||||
is therefore local (non-HTTP output type) or another server's. Fix = the vendor tool on-site:
|
||||
Output type HTTP, server `10.0.10.101`:80. Runbook §2 corrected (output type explicit; "server IP"
|
||||
no longer printed as the lab's `10.0.10.203`). Pages: [[site-device-installation]] §2.
|
||||
|
||||
## [2026-10-08] ingest | Dingtian QR reader — Linux configuration tool (raw/dingtian_qr_linux)
|
||||
|
||||
The exe's UDP protocol is reversed and `dingtian_qr.py` replaces it on Linux; copied to
|
||||
`scripts/dingtian_qr.py`. Verified: discover/info/get on the bench unit; `set --output-type` 3→6→3
|
||||
with a struct diff of exactly byte 0x198 (the whole Format sequence is now proven on hardware).
|
||||
Then, read-only over SSH from the booth, **park-2's readers answered `output_type = WG26`** — the
|
||||
root cause of the morning's "beeps but captures nothing": Wiegand mode, never HTTP. Server target
|
||||
was already right (`10.0.10.101:3000`). The §2 trap's "needs a Windows laptop on the VLAN" claim
|
||||
from earlier today is withdrawn. Fix pending the operator's go: `set <ip> --output-type 3` on `.7`
|
||||
and `.8`. Pages: [[dingtian-qr-linux-tool]], [[dingtian-dt008-reader]], [[site-device-installation]]
|
||||
§2, [[qrcode-sdk]], [[index]].
|
||||
|
||||
## [2026-10-08] ingest | DT-008 reader discovery + auto-configuration in the app
|
||||
|
||||
The `dingtian-qr-reader` driver now speaks the reversed UDP protocol itself
|
||||
(`dingtian-qr-config.ts`, Node dgram): `discover()` (first driver to implement
|
||||
[[device-discovery]]), preconditions (output type must be HTTP — fixable; typed serial must equal
|
||||
the reported one — not fixable; no UDP answer — not fixable) and `configureInputPush` (set-network
|
||||
to this booth's IP + port, confirmed by polling because the reader is silent after the write and
|
||||
never acks). The wizard's existing Scan / Test / Save seams carry it; discovery rows show mode +
|
||||
current target; no push secret is persisted for the reader (`usesPushAuth = false`); a reader
|
||||
saved without an IP warns instead of failing. Verified end to end on the bench unit (WG26→HTTP,
|
||||
target 8080→8081→8080, struct byte-identical), 17 adapter + 15 protocol tests. Not yet deployed:
|
||||
needs a new image (push → CI) and a stack bump; park-2's readers still await the one-line fix.
|
||||
Pages: [[device-discovery]], [[first-run-setup]], [[dingtian-dt008-reader]],
|
||||
[[site-device-installation]] §2, [[dingtian-qr-linux-tool]].
|
||||
|
||||
Reference in New Issue
Block a user