wiki: G2 camera bench test and park-lab rig; Dingtian session check on sw V3.1.6236A
- lpr-camera: DS-2CD1043G2-LIU (4MP) and DS-2CD1083G2-LIU (8MP) both serve main-stream ISAPI snapshots; only concurrent pulls 503 - passage-confirmation: park-lab rig (entry .6, exit .7, one shared lane), camera capabilities, shared-lane open question - dingtian-relay: 'config api timeout' = HTTP session check on; works with the session cookie on this firmware; resolution and triage Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
type: entity
|
||||
tags: [parking, hardware, access-control, relay]
|
||||
sources: []
|
||||
updated: 2026-10-23
|
||||
updated: 2026-11-17
|
||||
---
|
||||
|
||||
# Dingtian Relay Controller
|
||||
@@ -170,6 +170,44 @@ On assign the driver runs `harden()` (the [[device-registry|HardenableDevice]] c
|
||||
> drop connections (ECONNRESET), locking out the API the driver depends on — recoverable only by
|
||||
> factory reset. `harden()` deliberately never touches it.
|
||||
|
||||
## Session check on sw V3.1.6236A — works with the cookie; shows as "config api timeout" (2026-11-17)
|
||||
|
||||
park-lab's relay (DT-R004, hw V3.6J, sw **V3.1.6236A**, build 2026/03/23, SN 81220, `10.0.10.3`)
|
||||
had **HTTP Auth = Yes** with a Magic "Session ID" set on its Setting page (`http.session_en: 1`).
|
||||
Saving it in Setup failed with `device configuration failed: config api timeout`, and the
|
||||
precondition check showed `could not read device config: config api timeout`, while the device
|
||||
status stayed "ready" (status is the UDP binary protocol, which the session check does not gate).
|
||||
|
||||
Measured from the workstation:
|
||||
|
||||
| Request | Result |
|
||||
|---|---|
|
||||
| `GET /api/v2/config.cgi`, no cookie | `200`, `Content-Length: 24`, **no body ever sent** (20 s, 3/3) → the driver's 2 s timeout |
|
||||
| `GET /api/v2/config.cgi`, `Cookie: session=<Magic Session ID>` | `200`, full 4402-byte JSON in ~25 ms (3/3) |
|
||||
| `GET /userset.cgi`, no cookie | `&302&/&` (redirect to login) |
|
||||
|
||||
- **This contradicts the two warnings above for this firmware.** On V3.1.6236A the session check
|
||||
does **not** brick the config-read API, and the CGI plane is **not** open while it is on: it is a
|
||||
working inbound gate. The "must stay OFF" rule and the "CGI API is unauthenticated" finding were
|
||||
measured on sw V3.1.5461A and are not re-tested there.
|
||||
- **The app cannot use it yet.** The driver reads `config.sessionId` and sends the cookie on
|
||||
`config.cgi` / `config_set.cgi` (`packages/devices/src/drivers/access-dingtian.ts`), but no
|
||||
config field exposes `sessionId` in Setup, and `cgiGet` (the `userset.cgi` login rotation) sends
|
||||
no cookie. Until that is built, a relay must have HTTP Auth = No to be saved.
|
||||
- **How it was resolved on park-lab (2026-11-17).** HTTP Auth set to **No** on the relay's Setting
|
||||
page. Changing the dropdown is not enough — the first attempt left `session_en: 1` on the device
|
||||
and the save failed again; the page's **Save** must be pressed and the relay restarts. After
|
||||
that the config read answered without a cookie and the save went through.
|
||||
- **Next warning on a factory unit is expected:** Setup then showed `input_link_relay is ENABLED`
|
||||
(factory config: `input_link_relay: 1`, `on_action_on: [[0],[1],[2],[3]]`). Saving the device
|
||||
corrected it as designed (see "Driver & config API"); read back afterwards:
|
||||
`input_link_relay: 0`, `on_action_on` empty.
|
||||
- **Triage for "config api timeout" with status "ready":** `curl -m 5 http://<relay>/api/v2/config.cgi`
|
||||
from any host on the device net. Headers with `Content-Length: 24` and no body = session check
|
||||
on. No answer at all = wrong HTTP port or the path is blocked.
|
||||
- Open: whether to expose the session ID (as a secret) and have `harden()` set a random one, making
|
||||
the session check part of hardening on firmware that supports it. Undecided.
|
||||
|
||||
## Can we flash our own firmware? (2026-10-22) — **RETIRED 2026-10-23**
|
||||
|
||||
> **Decision (user, 2026-10-23): not pursuing custom Dingtian firmware.** The bench unit is the
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: entity
|
||||
tags: [parking, hardware, readers, offline-first]
|
||||
sources: [parking-system-architecture, DS-2CD1047G3H-LIU]
|
||||
updated: 2026-09-17
|
||||
updated: 2026-11-15
|
||||
---
|
||||
|
||||
# LPR Camera
|
||||
@@ -220,6 +220,34 @@ LIU` (`:8081` in the comparison above) has no such issue — ISAPI main-stream s
|
||||
natively — and is the reference model for replacements. RTSP-frame-grab remains documented above
|
||||
as a viable fallback if a `G3H`-family camera is ever unavoidable.
|
||||
|
||||
### Bench test: DS-2CD1043G2-LIU (4MP) and DS-2CD1083G2-LIU (8MP) — main-stream snapshot works on both (2026-11-15)
|
||||
|
||||
Two new units probed on the bench, then mounted at park-lab the same day (`.6` entry, `.7` exit, one
|
||||
shared lane — see [[passage-confirmation]] "park-lab rig"). Both are the **G2** line, the
|
||||
replacement for the `G3H` above. Credentials are in the device registry, not here.
|
||||
|
||||
| | `10.0.10.6` | `10.0.10.7` |
|
||||
|---|---|---|
|
||||
| Model | **DS-2CD1043G2-LIU** (4MP) | **DS-2CD1083G2-LIU** (8MP) |
|
||||
| Firmware | V5.8.10 build 250714 | V5.8.4 build 241213 |
|
||||
| Channel 101 config | 2560×1440, H.264, VBR, 6144 Kbps cap, 20 fps | 3840×2160, H.264, VBR, 10240 Kbps cap, 12.5 fps |
|
||||
| `channels/101/picture`, 45 sequential pulls | 45/45 **200**, 2560×1440 JPEG, ~200 KB, ~90 ms | 45/45 **200**, 3840×2160 JPEG, ~390 KB, ~150 ms |
|
||||
| `channels/102/picture` (sub), 5 pulls | 5/5 **200**, 640×360 | 5/5 **200**, 640×360 |
|
||||
| 8 simultaneous `101/picture` pulls, 3 rounds | 11 × 200, 13 × **503** | 10 × 200, 14 × **503** |
|
||||
|
||||
- **The 8MP `DS-2CD1083G2-LIU` does not have the `G3H` bug.** Main-stream ISAPI snapshot returns a
|
||||
full-resolution JPEG every time when pulled one at a time. The 4MP `1043G2` confirms the
|
||||
park-buzi `:8081` result above on a second unit.
|
||||
- **Concurrent pulls 503 on both models.** This is the genuine, transient `deviceBusy` (a snapshot
|
||||
already in flight), unlike the `G3H`'s persistent one. The code already handles it: the
|
||||
per-device in-flight coalescing in `apps/server/src/snapshot.ts` and the 503 retry in
|
||||
`packages/devices/src/drivers/camera.ts`. Any new consumer of a camera frame must go through that
|
||||
shared capture, never issue its own GET.
|
||||
- **Not tested:** snapshots while another client pulls the main stream over RTSP (NVR, live view,
|
||||
the [[passage-confirmation]] watcher), and plate-read accuracy at 8MP against 4MP through the
|
||||
[[opencv-anpr-service]]. An 8MP frame is about twice the bytes and 60 ms slower to fetch.
|
||||
- No vendor datasheet for either G2 model is in `raw/` — everything here is observation.
|
||||
|
||||
## Clock sync — the 1970 power-cut reset (built 2026-07-07)
|
||||
|
||||
Field observation (park-buzi): after a power cut these cameras come back with their clock at the
|
||||
|
||||
Reference in New Issue
Block a user