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:
+20
@@ -3351,3 +3351,23 @@ Pages: [[dingtian-dt008-reader]], [[site-device-installation]] §2, [[open-quest
|
||||
|
||||
Stdlib Python HTTP server answering the reader's GET with the SDK verdict + `Connection: close`,
|
||||
one log line per read (serial, dir, channel, cardid). Page: [[dingtian-dt008-reader]] §Bench sink.
|
||||
|
||||
## 2026-09-17 — first Dahua on the bench: IPC-HFW2549T-AS-IL inspected over CGI
|
||||
|
||||
Snapshot, identity, config, RTSP and the `eventManager attach` stream all answered. Two things the
|
||||
app got wrong by assumption: the Dahua driver's channel decrement (`channel=0` → HTTP 400 on this
|
||||
firmware; channels are 1-based), and "Dahua would push like Hikvision" — it holds a multipart
|
||||
subscription socket instead. Clock 1 h off (DST off, NTP off); `global.cgi setCurrentTime` is the
|
||||
unbuilt clock-sync. Unit is not factory-fresh (hostname "main gate", SMD = vehicle). Pages:
|
||||
[[dahua-ipc-hfw2549t]], [[lpr-camera]] §Snapshot driver, [[site-device-installation]] §3, [[index]].
|
||||
|
||||
## 2026-09-17 — Dahua driver: channel fix + clock sync, verified on the bench unit
|
||||
|
||||
`dahuaDriver` now sends the channel as entered (`camera.test.ts` pins the URL) and `DahuaCamera`
|
||||
implements `syncClock` over `global.cgi` get/setCurrentTime with the host's naive wall time. Both
|
||||
run against the real IPC-HFW2549T: snapshot 273 KB, a 2 h-off sync set and read back. A 25-min
|
||||
`eventManager attach` listen captured the verbatim `VideoMotion Start/Stop`, `VideoMotionInfo` and
|
||||
`TimeChange` parts; `RealUTC` proved to be the camera's belief of UTC (1 h skewed), so events get
|
||||
stamped on receipt. Still open: the server-side attach subscriber, and whether SMD emits
|
||||
`SmartMotionVehicle` in addition to / instead of `VideoMotion`. Pages: [[dahua-ipc-hfw2549t]],
|
||||
[[lpr-camera]], [[site-device-installation]] §3, [[index]].
|
||||
|
||||
Reference in New Issue
Block a user