FOCUS

Description

Perform the focus function.

If the CHANNEL=n was not set with this URL to the Multi-Channel device, the error message will be returned.

FOCUS Command Description
STOP Stop the focus action.
FAR Put the focus on the far end.
NEAR Put the focus on the near end
AUTO Set the focus mode to auto mode
MANUAL Set the focus mode to manual mode
SWITCH Change the focus mode from current mode to the other one (Auto -> Manual or Manual -> Auto)
DIRECT,0xn Put the focus to the specific position

For PTZ IP Camera, the FOCUS=STOP should be sent after another FOCUS command had been sent.

The focus position in this URL is from 0x0 to 0xFFFF. The PTZ camera might not have such wide range of the focus position. However, the device will NOT validate the focus position before parser and handle this URL. Please refer to the device specification to have correct focus position range.

Input Argument

Cmd
where Cmd could be STOP, FAR, NEAR, AUTO, MANUAL or SWITCH
or
DIRECT,0xn
where n is a hexadecimal value from 0~FFFF to indicate the position of focus.

Attribute

Return of Message

OK: echo of command
or
ERROR: echo of command

Applicability

Status

Valid

See Also

ADDR, PTZ_VENDOR, ZOOM, ZOOM_POSITION, FOCUS_POSITION, MOVE, MOVE_LIMIT, MOVE_LIMIT_GET, MOVE_MAX_SPEED_GET, POSITION, POSITION_GET

Example

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

Back to

HOME, ENCODER CGI