API URL
/api/onvif/PTZ/GetInfo.json
Request
Method:GET/POSTParameters:
Response
{ "result": "ok", "data": { "deviceType": "serial", "options": { "zoom_speed": 0.5, "iris_speed": 0.5, "focus_speed": 0.5, "pan_speed": 0.5, "protocol": "null", "tilt_speed": 0.5, "address": 1 }, "device": { "rtscts": 0, "device": "null", "databits": 8, "xonxoff": 0, "stopbits": 1, "parity": "none", "baudrate": 9600 }, "socket_svc": { "addr": "192.168.0.1", "protocol": "TCP", "port": 10232 } }}
Request Data 字段说明
Field | Value | 说明 |
---|---|---|
deviceType | [String] | 表示选择使用的PTZ类型"serial":串口"net":网络PTZ |
options.pan_speed | [Integer] | 表示缺省平移速度,取值范围:[0,1] |
options.iris_speed | [Integer] | 表示缺省光圈速度,取值范围:[0,1] |
options.focus_speed | [Integer] | 表示缺省聚焦速度,取值范围:[0,1] |
options.zoom_speed | [Integer] | 表示缺省缩放速度,取值范围:[0,1] |
options.tilt_speed | [Integer] | 表示缺省垂移速度,取值范围:[0,1] |
options.protocol | [String] | 表示ptz协议,null表示无 |
options.address | [Integer] | 表示PTZ地址 |
device.rtscts | [Integer] | 表示RTS/CTS开关0表示关闭,1表示开启 |
device.xonxoff | [Integer] | 表示XON/XOFF开关0表示关闭,1表示开启 |
device.databits | [Integer] | 表示数据位 |
device.stopbits | [Integer] | 表示停止位 |
device.device | [String] | 表示选用的串口设备,null为无 |
device.parity | [String] | 表示校验,none为无 |
device.baudrate | [Integer] | 表示波特率 |
socket_svc.protocol | [String] | 表示网络PTZ协议类型: TCP/UDP |
socket_svc.addr | [String] | 表示网络PTZ地址 |
socket_svc.port | [Integer] | 表示网络PTZ端口 |