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
|
||||
|
||||
Reference in New Issue
Block a user