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: concept
|
||||
tags: [parking, vision, barrier, lane, ledger, safety, design]
|
||||
sources: []
|
||||
updated: 2026-10-24
|
||||
updated: 2026-11-15
|
||||
status: open
|
||||
---
|
||||
|
||||
@@ -100,12 +100,36 @@ watch and nothing between watches; two lanes at once need 4 threads or detection
|
||||
frames with the tracker interpolating. Cheaper still: re-export YOLOX at 416 (~2.4× fewer FLOPs)
|
||||
or switch to YOLOX-Tiny/Nano for the tracker (the plate stage keeps its own detector).
|
||||
|
||||
**Still needed to measure the stream path:** a camera on the bench. The lab Dahua (10.0.10.11) was
|
||||
off on 2026-10-24; the office Hikvisions on the same net (10.0.10.122/.125/.126/.128) need
|
||||
credentials. Nothing of park-lab's device registry has a camera yet (only the relay emulator).
|
||||
## park-lab rig (2026-11-15)
|
||||
|
||||
Two cameras mounted on **one physical lane that serves both directions** (user, 2026-11-15):
|
||||
|
||||
| | Entry camera | Exit camera |
|
||||
|---|---|---|
|
||||
| Address | `10.0.10.6` | `10.0.10.7` |
|
||||
| Model | DS-2CD1043G2-LIU (4MP) | DS-2CD1083G2-LIU (8MP) |
|
||||
| Sub-stream (102) | 640×360 H.264, 12.5 fps, keyframe every 4 s | 640×360 H.264, 20 fps, keyframe every 2.5 s |
|
||||
| Line crossing / intrusion (`ISAPI/Smart/LineDetection`, `FieldDetection`) | `notSupport` | `notSupport` |
|
||||
| Motion detection | on, target `vehicle`, grid drawn | on, target `vehicle`, grid drawn |
|
||||
| Alarm server (`httpHosts`) | not set (`0.0.0.0`) | not set (`0.0.0.0`) |
|
||||
|
||||
Read from the cameras over ISAPI the same day; bench snapshot results are on [[lpr-camera]].
|
||||
|
||||
- The 8MP model has no line crossing either, so the constraint above holds for both: the booth PC
|
||||
does the tracking.
|
||||
- Both sub-stream keyframe intervals are above the ≤ 1 s this design asks for (item 1).
|
||||
- Neither camera pushes to park-lab yet, and neither is in its device registry.
|
||||
- [[k200l-printer]] records `10.0.10.7` as the park-lab printer's fixed address — the exit camera
|
||||
now answers there. To be resolved with the user.
|
||||
- **Shared lane — not covered by the design above**, which assumes a camera sees only its own
|
||||
direction. Here a car driving in passes the entry camera and then drives away through the exit
|
||||
camera's view, and the reverse for a car driving out. Open in "Open questions".
|
||||
|
||||
## Open questions
|
||||
|
||||
- **One lane, both directions (park-lab rig).** Every car crosses both cameras' views. Does the far
|
||||
camera's motion push for a car moving *away* count as nothing (direction from the track decides),
|
||||
and may the far camera's sighting corroborate the passage? Undecided.
|
||||
- Re-export YOLOX at 416 vs YOLOX-Tiny for the tracker — accuracy on far cars at the line?
|
||||
- Window cap and "lane clear" dwell before a close (start: cap 60 s, dwell 3 s).
|
||||
- Does the DS-2CD1043G2-LIU keep pushing VMD for a car *reversing*? (It should — motion is motion.)
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ Counts: 4 sources · 19 entities · 47 concepts · 9 decision records.
|
||||
- [[esp32-custom-controller]] — prevention-grade upgrade; device-level auth.
|
||||
- [[atecc608]] — secure element; non-extractable signing key (host events + controller auth).
|
||||
- [[wiegand]] — reader standard feeding the controller directly (autonomous permit-holder path).
|
||||
- [[lpr-camera]] — edge-AI plate recognition; host-side casual-identity source; DS-2CD1047G3H-LIU main-stream ISAPI snapshot 503 is a firmware bug (only channel 102 ever works, ALL other IDs incl. garbage 503 identically) — firmware update tested, no fix; owner decided to replace the camera line rather than build an RTSP workaround.
|
||||
- [[lpr-camera]] — edge-AI plate recognition; host-side casual-identity source; DS-2CD1047G3H-LIU main-stream ISAPI snapshot 503 is a firmware bug (only channel 102 ever works, ALL other IDs incl. garbage 503 identically) — firmware update tested, no fix; owner decided to replace the camera line rather than build an RTSP workaround. Bench 2026-11-15: G2 replacements DS-2CD1043G2-LIU (4MP) and DS-2CD1083G2-LIU (8MP) both serve main-stream snapshots; only concurrent pulls 503.
|
||||
- [[dingtian-dt008-reader]] — Dingtian DT-008 QR/RFID reader on hand; HTTP-GET push, server replies the verdict; ⚠️ our two units read disjoint card sets (125 kHz vs 13.56 MHz) — unresolved, see open question #18.
|
||||
- [[zkteco-controller]] — ❌ rejected/historical; aux-input path was a contender, not pursued.
|
||||
- [[dingtian-relay]] — ✅ CHOSEN access controller; decoupled inputs solve the button blocker (driver verified on hardware); spare relays drive aux outputs (`setAux`).
|
||||
|
||||
+28
@@ -3661,3 +3661,31 @@ User raised the abandoned ANPR entry (boom left up, next car enters free) — th
|
||||
[[passage-confirmation]] already covers. Recorded on [[zkteco-cmp200-barrier]]: close input is
|
||||
`DOWN`; wiring is two relays with a series interlock, never one relay `NC → DOWN`. Answered the
|
||||
"which operator model" open question on [[passage-confirmation]] for the unit on hand.
|
||||
|
||||
## [2026-11-15] query | Bench test — DS-2CD1043G2-LIU (4MP) and DS-2CD1083G2-LIU (8MP) main-stream snapshot
|
||||
|
||||
User asked whether the new 8MP camera 503s on the main stream like the earlier model. Probed both
|
||||
bench units (`10.0.10.6` 4MP V5.8.10, `10.0.10.7` 8MP V5.8.4): `channels/101/picture` 45/45 OK on
|
||||
each at full resolution (2560×1440, 3840×2160); sub stream OK. 8 simultaneous pulls 503 on both
|
||||
(transient `deviceBusy`, already covered by the in-flight coalescing and retry). The persistent 503
|
||||
on record belongs to the `DS-2CD1047G3H-LIU`, not the `1043G2`. Both units go to park-lab next.
|
||||
Not tested: snapshot under a concurrent RTSP main-stream pull; ANPR accuracy 8MP vs 4MP.
|
||||
Filed on [[lpr-camera]].
|
||||
|
||||
## [2026-11-15] query | park-lab cameras mounted — entry `.6`, exit `.7`, one shared lane
|
||||
|
||||
User mounted the two G2 cameras on park-lab: `10.0.10.6` entry (4MP), `10.0.10.7` exit (8MP), the
|
||||
same physical lane for both directions. Read over ISAPI: neither supports line crossing or
|
||||
intrusion; motion detection on with target `vehicle`; alarm server unset; sub-streams 640×360
|
||||
H.264 with 4 s / 2.5 s keyframe intervals. Filed as "park-lab rig" on [[passage-confirmation]],
|
||||
with the shared-lane case as a new open question. Noted: [[k200l-printer]] lists `10.0.10.7` as
|
||||
the park-lab printer's address.
|
||||
|
||||
## [2026-11-17] query | Dingtian save fails with "config api timeout" — HTTP session check on (sw V3.1.6236A)
|
||||
|
||||
User could not save park-lab's Dingtian (`10.0.10.3`): "config api timeout". Cause: the relay's
|
||||
HTTP Auth / session check was on; without the session cookie `config.cgi` returns headers and no
|
||||
body. With `Cookie: session=<id>` the read works — so on sw V3.1.6236A the session check is a
|
||||
usable gate, unlike the V3.1.5461A finding. The driver supports `sessionId` but Setup has no field
|
||||
for it. Filed on [[dingtian-relay]]. Resolved the same day: HTTP Auth off (needs the page's
|
||||
Save), then the expected `input_link_relay` warning, fixed by the save; relay now saved on park-lab.
|
||||
|
||||
Reference in New Issue
Block a user