Set the zoom preset entry configuration.
There are 64 zoom preset entries in the firmware. Every entry records the zoom position and focus position if the zoom lens is controlled directly in the camera.
The zoom and focus positions might be set directly or read for zoom lens. The camera will use the fast zooming speed to reach the zoom position when zoom preset is used.In the video encoder, it translates the PTZ URL command to the serial hexadecimal string to the serial port which is connected to the analog speed dome camera. The functionality of this URL to the analog speed dome might be limited in this case because the input argument of this URL might not fully match all preset functions in the analog speed dome camera based on specific PTZ control protocol like Pelco-D.
The zoom preset entry might be the extension of PTZ preset entry in future. In current design, the PTZ preset point does not record the focus position. Then, the PTZ preset point could associate with the corresponding zoom preset point to have focus position. For example, the zoom preset entry n could be the extension of PTZ preset entry n. The firmware just needs to check if the zoom preset n is valid or not when it handles the PTZ preset entry n.
Because the PTZ preset entry and zoom preset entry have zoom positions. They should be the same. However, the zoom position in PTZ preset entry will be used if they are not the same. Refer to PTZ_PRESET_SET URL in encoder CGI.If the CHANNEL=n was not set with this URL to the multiple channel video encoders, the error message will be returned.
entry,state,method,ZoomPos,FocusPos
Input Argument Possible Value Description entry 1~64 zoom entry index state 0,1 1 : Enabled, 0 : Disabled method 0, 1
Value Description 0 The ZoomPos and FocusPos are set to zoom preset point. 1 Use current zoom and focus position to set to zoom preset point. In this case, the ZoomPos ans FocusPos could be any value. The firmware will not check these two arguments. ZoomPos 0~65535 The absolution position in zoom. If the position is out of zooming range, the camera will stop at the boundary of zoom position. In this case, no error message will be returned. FocusPos 0~65535 The absolution focus in zoom. If the position is out of focus range, the camera will stop at the boundary of focus position. In this case, no error message will be returned.
OK: ZOOM_PRESET_SET='1,1,1,0,0'
or
ERROR: ZOOM_PRESET_SET='1,1,1,0,0'
or
ERROR: ZOOM_PRESET_SET not found
Platform Devices Supported Firmware Version PlatformK Camera with zoom lens V5.00 and later
Valid
http://ip:port/cgi-bin/encoder?USER=admin&PWD=123456&ZOOM_PRESET_SET=1,1,1,0,0
or
http://ip:port/cgi-bin/cmd/encoder?ZOOM_PRESET_SET=1,1,1,0,0