Provision ISR API ShortPolling 20200507
Provision ISR API ShortPolling 20200507
• Ossia OS NVR/DVR
• Special Solutions
Version 1.9
2020-05
Document History
1.1 Preface
This document details the API of IP media devices. Programmers can access and configure IP
media devices following the API.
1.2 Transaction
The HTTP API transaction starts from a request from a client application, usually a web
browser. The web server on the IP media devices processes the request and sends the response back
to the client application. The HTTP requests taken in POST form as described in the following
paragraphs. If the request is successful, the IP media video device will return a HTTP header
contains 200 OK. The HTTP Body will contain actual result or error message if an error occurs.
1.3.1 URL
The URL scheme is used to specify a request to the device locate device resources via a
specific protocol in the network.This section defines the syntax and semantics for HTTP URLs.
host: The host field refer to the hostname, IP address, or the FQDN(Fully Qualified Domain
Name) of an IP device.
port: The port field refer to the port number of that host on which the identified resource is
located at the IP device listening for TCP connections. If the port is empty or not given, the default
port is assumed. For HTTP, the default port 80.
channelId: The channel identification for an IP device. For the IP camera, this field can be
omitted, the default channelId is “1”.
action name: This field is optional. It acts as a sub operation for complex commands.
HTTP/1.1 is implemented and utilized according to RFC 2616 in the IP devices. For a video
management system or client application that uses persistent connection for multiple transactions, it
is required to implement “Connection: Keep-Alive ”HTTP header field as follows.
POST http://192.168.6.37/PtzAddPreset
HTTP/1.1
Content-Length: 135
Connection: Keep-Alive
…
1.3.3 Authorization Header Field
When a video management system or client application sends any request to the IP device, it
must be authenticated by means of Basic Access according to RFC 2617.
Authorization header field needs to be sent along with each request, and if a user is
authenticated, the request will follow the normal execution flow. For the request with no
authentication credentials, unauthorized HTTP response (401) will be returned with
WWW-Authenticate header field.
For example:
1. An HTTP request from the client application should include the “Authorization” information
as follows, the “YWRtaW46MTIzNDU2” is the encoded result of “admin:123456” by base64:
POST http://192.168.6.37/PtzAddPreset
HTTP/1.1
401 Unauthorized
Then the client application encodes the username and password with base64, and sends the
following request:
HTTP/1.1
...
...
<presetInfo>
<name>preset1</name>
</presetInfo>
HTTP/1.1 200 OK
Content-Length: 66
Connection: close
<config status="success"/>
HTTP/1.1 200 OK
…
Content-Length: 66
Connection: close
<deviceInfo>
<supportTalk type="boolean">true</supportTalk>
</deviceInfo>
</config>
When a request cannot be executed correctly, an application fail response that includes an error
result in the entity body will be sent from the IP device. Meantime, the HTTP answer is 400 to
indicate the client application. For example:
...
Content-Type: application/xml
Content-Length: 66
Connection: close
4 Permission denied
Type Description
For the element with type “list” attribute, the attribute “maxCount” should be used for the
variable list, which means the maximum item counts for this list, and the attribute “count” should be
used for the list with constant items. There should be an “itemType” sub element after the element
with type “list” attribute. Some “item” sub element should be included after the “itemType” sub
element to indicate the value for the list. For example:
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[222222222222222222222]]></item>
<item><![CDATA[333333333333333333333]]></item>
<item><![CDATA[444444444444444444444]]></item>
<item><![CDATA[555555555555555555555]]></item>
<item><![CDATA[666666666666666666666]]></item>
</content>
<types>
<userType>
<enum>administrator</enum>
<enum>advance</enum>
<enum>normal</enum>
</userType>
</types>
It is not allowed for the client application to define advanced data types with the “types”
element in request messages. The client application should study advanced data types from the
response messages. Advanced data types defined in the corresponding response message can be
used directly in a request message by the client application. The Client application can also study
advanced data types from other elements except for “types” in the message entity from the device.
System commands.
Image commands.
PTZ commands.
Alarm commands.
Playback commands
Network commands.
Security commands.
Maintain commands.
Talkback commands
Smart commands
Schedule commands
The IP devices support Universal Plug and Play (UPnP) technology to discovery/locate
themselves. An UPnP compatible device will automatically announce its network address supported
devices and services types when connected to a network, therefore becoming “plug-and-play” by
allowing clients recognize those information and begin using this device immediately.
The UPnP architecture supports zero-configuration networking, and the device can
dynamically join a network, obtain IP address, announce its name, convey its capabilities upon
request, and gets the on-line status and capabilities of other devices. DHCP and DNS servers are
optional and are only used if they are available on the network. Devices can leave the network
automatically without leaving any unwanted status information behind. UPnP was published as a
73-part International Standard, ISO/IEC 29341, in December, 2008 [6][7][8].
After a control point has discovered a device, the control point still needs more operations to
request more information about the device or to interact with it.
2 System commands
Channel ID None
Successful Response The device information will be included in the entity of the successful
response. For example:
GetDeviceInfo
[Tips]:
This command is designed for the client application to obtain the basic information from the specific
media device.
For the fixed-channel devices such as IPC or DVR, the items “audioInCount”, “audioOutCount”,
“alarmInCount” and “alarmOutCount” will be included in the successful response.
For the variable-channel devices such as NVR, these items are optional. The client application can
use “GetChannelList”, “GetAlarmInList”, “GetAlarmOutList”, “GetStreamCpas” commands to
obtain the information.
2.1.2 GetDiskInfo
GetDiskInfo
Channel ID None
Successful Response The device information will be included in the entity of the successful
response. For example:
GetDiskInfo
[Tips]:
The “totalSpace” and “freeSpace” are in mb.
There is empty “diskInfo” node if there is no disk on device.
The enums, “read”, “read/write” and “unformat”, are supported by NVR and DVR.
The enums, “read/write”, “unformat”, “formatting” and “exception”, are supported by IPC.
The “imageFreeSpace” is supported by IPC only.
2.1.3 GetChannelList
GetChannelList
Channel ID None
Successful Response The channel list will be included in the entity of the successful response. For
example:
GetChannelList
[Tips]:
This command is designed for multi-channel device and not mandatory for IP cameras. If the
“deviceDescription” item is equal to “IPCamera” in the response message for “GetDeviceInfo” command,
this command should not be sent to the device.
2.1.4 GetAlarmInList
GetAlarmInList
Channel ID None
Successful Response The alarmin list will be included in the entity of the successful response. For
example:
[Tips]:
This command is designed for multi-channel device and not mandatory for IP cameras. If the
“deviceDescription” item is equal to “IPCamera” in the response message for “GetDeviceInfo” command,
this command should not be sent to the device.
2.1.5 GetAlarmOutList
GetAlarmOutList
Channel ID None
Successful Response The alarmout list will be included in the entity of the successful response. For
example:
[Tips]:
This command is designed for multi-channel device and not mandatory for IP cameras. If the
“deviceDescription” item is equal to “IPCamera” in the response message for “GetDeviceInfo” command,
this command should not be sent to the device.
2.1.6 GetDeviceDetail
GetDeviceDetail
Channel ID None
Successful Response The device detail will be included in the entity of the successful response. For
example:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10">
<detail>
<property>
<deviceName type="string"><![CDATA[IPC]]></deviceName>
<deviceDescription type="string"><![CDATA[IPCamera]]></deviceDescription>
<model type="string"><![CDATA[TD-9421M]]></model>
<brand type="string"><![CDATA[TVT]]></brand>
<sn type="string"><![CDATA[2E323D9463D5]]></sn>
<mac type="string"><![CDATA[00:18:ae:98:38:fd]]></mac>
<softwareVersion type="string"><![CDATA[4.0.0 beta1]]></softwareVersion>
<softwareBuildDate type="string"><![CDATA[2013-12-24]]></softwareBuildDate>
<kernelVersion type="string"><![CDATA[20111010]]></kernelVersion>
<hardwareVersion type="string"><![CDATA[1.3]]></hardwareVersion>
<apiVersion type="string"><![CDATA[1.7]]></apiVersion>
</property>
<smart>
<supportTripwire type="boolean">false</supportTripwire>
<supportPerimeter type="boolean">false</supportPerimeter>
<supportOsc type="boolean">false</supportOsc>
<supportAvd type="boolean">false</supportAvd>
<supportVfd type="boolean">false</supportVfd>
<supportCpc type="boolean">false</supportCpc>
<supportCdd type="boolean">false</supportCdd>
<supportIpd type="boolean">false</supportIpd>
<supportVfdMatch type="boolean">false</supportVfdMatch>
<supportvehicle type="boolean">false</supportvehicle>
<supportAoiEntry type="boolean">false</supportAoiEntry>
<supportAoiLeave type="boolean">false</supportAoiLeave>
<supportPassLineCount type="boolean">false</supportPassLineCount>
<supportThermal type="boolean">true</supportThermal>
</smart>
<image>
<supportAZ type="boolean">true</supportAZ>
<supportROI type="boolean">true</supportROI>
<supportInfraredLamp type="boolean">false</supportInfraredLamp>
<supportWatermark type="boolean">true</supportWatermark>
<supportPrivateMask type="boolean">true</supportPrivateMask>
</image>
<alarm>
<supportMultiMotionSensitivity type="boolean">false</supportMultiMotionSensitivity>
<supportAlarmServer type="boolean">false</supportAlarmServer>
<alarmInCount type="uint32">1</alarmInCount>
<alarmOutCount type="uint32">1</alarmOutCount>
<supportAudioAlarmOut type="boolean">false</supportAudioAlarmOut>
<supportWhiteLightAlarmOut type="boolean">false</supportWhiteLightAlarmOut>
</alarm>
<system>
<supportSnmp type="boolean">true</supportSnmp>
<audioInCount type="uint32">1</audioInCount>
<audioOutCount type="uint32">1</audioOutCount>
<integratedPtz type="boolean">true</integratedPtz>
<supportRS485Ptz type="boolean">false</supportRS485Ptz>
<supportSDCard type="boolean">true</supportSDCard>
<chlMaxCount type="uint32">9</chlMaxCount>
</system>
</detail>
</config>
[Tips]:
2.2 Date and Time
2.2.1 GetDateAndTime
GetDateAndTime
Channel ID None
Successful Response The device time and date will be included in the entity of the Successful
response. For example:
</time>
</config>
[Tips]:
The element “timeZone” announces the time zone information. “GMT0BST,M3.5.0/1,M10.5.0”, this time
zone, standard time named GMT and daylight saving time named BST, has daylight saving time. The
standard local time is GMT. Daylight saving time, 1 hour ahead of GMT, starts the last Sunday in March at
01:00 and ends the last Sunday in October at 02:00.
2.2.2 SetDateAndTime
SetDateAndTime
Channel ID None
Entity Data The device time and date will be included in the entity of request message.
The whole “time” element in the “GetDataAndTime” should be included in
entity of this message. Any attributes for the “time” element or sub elements
should not be included.
Successful Response The standard successful result response that described in 1.3.5.
3 Image commands
Description To get the IP media device’s streams’ capabilities for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The stream capabilities will be included in the entity of the Successful
response. For example:
<enum>h264plus</enum>
<enum>h265plus</enum>
<enum>h264smart</enum>
<enum>h265smart</enum>
...
</encodeType>
<encodeLevel>
<enum>baseLine</enum>
<enum>mainProfile</enum>
<enum>highProfile</enum>
</encodeLevel>
</types>
<rtspPort type="uint16">554</rtspPort>
<streamList type="list" count="4">
<item id="1">
<streamName type="string"><![CDATA[profile1]]></streamName>
<resolutionCaps type="list" count="1">
<itemType type="resolution"/>
<item maxFrameRate="25">1920x1080</item>
</resolutionCaps>
<encodeTypeCaps type="list" count="1">
<itemType type="encodeType"/>
<item>h264</item>
</encodeTypeCaps>
<encodeLevelCaps type="list" count="3">
<itemType type="encodeLevel"/>
<item>baseLine</item>
<item>mainProfile</item>
<item>highProfile</item>
</encodeLevelCaps>
</item>
GetStreamCaps
<item id="2">
<streamName type="string"><![CDATA[profile2]]></streamName>
<resolutionCaps type="list" count="3">
<itemType type="resolution"/>
<item maxFrameRate="10">1920x1080</item>
<item maxFrameRate="25">1280x720</item>
<item maxFrameRate="25">704x480</item>
</resolutionCaps>
<encodeTypeCaps type="list" count="1">
<itemType type="encodeType"/>
<item>h264</item>
</encodeTypeCaps>
<encodeLevelCaps type="list" count="3">
<itemType type="encodeLevel"/>
<item>baseLine</item>
<item>mainProfile</item>
<item>highProfile</item>
</encodeLevelCaps>
</item>
…
</streamList>
</config>
[Tips]:
The “count=4” means the channel supports 4 streams at the same time. Each stream’s capability is
announced in the “item” sub element. The “streamName” announces the name of each stream. The client
application, can obtain the specific stream of NVR/DVR by the following URL.
rtsp://<host><:port>?chID=<channelId>&streamType=<streamType>
“streamtype” can be main or sub
The client application, can obtain the specific stream of IPC by the following URL.
rtsp://<host><:port>/<streamName>
The “resolutionCaps” announces optional combinations for frame rate and resolution. The
GetStreamCaps
Description To get the IP media device’s image configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The image configuration will be included in the entity of the Successful
response. For example:
<enum>indoor</enum>
</whitebalanceMode>
<IRCutMode>
<enum>auto</enum>
<enum>day</enum>
<enum>night</enum>
</IRCutMode>
</types>
<image>
<frequency type="frequency" default="50HZ">50HZ</frequency>
<bright type="uint8" min="0" max="100" default="50">50</bright>
<contrast type="uint8" min="0" max="100" default="55">55</contrast>
<hue type="uint8" min="0" max="100" default="50">50</hue>
<saturation type="uint8" min="0" max="100" default="50">50</saturation>
<mirrorSwitch type="boolean" default="false">false</mirrorSwitch>
<flipSwitch type="boolean" default="false">false</flipSwitch>
<WDR>
<switch type="boolean" default="false">false</switch>
<value type="uint8" default="128">128</value>
</WDR>
<whiteBalance>
<mode type="whitebalanceMode" default="auto">auto</mode>
<red type="uint32" min="0" max="100" default="50">50</red>
<blue type="uint32" min="0" max="100" default="50">50</blue>
</whiteBalance>
<denoise>
<switch type="boolean" default="false">false</switch>
<value type="uint8" default="24">24</value>
</denoise>
<irisSwitch type="boolean" default="false">false</irisSwitch>
<sharpen>
GetImageConfig
3.2.2 SetImageConfig
SetImageConfig
Description To set the IP media device’s image configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The image configuration for specific channel should be included in the entity
of request message. The whole “image” element in the “GetImagConfig” or
some parameters that need to be changed can be included in entity of this
message. Any attributes for the “image” element or sub elements should not
be included. The following example changes the “saturation” parameter.
<?xml version="1.0"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10">
<image>
<saturation>65</saturation>
</image>
</config>
SetImageConfig
Successful Response The standard successful result response that described in 1.3.5.
3.2.3 GetSnapshot
GetSnapshot
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
3.2.4 GetSnapshotByTime
GetSnapshotByTime
Channel ID Optional. If none channel ID included in the URL, the default channel
ID is 1.
Entity Data Optional.The time be included in the entity of the request message as
search history picture. For example:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10">
<search>
<time type="string"><![CDATA[2017-01-09 15:07:28]]></time>
<length type = “uint16”>10</length>
</search>
</config>
[Tips]:
1. It returns the data from “time” in “length” seconds.
2. The response maybe one key frame of H.264 or H.265, or a picture encoded by jpg.
Get the type from the http head content-Type.
Description To get the IP media device’s audio stream configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The audio stream configuration will be included in the entity of the Successful
response. For example:
GetAudioStreamConfig
3.3.2 SetAudioStreamConfig
SetAudioStreamConfig
Description To set the IP media device’s audio stream configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
SetAudioStreamConfig
Entity Data The audio stream configuration for specific channel should be included in the
entity of request message. The whole “audioEncode” element in the
“GetAudioStreamConfig” can be included in entity of this message. Any
attributes for the “audioEncode” element or sub elements should not be
included.
Successful Response The standard successful result response that described in 1.3.5.
3.3.3 GetVideoStreamConfig
GetVideoStreamConfig
Description To get the IP media device’s video stream configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The video stream configuration will be included in the entity of the successful
response. For example:
<enum>higher</enum>
<enum>highest</enum>
</quality>
<encodeType>
<enum>h264</enum>
<enum>h265</enum>
<enum>h264plus</enum>
<enum>h265plus</enum>
<enum>h264smart</enum>
<enum>h265smart</enum>
<enum>mjpeg</enum>
</encodeType>
</types>
<streams type="list" count="4">
<item id="1">
<name type="string" maxLen="32"><![CDATA[profile1]]></name>
<resolution>1920x1080</resolution>
<frameRate type="uint32">25</frameRate>
<bitRateType type="bitRateType">CBR</bitRateType>
<bitRateLists>
<item>2048</item>
<item>3072</item>
<item>4096</item>
<item>6144</item>
<item>8192</item>
</bitRateLists>
<encodeTypeCaps type="list">
<itemType type="encodeType" />
<item>h264</item>
<item>h265</item>
GetVideoStreamConfig
<item>h264plus</item>
<item>h265plus</item>
<item>h264smart</item>
<item>h265smart</item>
<item>mjpeg</item>
</encodeTypeCaps>
<encodeType>h264</encodeType>
<encodeLevel>baseLine</encodeLevel>
<quality type="quality">highest</quality>
<GOP type="uint32" min="30" max="200">100</GOP>
</item>
<item id="2">
<name type="string" maxLen="32"><![CDATA[profile2]]></name>
<resolution>1280x720</resolution>
<frameRate type="uint32">25</frameRate>
<bitRateType type="bitRateType">CBR</bitRateType>
<maxBitRate type="uint32" min="64" max="10240">2048</maxBitRate>
<bitRateLists>
<item>256</item>
<item>512</item>
<item>768</item>
<item>1024</item>
<item>2048</item>
</bitRateLists>
<encodeTypeCaps type="list">
<itemType type="encodeType" />
<item>h264</item>
<item>h265</item>
<item>h264plus</item>
<item>h265plus</item>
<item>mjpeg</item>
GetVideoStreamConfig
</encodeTypeCaps>
<encodeType>h264</encodeType>
<encodeLevel>baseLine</encodeLevel>
<quality type="quality">highest</quality>
<GOP type="uint32" min="30" max="200">100</GOP>
</item>
...
</streams>
</config>
[Tips]:
The “count=4” means the channel supports 4 streams at the same time. Each stream’s current video
configuration is announced in the “item” sub element. The value of each stream’s “resolution”,
“framRate”, “encodeType”, and “encodeLevel” should be in the scope of the corresponding capability
announced in the “GeteStreamCaps” successful respond message. The “maxBitRate” element means the
bitrate in kbps.
The “id” attribute for each item starts from “1”.
3.3.4 SetVideoStreamConfig
SetVideoStreamConfig
Description To set the IP media device’s video stream configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The video stream configuration for specific channel should be included in the
entity of request message. The whole “streams” element in the
“GetVideoStreamConfig” can be included in entity of this message. Any
attributes for the “streams” element or sub elements should not be included.
The value of each stream’s “resolution”, “framRate”, “encodeType”, and
“encodeLevel” should be in the scope of the corresponding capability
announced in the “GeteStreamCaps” successful respond message.
Successful Response The standard successful result response that described in 1.3.5.
SetVideoStreamConfig
[Tips]:
IPC does not support
3.3.5 RequestKeyFrame
RequestKeyFrame
Description It is used to request the device to encode a key frame for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The standard successful result response that described in 1.3.5.
3.4 OSD
3.4.1 GetImageOsdConfig
GetImageOsdConfig
Description To get the IP media device’s image OSD configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The image OSD configuration will be included in the entity of the Successful
response. For example:
GetImageOsdConfig
[Tips]:
The “X” and “Y” element announce the horizontal and vertical position based in the 10000*10000
resolution.
3.4.2 SetImageOsdConfig
SetImageOsdConfig
Description To set the IP media device’s image OSD configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The image OSD configuration for specific channel should be included in the
entity of request message. The whole “imageOsd” element in the
“GetImagOsdConfig” or some parameters that need to be changed can be
included in entity of this message. Any attributes for the “imageOsd”
element or sub elements should not be included. The following example
changes the “channelName” element:
Successful Response The standard successful result response that described in 1.3.5.
Description To get the IP media device’s privacy mask configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The privacy mask configuration will be included in the entity of the
Successful response. For example:
<switch>false</switch>
<rectangle>
<X>0</X>
<Y>0</Y>
<width>0</width>
<height>0</height>
</rectangle>
<color>black</color>
</item>
...
</privacyMask>
</config>
[Tips]:
The “X” and “Y” element announce the horizontal and vertical position based in the 640*480 resolution.
3.5.2 SetPrivacyMaskConfig
SetPrivacyMaskConfig
Description To set the IP media device’s privacy mask configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The privacy mask configuration for specific channel should be included in the
entity of request message. The whole “privacyMask” element in the
“GetPrivacyMaskConfig” should be included in entity of this message. Any
attributes for the “privacyMask” element or sub elements should not be
included.
Successful Response The standard successful result response that described in 1.3.5.
4 PTZ commands
4.1 Protocol
4.1.1 PtzGetCaps
PtzGetCaps
Description To get the IP media device’s PTZ capabilities mask information for specific
channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The PTZ capabilities will be included in the entity of the Successful response.
For example:
PtzGetCaps
[Tips]:
The sub elements in the “caps” element announce the scope of each parameter. For example, the
“ptzControlMinSpeed” announce the minimum speed for the PTZ control command, the
“ptzControlMaxSpeed” announce the maximum speed for the PTZ control command.
4.1.2 GetPtzConfig
GetPtzConfig
Description To get the IP media device’s PTZ protocol configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The PTZ protocol configuration will be included in the entity of the
Successful response. For example:
GetPtzConfig
4.1.3 SetPtzConfig
SetPtzConfig
Description To set the IP media device’s PTZ protocol configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ protocol configuration for specific channel should be included in the
entity of request message. The whole “ptzSettings” element in the
“GetPtzConfig” should be included in entity of this message. Any attributes
for the “ptzSettings” element or sub elements should not be included.
Successful Response The standard successful result response that described in 1.3.5.
Description To start control PTZ for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
PtzControl
Entity Data The PTZ’s action information that needs to be executed will be included in the
entity of the request message. For example:
[Tips]:
The value of “speed” should be in the scope of the corresponding capability announced in the
“PtzGetCaps” successful respond message.
Successful Response The standard successful result response that described in 1.3.5.
4.2.2 PtzGotoPreset
PtzGotoPreset
PtzGotoPreset
Description To run the PTZ to one preset for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The destination PTZ preset’s ID will be included in the entity of the request
message. For example:
Successful Response The standard successful result response that described in 1.3.5.
4.2.3 PtzRunCruise
PtzRunCruise
Description To run one PTZ’s cruise for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ cruise’s ID that needs to be run will be included in the entity of the
request message. For example:
Successful Response The standard successful result response that described in 1.3.5.
4.2.4 PtzStopCruise
PtzStopCruise
Description To stop the PTZ cruise for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The standard successful result response that described in 1.3.5.
4.3 Preset
4.3.1 PtzGetPresets
PtzGetPresets
Description To get the IP media device’s PTZ presets list for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The PTZ presets list will be included in the entity of the Successful response.
For example:
PtzGetPresets
[Tips]:
The “id” attribute for each item starts from “1”.
4.3.2 PtzAddPreset
PtzAddPreset
Description To add one preset for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ preset name for current position will be included in the entity of the
request message. The “name” should accord with the “name” type in the
“itemType” that announced in “PtzGetPresets” message. For example:
Successful Response The standard successful result response that described in 1.3.5.
4.3.3 PtzModifyPresetName
PtzModifyPresetName
Description To modify one preset’s name for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ preset’s ID and new name will be included in the entity of the
request message. For example:
Successful Response The standard successful result response that described in 1.3.5.
4.3.4 PtzDeletePreset
PtzDeletePreset
Description To delete one preset for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ preset’s ID that needs to be deleted will be included in the entity of
the request message. For example:
PtzDeletePreset
Successful Response The standard successful result response that described in 1.3.5.
4.3.5 PtzModifyPresetPosition
PtzModifyPresePosition
Description To modify one preset’s position to current position for a specific channel of
the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ preset’s ID that needs to be modified to current position will be
included in the entity of the request message. For example:
Successful Response The standard successful result response that described in 1.3.5.
4.4 Cruise
4.4.1 PtzGetCruises
PtzGetCruises
Description To get the IP media device’s PTZ cruises list for specific channel.
PtzGetCruises
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The PTZ cruises list will be included in the entity of the Successful response.
For example:
[Tips]:
The “id” attribute for each item starts from “1”.
4.4.2 PtzGetCruise
PtzGetCruise
Description To get one cruise configuration of the IP media device’s specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ cruise’s ID that needs to be queried will be included in the entity of
the request message. For example:
PtzGetCruise
Successful Response The PTZ cruise’s information will be included in the entity of the Successful
response. For example:
[Tips]:
The “id” attribute for each item starts from “1”.
4.4.3 PtzAddCruise
PtzAddCruise
PtzAddCruise
Description To add one cruise for a specific channel of the IP media device.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ cruise configuration for specific channel should be included in the
entity of request message. The whole “cruiseInfo” element in the
“GetPtzCruise” should be included in entity of this message. Any attributes
for the “cruiseInfo” element or sub elements should not be included. For
example:
<?xml version="1.0"?>
<cruiseInfo version="1.0" xmlns="http://www.ipc.com/ver10">
<name type="string"><![CDATA[c2]]></name>
<presetInfo>
<item id="2">
<speed>5</speed>
<holdTime>5</holdTime>
</item>
...
</presetInfo>
</cruiseInfo>
[Tips]:
The “id” attribute for each item starts from “1”.
Successful Response The standard successful result response that described in 1.3.5.
4.4.4 PtzModifyCruise
PtzModifyCruise
Description To modify one cruise information of the IP media device’s specific channel.
PtzModifyCruise
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ cruise configuration for specific channel should be included in the
entity of request message. The whole “cruiseInfo” element in the
“GetPtzCruise” should be included in entity of this message. Any attributes
for the “cruiseInfo” element or sub elements should not be included.
Successful Response The standard successful result response that described in 1.3.5.
4.4.5 PtzDeleteCruise
PtzDeleteCruise
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The PTZ cruise’s ID that needs to be deleted will be included in the entity of
the request message. For example:
Successful Response The standard successful result response that described in 1.3.5.
5 Alarm commands
Description To get the IP media device’s motion configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The motion configuration information will be included in the entity of the
Successful response. For example:
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
<item><![CDATA[1111111111111111111111]]></item>
</area>
<triggerAlarmOut type="list" count="1">
<itemType type="boolean"></itemType>
<item id="1">false</item>
</triggerAlarmOut>
</motion>
</config>
[Tips]:
There are 18 sub items in the “area” element, each item is a string with fixed length 22. This means a
22x18 motion detection areas, if corresponding character is “1”, the switch for this detection area is on.
The “id” attribute for each item starts from “1”.
5.1.2 SetMotionConfig
SetMotionConfig
Description To set the IP media device’s motion configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The motion detection configuration for specific channel should be included in
the entity of request message. The whole “motion” element in the
“GetMotionConfig” should be included in entity of this message. Any
attributes for the “motion” element or sub elements should not be included.
Successful Response The standard successful result response that described in 1.3.5.
5.2 Alarm
5.2.1 GetAlarmInConfig
GetAlarmInConfig
Description To get the IP media device’s alarm input configuration for specific alarm input
channel.
Channel ID Optional. If none channel ID included in the URL, the default alarm input
channel ID is 1.
Successful Response The alarm inputs configuration will be included in the entity of the Successful
response. For example:
</types>
<sensor>
<id type="uint32">1</id>
<sensorName type="string" maxLen="11"><![CDATA[Sensor1]]></sensorName>
<switch type="boolean">true</switch>
<voltage type="alarmInVoltage">NO</voltage>
<alarmHoldTime type="uint32">10</alarmHoldTime>
<triggerAlarmOut type="list" count="1">
<itemTypetype="boolean"></itemType>
<item id="1">true</item>
</triggerAlarmOut>
</sensor>
</config>
[Tips]:
The “id” attribute for each item starts from “1”.
5.2.2 SetAlarmInConfig
SetAlarmInConfig
Description To set the IP media device’s alarm inputs configuration for specific alarm
input channel.
Channel ID Optional. If none channel ID included in the URL, the default alarm input
channel ID is 1.
Entity Data The alarm input configuration for specific channel should be included in the
entity of request message. The whole “sensor” element in the
“GetAlarmInConfig” should be included in entity of this message. Any
attributes for the “sensor” element or sub elements should not be included.
SetAlarmInConfig
Successful Response The standard successful result response that described in 1.3.5.
5.2.3 ManualAlarmOut
ManualAlarmOut
Description To manually set the IP media device’s alarm output status for specific alarm
output channel.
Channel ID Optional. If none channel ID included in the URL, the default alarm output
channel ID is 1.
Entity Data The new status for the specific alarm output will be included in the entity of
request message. For example:
[Tips]:
The “status” element is Boolean type.
Successful Response The standard successful result response that described in 1.3.5.
5.2.4 GetAlarmOutConfig
GetAlarmOutConfig
Description To get the IP media device’s alarm output configuration for specific alarm
output channel.
GetAlarmOutConfig
Channel ID Optional. If none channel ID included in the URL, the default alarm output
channel ID is 1.
Successful Response The specific alarm output configuration will be included in the entity of the
Successful response. For example:
5.2.5 SetAlarmOutConfig
SetAlarmOutConfig
Description To set the IP media device’s alarm output configuration for specific alarm
output channel.
Channel ID Optional. If none channel ID included in the URL, the default alarm output
channel ID is 1.
Entity Data The alarm output configuration for specific channel should be included in the
entity of request message. The whole “alarmOut” element in the
“GetAlarmOutConfig” should be included in entity of this message. Any
attributes for the “alarmOut” element or sub elements should not be included.
Successful Response The standard successful result response that described in 1.3.5.
5.3 AlarmStatus
5.3.1 GetAlarmStatus
GetAlarmStatus
Channel ID None
Successful Response The alarm trigger status information will be included in the entity of the
Successful response. For example:
GetAlarmStatus
[Tips]:
The “id” attribute for each item starts from “1”.
The “id” attribute for sensorAlarm’s child item is the NO. of the sensors. And the sensor on the IPC who is
the first channel will be 5 if there are 4 sensors on the NVR.
5.3.2 GetAlarmServerConfig
GetAlarmServerConfig
Channel ID None
Successful Response The alarm server configuration will be included in the entity of the Successful
response. For example:
[Tips]:
1. The “heartbeatInterval” is in second.
2. The data sent to the server when the alarm is issued is as follows:
<config version="1.0" xmlns="http://www.ipc.com/ver10">
<alarmStatusInfo>
<motionAlarm type="boolean" id="1">true</motionAlarm>
</alarmStatusInfo>
<dataTime><![CDATA[2017-06-20 10:30:21]]></dataTime>
<deviceInfo>
<deviceName><![CDATA[Device Name]]></deviceName>
<deviceNo.><![CDATA[1]]></deviceNo.>
<sn><![CDATA[N563F0159MNK]]></sn>
<ipAddress><![CDATA[192.168.3.100]]></ipAddress>
<macAddress><![CDATA[78-24-AF-44-89-01]]></macAddress>
</deviceInfo>
</config>
Channel ID None
Entity Data The alarm server configuration should be included in the entity of request
message. The whole “alarmServer” element in the “GetAlarmServerConfig”
should be included in entity of this message. Any attributes for the
“alarmServer” element or sub elements should not be included.
Successful Response The standard successful result response that described in 1.3.5.
5.3.4 SendAlarmStatus
SendAlarmStatus
Description To send the alarm status to the alarm server when an alarm happens. This
command will be used by the device. The alarm server should provide HTTP
service to receive this command.
Channel ID None
Entity Data The alarm status should be included in the entity of request message. The
whole “alarmStatusInfo” element in the response for “GetAlarmStatus”
should be included in entity of this message.
Successful Response The alarm trigger configuration will be included in the entity of the successful
response. For example:
[Tips]:
5.4.2 SetAlarmTriggerConfig
SetAlarmTriggerConfig
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
GetAudioAlarmOutConfig
Description
<audioFormat type="read-only">WAV</audioFormat>
<sampleRate type="read-only">8000HZ</sampleRate>
<audioChannel type="read-only">Monophonic</audioChannel>
<audioDepth type="read-only">16bit</audioDepth>
</audioParamLimit>
<audioAlarmOut>
<audioType type="audioAlarmType">10</audioType>
<alarmTimes type="uint32" min="1" max="50" default="5">5</alarmTimes>
<audioVolume type="uint32" min="0" max="100" default="100">100</audioVolume>
<languageType type="audioLanguageType">en-us</languageType>
<customize type="list" maxCount="10" count="10">
<item>
<id type="uint32">100</id>
<audioName type="string" maxLen="128"><![CDATA[Hello world!]]></audioName>
</item>
<item>
<id type="uint32">101</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">102</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">103</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">104</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">105</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">106</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">107</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">108</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
<item>
<id type="uint32">109</id>
<audioName type="string" maxLen="128"><![CDATA[]]></audioName>
</item>
</customize>
</audioAlarmOut>
</config>
[Tips]:
修改说明:
1. audioAlarmType 枚举中增加自定义的添加音频文件显示。
2. audioLanguageType 枚举中增加自定义选项。
5.5.2 SetAudioAlarmOutConfig
SetAudioAlarmOutConfig
Description
Entity Data
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
5.5.3 AddCustomizeAudioAlarm
AddCustomizeAudioAlarm
Description
Success Response:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.7">
<addAudioAlarm>
<id type="uint32">101</id>
</addAudioAlarm>
</config>
Failure Response:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10" status="failed" errorCode="-107"/>
[Tips]:
1.errorCode 描述:
-101:未正常工作.
-102:参数错误.
-104:音频文件不是 WAV.
-105:采样率不是 8000HZ.
-106:保存音频文件失败.
-107:超出了最大自定义 10 个文件数量.
-108:音频文件大小超限制.
2. audioFileSize 为加密后的文件大小
5.5.4 DeleteCustomizeAudioAlarm
DeleteCustomizeAudioAlarm
Description
Success Response:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10" status="success" errorCode="200"
IssameOldPwd="false"/>
Failure Response:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10" status="failed" errorCode="-109"/>
[Tips]:
1.errorCode 描述:
-109:删除音频文件不存在。
5.5.5 AuditionCustomizeAudioAlarm
AuditionCustomizeAudioAlarm
Description
Success Response:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10" status="success" errorCode="200"
IssameOldPwd="false"/>
Failure Response:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10" status="failed" errorCode="-110"/>
[Tips]:
1.errorCode 描述:
-110:正在告警中,不能试听。
5.5.6 GetWhiteLightAlarmOutConfig
GetWhiteLightAlarmOutConfig
Description
Successful
Response
[Tips]:
5.5.7 SetWhiteLightAlarmOutConfig
SetWhiteLightAlarmOutConfig
Description
Entity Data
[Tips]:
Description To get the IP media device’s PIR configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The PIR configuration information will be included in the entity of the
Successful response. For example:
<recordSwitch type="boolean">false</recordSwitch>
<recordStreamIndex type="uint8">0</recordStreamIndex>
<sendPicSwitch type="boolean">false</sendPicSwitch>
<recordTime type="uint32">0</recordTime>
<pushContent type="string" maxLen="127"><![CDATA[]]></pushContent>
</sendPush>
</pir>
</config>
[Tips]:
5.6.2 SetPirConfig
SetPirConfig
Description To set the IP media device’s PIR configuration for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The motion detection configuration for specific channel should be included in
the entity of request message. The whole “pir” element in the “GetPirConfig”
should be included in entity of this message. Any attributes for the “pir”
element or sub elements should not be included.
Successful Response The standard successful result response that described in 1.3.5.
6 Playback
Channel ID None.
Successful The record types will be included in the entity of the Successful
Response response. For example:
[Tips]:
It returns the capability of recording for current device.
The type "nic broken" is for IPC only.
6.1.2 SearchRecordDate
SearchByDate
Description To search the date list with record data for specific channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The date list with record data will be included in the entity of the successful
response. For example:
SearchByTime
Description To search record data segments for the specific channel by time.
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The start time and end time should be included in the entity of the request
message as search condition. For example:
Successful Response The searched record data segments will be included in the entity of the
successful response. For example:
SearchByTime
<item>
</item>
<item>
</item>
</timesectionList>
</config>
[Tips]:
The list count of “timesectionList” node is limit to 1000. Use shorter time to query when the list be
limited.
The event type “nic broken” is for IPC only.
The client application can playback one specific record data segment through RTSP protocol. For
example:
rtsp://<host><:rtspPort>/chID=0&date=2014-01-09&time=15:07:28&timelen=200[streamType=main]
[&action=backup]
When this URL is invoked by the client application, the first record data segment searched by the device
will be playback through RTSP.
“streamType” can be “main” or “sub”
The “action” can be “playback” or “backup”. And the “backup” parameterwill make the data transmission
as soon as possible.
If none “action”parameter include in the url, default is “playback.”
6.2 RecordStatus
6.2.1 GetRecordStatusInfo
GetRecordStatusInfo
Channel ID None
Successful The record status information will be included in the entity of the
Response Successful response. For example:
[Tips]:
The “id” attribute is the channel id.
7 Network commands
7.1 TCP/Ipv4
7.1.1 GetNetBasicConfig
GetNetBasicConfig
Channel ID None
Successful Response The basic network configuration will be included in the entity of the
Successful response. For example:
GetNetBasicConfig
7.1.2 SetNetBasicConfig
SetNetBasicConfig
Channel ID None
Entity Data The basic network configuration should be included in the entity of request
message. The whole “tcpIp” element in the “GetNetBasicConfig” should be
included in entity of this message. Any attributes for the “tcpIp” element or
sub elements should not be included.
SetNetBasicConfig
Successful Response The standard successful result response that described in 1.3.5.
7.2 PPPoE
7.2.1 GetNetPppoeConfig
GetNetPppoeConfig
Channel ID None
Successful Response The network PPPOE configuration will be included in the entity of the
Successful response. For example:
[Tips]:
The value of the “password” element will be none, for the reason that the “password” element is
write-only.
7.2.2 SetNetPppoeConfig
SetNetPppoeConfig
Channel ID None
Entity Data The network PPPOE configuration should be included in the entity of request
message. The whole “pppoe” element in the “GetNetPppoeConfig” should be
included in entity of this message. Any attributes for the “pppoe” element or
sub elements should not be included. If the user doesn’t need to change
password, please omit the “password” element.
Successful Response The standard successful result response that described in 1.3.5.
7.3 Port
7.3.1 GetPortConfig
GetPortConfig
Channel ID None
Successful Response The network service ports configuration will be included in the entity of the
Successful response. For example:
GetPortConfig
[Tips]:
The “httpPort” element announces the port for HTTP service. The “netPort” element announces the port
for protocol service. The “rtspPort” element announces the port for RTSP service.
7.3.2 SetPortConfig
SetPortConfig
Channel ID None
Entity Data The network service ports configuration should be included in the entity of
request message. The whole “port” element in the “GetPortConfig” should be
included in entity of this message. Any attributes for the “port” element or
sub elements should not be included.
Successful Response The standard successful result response that described in 1.3.5.
7.4 DDNS
7.4.1 GetDdnsConfig
GetDdnsConfig
Channel ID None
Successful Response The network DDNS configuration will be included in the entity of the
Successful response. For example:
GetDdnsConfig
[Tips]:
The value of the “password” element will be none, for the reason that the “password” element is
write-only.
7.4.2 SetDdnsConfig
SetDdnsConfig
SetDdnsConfig
Channel ID None
Entity Data The network DDNS configuration should be included in the entity of request
message. The whole “ddns” element in the “GetDdnsConfig” should be
included in entity of this message. Any attributes for the “ddns” element or
sub elements should not be included.If the user doesn’t need to change
password, please omit the “password” element.
Successful Response The standard successful result response that described in 1.3.5.
8 Security commands
Description To modify the current login user’s password for the IP media device.
Channel ID None
Entity Data The new password will be included in the entity of request message. Any
attributes for the “userPassword” element or sub elements should not be
included. For example:
<?xml version="1.0"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10">
<userPassword>
<oldPassword><![CDATA[YWFh]]></oldPassword>
<password><![CDATA[YmJi]]></password>
</userPassword>
</config>
[Tips]:
The “oldPassword” and “password” elements are all “string” type with maxLen“19”. They should be
encoded by base64, the “YWFh” and “YmJi” are the encoded result for “aaa” and “bbb”.
Successful Response The standard successful result response that described in 1.3.5.
9 Maintain commands
9.1 Reboot
9.1.1 Reboot
Reboot
Channel ID None
Successful Response The standard successful result response that described in 1.3.5.
10 Talkback commands
10.1 Talkback
10.1.1 Talkback
profile_talk
Description Get the url that can used to send and receive the two-way audio data
afterthe intercom opened.
Channel ID None
Successful The url for two-way audio data sending and receiving will be included in
Response the entity of the successful response. For example:
[Tips]:
1. When the URL invoked by the client application, the two-way audio data stream can be
passed through the RTSP protocol as below:
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Successful Response The VFD configuration will be included in the entity of the successful
response. For example:
[Tips]:
1.The two coordinate points of "regionInfo.item" represent the two points of the rectangular diagonal.
11.1.2 SetSmartVfdConfig
SetSmartVfdConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
[Tips]:
11.1.3 AddTargetFace
AddTargetFace
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data The "personInfo" and "faceImgs" elements will be included in the entity
of request message. For example:
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.0">
<types>
<listType>
<enum>strangerList</enum>
<enum>whiteList</enum>
<enum>blackList</enum>
</listType>
<sexType>
<enum>male</enum>
<enum>female</enum>
</sexType>
<formatType>
<enum>jpg</enum>
</formatType>
</types>
<personInfo>
<listType type="listType">whiteList</listType>
<name type="string" maxLen="127"><![CDATA[user]]></name>
<sex type="sexType">male</sex>
<age type="uint32">34</age>
<identifyNumber type="string" maxLen="127"><![CDATA[A123]]></identifyNumber>
<telephone type="string" maxLen="63"><![CDATA[18888888888]]></telephone>
<comment type="string" maxLen="63"><![CDATA[]]></comment>
</personInfo>
<faceImgs type="list" maxCount="5" count="2">
<item>
<pictureData type="string" maxLen="95576">
<![CDATA[Base64 Picture Data]]>
</pictureData>
<pictureNum type="uint32">1</pictureNum>
<width type="uint32">100</width>
<height type="uint32">80</height>
<format type="formatType">jpg</format>
<size type="uint32">50000</size>
</item>
<item>
<pictureData type="string" maxLen="95576">
<![CDATA[Base64 Picture Data]]>
</pictureData>
<pictureNum type="uint32">2</pictureNum>
<width type="uint32">200</width>
<height type="uint32">180</height>
<format type="formatType">jpg</format>
<size type="uint32">60000</size>
</item>
</faceImgs>
</config>
[Tips]:
1.目前只支持 jpg(jpeg)格式、大小限制 70k 以内图片上传
11.1.4 DeleteTargetFace
DeleteTargetFace
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
<!--example3: 按姓名删除人员信息-->
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.0">
<types>
<deleteType>
<enum>byPersonID</enum>
<enum>byListType</enum>
<enum>byName</enum>
<enum>byIdentifyNumber</enum>
</deleteType>
<listType>
<enum>strangerList</enum>
<enum>whiteList</enum>
<enum>blackList</enum>
</listType>
</types>
<deleteAction>
<deleteType type="deleteType">byName</deleteType>
<name type="string" maxLen="127">
<![CDATA[user]]>
</name>
</deleteAction>
</config>
<!--Example4: 按证件号码删除人员信息-->
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.0">
<types>
<deleteType>
<enum>byPersonID</enum>
<enum>byListType</enum>
<enum>byName</enum>
<enum>byIdentifyNumber</enum>
</deleteType>
<listType>
<enum>strangerList</enum>
<enum>whiteList</enum>
<enum>blackList</enum>
</listType>
</types>
<deleteAction>
<deleteType type="deleteType">byIdentifyNumber</deleteType>
<identifyNumber type="string" maxLen="127">
<![CDATA[A123]]>
</identifyNumber>
</deleteAction>
</config>
[Tips]:
11.1.5 EditTargetFace
EditTargetFace
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data The "personInfo" and "faceImgs" elements will be included in the entity
of request message. For example:
[Tips]:
11.1.6 GetTargetFace
GetTargetFace
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data The "queryAction" element will be included in the entity of request
message. For example:
<!--example: 1 按名单类型查询人员 ID-->
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.0">
<types>
<queryType>
<enum>byPersonID</enum>
<enum>byListType</enum>
<enum>byName</enum>
<enum>byIdentifyNumber</enum>
<enum>byPersonID</enum>
</queryType>
<listType>
<enum>strangerList</enum>
<enum>whiteList</enum>
<enum>blackList</enum>
</listType>
</types>
<queryAction>
<queryType type="queryType">byListType</queryType>
<listType type="listType">whiteList</listType>
</queryAction>
</config>
<!--example: 4 按查询人员编码-->
Successful The "face" element will be included in the entity of the successful
Response response. For example:
[Tips]:
1. A2 IPC 目标库上限为 20000
2. 没有过滤条件则按顺序返回相册库 ID
11.1.7 SearchSnapFaceByTime
SearchSnapFaceByTime
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data The "queryAction" element will be included in the entity of request
message. For example:
Successful The "face" element will be included in the entity of the successful
Response response. For example:
[Tips]:
最大返回 1000 条有效结果信息
11.1.8 SearchSnapFaceByKey
SearchSnapFaceByKey
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Successful The "face" element will be included in the entity of the successful
Response response. For example:
[Tips]:
若没有比对则无 matchInfo 节点,若比对失败则无 personInfo 节点,requestPanoramicPic 为 false
则无 panoramicInfo 节点,requestPersonPic 为 false 则无 picInfo 节点
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The CDD configuration will be included in the entity of the successful
response. For example:
[Tips]:
1.The two coordinate points of "regionInfo.item" represent the two points of the rectangular diagonal.
2.The unit of "detectFrequency" is milliseconds.
11.2.2 SetSmartCddConfig
SetSmartCddConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The whole "cdd" element in the "GetSmartCddConfig" should be included in
entity of this message.
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The CPC configuration will be included in the entity of the successful
response. For example:
[Tips]:
1.The two coordinate points of "regionInfo.item" represent the two points of the rectangular diagonal.
11.3.2 SetSmartCpcConfig
SetSmartCpcConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The whole "cpc" element in the "GetSmartCpcConfig" should be included in
entity of this message.
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The IPD configuration will be included in the entity of the successful
response. For example:
[Tips]:
11.4.2 SetSmartIpdConfig
SetSmartIpdConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The whole "ipd" element in the "GetSmartIpdConfig" should be included in
entity of this message.
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
Successful Response The Perimeter configuration will be included in the entity of the successful
response. For example:
[Tips]:
11.5.2 SetSmartPerimeterConfig
SetSmartPerimeterConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Action name None
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
11.6 Intrusion
11.6.1 GetSmartTripwireConfig
GetSmartTripwireConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The Tripwire configuration will be included in the entity of the successful
response. For example:
[Tips]:
11.6.2 SetSmartTripwireConfig
SetSmartTripwireConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
Successful Response The OSC configuration will be included in the entity of the successful
response. For example:
[Tips]:
11.7.2 SetSmartOscConfig
SetSmartOscConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Entity Data The whole "osc" element in the "GetSmartOscConfig" should be included in
entity of this message.
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
11.8 Exception
11.8.1 GetSmartAvdConfig
GetSmartAvdConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Successful Response The AVD configuration will be included in the entity of the successful
response. For example:
[Tips]:
11.8.2 SetSmartAvdConfig
SetSmartAvdConfig
Entity Data The whole "avd" element in the "GetSmartAvdConfig" should be included in
entity of this message.
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
GetVehicleConfig
Channel ID None
Successful The device detail will be included in the entity of the successful
Response response. For example:
[Tips]:
11.9.2 SetSmartVehicleConfig
SetVehicleConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
[Tips]:
11.9.3 AddVehiclePlate
AddVehiclePlate
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
request:
<?xml version="1.0" encoding="utf-8" ?>
<config>
<vehiclePlates type="list" count="1">
<item>
respone:
11.9.4 DeleteVehiclePlate
DeleteVehiclePlate
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
request:
<?xml version="1.0" encoding="utf-8" ?>
<config>
<vehiclePlates>
<keyList type="list" count="1">
<item>
<keyId type="unit32">1566443406</keyId>
</item>
</keyList>
<listType>
</listType>
<carPlateNum><![CDATA[]]></carPlateNum>
</vehiclePlates>
</config>
respone:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.7">
<vehiclePlatesReply type="list" count="0">
</vehiclePlatesReply>
</config>
删除车牌支持如下三选一进行删除:
2. 支持黑白名单删除
3. 支持车牌模糊删除
11.9.5 EditVehiclePlate
EditVehiclePlate
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
request:
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.7">
<vehiclePlates>
<keyId type="unit32">1300</keyId>
<carPlateNumber type="string">粤 BCY113</carPlateNumber>
<beginTime type="string">2019-1-1 12:23:00</beginTime>
<endTime type="string">2019-1-1 12:23:00</endTime>
<carPlateColor type="string">red</carPlateColor>
<carPlateType type="string">1566</carPlateType>
<carType type="unit32">1566</carType>
<carOwner type="string">dengyuhui</carOwner>
<carColor type="string">red</carColor>
<plateItemType type="string">1566</plateItemType>
</vehiclePlates>
</config>
respone:
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.ipc.com/ver10" version="1.7">
<vehiclePlatesReply>
<keyId type="unit32">1300</keyId>
<status type="unit32">0</status>
</vehiclePlatesReply>
</config>
11.9.6 GetVehiclePlate
GetVehiclePlate
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
respone:
[Tips]:
1、 The "GetDeviceDetail" includes how many sensors the device supported.
2、The "types" is defined by this document to constrain how the "schedule.object" is filled out, it can
not be included in this message.
11.9.7 GetVehiclePlateProgress
GetVehiclePlateProgress
Description 批量导入车牌库的进度
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
结果按照换算为%比时除以 100,表示比例
Description
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
<types>
<mutexObjectType>
<enum>cdd</enum>
<enum>cpc</enum>
<enum>ipd</enum>
<enum>tripwire</enum>
<enum>osc</enum>
<enum>perimeter</enum>
GetSmartAoiEntryConfig
<enum>vfd</enum>
<enum>avd</enum>
<enum>vehicle</enum>
</mutexObjectType>
</types>
<aoientry>
<item>
<object type="mutexObjectType">tripwire</object>
<status type="boolean">false</status>
</item>
<item>
<object type="mutexObjectType">vfd</object>
<status type="boolean">false</status>
</item>
</mutexList>
<switch type="boolean">false</switch>
<objectFilter>
<car>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">85</sensitivity>
</car>
<person>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">60</sensitivity>
</person>
<motor>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">85</sensitivity>
</motor>
</objectFilter>
GetSmartAoiEntryConfig
<saveTargetPicture type="boolean">false</saveTargetPicture>
<saveSourcePicture type="boolean">false</saveSourcePicture>
<item>
</point>
</item>
<item>
</point>
</item>
<item>
</point>
</item>
<item>
</point>
</item>
</boundary>
</aoientry>
</config>
[Tips]:
11.10.2 SetSmartAoiEntryConfig
SetSmartAoiEntryConfig
Description To set the IP media device’s video stream configuration for specific
channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data
[Tips]:
IPC does not support
Description
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
<types>
<mutexObjectType>
<enum>cdd</enum>
<enum>cpc</enum>
<enum>ipd</enum>
<enum>tripwire</enum>
<enum>osc</enum>
<enum>perimeter</enum>
<enum>vfd</enum>
<enum>avd</enum>
<enum>vehicle</enum>
</mutexObjectType>
</types>
<aoileave>
<item>
<object type="mutexObjectType">tripwire</object>
<status type="boolean">false</status>
</item>
<item>
<object type="mutexObjectType">vfd</object>
<status type="boolean">false</status>
</item>
</mutexList>
<switch type="boolean">false</switch>
<objectFilter>
<car>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">85</sensitivity>
GetSmartAoiLeaveConfig
</car>
<person>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">60</sensitivity>
</person>
<motor>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">85</sensitivity>
</motor>
</objectFilter>
<saveTargetPicture type="boolean">false</saveTargetPicture>
<saveSourcePicture type="boolean">false</saveSourcePicture>
<item>
</point>
</item>
<item>
</point>
</item>
<item>
</point>
</item>
<item>
GetSmartAoiLeaveConfig
<point type="list" maxCount="6" count="0">
</point>
</item>
</boundary>
</aoileave>
</config>
[Tips]:
11.11.2 SetSmartAoiLeaveConfig
SetSmartAoiEntryConfig
Description To set the IP media device’s video stream configuration for specific
channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data
[Tips]:
IPC does not support
11.12 Target Counting
11.12.1 GetSmartPassLineCountConfig
GetSmartPassLineCountConfig
Description
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
<types>
<direction>
<enum>none</enum>
<enum>rightortop</enum>
<enum>leftorbotton</enum>
</direction>
<mutexObjectType>
<enum>cdd</enum>
<enum>cpc</enum>
<enum>ipd</enum>
<enum>tripwire</enum>
<enum>osc</enum>
<enum>perimeter</enum>
<enum>vfd</enum>
<enum>avd</enum>
<enum>vehicle</enum>
GetSmartPassLineCountConfig
</mutexObjectType>
</types>
<passlinecount>
<item>
<object type="mutexObjectType">tripwire</object>
<status type="boolean">false</status>
</item>
<item>
<object type="mutexObjectType">vfd</object>
<status type="boolean">false</status>
</item>
</mutexList>
<switch type="boolean">false</switch>
<objectFilter>
<car>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">85</sensitivity>
</car>
<person>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">60</sensitivity>
</person>
<motor>
<switch type="boolean">true</switch>
<sensitivity type="uint32" max="100" min="1" default="50">85</sensitivity>
</motor>
</objectFilter>
<saveTargetPicture type="boolean">false</saveTargetPicture>
<saveSourcePicture type="boolean">false</saveSourcePicture>
<countTimeSpan>7<countTimeSpan>
GetSmartPassLineCountConfig
<line type="list" count="4">
<item>
<direction type="direction">rightortop</direction>
<startPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</startPoint>
<endPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</endPoint></item>
<item>
<direction type="direction">rightortop</direction>
<startPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</startPoint>
<endPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</endPoint></item>
<item>
<direction type="direction">rightortop</direction>
<startPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</startPoint>
<endPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</endPoint></item>
GetSmartPassLineCountConfig
<item>
<direction type="direction">rightortop</direction>
<startPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</startPoint>
<endPoint>
<X type="uint32">0</X>
<Y type="uint32">0</Y>
</endPoint></item></line>
</passlinecount>
</config>
[Tips]:
11.12.2 SetSmartPassLineCountConfig
GetPassLineCountConfig
Description To set the IP media device’s video stream configuration for specific
channel.
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data
[Tips]:
IPC does not support
11.12.3 GetPassLineCountStatistics
GetPassLineCountStatistics
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
GetMeasureTemperatureConfig
Channel ID None
Successful The device detail will be included in the entity of the successful
Response response. For example:
[Tips]:
1.2. SetMeasureTemperatureConfig
SetMeasureTemperatureConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data
[Tips]:
1.3. GetTemperatureCalibrationConfig
GetTemperatureCalibrationConfig
Channel ID None
Successful The device detail will be included in the entity of the successful
Response response. For example:
[Tips]:
1.4. SetTemperatureCalibrationConfig
SetTemperatureCalibrationConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
SetTemperatureCalibrationConfig
Entity Data
[Tips]:
1.5. GetMeasureTemperatureScheduleConfig
GetMeasureTemperatureScheduleConfig
Channel ID None
Successful The device detail will be included in the entity of the successful
Response response. For example:
[Tips]:
1.6. SetMeasureTemperatureScheduleConfig
SetMeasureTemperatureScheduleConfig
Description To set the IP media device’s thermal imaging temperature schedule detail
information.
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Entity Data
[Tips]:
1.7. GetDotTemperature
GetDotTemperature
Channel ID None
Successful The device detail will be included in the entity of the successful
Response response. For example:
[Tips]:
11.14 Infrared Temperature Control
1. GetAccessControlConfig
GetAccessControlConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Successful Response The AccessControl configuration will be included in the entity of the
successful response. For example:
[Tips]:
passOpenMode: Is password unlocking supported
matchOpenMode: Whether face recognition unlocking is supported (on by default)
OpenDelayTime: Unlocking delay time
OpenHoldTime: Unlocking duration (from time to automatic closing)
tamperProtection: Anti disassembly alarm linkage
2. SetAccessControlConfig
SetAccessControlConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
[Tips]:
3. UnLockingByPassword
UnLockingByPassword
Channel ID None
Entity Data The password will be included in the entity of request message. For
example:
<?xml version="1.0"?>
<config version="1.0" xmlns="http://www.ipc.com/ver10">
<unlocking>
<password type="string" maxLen="15"><![CDATA[MTIzNDU2]]></password>
</unlocking>
</config>
[Tips]:
4. GetTakeTemperatureConfig
GetTakeTemperatureConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Successful Response The temperature configuration will be included in the entity of the
successful response. For example:
5. SetTakeTemperatureConfig
SetTakeTemperatureConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
[Tips]:
6. GetWearmaskDetectConfig
GetWearmaskDetectConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
Successful Response The wearmask configuration will be included in the entity of the
successful response. For example:
7. SetWearmaskDetectConfig
SetWearmaskDetectConfig
Channel ID Optional. If none channel ID included in the URL, the default channel ID
is 1.
[Tips]:
12 Schedule commands
12.1 Schedule
12.1.1 GetScheduleConfig
GetScheduleConfig
Successful Response The schedule information will be included in the entity of the successful response.
For example:
[Tips]:
12.1.2 SetScheduleConfig
SetScheduleConfig
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
12.1.3 SetScheduleConfigEx
SetScheduleConfigEx
Channel ID Optional. If none channel ID included in the URL, the default channel ID is 1.
Action name None
Successful Response The standard successful result response that described in 1.3.5.
[Tips]:
2、 The "GetDeviceDetail" includes how many sensors the device supported.
2、The "types" is defined by this document to constrain how the "schedule.object" is filled out, it can not
be included in this message.
Annex A