fix(devices): Dahua snapshot channel is 1-based; add Dahua clock sync; wiki page for the bench IPC-HFW2549T
Build & push images / images (push) Successful in 3m25s
Build & push images / images (push) Successful in 3m25s
The dahua driver decremented the wizard's channel on the belief the CGI is 0-based. On real hardware (IPC-HFW2549T-AS-IL, fw V2.880, 2026-09-17) snapshot.cgi?channel=0 answers HTTP 400 and channel=1 returns the 2880x1620 JPEG — so every Dahua assignment sat at degraded "HTTP 400". The channel is now sent as entered (clamped >= 1) and the URL is pinned in camera.test.ts. DahuaCamera.syncClock reads global.cgi getCurrentTime and, past the drift limit, writes setCurrentTime with the host's naive local wall time (no offset): the OSD burned into snapshots must match the booth clock; the camera's tz/DST config is left alone. Verified live: a 2h-off set, set back, 1s drift -> no write. The device monitor picks it up via isClockSyncable unchanged. Wiki: new entities/dahua-ipc-hfw2549t.md (endpoint table, verbatim eventManager attach parts — VideoMotion Start/Stop, VideoMotionInfo, TimeChange — RealUTC is the camera's belief of UTC, 5-strike login lockout, unit not factory-fresh); lpr-camera Dahua bullet corrected; runbook §3 Dahua paragraph; index + log. The server-side attach-stream subscriber is not built.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
type: entity
|
||||
tags: [parking, hardware, readers, offline-first]
|
||||
sources: [parking-system-architecture, DS-2CD1047G3H-LIU]
|
||||
updated: 2026-08-23
|
||||
updated: 2026-09-17
|
||||
---
|
||||
|
||||
# LPR Camera
|
||||
@@ -38,8 +38,12 @@ the "Backend push IP" field for it (gated on the driver's `pushesToBackend` flag
|
||||
- **Hikvision** uses **ISAPI**: `GET /ISAPI/Streaming/channels/<id>/picture` (`101` = ch1 main
|
||||
stream) with **HTTP Digest** auth. The "Enable Hikvision-CGI" toggle (Network → Advanced →
|
||||
Integration Protocol) is a *different* legacy CGI surface — **not** needed for ISAPI.
|
||||
- **Dahua** uses CGI: `GET /cgi-bin/snapshot.cgi?channel=<n>` (0-based channel; the wizard's
|
||||
1-based channel is decremented).
|
||||
- **Dahua** uses CGI: `GET /cgi-bin/snapshot.cgi?channel=<n>`, channel **as entered (1-based)**.
|
||||
Until 2026-09-17 the driver decremented it on the belief the CGI is 0-based — the bench
|
||||
IPC-HFW2549T (fw 2.880) answers `channel=0` with **400** and `channel=1` with the JPEG; fixed and
|
||||
verified with the real driver the same day. Clock sync exists for Dahua too (`global.cgi`,
|
||||
naive wall time). Full inspection: [[dahua-ipc-hfw2549t]] (events = held `eventManager attach`
|
||||
socket, not an HTTP push — the subscriber is not built yet).
|
||||
|
||||
**Driver / storage boundary:** the driver FETCHES the image bytes (client-side HTTP Digest in
|
||||
`drivers/http-digest.ts`) and returns them on `Snapshot.bytes`; **storage is the caller's job**
|
||||
|
||||
Reference in New Issue
Block a user