726dd9803a
- passage-confirmation: unexplained passages as the audit witness and the phase-1 order (2026-11-19), first recordings, and the decisions of 2026-11-22: the zone flow (last crossing counts, no decision while the zone is busy, an uncrossed open is abandoned) and the read-then-fire relay rules. - zone-anpr-poc: the prototype on park-lab, its builds, the live R2 trials and the turn-back judged as passed; park-lab as the worst-case site. - zone-anpr-plate-trials: plate reading measured (inverting does not help; the still is the main reader; the plate reads only on a short stretch of the approach), the day and wet-night trials, and the two fixes that followed. - zone-anpr-poc-review: the code review of 2026-11-21 with a status table of what the later builds fixed. - vision-hardening: the work list the user deferred to another session. - zkteco-cmp200-barrier, append-only-event-chain, reconciliation, open-questions, overview, index, log: cross-references and updates. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5
105 lines
6.7 KiB
Markdown
105 lines
6.7 KiB
Markdown
---
|
||
type: entity
|
||
tags: [parking, hardware, barrier, relay, wiring]
|
||
sources: []
|
||
updated: 2026-11-22
|
||
---
|
||
|
||
# ZKTeco CMP200 Barrier Gate
|
||
|
||
The boom barrier on hand. Its mainboard (silkscreen on our unit: `TT-DZ-200504E-A1`) drives an
|
||
**AC capacitor-start motor** through on-board relays; limits are Hall switches. Mains 110/220 V AC,
|
||
100 W rated. Not to be confused with the [[zkteco-controller]] (access panel, rejected).
|
||
|
||
Web research 2026-11-14. Sources: ZKTeco CMP200 user manual v1.0 (2019) and v1.2 (March 2022),
|
||
wiring diagrams read from the PDFs:
|
||
<https://bsai.com.mx/cdn/shop/files/ZKTECO-CMP200-Barrera--Vehicular-Manual-de-Operacion-Ingles.pdf>,
|
||
<https://manuals.plus/zkteco/cmp200-automatic-barrier-gate-manual.pdf>.
|
||
No public document names the `TT-DZ-200504E-A1` board, but a photo of our unit (user, 2026-11-14)
|
||
matches the **v1.2** layout: `MOTOR UP/COM/DOWN`, `COM/RED/GREEN`, `L/N/E`, `O.LM OUT`, `C.LM OUT`,
|
||
`STOP/DOWN/UP/STUDY` keys, status LEDs, and a 2x8 socket marked `RS485`. MCU is an **STC 15W408AS**
|
||
(8051 family); on-board transformer 220 V to 12 V / 600 mA; PCB date code 230602. The labels of
|
||
the low-voltage terminals sit under the plug-in connectors and were not visible — pull the plugs
|
||
to confirm them against the table.
|
||
|
||
## Terminal map (manual)
|
||
|
||
| Terminal | Function | Signal |
|
||
| --- | --- | --- |
|
||
| `G` / `STOP` / `DOWN` / `UP` | "Line-controlled interface": wired open/close/stop | dry contact, short to `G` |
|
||
| `G` / `DET` | vehicle (loop) detector | dry contact to `G` |
|
||
| `G` / `PHO` | infrared / "crash proof" sensor | dry contact to `G` |
|
||
| `CAR` (v1.2 only) | "count input" | dry contact to `G`; behaviour undocumented |
|
||
| `RS485 B / A / G` (v1.2 only) | "communication module" | see below |
|
||
| `+12V` / `G`, `+5V` / `G` | auxiliary supply | 12 V total under 100 mA |
|
||
| `O.LM OUT`, `C.LM OUT` | open-limit and close-limit relay outputs | volt-free NO/COM/NC each |
|
||
| `G` / `C.LM` / `O.LM` | external limit junction | — |
|
||
| `MOTOR UP/COM/DOWN`, `LAMP COM/RED/GREEN`, `L/N/E` | motor, AC traffic lamp, mains | **mains voltage** |
|
||
|
||
The v1.0 board has no RS485 and no `CAR`. The 4-pin `REMOTE` header takes the 433 MHz receiver.
|
||
|
||
## Behaviour the manual states
|
||
|
||
- `UP` during a fall reverses to rising at once. `DOWN` during a rise is ignored. `STOP` halts.
|
||
- `PHO` shorted during a fall: reverse to open, then **stay open**.
|
||
- `DET` shorted during a fall: reverse to open, then **close automatically** when released. `DET`
|
||
shorted while open or rising: the boom **falls by itself** once the detector clears. So `DET` is
|
||
both anti-smash and auto-close-after-passage, done in the barrier's own firmware.
|
||
- Timeout protection stops the motor if a travel exceeds the rise/fall time.
|
||
- No menu, no parameters, no auto-close timer are documented. Power-loss behaviour is not stated
|
||
beyond "manual release motor" — the boom does not lift by itself.
|
||
|
||
## Driving it from the [[dingtian-relay]]
|
||
|
||
**Relay contact, not RS485.** ZKTeco's own integration drawings (LPR camera, inBio260) wire a relay
|
||
`COM → G` and `NO → UP`. That is exactly our `pulseOpen`: one Dingtian relay, `COM` to `G`, `NO` to
|
||
`UP`, jogged. It expresses intent only and never times a close ([[barrier-not-a-door]]).
|
||
|
||
- **Closing** normally comes from the loop/radar on `DET`, in barrier firmware. Without a vehicle
|
||
tripping `DET` the boom stays up — the abandoned-entry free pass of [[passage-confirmation]].
|
||
- **Host close (only under [[passage-confirmation]]'s conditions):** a second relay on `DOWN`,
|
||
interlocked in series so it is dead while the open relay is active — relay 1 `COM → G`,
|
||
`NO → UP`, `NC →` relay 2 `COM`; relay 2 `NO → DOWN`. Never one relay with `NC → DOWN` (a
|
||
permanent close command; closes on controller power loss). Per the manual a `DET` or `PHO`
|
||
contact reverses a falling boom, so the close is not blind **if a detector is fitted** — to be
|
||
proven on the unit (test plan steps 2–3 there) before any use.
|
||
- **Dingtian "Mutually Exclusive" is not this interlock (user, 2026-11-21).** The board can pair two
|
||
relays so that switching A on turns B off ("to protect the motor"). That makes the **last**
|
||
command win: a close on relay 2 would cut a held open on relay 1. The series wiring above makes
|
||
**open** win (relay 2 is dead while relay 1 is on), which is what [[barrier-not-a-door]] needs.
|
||
The board setting may be enabled as well, but it does not replace the wiring, nor the `DET`/`PHO`
|
||
proof on the unit.
|
||
- **Status back to the host:** `O.LM OUT` and `C.LM OUT` are volt-free contacts, so they can go
|
||
straight onto two Dingtian inputs (contact to GND, like the button). That gives the host a real
|
||
"boom reached open / closed" signal for [[device-status-monitoring]] and for the anomaly "boom
|
||
opened with no signed host command" ([[threat-model]]).
|
||
- **The close does not need that signal (user, 2026-11-22).** R2 fires on an abandoned open
|
||
without looking at the boom, and a close on a closed boom is expected to do nothing (not yet
|
||
tried on the unit). The relay rules are on [[passage-confirmation]], "Relay rules".
|
||
- **Sharing a detector:** a radar/loop with one dry contact cannot feed both `DET` and a Dingtian
|
||
input directly (two different supplies on one contact). Use a detector with two relay outputs
|
||
or an interposing relay.
|
||
- Keep the low-voltage terminals apart from the mains block on the same board edge.
|
||
|
||
**RS485 — not a usable path today.**
|
||
|
||
1. The barrier's RS485 protocol is **undocumented**. The manual labels the terminals and a plug-in
|
||
"RS485 communication module" header and says nothing else: no baud, no address, no frames. On
|
||
our board the **socket is empty — no module fitted**, so the `B/A/G` terminals have no
|
||
transceiver behind them and are dead as shipped. Manuals for similar Chinese `DZ`-family boards show
|
||
a 4-byte, 9600 bps, XOR-checksum frame, but nothing ties that to this board — unverified.
|
||
2. The Dingtian's RS485 port is an **inbound control channel** (Modbus-RTU / Dingtian string: a
|
||
master commands the Dingtian). Stock firmware is not documented as an RS485 master or an
|
||
Ethernet-to-RS485 bridge, and our `harden()` disables that channel. `(unsourced beyond the
|
||
programming manual's protocol list — check the vendor manual before relying on either way)`
|
||
3. A serial "open" command would also be an unauthenticated open path on a wire in the lane
|
||
cabinet — worse than the password-carrying relay frame we already have.
|
||
|
||
## Open
|
||
|
||
- Pull the low-voltage plugs and read the silkscreen under them (`G DET CAR +12V G +5V G C.LM O.LM`
|
||
and `G STOP DOWN UP / B A G / G PHO` expected).
|
||
- What `CAR` does (probably queues several opens for a convoy) — test on the bench.
|
||
- Fail-state: on power loss the boom holds position, so "exit fails open" ([[fail-state-safety]])
|
||
needs the manual release or a UPS, not this board.
|