get-ptz-config

Use the interface to obtain PTZ configurations.

HTTP Request

GET http://ip/mwapi?method=get-ptz-config
Parameter Description
method get-ptz-config

Response Body

{
 "status": 0,
 "proto": "none",
 "index": 1,
 "baudrate": 9600,
 "invert-pan": false,
 "invert-tilt": false,
 "ip-addr": "10.10.10.123",
  "pan-center": 0,
  "pan-left-limit": -2448,
  "pan-right-limit": 2448,
  "port": 1,
  "proto": "visca",
  "tilt-bottom-limit": -368,
  "tilt-center": 0,
  "tilt-top-limit": 1280,
  "visca-msg-hdr": false,
  "zoom-out-limit": 16384
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.
proto Indicates the communication protocol that allows the camera and the converter to communicate to each other, including none. By default, it shows none. Valid value includes none, visca, visca-udp, visca-udp2rs232, pelco-d, pelco-p.
index the ID of the camera, which allows the controller to identify different PTZ cameras, especially when multiple cameras are connected. The range of value is from 1 to 7.
baudrate Indicates the control data speed. For example, "9600 baud" means that the PTZ control port is capable of transferring a maximum of 9600 bits per second. If multiple cameras are connected, each camera should be set to the same value.
Supported options including: 2400, 4800, 9600, 19200 and 38400.
invert-pan Indicates whether to reverse the pan-direction movement. If yes, it shows true; otherwise, it is false.
invert-tilt Indicates whether to reverse the tilt-direction movement. If yes, it shows true; otherwise, it is false.
ip-addr IP Address
port Port. The value ranges from 1 to 65535
visca-msg-hdr Indicates whether Visca UDP message header is used. If yes, it shows true; otherwise, it is false.
focus-near-limit Focus near limit. The value ranges from 0 to 65535
focus-far-limit Focus far limit. The value ranges from 0 to 65535
pan-left-limit Pan left limit. The value ranges from -32768 to 32767
pan-center Pan center. The value ranges from -32768 to 32767
pan-right-limit Pan right limit. The value ranges from -32768 to 32767
tilt-top-limit Tilt top limit. The value ranges from -32768 to 32767
tilt-center Tilt center. The value ranges from -32768 to 32767
tilt-bottom-limit Tilt bottom limit. The value ranges from -32768 to 32767
zoom-out-limit Zoom out limit. The value ranges from 0 to 32767

results matching ""

    No results matching ""

    results matching ""

      No results matching ""