Control Hikvision DS-2DE4425IW-DE
Control Hikvision DS-2DE4425IW-DE
Hey all, brand new to zoneminder, great software so far.
I am running on a SBC (gmtek intel based), fedora linux, if that matters.
So far I've gotten everything working but the camera control. I see a live image but the arrow controls aren't moving the camera. If i web into the camera itself, it moves with those controls. I have tried with https on and off.
This is my control config
Control Type Hikvision
control device DS-2DE2A404IW-DE3
control addy admin:pass@192.168.0.175, tried :8000 and :
auto stop timeout, tried 0, 1
Any ideas how to get this thing controllable?
I am running on a SBC (gmtek intel based), fedora linux, if that matters.
So far I've gotten everything working but the camera control. I see a live image but the arrow controls aren't moving the camera. If i web into the camera itself, it moves with those controls. I have tried with https on and off.
This is my control config
Control Type Hikvision
control device DS-2DE2A404IW-DE3
control addy admin:pass@192.168.0.175, tried :8000 and :
auto stop timeout, tried 0, 1
Any ideas how to get this thing controllable?
Re: Control Hikvision DS-2DE4425IW-DE
TUrn on debug and look in /var/log/zm/zmcontrol_<monitor id>.log.
HikVision generally works well, we should be able to get this working.
HikVision generally works well, we should be able to get this working.
Re: Control Hikvision DS-2DE4425IW-DE
Thanks, looks like it's complaining about no protocol in hikvision control type?
09/21/2024 09:45:49.827309 zmcontrol_3[610459].ERR [ZoneMinder::Monitor:337] [No protocol set in control 27, trying Name HikVision]
09/21/2024 09:45:49.891503 zmcontrol_3[610459].FAT [main:113] [No protocol is set in monitor. Please edit the monitor, edit control type, select the control capability and fill in the Protocol field]
If I edit the "HikVision" control type, there is nothing in the "Protocol" field, what should I put in there?
09/21/2024 09:45:49.827309 zmcontrol_3[610459].ERR [ZoneMinder::Monitor:337] [No protocol set in control 27, trying Name HikVision]
09/21/2024 09:45:49.891503 zmcontrol_3[610459].FAT [main:113] [No protocol is set in monitor. Please edit the monitor, edit control type, select the control capability and fill in the Protocol field]
If I edit the "HikVision" control type, there is nothing in the "Protocol" field, what should I put in there?
Re: Control Hikvision DS-2DE4425IW-DE
HikVision.
In 1.37 I added some code to handle this, just using the Name for Protocol. I'll have to look that up and merge to 1.36.35.
In 1.37 I added some code to handle this, just using the Name for Protocol. I'll have to look that up and merge to 1.36.35.
Re: Control Hikvision DS-2DE4425IW-DE
That worked, thank you!
Re: Control Hikvision DS-2DE4425IW-DE
after adding this protocol and moving the camera a bit, it seems kswapd0 shoots up in CPU usage. The ZM web site lists 15.44 as the load, but after a reboot, kswapd0 freeks out and starts using 70%+ memory again. I don't think it does this until I control the camera. Going to keep testing. About 3m after moving the cam, the zm website cannot refresh, and i get a gateway error after it times out.
You can see this here, https://zerozm.ddns.net:1443
test, test123!
Tasks: 833 total, 8 running, 824 sleeping, 0 stopped, 1 zombie
%Cpu(s): 2.4 us, 96.6 sy, 0.0 ni, 0.0 id, 0.1 wa, 0.6 hi, 0.3 si, 0.0 st
MiB Mem : 7678.7 total, 71.8 free, 7462.2 used, 479.6 buff/cache
MiB Swap: 7678.0 total, 0.5 free, 7677.5 used. 216.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
66 root 20 0 0 0 0 R 74.7 0.0 1:50.88 kswapd0
2391 root 20 0 3593768 15388 5036 S 34.8 0.2 0:19.96 dockerd
2074 apache 20 0 10.7g 2.8g 21912 R 34.5 36.8 9:06.59 zmc
814 root 20 0 4962968 1516 864 S 22.2 0.0 0:19.24 gala-node
1121 mysql 20 0 2158112 9288 6964 S 19.3 0.1 0:20.37 mariadbd
7983 root 20 0 934116 692 448 S 13.9 0.0 0:28.15 containerd
11 root 20 0 0 0 0 R 13.0 0.0 0:09.53 kworker/u16:0+btrfs-endio
3774 root 20 0 0 0 0 I 11.7 0.0 0:06.26 kworker/u16:13-btrfs-endio
614 root 20 0 0 0 0 I 11.1 0.0 0:07.20 kworker/u16:11-btrfs-endio
11537 apache 20 0 511816 9792 7260 S 11.1 0.1 0:00.43 php-fpm
1 root 20 0 22552 4988 3912 S 10.1 0.1 0:06.10 systemd
11110 root 20 0 722596 1196 836 S 9.5 0.0 0:12.45 monitor
kswapd0 then dies down after 5m, then zmc goes to 90%+
Tasks: 347 total, 1 running, 346 sleeping, 0 stopped, 0 zombie
%Cpu(s): 25.1 us, 2.2 sy, 0.0 ni, 71.8 id, 0.1 wa, 0.5 hi, 0.3 si, 0.0 st
MiB Mem : 7678.7 total, 170.8 free, 2693.7 used, 5169.2 buff/cache
MiB Swap: 7678.0 total, 7084.3 free, 593.7 used. 4985.0 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12690 apache 20 0 1359396 905584 78448 S 93.4 11.5 7:43.30 zmc
7910 root 20 0 1343580 515636 92276 S 5.0 6.6 1:35.52 k3s
414 root 20 0 320432 6048 5652 S 3.7 0.1 0:39.61 plymouthd
11110 root 20 0 722596 18316 8788 S 1.3 0.2 0:24.56 monitor
13 root 20 0 0 0 0 I 0.7 0.0 0:28.45 kworker/u16:1-events_unbound
15564 alladmin 20 0 233320 6204 4028 R 0.7 0.1 0:00.03 top
18 root 20 0 0 0 0 I 0.3 0.0 0:04.36 rcu_preempt
2391 root 20 0 3593768 50124 27560 S 0.3 0.6 1:05.03 dockerd
7983 root 20 0 936372 84280 41332 S 0.3 1.1 0:52.35 containerd
9486 root 20 0 764912 34468 20296 S 0.3 0.4 0:27.08 coredns
10939 root 20 0 0 0 0 I 0.3 0.0 0:25.33 kworker/u16:17-flush-btrfs-1
11763 65532 20 0 751964 43892 22696 S 0.3 0.6 0:05.18 manager
12686 alladmin 20 0 759028 49088 33188 S 0.3 0.6 0:03.00 metrics-server
zm not displaying live view of hikvision camera now, confirmed i can see live view if i web into camera itself
now after reboot, i cannot see live view and zmc is pegged at 100%+ usage
You can see this here, https://zerozm.ddns.net:1443
test, test123!
Tasks: 833 total, 8 running, 824 sleeping, 0 stopped, 1 zombie
%Cpu(s): 2.4 us, 96.6 sy, 0.0 ni, 0.0 id, 0.1 wa, 0.6 hi, 0.3 si, 0.0 st
MiB Mem : 7678.7 total, 71.8 free, 7462.2 used, 479.6 buff/cache
MiB Swap: 7678.0 total, 0.5 free, 7677.5 used. 216.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
66 root 20 0 0 0 0 R 74.7 0.0 1:50.88 kswapd0
2391 root 20 0 3593768 15388 5036 S 34.8 0.2 0:19.96 dockerd
2074 apache 20 0 10.7g 2.8g 21912 R 34.5 36.8 9:06.59 zmc
814 root 20 0 4962968 1516 864 S 22.2 0.0 0:19.24 gala-node
1121 mysql 20 0 2158112 9288 6964 S 19.3 0.1 0:20.37 mariadbd
7983 root 20 0 934116 692 448 S 13.9 0.0 0:28.15 containerd
11 root 20 0 0 0 0 R 13.0 0.0 0:09.53 kworker/u16:0+btrfs-endio
3774 root 20 0 0 0 0 I 11.7 0.0 0:06.26 kworker/u16:13-btrfs-endio
614 root 20 0 0 0 0 I 11.1 0.0 0:07.20 kworker/u16:11-btrfs-endio
11537 apache 20 0 511816 9792 7260 S 11.1 0.1 0:00.43 php-fpm
1 root 20 0 22552 4988 3912 S 10.1 0.1 0:06.10 systemd
11110 root 20 0 722596 1196 836 S 9.5 0.0 0:12.45 monitor
kswapd0 then dies down after 5m, then zmc goes to 90%+
Tasks: 347 total, 1 running, 346 sleeping, 0 stopped, 0 zombie
%Cpu(s): 25.1 us, 2.2 sy, 0.0 ni, 71.8 id, 0.1 wa, 0.5 hi, 0.3 si, 0.0 st
MiB Mem : 7678.7 total, 170.8 free, 2693.7 used, 5169.2 buff/cache
MiB Swap: 7678.0 total, 7084.3 free, 593.7 used. 4985.0 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12690 apache 20 0 1359396 905584 78448 S 93.4 11.5 7:43.30 zmc
7910 root 20 0 1343580 515636 92276 S 5.0 6.6 1:35.52 k3s
414 root 20 0 320432 6048 5652 S 3.7 0.1 0:39.61 plymouthd
11110 root 20 0 722596 18316 8788 S 1.3 0.2 0:24.56 monitor
13 root 20 0 0 0 0 I 0.7 0.0 0:28.45 kworker/u16:1-events_unbound
15564 alladmin 20 0 233320 6204 4028 R 0.7 0.1 0:00.03 top
18 root 20 0 0 0 0 I 0.3 0.0 0:04.36 rcu_preempt
2391 root 20 0 3593768 50124 27560 S 0.3 0.6 1:05.03 dockerd
7983 root 20 0 936372 84280 41332 S 0.3 1.1 0:52.35 containerd
9486 root 20 0 764912 34468 20296 S 0.3 0.4 0:27.08 coredns
10939 root 20 0 0 0 0 I 0.3 0.0 0:25.33 kworker/u16:17-flush-btrfs-1
11763 65532 20 0 751964 43892 22696 S 0.3 0.6 0:05.18 manager
12686 alladmin 20 0 759028 49088 33188 S 0.3 0.6 0:03.00 metrics-server
zm not displaying live view of hikvision camera now, confirmed i can see live view if i web into camera itself
now after reboot, i cannot see live view and zmc is pegged at 100%+ usage
Re: Control Hikvision DS-2DE4425IW-DE
here is the a log
zmdc.log
09/21/2024 16:16:07.916908 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:16:18.133941 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:16:38.362893 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:17:08.590644 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:17:38.820262 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:18:09.159137 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:18:39.384644 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:19:09.602741 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:19:39.614364 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:20:09.643319 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:20:39.905391 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:21:10.155574 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:21:40.458985 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:22:10.702230 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:22:40.972683 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:23:10.201167 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:23:40.435737 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:24:10.676326 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:24:40.925096 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:25:11.171330 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:25:41.983072 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:26:11.842221 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:26:42.078129 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:27:12.316239 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:27:42.245898 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:28:12.634241 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
ZoneMinder Telemetry Agent starting at 24/09/21 19:35:45
Collecting data to send to ZoneMinder Telemetry server.
ZoneMinder Telemetry Agent starting at 24/09/21 19:38:24
Collecting data to send to ZoneMinder Telemetry server.
09/21/2024 19:39:39.090295 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 19:39:40.355514 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 19:39:45.502316 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 19:39:56.578404 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
zms_m3.log - these errors over and over
09/21/24 20:06:43.361120 zms_m3[42397].ERR-zms.cpp/234 [Unable to authenticate user from https://192.168.0.252/zm/index.php]
09/21/24 20:10:44.658355 zms_m3[42867].ERR-zms.cpp/234 [Unable to authenticate user from https://192.168.0.252/zm/index.php]
zmdc.log
09/21/2024 16:16:07.916908 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:16:18.133941 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:16:38.362893 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:17:08.590644 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:17:38.820262 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:18:09.159137 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:18:39.384644 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:19:09.602741 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:19:39.614364 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:20:09.643319 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:20:39.905391 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:21:10.155574 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:21:40.458985 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:22:10.702230 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:22:40.972683 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:23:10.201167 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:23:40.435737 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:24:10.676326 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:24:40.925096 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:25:11.171330 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:25:41.983072 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:26:11.842221 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:26:42.078129 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:27:12.316239 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:27:42.245898 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 16:28:12.634241 zmdc[1853].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
ZoneMinder Telemetry Agent starting at 24/09/21 19:35:45
Collecting data to send to ZoneMinder Telemetry server.
ZoneMinder Telemetry Agent starting at 24/09/21 19:38:24
Collecting data to send to ZoneMinder Telemetry server.
09/21/2024 19:39:39.090295 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 19:39:40.355514 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 19:39:45.502316 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
09/21/2024 19:39:56.578404 zmdc[37676].ERR [ZMServer:718] ['zmcontrol.pl --id 3' exited abnormally, exit status 255]
zms_m3.log - these errors over and over
09/21/24 20:06:43.361120 zms_m3[42397].ERR-zms.cpp/234 [Unable to authenticate user from https://192.168.0.252/zm/index.php]
09/21/24 20:10:44.658355 zms_m3[42867].ERR-zms.cpp/234 [Unable to authenticate user from https://192.168.0.252/zm/index.php]
Re: Control Hikvision DS-2DE4425IW-DE
see attached, now all my cameras are not displaying live view, thumbnails look weird, CPU for "zmc" is 160%+ and 80%+
- Attachments
-
- zoneminder-2.png (28.46 KiB) Viewed 1836 times
Re: Control Hikvision DS-2DE4425IW-DE
fixed the liveview, now it seems zoneminder works fine if I never touch the control arrows. If i do the system takes a total dump, CPU spikes, web site crashes, and eventually zmc crashes
Re: Control Hikvision DS-2DE4425IW-DE
You're not posting any actionable info. The PTZ stuff doesn't really touch anything else, it runs a script that sends a command to the camera. The only reason anything else would care is that it would detect the camera moving as motion and potentially start recording. You are going to have to look in your logs. Maybe watch top to see what is taking all the cpu/ram after a ptz command.
Re: Control Hikvision DS-2DE4425IW-DE
kswapd0 freeks out and starts swapping like crazy.
I posted a few up in this thread, top shows 8gig of ram with 0 free and swap is 8gig, 0 free. Seems like it swaps to death.
I'm using a SBC with 4core 3.4ghz, 8gig RAM now, seems that isn't enough.
I posted a few up in this thread, top shows 8gig of ram with 0 free and swap is 8gig, 0 free. Seems like it swaps to death.
I'm using a SBC with 4core 3.4ghz, 8gig RAM now, seems that isn't enough.
Re: Control Hikvision DS-2DE4425IW-DE
Hikvision defaults to a keyframe interval of 50. We generally have to keep 2*interval+1 at minimum in ram because we have to start writing out to disk starting with a keyframe. 2560 x 1440 * 4bytes * 50 = 1.4 GB per camera. Add in pre-event frames, and the it all really adds up. In your previous post we see that zmc is using 2.8GB real ram and over 10GB virtual ram.
So no, 8Gb is not enough.
But you can set ZM to use a smaller resolution and you can set the keyframe interval to something smaller, like 10.
So no, 8Gb is not enough.
But you can set ZM to use a smaller resolution and you can set the keyframe interval to something smaller, like 10.
Re: Control Hikvision DS-2DE4425IW-DE
I just looked through the settings, where/what is keyframe?
Re: Control Hikvision DS-2DE4425IW-DE
keyframe is set in the camera, might be listed as i-frame interval