The Device Is Locked

error7

n3wb
Jan 7, 2016
4
0
I'm having a problem whereby I can download an image from my Hikvision DT81DP using the URL
sFileName = "" but after downloading 4 or 5 images my DVR locks with the message "The device is locked. Please try again after 30 min."
My code will not work again until the 30 minutes has expired. This is frustrating because I am sure that I am sending the correct Username and Password to the device on each attempt to connect.
 
Personally I would try using RTSP if you are having issues with the http format.. Could try if you have ffmpeg installed..

To capture 1 frame
ffmpeg -i rtsp:/admin:MyPassword@192.168.0.xx:554/Streaming/Channels/101 -vframes 1 -q:v 2 snapshot.jpg

To setup multi image this would give you one every second
ffmpeg -i rtsp:/admin:MyPassword@192.168.0.xx:554/Streaming/Channels/101 -vf fps=1 -q:v 2 snapshot_%04d.jpg

When you get locked out it might be caused by the device trying to deny what it deems might be a dos attack, There are a good few things it could be..
 
  • Like
Reactions: alastairstevenson
Have you tried without the last portion of the url, as in:
Code:
http://admin:MyPassword@192.168.0.xx:80/ISAPI/Streaming/channels/101/picture
 
Personally I would try using RTSP if you are having issues with the http format.. Could try if you have ffmpeg installed..

To capture 1 frame
ffmpeg -i rtsp:/admin:MyPassword@192.168.0.xx:554/Streaming/Channels/101 -vframes 1 -q:v 2 snapshot.jpg

To setup multi image this would give you one every second
ffmpeg -i rtsp:/admin:MyPassword@192.168.0.xx:554/Streaming/Channels/101 -vf fps=1 -q:v 2 snapshot_%04d.jpg

When you get locked out it might be caused by the device trying to deny what it deems might be a dos attack, There are a good few things it could be..
Thanks very much for your response but unfortunately your suggestion is beyond me, I don't have any idea how to use ffmpeg.
 
Have you tried without the last portion of the url, as in:
Code:
http://admin:MyPassword@192.168.0.xx:80/ISAPI/Streaming/channels/101/picture
Thanks for responding but that is how I first started. I added the "?snapShotImageType=JPEG" and the port number because initially I could only make one connection the the DVR's. after adding the port number and ?snapshot image type.