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:
@@ -1,8 +1,8 @@
|
||||
---
|
||||
type: entity
|
||||
tags: [parking, hardware, readers, qr, dingtian]
|
||||
sources: [dingtian-dt008]
|
||||
updated: 2026-09-17
|
||||
sources: [dingtian-dt008, dingtian-qr-linux-tool]
|
||||
updated: 2026-10-08
|
||||
status: open
|
||||
---
|
||||
|
||||
@@ -21,6 +21,26 @@ or RFID [[subscription]]** credentials. Product page: dingtian-tech.com/en_us/qr
|
||||
> (migration 0015 rewrites existing rows). All *protocol/behaviour* facts below were observed on the
|
||||
> real hardware and remain correct — only the device identity was wrong.
|
||||
|
||||
## Configuring it from Linux (2026-10-08)
|
||||
|
||||
The Windows exe's Search / Get parameter / Set are a small binary **UDP protocol** (reader ports
|
||||
24680 unicast, 24582 broadcast), reversed in [[dingtian-qr-linux-tool]]; **`scripts/dingtian_qr.py`**
|
||||
reimplements it. `get <ip>` returns every setting (output type, server/port/language, card input
|
||||
format, prefixes, Wiegand pulses, buzzer, fill light…), `set <ip> --field value` writes one, and
|
||||
both are unicast — so they run **on the booth over SSH**, no site visit. The output-type write was
|
||||
proven on the bench unit (struct diff = the one byte). Not in the protocol: symbologies, DHCP
|
||||
(the exe never sends it either). First use: park-2's readers read back as **`WG26`** — the
|
||||
"beeps but never pushes" case ([[site-device-installation]] §2 trap).
|
||||
|
||||
**In the app (same day):** the driver now speaks this protocol itself
|
||||
(`packages/devices/src/drivers/dingtian-qr-config.ts`, Node `dgram`, runs in the host-network
|
||||
server container). The [[first-run-setup|wizard]] **Scan** button lists readers with their mode
|
||||
and current target ([[device-discovery]]); **Test** reports *not in HTTP mode* / *serial
|
||||
mismatch* / *no UDP answer*; **Save** switches the reader to HTTP and set-networks its server to
|
||||
this booth's IP + port, confirmed by re-read. All verified on the bench unit (WG26→HTTP; target
|
||||
8080→8081→8080; struct byte-identical after). The scan GET stays unauthenticated — the reader is
|
||||
identified by serial, so no push secret is stored for it.
|
||||
|
||||
## What it is
|
||||
|
||||
- **QR/barcode + card.** Reads **QR / simple barcode** AND **ID/IC/NFC cards** (~0.2 s, 0–10 cm).
|
||||
@@ -56,7 +76,8 @@ barrier. ([[device-input-flow]] is the analogous push pattern; this one also ret
|
||||
- Pushes over plain **HTTP** to our `10.0.10.x` host (on the device subnet); no serial wiring, no
|
||||
Wiegand-decode hardware. Suits the host-in-the-loop model; autonomy is moot anyway
|
||||
([[dingtian-relay]] has no onboard ACL).
|
||||
- Default IP `192.168.1.99` (set its server IP/port to this host in the vendor tool).
|
||||
- Default IP `192.168.1.99` (set its server IP/port to this host in the vendor tool or with
|
||||
`scripts/dingtian_qr.py`).
|
||||
|
||||
## Resolved (2026-06-16)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user