Stutter movement with Hikvision camera

Hi all, 

I have a Jetson nano (ip:192.168.1.100) connected to a router (IP:192.168.1.1) that a Hikvision camera (IP:192.168.1.64) is connected to that router. My jetson nano is running a docker image that moves the camera to follow a person. This script is written in python.

The problem I have is with the camera movement. When i start my script and it sends the movement command for the camera, it is working fine. When I stop the script and run it again, the camera moves only a little bit. I though it is a problem in the python script, but the camera doesn't take any commands at all, even from other sources. I did try to move it with the Device Network SDK from Hikvision, but also it moves for a split second then stops. However, the camera shows the black and white text on bottom left to show the current pan and tilt, which means that it received the command successfully, but didn't fully execute the command.

Steps I took to solve the problem:

  • Send a restart command for the device using `/ISAPI` => It didn't manage to make the camera respond back to the pan and tilt commands.
  • Unplug the power for the camera, and plug it back => it would go through the whole self-check process (pan and tilt check) but it won't respond also after.
  • Remove the internet cable and connect it back => still the same problem.

The only way for the camera to respond back, was to turn off power from the whole circuit (router, nano and the camera) then turn them on again.

My hunch is telling my it might be a problem with an IP of the camera? it might be blocking the IP of Nano after it sends a specific number of commands?

I attached the script I'm using to control the camera.

Camera details:

Model: DS-2DE2A204IW-DE3
Firmware Version: V5.6.16 build 200925
Encoding Version: V7.3 build 200907
Web Version: V4.0.1 build 191111
Plugin Version: 3.0.7.25

Thanks in advance