URL to pull focus settings from Dahua 25x

eeeeesh

BIT Beta Team
Joined
Jan 5, 2017
Messages
412
Reaction score
681
So I have a DH-SD5A425XA-HNR from Andy, and I wanted to play around with the manual settings at 25x. I tried using the url that I used on my license plated cam which pulls the focus and zoom, but it didn't work
Code:
http://user:password@192.168.1.111/cgi-bin/devVideoInput.cgi?action=getFocusStatus
Also, with other Dahua cams, when I am using the GUI (Internet Explorer or Chrome) I can usually hover the mouse over the focus button and it will give me some sort of numerical value, and that isn't working either

What I am trying to do is to just move the focus forward or back to try to get a clearer picture, but without some numerical value it's a little hard to make minute changes

Any ideas?
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,186
Reaction score
49,078
Location
USA
Yep, that is the problem with the PTZ is that they do not give that numeric number, so if you use the PTZ as LPR, then you basically have to turn it into a fixed camera as you cannot set a focus like the fixed cams.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,186
Reaction score
49,078
Location
USA
I tried as well LOL because I had an idea of pointing the PTZ way down the road to pick up more plates in the middle of the night and found that the only way to do that is to set it there while still enough light out for it to get a focus.

Some here use a PTZ for LPR, and that is basically what they have done is turned it into a static camera.
 

Alaska Country

Getting comfortable
Joined
Jun 10, 2021
Messages
449
Reaction score
657
Location
Alaska
Have used the below GET statement to retrieve focus and zoom data from a Dahua 2831 bullet. However, this may not work on a PTZ as do not have one available for testing.

Code:
http://192.168.1.108/cgi-bin/devVideoInput.cgi?action=getFocusStatus&channel=7
The output is as follows:

status.Focus=0.813953
status.FocusMotorSteps=3010
status.LenAdjustStatus=0
status.Status=Normal
status.Zoom=0.314136
status.ZoomMotorSteps=2292

To determine what is displayed when doing a mouse over on the tab for focus, multiply focus x focus motor steps. (.813953 x 3010 = 2449.98530) Round up to 2450 which is the focus tab mouse over number.

For zoom the same process.
(.314136 x 2292 = 719.99712)
Round up to 720.

If it does not work, then it is possible that the firmware is not designed to retrieve that data.
 
Last edited:
Top