STEPPED_FOCUS

 

Description

Send the stepped focus command to the zoom capable camera.

The focus control might not be easy to handle because the network latency of camera and the response of the mechanical parts in zoom lens. The stepped focus command allows user to move the focus step by step with programmable step size. That gives convenient way to have the precise focus on the object in the scene.
The stepped focus function is only valid when the focus mode is MANUAL.

The camera stops focus after it moved one focus step by this command. It does not need to send the FOCUS=STOP command to stop action of focus in camera then.

Input Argument

Direction[,StepSize]
where
Direction: the direction of the zoom command. It could be NEAR or FAR
StepSize: the focus step size from 1 to 255. This argument is an optional argument. If it is set by this URL, the camera will use it as the new step size to move focus in the zoom lens immediately. And this new step size will be recorded in the device configuration and be used later on. So, If it is not in this URL, the camera will use the previous step size to move focus in the zoom lens.

Attribute

Return of Message

OK: STEPPED_FOCUS='echo the input arguments'
or
ERROR: STEPPED_FOCUS is write-only
or
ERROR: invalid parameters
or
ERROR: STEPPED_FOCUS not found

Applicability

Status

Valid

See Also

FOCUS, FOCUS_POSITION, FOCUS_CAP_GET

Example

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&STEPPED_FOCUS=FAR,1
or
http://ip:port/cgi-bin/cmd/encoder?STEPPED_FOCUS=FAR,1

Back to

HOME, ENCODER CGI