Dahua - HTTP - Api - v3.37 For Velseng SDN BHD
Dahua - HTTP - Api - v3.37 For Velseng SDN BHD
DA
HU
A_
HT
TP
_AP
I_
V3
.3
7
fo
rV
el
se
n
gS
dn
Bh
d
V3.37
2023-09-04
Cybersecurity Recommendations
Mandatory actions to be taken towards cybersecurity
1. Change Passwords and Use Strong Passwords:
The number one reason systems get "hacked" is due to having weak or default passwords. It is
recommended to change default passwords immediately and choose a strong password whenever
possible. A strong password should be made up of at least 8 characters and a combination of special
characters, numbers, and upper and lower case letters.
2. Update Firmware
As is standard procedure in the tech-industry, we recommend keeping NVR, DVR, and IP camera
firmware up-to-date to ensure the system is current with the latest security patches and fixes.
DA
● Change default HTTP and TCP ports for systems. These are the two ports used to communicate and
AP
● These ports can be changed to any set of numbers between 1025-65535. Avoiding the default ports
V3
reduces the risk of outsiders being able to guess which ports you are using.
.3
7
3. Enable HTTPS/SSL:
fo
Set up an SSL Certificate to enable HTTPS. This will encrypt all communication between your devices
rV
and recorder.
el
se
4. Enable IP Filter:
n
Enabling your IP filter will prevent everyone, except those with specified IP addresses, from accessing
gS
the system.
dn
On older IP Camera firmware, the ONVIF password does not change when you change the system's
d
credentials. You will need to either update the camera's firmware to the latest revision or manually
change the ONVIF password.
6. Forward Only Ports You Need:
● Only forward the HTTP and TCP ports that you need to use. Do not forward a huge range of numbers
to the device. Do not DMZ the device's IP address.
● You do not need to forward any ports for individual cameras if they are all connected to a recorder on
site; just the NVR is needed.
7. Limit Features of Guest Accounts:
If your system is set up for multiple users, ensure that each user only has rights to features and
functions they need to use to perform their job.
8. UPnP:
Cybersecurity Recommendations I
● UPnP will automatically try to forward ports in your router or modem. Normally this would be a good
thing. However, if your system automatically forwards the ports and you leave the credentials defaulted,
you may end up with unwanted visitors.
● If you manually forwarded the HTTP and TCP ports in your router/modem, this feature should be
turned off regardless. Disabling UPnP is recommended when the function is not used in real
applications.
9. SNMP:
Disable SNMP if you are not using it. If you are using SNMP, you should do so only temporarily, for
tracing and testing purposes only.
10. Multicast:
Multicast is used to share video streams between two recorders. Currently there are no known issues
involving Multicast, but if you are not using this feature, deactivation can enhance your network security.
11. Check the Log:
If you think that someone has gained unauthorized access to your system, you can check the system
log. The system log will show you which IP addresses were used to login to your system and what was
DA
accessed.
HU
Ideally, you want to prevent any unauthorized physical access to your system. The best way to achieve
HT
this is to install the recorder in a lockbox, locking server rack, or in a room that is behind a lock and key.
TP
Cameras connected to the PoE ports on the back of an NVR are isolated from the outside world and
AP
The network your NVR and IP camera resides on should not be the same network as your public
7
computer network. This will prevent any visitors or unwanted guests from getting access to the same
fo
rV
Cybersecurity Recommendations II
Foreword
Purpose
Reader
Safety Instructions
HU
A_
The following categorized signal words with defined meaning might appear in the Manual.
HT
TIPS Provides methods to help you solve a problem or save you time.
gS
dn
text.
d
Revision History
2 V2.60 Add find media file with TrafficCar info. September 12, 2018
Foreword III
No. Version Revision Content Release Time
8 V2.66 Add people heat map, realtime trace, history trace info February 13, 2019
9 V2.67 Add subscribe heat map raw data April 18, 2019
10 V2.68 Add get traffic snap event info record May 15, 2019
11 V2.69 Add export traffic blacklist/redlist record May 20, 2019
12 V2.70 Add privacy masking May 29, 2019
13 V2.71 Add get the max and min temperature values June 3, 2019
14 V2.72 Add smart motion detection config June 27, 2019
15 V2.73 Add ecrypted download media file July 16, 2019
Adjust Camera Image, Exposure, Backlight, White
16 V2.74 Balance, Day-Night, Zoom and Focus, Lighting, Video July 25, 2019
in Options config.
17 V2.75 Add adjust angle and depth field August 13, 2019
DA
20 V2.78 Add face recognition event handler config October 30, 2019
TP
Add ObjectPlacementDetection
28 V2.86 November 5,2020
dn
ObjectRemovalDetection
Bh
Foreword IV
No. Version Revision Content Release Time
Add VideoAnalyseRule head. Type add
39 V2.97 April 25,2021
ObjectPlacement and ObjectRemoval
40 V2.98 Modify WorkSuitCompareServer May 11,2021
41 V2.99 Modify WorkSuitCompareServer doFind May 11,2021
Add trafficFlowStat stopFind, trafficFlowStat doFind
42 V3.00 May 27,2021
and trafficFlowStat startFind
Add configManager setConfig
43 V3.01 June 3,2021
IntelliSchemeTour.Enable
44 V3.02 Add configManager getConfig IntelliSchemeTour June 11,2021
45 V3.03 Add method cancel upgrade June 21, 2021
46 V3.04 doFindHistoryByPic Add Time Sept 29, 2021
47 V3.05 Add Cloud Upgrade, add find smd data December 22, 2021
48 V3.06 Add OpenAI January 11,2022
DA
HU
Count Information.
V3
Foreword V
No. Version Revision Content Release Time
Add method Get Device Info,
64 V3.22 Add method Get Camera States January 3, 2023
Add method Get Camera Recording State
Add devVideoAnalyse.disableScene,
68 V3.26 devVideoAnalyse.enableScene, February 28, 2023
devVideoAnalyse.getSceneList
DA
72 V3.30 Add set parking space light plan April 10, 2023
V3
.3
As the device user or data controller, you might collect personal data of other such as face,
fingerprints, car plate number, Email address, phone number, GPS and so on. You need to be in
compliance with the local privacy protection laws and regulations to protect the legitimate rights and
interests of other people by implementing measures include but not limited to: providing clear and
Foreword VI
visible identification to inform data subject the existence of surveillance area and providing related
contact.
The Manual is for reference only. If there is inconsistency between the Manual and the actual
product, the actual product shall prevail.
We are not liable for any loss caused by the operations that do not comply with the Manual.
The Manual would be updated according to the latest laws and regulations of related regions.
For detailed information, see the paper manual, CD-ROM, QR code or our official website. If
there is inconsistency between paper manual and the electronic version, the electronic version
shall prevail.
All the designs and software are subject to change without prior written notice. The product
updates might cause some differences between the actual product and the Manual. Please
contact the customer service for the latest program and supplementary documentation.
DA
There still might be deviation in technical data, functions and operations description, or errors
HU
in print. If there is any doubt or dispute, please refer to our final explanation.
A_
Upgrade the reader software or try other mainstream reader software if the Manual (in PDF
HT
All trademarks, registered trademarks and the company names in the Manual are the
_
AP
Please visit our website, contact the supplier or customer service if there is any problem
V3
occurred when using the device.
.3
7
Foreword VII
Table of Contents
Cybersecurity Recommendations ........................................................................................................... I
Foreword .................................................................................................................................................. III
Table of Contents .................................................................................................................................. VIII
1 Overview ............................................................................................................................................ 24
2 References......................................................................................................................................... 25
3 Definitions ......................................................................................................................................... 26
3.1 Abbreviations............................................................................................................................... 26
3.2 Syntax Convention ...................................................................................................................... 26
3.3 HTTP API Protocol Format ......................................................................................................... 26
3.3.1 key=value format .............................................................................................................. 27
DA
3.4 Authentication.............................................................................................................................. 31
3.5 Conventions ................................................................................................................................ 32
A_
4 General APIs...................................................................................................................................... 33
TP
4.5.28 Get enable/disable state of all privacy masking covers ............................................... 104
n gS
Table of Contents IX
4.6.17 Get Device Class ...........................................................................................................115
4.6.18 [Config] Auto Maintain ...................................................................................................115
4.6.19 Reboot ...........................................................................................................................116
4.6.20 Shutdown .......................................................................................................................116
4.6.21 Factory Reset ................................................................................................................117
4.6.22 Get Tracing Code of Device ..........................................................................................117
4.6.23 Add Camera to Specified Channel ................................................................................118
4.6.24 Delete Camera by Group...............................................................................................119
4.6.25 Acquiring All Available Resources ................................................................................ 120
4.6.26 Subscribing for Device Online/Offline Status ............................................................... 126
4.6.27 Get Complete Machine Version.................................................................................... 128
4.6.28 Connection test ............................................................................................................. 128
4.6.29 Getting Online Status of the Channel ........................................................................... 129
4.6.30 Getting the Recording Status of the Channel............................................................... 130
4.7 User management .................................................................................................................... 131
4.7.1 Get Information of a Particular User ............................................................................... 131
DA
Table of Contents X
4.9.1 [DataType] Event Handler .............................................................................................. 163
4.9.2 [Config] Alarm Event ....................................................................................................... 168
4.9.3 [Config] Alarm Out .......................................................................................................... 169
4.9.4 Get Alarm Input Channels .............................................................................................. 170
4.9.5 Get Alarm Output Channels............................................................................................ 170
4.9.6 Get States of Alarm Input Channels ............................................................................... 170
4.9.7 Get States of Alarm Output Channels ............................................................................ 171
4.9.8 [Config] Video Blind Event .............................................................................................. 171
4.9.9 [Config] Video Loss Event .............................................................................................. 172
4.9.10 [Config] Login Failure Event ......................................................................................... 172
4.9.11 [Config] Storage Not Exist Event .................................................................................. 173
4.9.12 [Config] Storage Access Failure Event ......................................................................... 173
4.9.13 [Config] Storage Low Space Event .............................................................................. 174
4.9.14 [Config] Net Abort Event ............................................................................................... 174
4.9.15 [Config] IP Conflict Event .............................................................................................. 175
4.9.16 Get Channels Event Happened .................................................................................... 175
DA
Table of Contents XI
4.12 Upgrader ................................................................................................................................. 226
4.12.1 Strat to Upgrade ........................................................................................................... 226
4.12.2 Get Upgrade State ........................................................................................................ 227
4.12.3 Set upgrader url ............................................................................................................ 227
4.12.4 Cancel Upgrade ............................................................................................................ 228
4.12.5 Checking Cloud Update Version .................................................................................. 228
4.12.6 Performing Online Update ............................................................................................ 230
4.12.7 Canceling Online Update.............................................................................................. 231
4.13 Http Uploading ........................................................................................................................ 232
4.13.1 [Config] Active Image and Event Uploading ................................................................. 232
4.13.2 Active Image and Event Uploading .............................................................................. 233
4.13.3 [Config] Active Event Uploading ................................................................................... 234
4.13.4 Active Event Uploading................................................................................................. 235
4.13.5 [Config] Active Report Data Uploading ......................................................................... 236
4.13.6 People Counting Report Data Uploading ..................................................................... 237
4.13.7 Video Structuring Report Data Upload ......................................................................... 240
DA
4.13.8 People Flow Heat Map Report Data Upload ................................................................ 242
HU
8.7.8 Obtaining IDs of External Devices Connected to the Host ............................................ 342
fo
Table of Contents XV
9.6.7 [Config] IntelliSchemeTourEnableSetting ....................................................................... 436
9.6.8 [Config] Intelligent Tour Plan........................................................................................... 437
9.6.9 Export Intelligent Diagnosis, Allowlist, and Blocklist Information ................................... 441
9.6.10 Import Intelligent O&M, Allowlist, and Blocklist Information ......................................... 442
9.6.11 Get Intelligent Capability ............................................................................................... 443
9.6.12 Subscribe Resource Usage Info ................................................................................... 445
9.6.13 Export Encrypted Files ................................................................................................. 446
9.6.14 Platform intelligent control ............................................................................................ 447
9.6.18 Get Algorithm Version Of Channel ............................................................................... 449
9.7 WorkSuitCompareServer .......................................................................................................... 450
9.7.1 Add Compliance Library ................................................................................................. 450
9.7.2 Delete Compliance Library ............................................................................................. 451
9.7.3 Find Compliance Library................................................................................................. 452
9.7.4 Get Compliance Library Arming Information of Channels .............................................. 453
9.7.5 Modify Compliance Group Information ........................................................................... 454
9.7.6 Deploy Compliance Library ............................................................................................ 455
DA
12.4.16 Stop Find Access User Card Related Information ..................................................... 666
HU
12.4.27 Start Find Access User Face Related Information ..................................................... 673
el
12.4.28 Get Find Result of Access User Face Related Information ....................................... 674
se
12.4.29 Stop Find Access User Face Related Information ..................................................... 674
n gS
Table of Contents XX
13.1.2 Unsubscribe Video Talk Status ..................................................................................... 693
13.1.3 Invite Server on Video Talk ........................................................................................... 693
13.1.4 Cancel the Video Talk ................................................................................................... 695
13.1.5 Answer the Invitation .................................................................................................... 695
13.1.6 Refuse to Answer the Video Talk Invitation .................................................................. 696
13.1.7 Hang Up ........................................................................................................................ 697
13.2 Intelligent Building Record ...................................................................................................... 697
13.2.1 Query Video Talk Log Record....................................................................................... 697
13.2.2 Insert Announcement Record ....................................................................................... 698
13.2.3 Query Alarm Record ..................................................................................................... 699
13.3 SIP........................................................................................................................................... 700
13.3.1 [Config] SIP Configuration ............................................................................................ 701
13.3.2 [Config] Registar Configuration .................................................................................... 703
13.4 Room Number Database Management .................................................................................. 704
13.4.1 Adding Room Number .................................................................................................. 704
13.4.2 Getting Records by Video Talk short number ............................................................... 706
DA
Overview 24
2 References
[1] RFC 2326 Real Time Streaming Protocol (RTSP)
[2] RFC 2616 Hypertext Transfer Protocol-HTTP/1.1
[3] RFC 3986 Uniform Resource Identifiers (URI) Generic Syntax
[4] RFC 7616 HTTP Digest Access Authentication
[5] RFC 8259 The JavaScript Object Notation (JSON) Data Interchange Format
DA
HU
A_
HT
TP
_ AP
I_
V3
.3
7
fo
rV
el
se
ngS
dn
Bh
d
References 25
3 Definitions
3.1 Abbreviations
The following abbreviations are used throughout this document.
Application Programming Interface. In the document, it especially presents
API
application programming interface of video products.
string, the angle brackets must also be replaced. For example, <server> in URL syntax is
HU
String shown in bold face denotes a brief explanatory note of the string close to it.
HT
Name-value pair in square brackets denotes content that is optional. For example,
TP
bin/snapshot.cgi".
I_
The API syntax must follow the standard of URI. (RFC 3986: Uniform Resource Identifiers
V3
(URI) Generic Syntax); that is, spaces and other reserved characters (e.g, ":", "/", "?", "@", ";",
.3
"=", "+", ",", "$", "&") within a name-value pair should be replaced with %< ASCII hex>. For
7
fo
To describe the range of a variable, we use some symbols such as "[]" and "{}". For example,
el
"[0-100]" denotes an integer not less than 0 and not larger than 100. "{0, 1, 2, 3}" denotes the
se
n
"[]" following a string denotes an array. The index is an integer and starts from 0. For example,
dn
The variable may be different types: string, integer, bool or float. Integer is 32 bits. The range
d
of bool is "true" and "false".
"R/O" in parameters means this parameter is required or not, "R"means required, "O"means
optional.
Definitions 26
3.3.1 key=value format
If the HTTP API use key=value format for it's parameters, the URL syntax is :
<protocol>://<server><abs_path>[?query]
protocol: URL scheme for the particular request. The http protocol and https protocol are both
supported in this specification. So "http", as most of the APIs' default protocol except several RTSP
APIs, can be replaced by "https".
server: Server could be "hostname[:port]". The hostname can be IP address or the fully qualified
domain name of an IP device. The port is the port number of server listening for TCP connections.
If the port is not given, the default port is assumed. For HTTP, the default port is 80. For HTTPS,
the default port is 443.
abs_path: The Request-URI for the resources is abs_path. The abs_path in this specification is
most often of the form "/cgi-bin/*.cgi".
DA
query: The query field is a string of information to be interpreted by the resource. It consists of
HU
(p1=v1&p2=v2&…&pn=vn).
HT
For the HTTP API that use key=value format for it's parameters, it usually has no HTTP Body.
TP
GET http://192.168.1.108/cgi-bin/devVideoInput.cgi?action=getFocusStatus&channel=1
I_
HTTP/1.1
V3
User-Agent: client/1.0
.3
Content-Length: 0
7
fo
rV
The server uses the standard HTTP status codes, the syntax of the status line of the response is:
el
se
Definitions 27
Reponse Example: success respose with multiline key=value
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: text/plain
Content-Length: <length>
status.Focus=0.5
status.Zoom=0.5
…
Reponse Example: success respose with a word "OK"
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: text/plain
Content-Length: <length>
DA
OK
HU
If the HTTP code is not 200, means the API execute failed, and the response data in HTTP Body
A_
maybe empty, or just two line, first line is a word "Error" to indicate error happened, the second line
HT
Server: Device/1.0
V3
.3
7
Server: Device/1.0
se
Content-Type: text/plain
n gS
Content-Length: <length>
dn
Error
Bh
Bad Request!
d
Reponse Example: If the request fits with syntax but an error occurs while the server handles it,
the response would like this:
HTTP/1.1 500 Internal Server Error
Server: Device/1.0
Content-Type: text/plain
Content-Length: <length>
Error
Internal Server Error!
Definitions 28
<protocol>://<server><abs_path>
protocol: URL scheme for the particular request. The http and https protocols are both supported
in this specification. So "http", as most of the APIs' default protocol except several RTSP APIs, can
be replaced by "https".
server: Server could be "hostname[:port]". The hostname can be IP address or the fully qualified
domain name of an IP device. The port is the port number of server listening for TCP connections.
If the port is not given, the default port is assumed. For HTTP, the default port is 80. For HTTPS,
the default port is 443.
abs_path: The Request-URI for the resources is abs_path. The abs_path in this specification is
most often prefix with "/cgi-bin/api/" , and followed with resource name, for example : "/cgi-
bin/api/CloudUpgrader/check" .
For the HTTP API that use JSON format for it's parameters, the parameters are put to the HTTP
Body as a JSON object. If the API has no request parameter, then the HTTP Body is an empty
JSON object, for example " {} ", or there is no HTTP Body.
DA
User-Agent: client/1.0
HT
Content-Type: application/json
TP
Content-Length: xxx
_
AP
I_
{
V3
"way" : 0,
.3
"proxy" : {
7
fo
"IP" : "10.1.2.3",
rV
"Port" : 8080
el
}
se
}
n gS
The server uses the standard HTTP status codes, the syntax of the status line of the response is:
dn
Definitions 29
HTTP code HTTP text Description
501 Not Implemented The server has not implemented the service.
If the HTTP code is 200, means the API execute success, and the response data in HTTP Body
( maybe multipart ) can be a JSON object. If the API has no response parameter, then the HTTP
Body is an empty JSON object, for example " {} ", or there is no HTTP Body.
Reponse Example: success respose with JSON format Body
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: application/json
Content-Length: <length>
{
"info" : {
"State" : "None",
"PackageType" : "all",
DA
"OldVersion" : "0000",
HU
"NewVersion" : "0004",
A_
"PackageUrl" : "https://example.com/1.zip",
TP
"PackageId" : "1d2ee7",
_
"CheckSum" : "F3D288AB",
AP
}
V3
}
.3
7
If the HTTP code is not 200, means the API execute failed, and the response data in HTTP Body
fo
maybe empty, or a JSON object to describe the error detail. The value of "ErrorCode" contains
rV
Server: Device/1.0
Bh
d
{
"ErrorCode" : 10086,
"ErrorMsg" : "Bad Request!"
}
Reponse Example: If the request fits with syntax but an error occurs while the server handles it,
the response would like this:
Definitions 30
HTTP/1.1 500 Internal Server Error
Server: Device/1.0
Content-Type: application/json
Content-Length: <length>
{
"ErrorCode" : 10097
"ErrorMsg" : "Internal Server Error!"
}
3.4 Authentication
Video products support digest authentication, see RFC 7616 for detail. If the http request sent by
client does not provide valid "Authorization" header information, video products would return HTTP
status code 401 and some information for authentication, then client should calculate authentication
information according to RFC 7616, and sent request again with authentication information using
DA
“Authorization” header. Video products return the required resource only if authorization information
HU
correct.
A_
1. When the client does not provoding digest authentication or the client calculates digest
HT
authentication with expired "nonce" data, video product reply 401 with information for
TP
authorization.
_ AP
User-Agent: client/1.0
.3
7
Content-Length: 0
fo
rV
Reponse Example: The device send 401 reponse with parameters for authentication calculation.
el
se
Server: Device/1.0
dn
opaque="5ccc069c403ebaf9f0171e9517f40e41"
d
2. Then the client generate "nc" and "cnonce", calculates the digest authorization using
"username" "password" "HTTP method" "URI" "nc" "cnonce" "realm" "nonce" , according to RFC
7616, and then sends it to video product again. If the digest authorization is correct, the video
product will reply HTTP status code 200 with the response data. If digest authorization is not
correct, the video product will reply HTTP status code 403 .
Request Example: The client send request again with authentication information ( suppose the
password of admin user is "abcd1234" )
Definitions 31
GET /cgi-bin/magicBox.cgi?action=getLanguageCaps HTTP/1.1
User-Agent: client/1.0
Authorization: Digest username="admin", realm="Device_00408CA5EA04",
nonce="000562fd20ef95ad", nc=00000001, cnonce="0a4f113b", qop="auth",
uri="/cgi-bin/magicBox.cgi?action=getLanguageCaps",
response="dfd0f24bed4c336d20c8f0729dd5dbc8"
opaque="5ccc069c403ebaf9f0171e9517f40e41"
Content-Length: 0
Reponse Example: If the authentication information is correct, the device send 200 reponse.
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: text/plain
Content-Length: <length>
DA
Languages=SimpChinese,English,French
HU
Reponse Example: If the authentication information is not correct, the device send 403 reponse.
A_
Server: Device/1.0
TP
Content-Length: 0
_ AP
I_
V3
3.5 Conventions
.3
7
fo
3.5.1 Channels
rV
el
http://<server>/cgi-bin/mjpg/video.cgi[?channel=<ChannelNo>]
gS
But for responses, the ‘ChannelNo’ should start from 0. In other words, the request channel 1
Bh
Definitions 32
4 General APIs
The APIs specified in this section are supported by all video products.
URL rtsp://<server>:[port]/cam/realmonitor
HU
stream.
I_
V3
Optional values:
rV
0: Main stream
el
1: Sub stream 1
se
n
2: Sub stream 2
gS
URL Example
dn
rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=0
Bh
Request Example
DESCRIBE rtsp://192.168.1.108/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 1
User-Agent: LibVLC/3.0.5
Response Example
RTSP/1.0 200 OK
CSeq: 1
Server: Rtsp Server/3.0
Content-Base: rtsp://192.168.1.108/cam/realmonitor?channel=1&subtype=0/
Content-Length: xxx
Content-Type: application/sdp
General APIs 33
v=0
o=- 2253484289 2253484289 IN IP4 0.0.0.0
s=Media Server
c=IN IP4 0.0.0.0
t=0 0
a=control:*
a=range:npt=now-
m=video 0 RTP/AVP 98
a=control:trackID=0
a=framerate:25.000000
a=rtpmap:98 H265/90000
a=recvonly
Step 2: Establish a transmission channel for each media by executing the SETUP command.
Take RTP over UDP as an example. Establish the UDP socket for receiving and sending UDP
packages on 63088 and 63089 interfaces.
DA
Request Example
HU
CSeq: 2
HT
User-Agent: LibVLC/3.0.5
TP
Transport: RTP/AVP;unicast;client_port=63088-63089
_AP
Response Example
I_
RTSP/1.0 200 OK
V3
CSeq: 2
.3
7
Session: 1546116282447;timeout=60
rV
Transport: RTP/AVP/UDP;unicast;client_port=63088-63089;server_port=24764-24765;ssrc=71B0AF
el
DC
se
ngS
Step 3: Execute the play command to play the media, and receive and send RTP and RTCP data
dn
Request Example
d
Response Example
RTSP/1.0 200 OK
CSeq: 3
Server: Rtsp Server/3.0
Session: 1546116282447
Range: npt=0.000-
RTP-Info: url=trackID=0;seq=45020;rtptime=1907404764
General APIs 34
Step 4: Execute the TEARDOWN command to stop playing the media, and then disable the UDP
socket.
Request Example
TEARDOWN rtsp://192.168.1.108/cam/realmonitor?channel=1&subtype=0/ RTSP/1.0
CSeq: 4
User-Agent: LibVLC/3.0.5
Session: 1546116282447
Response Example
RTSP/1.0 200 OK
CSeq: 4
Server: Rtsp Server/3.0
Session: 1546116282447
It's similar with "4.1.1 Get Real-Time Stream", except that there are parameters "starttime" and
A_
"endtime".
HT
URL rtsp://<server>:[port]/cam/playback
TP
channel int R
from 1
7
fo
char[32 2012_09_15_12_37_05
starttime O The playback begin time
rV
]
el
char[32 2012_09_15_18_34_14
O The playback end time
se
endtime
]
n gS
General APIs 35
Method DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, ...
URL Params ( key=value format in URL )
Name Type R/O Description Example
URL Example
rtsp://192.168.1.108:554//mnt/sd/2015-09-16/001/dav/20/20.32.08-20.32.28[M][0@0][0].dav
subtype int R
1-Extra Stream 1
HU
2-Extra Stream 2
A_
Request Example
HT
http://192.168.1.108/cgi-bin/mjpg/video.cgi?channel=1&subtype=0
TP
_ AP
Response Example
.3
HTTP/1.1 200 OK
7
Server: Device/1.0
fo
rV
--<boundary>
n
Content-Type: image/jpeg
gS
Content-Length:<image size>
dn
Bh
--<boundary>
Content-Type: image/jpeg
Content-Length:<image size>
General APIs 36
Name Type R/O Description Example
Channel uint32 R video channel number which starts from 0
0
Request Example
{
"Channel": 0
}
"Token": "AwDSEci0j4EUW6pUz5bcQ0yK8_Rbq0vaUsUwqQKmFoUpuMJjOxy9kgcV6BlCty8U"
HU
}
A_
HT
Get Configure
7
fo
Get configure detail by name. Each configure name has it’s specific configure detail. Please refer to
rV
http://<server>/cgi-bin/configManager.cgi?action=getConfig
se
Request URL
n
Method GET
gS
Request Example
http://<server>/cgi-bin/configManager.cgi?action=getConfig&name=General
General APIs 37
table.General.MachineName=DVR001
table.General.MachineAddress=XXX Road
…
Set Configure
Set configure detail by name. Each configure name has it’s specific configure detail. Please refer to
configure detail APIs in later [Config] chapters.
Request URL http://<server>/cgi-bin/configManager.cgi?action=setConfig
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Sample
The configure detail of the configure
name. Each configure name has it’s
string/object/ob
<config name> R specific configure detail. Please refer
ject[]
to configure detail apis in later
chapters.
DA
Request Example
HU
http://192.168.1.108/cgi-
A_
bin/configManager.cgi?action=setConfig&General.MachineID=20832748927&General.MachineName
HT
=DVR001&General.MachineAddress=XXX%20Road
TP
_
Response Example
I_
OK
V3
.3
Add configure
el
se
The configuration name is put in the URL in the form of key-value; the specific configuration field
n
can be obtained through getConfig. Each configure name has it’s specific configure detail. Please
gS
Method GET
d
General APIs 38
OK
Remove configure
Specific configuration fields can be obtained through getConfig. Only configuration fields can be
deleted, not configuration items. Each configure name has it’s specific configure detail. Please refer
to configure detail APIs in later [Config] chapters.
Request URL http://<server>/cgi-bin/configManager.cgi?action=removeConfig
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Sample
General.Machine
name string R configuration param name
Address
Request Example
http://192.168.1.108/cgi-
bin/configManager.cgi?action=removeConfig&name=General.MachineAddress
DA
Response Example
A_
OK
HT
Method GET
7
values.
gS
Request Example
dn
http://<server>/cgi-bin/configManager.cgi?action=restore&names[0]=General&names[1]=UPnp
Bh
d
General APIs 39
names char[][32] R Array of the configuration names that [ "General", "UPnP" ]
does not need to be restored to the
default values.
Request Example
http://<server>/cgi-bin/configManager.cgi?action=restoreExcept&names[0]=General&names[1]=UPnp
4.3 Audio
Method GET
A_
Request Example
_
http://192.168.1.108/cgi-bin/devAudioInput.cgi?action=getCollect
AP
I_
Response Example
rV
result=1
el
se
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
Request Example
http://192.168.1.108/cgi-bin/devAudioOutput.cgi?action=getCollect
General APIs 40
4.3.3 Post Audio Stream
Post audio stream to device, request is very long and client continues to send audio data. If client
want to stop, just close the connection.
Request URL http://<server>/cgi-bin/audio.cgi?action=postAudio
Method POST
Request Params ( key=value format in URL )
Name Type R/O Description Example
audio http transmit format, can be : singlepart
singlepart: HTTP content is a continuous flow
of audio packets
httptype string R
multipart: HTTP content type is multipart/x-
mixed-replace, and each audio packet ends
with a boundary string
channel int R The audio channel index which starts from 1. 1
DA
P/1.1
HT
User-Agent: client/1.0
Content-Type: Audio/G.711A
TP
_
Content-Length: 9999999
AP
I_
<Audio data>
V3
<Audio data>
.3
…
7
fo
P/1.1
se
User-Agent: client/1.0
n gS
--<boundary>
Bh
Content-Type: Audio/G.711A
d
Content-Length: 800
<Audio data>
--<boundary>
Content-Type: Audio/G.711A
Content-Length: 800
<Audio data>
--<boundary>
…
General APIs 41
Response Example
( N/A )
Get audio stream from device, response is very long and client continues to recv audio data. If
A_
Method GET
_ AP
of audio packets
httptype string R
rV
Request Example
http://192.168.1.108/cgi-bin/audio.cgi?action=getAudio&httptype=singlepart&channel=1
Bh
d
<Audio data>
<Audio data>
…
Response Example ( multipart )
General APIs 42
200 OK HTTP/1.1
Server: device/1.0
Content-Type: multipart/x-mixed-replace; boundary=<boundary>
--<boundary>
Content-Type: Audio/G.711A
Content-Length: 800
<Audio data>
--<boundary>
Content-Type: Audio/G.711A
Content-Length: 800
<Audio data>
--<boundary>
…
DA
HU
is [0-100].
fo
rV
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
el
se
are as follows :
n
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=AudioOutputVolume
dn
table.AudioOutputVolume[0]=80
d
table.AudioOutputVolume[1]=50
…
General APIs 43
4.3.6 Getting the Analysis Configurations of the Specified Audio
Channel
Get the analysis configurations of the specified audio channel.
Request URL http://<server>/cgi-bin/api/AudioAnalyseManager/getConfig
Method POST
Request Params (JSON format in body )
Name Type R/O Description Example
PresetID int32 O Preset. The field is valid when the 0
analysis channel is specified. When
there are no fields, the default preset
is 0, and the field can be empty for
IPC. When the preset is -1, all the
preset configurations will be returned.
DA
Request Example
n gS
{
dn
"PresetID": 0,
"AudioChannel": 0,
Bh
"DeviceID": "12345678"
d
General APIs 44
++Type char[64] O Rule type "<RuleType>"
++Id uint O Rule ID. The field can be 0, which 0
means the system will automatically
allocate the appropriate ID. If there are
businesses that bonds the rule ID, the
client will be responsible for ensuring
that the code and the name are
unique.
++Name char[64] O Rule name "..."
++Enable bool O Enable the rules true
++PresetID uint32 O Preset spots 0
++EventHandle object O Rule linkage items
r
+++TimeSectio char[8][6][20] O Alarm period [["1 00:00:00-
n 08:00:00", "1
10:00:00-
DA
24:00:00",]]
HU
is false.
I_
V3
nable
Bh
General APIs 45
+++MailEnable bool O Send emails. If there are images, the true
images will be sent as email
attachment.
+++Dejitter int O Dejitter time. The field is only 0
meaningful for part of the start or stop
type events. Unit: Second (0 s–600 s).
It can only be used for applications to
automatically tour the detected events,
such as motion detection and
tampering. The similar intelligent
events that reported by the algorithm
database such as tripwire and face
detection cannot configure dejitter
time.
+++BeepEnabl bool O Buzzer true
e
DA
+++Delay uint O Set the delay time for the event to take 30
HU
from 0.
.3
tEnable
fo
k
el
se
htType enumchar[32]{
dn
General APIs 46
++++LightDura uint O The duration time of the flicker or 10
tion normally lighting. Unit: second.
++++LightBrigh uint O Brightness of the linkage light. 50
t The range refers to the capacity of
LinkLightBrightRange. If this item does
not exist, the default brightness will be
adopted.
+++LogEnable bool O Whether to record alarm logs (Includes false
local and remote logs). The type is
fixed to
EventStart/EventStop/EventPulse and
the original event type is recorded in
the Detail.Code field in the log.
+++LogRemot bool O Whether to record remote logs. The false
e type is fixed as
EventStart/EventStop/EventPulse and
DA
e
I_
V3
nels number
7
le
rV
General APIs 47
indicates the scene number, and the
third linkage parameter indicates the
stay time of the scene after the alarm
finished, the fourth linkage parameter
indicates reserve the parameter and
the fifth linkage parameter indicates
the PTZ channel it linked with.
"QuickFocus”: the thermal imaging
PTZ links with quick focus function
(the second one indicates the zoom of
the thermal imaging channel), and its
value ranges from 0 to 24. The third
parameter indicates the stay time and
the fourth indicates reserve the
parameter. If it is a positive value, then
it means zoom in, and the fifth
DA
ble
AP
continuously.
se
n
General APIs 48
++++LinkTime uint O The playing time of the linkage audio. 30
Unit: second
++++Interval uint O The playing interval of the sound, and 30
the default value is 0. Unit: second.
++Config object O The specific configuration of rule, and
the corresponding configuration
depends on the value of Type. For
more information, please see
AudioAnalyseRule(<RuleType>).
+Global object O Global configuration. This field
has no relationship with PTZ position.
++ClassList char[32][64] O The valid intelligent business ["<ClassType1>","<
ClassType2>"]
++Module object O Business configuration. The field
name indicates the business name.
For the detailed configuration, please
DA
see
HU
AudioAnalyseModule(<ClassType>).
A_
dDetect
TP
global configurations.
.3
scene configurations.
dn
0 : not support
d
1 : support
Response Example
{
"Config": {
"AudioChannel": 0,
"Global": {
"ClassList": [],
"Detail": null,
"Module": null
},
"Rules": [
{
"Class": "SmartSoundDetect",
"Config": {
General APIs 49
"Sensitive": 5,
"TimesThreshold": 2,
"Types": [
"AudioCrashingGlass",
"AudioScream",
"AudioGunshot",
"AudioExplosion"
]
},
"Enable": false,
"EventHandler": {
"TourEnable": false,
"VoiceEnable": false,
...
},
"Id": 1,
DA
"Name": "SmartSoundDetect",
HU
"PresetID": 0,
A_
"Type": "SmartSoundDetect"
HT
}
TP
],
_
"Scene": [
AP
{
I_
"ClassList": [],
V3
"Detail": null,
.3
7
"Module": {
fo
"SmartSoundDetect": {
rV
"Threshold": 50
el
}
se
},
n gS
"PresetID": 0
dn
}
Bh
],
d
"State": 1
}
}
General APIs 50
Config object R For the detailed content, please see
getConfig to request for the returned
value. http://<server>/cgi-
bin/api/AudioAnalyseManager/getConfi
g
AudioChannel int32 O Audio channel number. When there are 0
no signs indicate that the audio source
is from the Internet, then the
AudioChannel means the local channel
number. When using the number, it
must be linked with logical audio
channel through channel number or
other fields. If fails to link, the API will
be failed to return.
DeviceID char[64] O Device ID. It mainly used in the back- "12345678"
end cascade scenes, and if there are
DA
Complete Example
HT
{
TP
"AudioChannel": 0,
_
"DeviceID": "12345678",
AP
"Config": {
I_
V3
"AudioChannel": 0,
.3
"Global": {
7
"ClassList": [],
fo
"Detail": null,
rV
"Module": null
el
},
se
n
"Rules": [
gS
{
dn
"Class": "SmartSoundDetect",
Bh
"Config": {
d
"Sensitive": 6,
"TimesThreshold": 1,
"Types": [
"AudioCrashingGlass",
"AudioScream",
"AudioGunshot",
"AudioExplosion"
]
},
"Enable": false,
"EventHandler": {
"TourEnable": false,
"VoiceEnable": false,
...
General APIs 51
},
"Id": 1,
"Name": "SmartSoundDetect",
"PresetID": 0,
"Type": "SmartSoundDetect"
}
],
"Scene": [
{
"ClassList": [],
"Detail": null,
"Module": {
"SmartSoundDetect": {
"Threshold": 50
}
},
DA
"PresetID": 0
HU
}
A_
],
HT
"State": 1
TP
}
_
}
AP
I_
V3
Response Example
fo
{}
rV
el
se
n
Audio Channel
Bh
d
General APIs 52
the number, it must be linked with
logical audio channel through
channel number or other fields. If it
fails to link, the API will be failed to
return.
DeviceID char[128] O Device ID. It mainly used in the "12345678"
back-end cascade scenes, and if
there are no special requirements,
it will not be used in front-end
devices.
Complete Example
{
"Class": "SmartSoundDetect",
"PresetID": 0,
"AudioChannel": 0,
"DeviceID": "12345678"
DA
}
HU
A_
Config object O
_
+Rules object[] O
AP
General APIs 53
+++RecordC int[] O Recording channel number list [0, 1, 2]
hannels One-dimensional array. Each
member indicates that the
corresponding channel needs to
record, and the channel number
starts from 0.
+++RecordL int O Recording delay time (second) 10
atch Range [10, 300]
+++AlarmOu bool O Enable alarm output true
tEnable
+++AlarmOu int[] O Alarm output channel number list [1, 4]
tChannels One-dimensional array. Each
member indicates that the
corresponding channel needs to
output alarm, and the channel
number starts from 0.
DA
[1,300]
HT
tEnable
_
attachment.
gS
General APIs 54
member indicates that the
corresponding channel needs to
output extension alarm, and the
channel number starts from 0.
+++ExAlarm bool O Enable alarm output extension true
OutEnable
+++LightingL object O PTZ illuminator linkage item
ink
++++Enable bool O Enable true
++++FilckerL enumchar[32] O Flicker light type "WhiteLight"
ightType enumchar[32]{
"WhiteLight": indicates the flashing
light is white light
"RedBlueLight": indicates the
flashing light is red and blue light
}
DA
kType enumchar[32]{
A_
"KeepLighting": solid on
TP
}
_
0.5 s.
.3
Times configured.
fo
5.
el
se
General APIs 55
LogEnable exist at the same time,
the remote log records will use the
data from LogRemote).
+++MMSEn bool O Enable sending MMS false
able
+++MatrixCh int[] O Link with video matrix channels [1, 6]
annels number
+++MatrixEn bool O Enable linkage video matrix true
able
+++Message bool O Whether to upload the message to true
Enable the alarm central server. Alarm
center does not need to log in to
the device, and the device itself can
directly send the message to alarm
center.
+++PtzLink object[][] O PTZ linkage. It is a two-dimensional [ ["Preset", 3, 0, 0, 0],
DA
General APIs 56
positive value, then it means zoom
in, and the fifth parameter indicates
the PTZ channel number it linked
with.
“None” can be empty or none,
which is used for compatibility.
+++PtzLinkE bool O Enable PTZ linkage true
nable
+++Snapsho int O Frame interval. It means the 3
tPeriod number of frames it takes to
capture one image, and in a certain
period of time, the number of
images depends on the capturing
frame rate.
0 indicates it takes multiple
snapshots continuously.
DA
able
I_
V3
ls
fo
no audio linkage.
Bh
mes
++++LinkTim uint O The playing time of the linkage 30
e audio. Unit: second
++++Interval uint O The playing interval of the sound, 30
and the default value is 0. Unit:
second.
++Config object O The specific configuration of rule,
and the corresponding
configuration depends on the value
of Type. For more information,
please see
AudioAnalyseRule(<RuleType>).
+Module object O The specific business configuration,
and its value refer to the "request"
General APIs 57
section. For more information,
please see
AudioAnalyseModule(<ClassType>
)
+Global object O
++Detail object O Universal configuration of the
global business
+Scene object O The business universal
configuration of the current preset
++PresetID uint32 O Preset ID 0
++Detail object O
Response Example
{
"Config": {
"Global": {
"Detail": null
DA
},
HU
"Module": {
A_
"Threshold": 50
HT
},
TP
"Rules": [
_
{
AP
"Class": "SmartSoundDetect",
I_
V3
"Config": {
.3
"Sensitive": 6,
7
"TimesThreshold": 1,
fo
"Types": [
rV
"AudioCrashingGlass",
el
se
"AudioScream",
n
"AudioGunshot",
gS
"AudioExplosion"
dn
]
Bh
},
d
"Enable": false,
"EventHandler": {
"TourEnable": false,
"VoiceEnable": false,
...
},
"Id": 1,
"Name": "SmartSoundDetect",
"PresetID": 0,
"Type": "SmartSoundDetect"
}
],
"Scene": {
"Detail": null
General APIs 58
}
}
}
value. http://<server>/cgi-
HU
bin/api/AudioAnalyseManager/getCon
A_
fig
HT
General APIs 59
"Class": "SmartSoundDetect",
"Config": {
"Sensitive": 6,
"TimesThreshold": 1,
"Types": [
"AudioCrashingGlass",
"AudioScream",
"AudioGunshot",
"AudioExplosion"
]
},
"Enable": false,
"EventHandler": {
"TourEnable": false,
"VoiceEnable": false,
...
DA
},
HU
"Id": 1,
A_
"Name": "SmartSoundDetect",
HT
"PresetID": 0,
TP
"Type": "SmartSoundDetect"
_
}
AP
],
I_
"Scene": {
V3
"Detail": null
.3
7
}
fo
},
rV
"Class": "SmartSoundDetect",
el
"AudioChannel": 0,
se
"DeviceID": "12345678",
n
gS
"PresetID": 0
dn
}
Bh
d
4.3.10.1 AudioAnalyseRule(SmartSoundDetect)
Name Type R/O Description Example
Types char[32][32] R Sound Type ["AudioCry"]
enumchar[][32]{
"AudioCry"
General APIs 60
"AudioAlarm"
"AudioGunshot"
"AudioExplosion"
"AudioScream"
"AudioCrashingGlass"
}
Sensitive uint32 O Detection sensitivity, range [1,10] 5
TimesThreshold uint32 O Times threshold, range [1, 5] 2
4.3.11.1 AudioAnalyseModule(SmartSoundDetect)
Name Type R/O Description Example
DA
Method POST
I_
Request Example
se
{
ngS
"Path":"/Audio_Path",
dn
"FileName":"alarm.wav",
Bh
"PlayTimes":1
d
General APIs 61
{
"Status" : "OK"
}
4.4 Snapshot
holiday. 00:00-
.3
7
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
General APIs 62
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=Snap
Get Config Response Example
table.Snap[0].HolidayEnable=true
table.Snap[0].TimeSection[0][0]=6 00:00:00-23:59:59
table.Snap[0].TimeSection[0][1]=0 00:00:00-23:59:59
…
table.Snap[1].HolidayEnable=false
table.Snap[1].TimeSection[0][1]=0 00:00:00-23:59:59
table.Snap[1].TimeSection[0][1]=0 00:00:00-23:59:59
…
=0 00:00:00-23:59:59
HU
OK
HT
TP
Method GET
7
Default 0
d
Request Example
http://192.168.1.108/cgi-bin/snapshot.cgi?channel=1&type=0
<jpeg data>
General APIs 63
4.4.3 Subscribe to Snapshot
Subscribe to the events and event snapshots. For details on the event name and parameters, see
the corresponding [Event] sections.
Request URL http://<server>/cgi-bin/snapManager.cgi?action=attachFileProc
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
channel int O Video channel number, starting from 1. 1
If not specified, the default value is 1.
-1 means subscribing to all channels.
heartbeat int O Heartbeat interval. 5
Unit: s
Range: [1–60], and the default value is 5.
While sending the events, the device
DA
"heartbeat".
Flags char[][32] R Subscription parameter. "Event"
TP
TrafficJunction: ANPR
n gS
General APIs 64
AccessControl: Access control unlocking
…
Request Example
http://192.168.1.108/cgi-bin/snapManager.cgi?action=attachFileProc&channel=1&heartbeat=5&Flags
[0]=Event&Events=[VideoMotion%2CVideoLoss]
corresponding section.
_
Response Example
AP
HTTP/1.1 200 OK
I_
Server: Device/1.0
V3
Connection: closed
fo
rV
--<boundary>
el
Content-Type: text/plain
se
n
Events[0].EventBaseInfo.Code=TrafficJunction
Bh
Events[0].EventBaseInfo.Action=Pulse
d
Events[0].EventBaseInfo.Index=0
Events[0].Channel=0
Events[0].CountInGroup=3
Events[0].IndexInGroup=1
Events[0].Lane=1
Events[0].PTS=42949485818.0
Events[0].TrafficCar.PlateNumber=ZZZ12345
Events[0].TrafficCar.DeviceAddress=XXXRoad
……
Events[1].Channel=1
Events[1].EventBaseInfo.Code=TrafficJunction
Events[1].EventBaseInfo.Action=Pulse
Events[1].EventBaseInfo.Index=1
Events[1].CountInGroup=3
General APIs 65
Events[1].IndexInGroup=2
Events[1].Lane=1
……
--<boundary>
Content-Type: image/jpeg
Content-Length:<image size>
Heartbeat
--<boundary>
……
DA
Method GET
V3
Request Example
se
http://192.168.1.108/cgi-bin/magicBox.cgi?action=getProductDefinition&name=MaxExtraStream
n gS
dn
General APIs 66
http://192.168.1.108/cgi-bin/encode.cgi?action=getCaps
+PreviewMode char[16] O
SplitSnap: Split fast snapshot mode
HU
Encoding capability
+VideoEncodeDe
_
vices
channel.
I_
bool O
ualResolution snapshots is supported
.3
7
++RecordIndividu
bool O motion detection and alarm videos are
rV
alResolution
supported.
el
int O
n
General APIs 67
caps.PreviewMode=SplitSnap
caps.VideoEncodeDevices[0].SupportIndividualResolution=true
caps.VideoEncodeDevices[0].RecordIndividualResolution=true
caps.VideoEncodeDevices[0].MaxCIFPFrameSize=40
caps.VideoEncodeDevices[0].MinCIFPFrameSize=7
caps.CoriaDisplay[0].CoriaDisplaySwitchs[0]=0
caps.CoriaDisplay[0].CoriaDisplaySwitchs[1]=1
caps.CoriaDisplay[0].CoriaDisplaySwitchs[2]=2
default number is 1.
TP
recording type.
fo
0: General encoding
rV
2: Alarm encoding
n
Unit: pixels
+++Height int O Video height 1080
Unit: pixels
+++BitRate int O Video stream 2048
Unit: kbps
+ExtraFormat object[] O Sub stream
Each element of the array represents a sub
stream.
0: Sub stream 1
1: Sub stream 2
2: Sub stream 3
++Video object O Video format
+++Compressi char[16 O Video encoding mode "H.264"
on ] For example, "MPEG4", "H.264", "H.265"
General APIs 68
+++Width int O Video width 720
Unit: pixels
+++Height int O Video height 576
Unit: pixels
+++BitRate int O Video stream 512
Unit: kbps
Request Example
http://192.168.1.108/cgi-
bin/encode.cgi?action=getConfigCaps&channel=1&Encode[0].MainFormat[0].Video.Compression=H.
264&Encode[0].MainFormat[0].Video.Width=1920&Encode[0].MainFormat[0].Video.Height=1080
recording type.
HU
0: General encoding
A_
2: Alarm encoding
TP
SVAC.
.3
7
values.
Bh
General APIs 69
+++Compression char[] O Supported audio encoding formats: G.711A, AMR
Types PCM, ADPCM, G.711A, G.711Mu,
G.726, G.729, MPEG2, AMR, and
SVAC.
++Video object O Video encoding capability
+++Compression char[] O Supported video encoding formats: MPEG4, H.264,
Types MPEG4, MPEG2, MPEG1, MJPG, H.265
H.263, H.264 and H.265.
+++ResolutionTy char[] O Supported video resolutions. D1, 1280x720
pes See the table below for the options.
+++BitRateOption char[] O Stream capability 80,448
s Two numbers are divided by a comma.
The former number represents the
minimal stream, and the latter
represents the maximum stream. Unit:
kbps
DA
0: General snapshot
_
2: Alarm snapshot
I_
Response Example
gS
caps.MainFormat[0].Audio.CompressionTypes=G.711A, AMR
dn
caps.MainFormat[0].Video.CompressionTypes=H.264,MJPG
Bh
caps.MainFormat[0].Video.BitRateOptions=448,2560
caps.MainFormat[0].Video.FPSMax=25
caps.ExtraFormat[0].Audio.CompressionTypes=G.711A, AMR
caps.ExtraFormat[0].Video.CompressionTypes=H.264,MJPG
caps.ExtraFormat[0].Video.ResolutionTypes=2048 x 1536,1080,SXGA, 1280 x 960,720,D1,CIF
caps.ExtraFormat[0].Video.BitRateOptions=448,2560
caps.ExtraFormat[0].Video.FPSMax=25
caps.SnapFormat[0].Video.CompressionTypes=JPEG
caps.SnapFormat[0].Video.ResolutionTypes=2048 x 1536,1080,SXGA, 1280 x 960,720,D1,CIF
caps.SnapFormat[0].Video.FPSMax=2
General APIs 70
Fixed Resolution Name Size in PAL Size in NTSC
"HD1" 352 x 576 352 x 480
"BCIF"/"2CIF" 704 x 288 704 x 240
"CIF" 352 x 288 352 x 240
"QCIF" 176 x 144 176 x 120
"NHD" 640 x 360 —
"VGA" 640 x 480 —
"QVGA" 320 x 240 —
"SVCD" 480 x 480 —
"QQVGA" 160 x 128 —
"SVGA" 800 x 592 —
"SVGA1" 800 x 600 —
"WVGA" 800 x 480 —
"FWVGA" 854 x 480 —
"DVGA" 960 x 640 —
DA
General APIs 71
Fixed Resolution Name Size in PAL Size in NTSC
"3840x2160" 3840x2160 —
"4096x2160" 4096x2160 —
"3072x2048" 3072x2048 —
0 = regular encode
HU
2 = alarm encode
HT
3= emergency encode
TP
e
AP
Unit is kbps 64
.3
GetAudioConfigCaps
fo
rV
8K~192K
gS
Range[10, 250]
+++Mode uint8 O code rate 0
Different encoding types have different
definitions:
"AMR" code rate
0: 4.75kbps,
1: 5.15 kbps,
2: 5.9 kbps,
3: 6.7 kbps,
4: 7.4 kbps,
5: 7.95 kbps,
6: 10.2 kbps,
7: 12.2 kbps,
G726 code rate
General APIs 72
0: 40kbps(default)
1: 16kbps
2: 24kbps
3: 32kbps
+++Pack char[16] O "DHAV","PS" "PS"
+++Channels uint[8] O List of accompanying audio channels [0, 1]
for this video channel
++VideoEnabl bool O True: enable video true
e
++Video object O video
+++Compressi char[16] O Range is {MPEG4, MPEG2, MPEG1, "H.264"
on MJPG, H.263, H.264, H.265, SVAC2}
Depends on capacity in
GetVideoConfigCaps
+++Width int O Video Width 720
+++Height int O Video height 576
DA
solutionName
A_
GetVideoConfigCaps
.3
in GetVideoConfigCaps
dn
Frame,
Example: GOP=50, means there is one
I frame every 49 P or B frames
+++QualityRa uint8 O quality range 6
nge 6~100, default 6
+++SVCTLaye int O Number of SVC-T layers 0
r The number of SVC-T layers is only
valid in H.264 encoding mode, 0 is not
used, and N represents the number of
layers 1-N in the SVC. The higher the
level, the less important it is. When N
is 1, the effect is the same as not
opening, that is, 0 and 1 have the
same effect. Default 0
General APIs 73
+++Quality int O Range is [1—QualityRange]. 4
Image Quality, available when
Video.BitRateControl=VBR
1: worst quality
QualityRange: best quality
+++Priority int O Range is 0 or 1 0
0 for Image Quality first
1 for Bitstream first
+++Pack char[16] O "DHAV","PS" "DHAV"
+++Profile char[16] O when video compression is H.264, "Baseline"
range is { Baseline, Main , Extended ,
High }
when video compression is H.265,
range is {"Main","Main10"}
+ExtraFormat object[] O extra stream, details refer to
MainFormat
DA
means:
A_
0 = extra stream 1
HT
1 = extra stream 2
TP
2 = extra stream 3
_
means:
7
0-normal snap
fo
2-alarm detection
el
se
n
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
gS
are as follows :
dn
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Encode
d
General APIs 74
table.Encode[0].MainFormat[0].Video.FPS=18
table.Encode[0].MainFormat[0].Video.GOP=36
table.Encode[0].MainFormat[0].Video.Height=1080
table.Encode[0].MainFormat[0].Video.Pack=PS
table.Encode[0].MainFormat[0].Video.Profile=High
table.Encode[0].MainFormat[0].Video.Quality=4
table.Encode[0].MainFormat[0].Video.QualityRange=6
table.Encode[0].MainFormat[0].Video.SVCTLayer=1
table.Encode[0].MainFormat[0].Video.Width=1920
table.Encode[0].MainFormat[0].Video.Priority=0
table.Encode[0].MainFormat[0].VideoEnable=true
table.Encode[0].MainFormat[1].Audio.Bitrate=64
table.Encode[0].MainFormat[1].Audio.Channels[0]=0
table.Encode[0].MainFormat[1].Audio.Compression=G.711A
table.Encode[0].MainFormat[1].Audio.Depth=16
table.Encode[0].MainFormat[1].Audio.Frequency=8000
DA
table.Encode[0].MainFormat[1].Audio.Mode=0
HU
table.Encode[0].MainFormat[1].Audio.Pack=PS
A_
table.Encode[0].MainFormat[1].AudioEnable=true
HT
table.Encode[0].MainFormat[1].Video.resolution=1920x1080
TP
table.Encode[0].MainFormat[1].Video.BitRate=4096
_
table.Encode[0].MainFormat[1].Video.BitRateControl=CBR
AP
table.Encode[0].MainFormat[1].Video.Compression=H.264
I_
V3
table.Encode[0].MainFormat[1].Video.CustomResolutionName=1080P
.3
table.Encode[0].MainFormat[1].Video.FPS=18
7
table.Encode[0].MainFormat[1].Video.GOP=36
fo
table.Encode[0].MainFormat[1].Video.Height=1080
rV
table.Encode[0].MainFormat[1].Video.Pack=PS
el
table.Encode[0].MainFormat[1].Video.Profile=High
se
n
table.Encode[0].MainFormat[1].Video.Quality=4
gS
table.Encode[0].MainFormat[1].Video.QualityRange=6
dn
table.Encode[0].MainFormat[1].Video.SVCTLayer=1
Bh
table.Encode[0].MainFormat[1].Video.Width=1920
d
table.Encode[0].MainFormat[1].Video.Priority=0
table.Encode[0].MainFormat[1].VideoEnable=true
table.Encode[0].MainFormat[2].Audio.Bitrate=64
table.Encode[0].MainFormat[2].Audio.Channels[0]=0
table.Encode[0].MainFormat[2].Audio.Compression=G.711A
table.Encode[0].MainFormat[2].Audio.Depth=16
table.Encode[0].MainFormat[2].Audio.Frequency=8000
table.Encode[0].MainFormat[2].Audio.Mode=0
table.Encode[0].MainFormat[2].Audio.Pack=PS
table.Encode[0].MainFormat[2].AudioEnable=true
table.Encode[0].MainFormat[2].Video.resolution=1920x1080
table.Encode[0].MainFormat[2].Video.BitRate=4096
table.Encode[0].MainFormat[2].Video.BitRateControl=CBR
table.Encode[0].MainFormat[2].Video.Compression=H.264
General APIs 75
table.Encode[0].MainFormat[2].Video.CustomResolutionName=1080P
table.Encode[0].MainFormat[2].Video.FPS=18
table.Encode[0].MainFormat[2].Video.GOP=36
table.Encode[0].MainFormat[2].Video.Height=1080
table.Encode[0].MainFormat[2].Video.Pack=PS
table.Encode[0].MainFormat[2].Video.Profile=High
table.Encode[0].MainFormat[2].Video.Quality=4
table.Encode[0].MainFormat[2].Video.QualityRange=6
table.Encode[0].MainFormat[2].Video.SVCTLayer=1
table.Encode[0].MainFormat[2].Video.Width=1920
table.Encode[0].MainFormat[2].Video.Priority=0
table.Encode[0].MainFormat[2].VideoEnable=true
table.Encode[0].MainFormat[3].Audio.Bitrate=64
table.Encode[0].MainFormat[3].Audio.Channels[0]=0
table.Encode[0].MainFormat[3].Audio.Compression=G.711A
table.Encode[0].MainFormat[3].Audio.Depth=16
DA
table.Encode[0].MainFormat[3].Audio.Frequency=8000
HU
table.Encode[0].MainFormat[3].Audio.Mode=0
A_
table.Encode[0].MainFormat[3].Audio.Pack=PS
HT
table.Encode[0].MainFormat[3].AudioEnable=true
TP
table.Encode[0].MainFormat[3].Video.resolution=704x576
_
table.Encode[0].MainFormat[3].Video.BitRate=2048
AP
table.Encode[0].MainFormat[3].Video.BitRateControl=VBR
I_
V3
table.Encode[0].MainFormat[3].Video.Compression=H.264
.3
table.Encode[0].MainFormat[3].Video.FPS=25
7
table.Encode[0].MainFormat[3].Video.GOP=50
fo
table.Encode[0].MainFormat[3].Video.Height=576
rV
table.Encode[0].MainFormat[3].Video.Pack=PS
el
table.Encode[0].MainFormat[3].Video.Profile=Main
se
n
table.Encode[0].MainFormat[3].Video.Quality=4
gS
table.Encode[0].MainFormat[3].Video.QualityRange=6
dn
table.Encode[0].MainFormat[3].Video.SVCTLayer=1
Bh
table.Encode[0].MainFormat[3].Video.Width=704
d
table.Encode[0].MainFormat[3].Video.Priority=0
table.Encode[0].MainFormat[3].VideoEnable=true
table.Encode[0].ExtraFormat[0].Audio.Bitrate=64
…
table.Encode[0].SnapFormat[0].Audio.Bitrate=64
…
General APIs 76
4.5.5 [Config] Encode of Region Interested
Config Data Params
Name Type R/O Description Example
VideoEncode object[] O ROI(Region of Intrest)
ROI Array.
One element for each channel, and the
array index represents the channel
number which starts from 0.
+Regions int[][4] O each point has x and y value, oordinate [, ]
remap to 0 — 8192.
+Quality uint8 O Image Quality, [1,6] 4
1: worst quality
6: best quality
+Main bool O Enable/Disable true
DA
Enable/Disable
_
k
I_
yTime default:60
.3
7
fo
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
rV
are as follows :
el
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoEncodeROI
ngS
table.VideoEncodeROI[0].Regions[0][0]=0
Bh
table.VideoEncodeROI[0].Regions[0][1]=0
d
table.VideoEncodeROI[0].Regions[0][2]=0
table.VideoEncodeROI[0].Regions[0][3]=0
table.VideoEncodeROI[0].Regions[1][0]=0
…
table.VideoEncodeROI[0].Quality=4,
table.VideoEncodeROI[0].Main=true,
table.VideoEncodeROI[0].Extra1=true,
table.VideoEncodeROI[0].Extra2=true,
table.VideoEncodeROI[0].Extra3=true,
table.VideoEncodeROI[0].Snapshot=true
table.VideoEncodeROI[0].DynamicTrack=true,
table.VideoEncodeROI[0].DynamicDelayTime=60
General APIs 77
http://10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&VideoEncodeROI[0].DynamicTrack=true
Set Config Response Example
OK
string.
+Name char[] R
HU
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
TP
are as follows :
_
AP
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=ChannelTitle
V3
table.ChannelTitle[0].Name=CAM1|123
7
fo
table.ChannelTitle[1].Name=CAM2|456
rV
…
el
se
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&ChannelTitle[0].Name=CAM1|123&
dn
ChannelTitle[1].Name=CAM2|456
Set Config Response Example
Bh
OK
d
General APIs 78
Response Example
result=1
Response Example
A_
result=2
HT
TP
_
Method GET
7
annels"
n
Request Example
gS
http://192.168.1.108/cgi-
dn
bin/magicBox.cgi?action=getProductDefinition&name=MaxRemoteInputChannels
Bh
d
General APIs 79
VideoStandard char[16] O range is {PAL, NTSC} "PAL"
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoStandard
Get Config Response Example
table.VideoStandard=PAL
BackColor[0]:red value
fo
rV
BackColor[1]:green value
BackColor[2]:blue value
el
se
FrontColor[0]:red value
dn
FrontColor[1]:green value
Bh
FrontColor[2]:blue value
d
General APIs 80
BackColor[1]:green value
BackColor[2]:blue value
BackColor[3]: alpha value
++FrontColor uint8[4] O Range is [0—255]. [255,255,255,0]
FrontColor[0]:red value
FrontColor[1]:green value
FrontColor[2]:blue value
FrontColor[3]: alpha value
++Rect uint16[4] O Range is [0—8191]. [147, 349, 2769,
Rect[0]: top left corner x coordinate 784]
(left)
Rect[1]: top left corner y coordinate
(top)
Rect[2]: bottom right x coordinate
(right)
Rect[3]: bottom right y coordinate
DA
(bottom)
HU
week
TP
BackColor[0]:red value
I_
BackColor[1]:green value
V3
BackColor[2]:blue value
.3
7
FrontColor[0]:red value
el
FrontColor[1]:green value
se
n
FrontColor[2]:blue value
gS
(left)
Rect[1]: top left corner y coordinate
(top)
Rect[2]: bottom right x coordinate
(right)
Rect[3]: bottom right y coordinate
(bottom)
++EncodeBlend bool O false - widget blend is not enabled. true
+UserDefinedTitle object[] O custom title
++Text char[1024] O Title content. Character '|' means "11|222"
newlines.
Limit: Support 2 lines at most.
++TextAlign uint O text alignment 0x0001
Default Right Alignment
General APIs 81
0x0000, left aligned
0x0001, align in X coordinate
0x0010, align in Y coordinate
0x0011, centered
0x0002, right aligned
0x0020, aligned at the top
0x0000, align according to bottom
0x0000, aligned according to the top
left corner
0x0100, line wrap alignment
++BackColor uint8[4] O Range is [0—255]. [0,0,0,128]
BackColor[0]:red value
BackColor[1]:green value
BackColor[2]:blue value
BackColor[3]: alpha value
++FrontColor uint8[4] O Range is [0—255]. [255,255,255,0]
DA
FrontColor[0]:red value
HU
FrontColor[1]:green value
A_
FrontColor[2]:blue value
HT
(left)
I_
(top)
.3
7
(right)
rV
(bottom)
se
n
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
Bh
are as follows :
d
General APIs 82
table.VideoWidget[0].ChannelTitle.Rect[2]=0
table.VideoWidget[0].ChannelTitle.Rect[3]=8191
…
table.VideoWidget[0].UserDefinedTitle[0].BackColor[0]=0
table.VideoWidget[0].UserDefinedTitle[0].BackColor[1]=0
table.VideoWidget[0].UserDefinedTitle[0].BackColor[2]=0
table.VideoWidget[0].UserDefinedTitle[0].BackColor[3]=128
table.VideoWidget[0].UserDefinedTitle[0].EncodeBlend=true
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[0]=255
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[1]=255
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[2]=255
table.VideoWidget[0].UserDefinedTitle[0].FrontColor[3]=0
table.VideoWidget[0].UserDefinedTitle[0].Rect[0]=0
table.VideoWidget[0].UserDefinedTitle[0].Rect[1]=8191
table.VideoWidget[0].UserDefinedTitle[0].Rect[2]=0
table.VideoWidget[0].UserDefinedTitle[0].Rect[3]=8191
DA
…
HU
A_
http://192.168.1.108/cgi-
TP
bin/configManager.cgi?action=setConfig&VideoWidget[1].Covers[0].BackColor[0]=128&VideoWidget[1].
_
Covers[0].BackColor[1]=128&VideoWidget[1].Covers[0].BackColor[2]=128&VideoWidget[1].Covers[0].B
AP
ackColor[3]=0
I_
OK
.3
7
fo
Method GET
gS
from 1.
Request Example
http://192.168.1.108/cgi-bin/devVideoInput.cgi?action=getCaps&channel=1
General APIs 83
0: don't support cover 1
+CoverType in O 1: support realtime cover
2: support non-realtime cover
+CustomManual true: support use defined manual false
bool, O
Exposure exposure time
true: support color alternate true
+DayNightColor bool O
between day and night.
true: support down scaling, binning true
+DownScaling bool O
mode not included.
Exposure grade. 0 — don't support 10
+Exposure int O
exposure control.
+ExternalSyncIn true: support HD signal external true
bool O
put synchronization.
+FlashAdjust bool O true: support flash adjust true
+Flip bool O true: support picture flip. true
+Gain bool O true: support gain control. true
DA
…
AP
+VerticalBinning int O
4 — support 4 pixel binning
rV
…
el
Unit is Kbps.
d
General APIs 84
+Mirror bool O true: support picture mirror. true
+NightOptions bool O true: support night options. true
+ReferenceLeve true
bool O true: support reference level.
l
true: support true
+Rotate90 bool O
clockwise/anticlockwise 90°rotate
+SetColor bool O true: support color set. true
It's a string contains supported Inside
video input signal formats for this
channel. Signal formats are
separated by comma.
+SignalFormats char[] O Range is {Inside, BT656, 720p,
1080p, 1080i, 1080sF, 1_3M}
Range is {0, 1, 2, 3} 3
I_
white balance.
rV
General APIs 85
caps.Backlight=2
caps.BrightnessCompensation=true
caps.ChipID=0
caps.CoverCount=4
caps.CoverType=1
caps.CustomManualExposure=true
caps.DayNightColor=true
caps.DayNightColorIO=false
caps.DoubleExposure=0
caps.DownScaling=false
caps.EEModeRange=100
caps.ElectricFocus=false
caps.Exposure=16
caps.ExposureMode=31
caps.ExternalSyncInput=false
caps.FishEye=false
DA
caps.FlashAdjust=false
HU
caps.Flip=true
A_
caps.FormatCount=5
HT
caps.Gain=true
TP
caps.GainAuto=true
_
caps.Gamma=true
AP
caps.GammaModeRange=100
I_
caps.GlareInhibition=1
V3
caps.HorizontalBinning=0
.3
7
caps.IRCUT=true
fo
caps.ImageEnhancement.LevelRange[0]=0
rV
caps.ImageEnhancement.LevelRange[1]=100
el
caps.ImageEnhancement.Support=true
se
caps.InfraRed=true
ngS
caps.Iris=true
dn
caps.IrisAuto=true
Bh
caps.LadenBitrate=972000
d
caps.LimitedAutoExposure=true
caps.MaxExposureTime=300.0
caps.MaxExposureTime1=0.0
caps.MaxHeight=1080
caps.MaxMultiProfile=3
caps.MaxWidth=1920
caps.MeteringRegionCount=0
caps.MinExposureTime=1.0
caps.MinExposureTime1=0.0
caps.Mirror=true
caps.MultiOptions=false
caps.NightOptions=true
caps.ReferenceLevel=false
caps.Rotate90=true
General APIs 86
caps.SetColor=true
caps.SignalFormats=Inside
caps.SignalType[0]=VGA
caps.SnapshotExposure=false
caps.SupportProfile=false
caps.SupportWhiteLevel=true
caps.SupportWriteLevel=false
caps.SyncChipChannels=false
caps.SyncFocus=false
caps.TitleCount=4
caps.TridimDenoise=2
caps.TridimDenoiseDetails=0
caps.UTC=0
caps.UpScaling=false
caps.Version=0
caps.VerticalBinning=0
DA
caps.VideoInDenoise.2D.LevelRange[0]=0
HU
caps.VideoInDenoise.2D.LevelRange[1]=100
A_
caps.VideoInDenoise.2D.Support=true
HT
caps.VideoInDenoise.3D.3DAutoType.ModRange[0]=0
TP
caps.VideoInDenoise.3D.3DAutoType.ModRange[1]=100
_
caps.VideoInDenoise.3D.Support=true
AP
caps.VideoInDenoise.Support=true
I_
caps.WhiteBalance=3
V3
caps.WideDynamicRange=1
.3
7
caps.VideoInIR.SupportIRPlateMode=false
fo
caps.Flicker.Support=0,
rV
caps.Flicker.MaxAmplitude= 0,
el
caps.Flicker.MaxBiasing=0
se
caps.KillShutLine.Support=false,
n gS
caps.KillShutLine.MaxChannels=1,
dn
caps.KillShutLine.MinKillShutLine=0,
Bh
caps.KillShutLine.MaxKillShutLine=0
d
General APIs 87
relative coordinates, range is 0- [500,500,5000,5000]
8192.{0,0,0,0} top-left,
rect int[4] R {8192,0,0,0} top-right,
{0,8192,0,0} bottom-left,
{8192,8192,0,0} bottom-right
Response Example
rect[0]=500
rect[1]=500
rect[2]=5000
rect[3]=5000
from 1.
HT
8192
I_
+rect int[] O
{0,0,0,0} top-left,
V3
{8192,0,0,0} top-right,
.3
7
{0,8192,0,0} bottom-left,
fo
{8192,8192,0,0} bottom-right
rV
Request Example
el
http://192.168.1.108/cgi-
se
n
bin/devVideoInput.cgi?action=setCurrentWindow&channel=1&rect[0]=0&rect[1]=0&rect[2]=5000&rect
gS
[3]=5000
dn
Bh
General APIs 88
+Color object O video out color
++Brightness uint8 O Brightness 50
0~100
++Contrast uint8 O Contrast 50
0~100
++Saturation uint8 O Saturation 50
0~100
++Hue uint8 O Hue 50
0~100
+Mode object O mode
++Width int O Resolution 800
++Height int O Resolution 600
++BPP int O Bits per pixel. 16
++Format char[16] O The range is "VGA"
{"Auto","TV","VGA","DVI","HDMI",
"SPOT","SDI", "HDMI/VGA"}.
DA
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
HT
are as follows :
TP
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=VideoOut
AP
table.VideoOut[0].Margin[0]=0
table.VideoOut[0].Margin[1]=0
.3
7
table.VideoOut[0].Margin[2]=0
fo
table.VideoOut[0].Margin[3]=0
rV
table.VideoOut[0].Color.Brightness=50
el
table.VideoOut[0].Color.Contrast=50
se
n
table.VideoOut[0].Color.Satuation=50
gS
table.VideoOut[0].Color.Hue=50
dn
table.VideoOut[0].Mode.Width=800
Bh
table.VideoOut[0].Mode.Height=600
d
table.VideoOut[0].Mode.BPP=16
table.VideoOut[0].Mode.Format="Auto"
table.VideoOut[0].Mode.RefreshRate=60
…
General APIs 89
Name Type R/O Description Example
SmartEncode object[] O Smart Encode config. Array.
One element for each channel,
and the array index represents
the channel number which starts
from 0.
+Enable bool O Open or close the smart encode true
of the main stream.
+Extra bool[] O Open or close the smart encode [true]
of the extra stream.
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=SmartEncode
Get Config Response Example
DA
table.SmartEncode[0].Enable=false
HU
table.SmartEncode[0].Extra[0]=false
A_
table.SmartEncode[0].Extra[1]=false
HT
…
TP
_
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&SmartEncode[0].Enable=true
I_
OK
.3
7
fo
Method GET
gS
Request Example
d
http://192.168.1.108/cgi-bin/DevVideoDec.cgi?action=getCaps
General APIs 90
Video.StreamType[0]=h264
Video.StreamType[1]=h265
Video.LadenBitrate=7776000
1—1]
A_
8192.
.3
remap to 0 — 8192.
n
is 0-255
dn
0: no mosaic
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=PrivacyMasking
Get Config Response Example
table.PrivacyMasking[0][0].Enable=true
table.PrivacyMasking[0][0].Postion[0]=0.0
General APIs 91
table.PrivacyMasking[0][0].Postion[1]=0.0
table.PrivacyMasking[0][0].Postion[2]=1.0
table.PrivacyMasking[0][0].ShapeType=Rect
table.PrivacyMasking[0][0].Rect[0]=0
table.PrivacyMasking[0][0].Rect[1]=0
table.PrivacyMasking[0][0].Rect[2]=50
table.PrivacyMasking[0][0].Rect[3]=100
table.PrivacyMasking[0][0].Color[0]=128
table.PrivacyMasking[0][0].Color[1]=128
table.PrivacyMasking[0][0].Color[2]=128
table.PrivacyMasking[0][0].Color[3]=255
table.PrivacyMasking[0][0].Mosaic=8
table.PrivacyMasking[0][0].ViewAngle=30.0
table.PrivacyMasking[0][1].Enable=true
…
DA
http://192.168.1.108/cgi-
A_
bin/configManager.cgi?action=setConfig&PrivacyMasking[0][0].Enable=true&PrivacyMasking[0][0].Posti
HT
on[0]=0.0&PrivacyMasking[0][0].Postion[1]=0.0&PrivacyMasking[0][0].Postion[2]=1.0&PrivacyMasking[0
TP
][0].ShapeType=Rect&PrivacyMasking[0][0].Rect[0]=0&PrivacyMasking[0][0].Rect[1]=0&PrivacyMasking
_
[0][0].Rect[2]=50&PrivacyMasking[0][0].Rect[3]=100&PrivacyMasking[0][0].Mosaic=8&PrivacyMasking[0
AP
][0].ViewAngle=30.0
I_
OK
.3
7
fo
Method GET
gS
from 1
Offset in the result record set, 2
offset int R
range is [0, Total – 1].
limit int R Count of result to get. 5
Request Example
http://192.168.1.108/cgi-
bin/PrivacyMasking.cgi?action=getPrivacyMasking&channel=1&offset=2&limit =5
General APIs 92
+Name char[] O PrivacyMasking name "Privacy Masking1"
+Enable int R 1: enable; 0: disable 1
Shape type,can be: "Rect", "Rect"
+ShapeType char[] O
"Polygon"
It is valid if ShapeType is Rect , [0,0,50,100]
top left and bottom right point,
+Rect int[] O
each point has x and y value,
oordinate remap to 0 — 8192.
It is valid if ShapeType is Polygon [[],[],[]]
the first array is point list,
minimum item is 3, the second
+Polygon int[][] O
array is point, must be two int,
means x and y value, coordinate
remap to 0 — 8192.
Mask color, RGBA color, 4 integer []
+Color int[] O
range is 0-255
DA
24, 32}
A_
0: no mosaic
HT
Response Example
V3
total=5
.3
7
PrivacyMasking[0].Index=0
fo
PrivacyMasking[0].Name=Privacy Masking1
rV
PrivacyMasking[0].Enable=1
el
PrivacyMasking[0].ShapeType=Polygon
se
n
PrivacyMasking[0].Polygon[0][0]= 0
gS
PrivacyMasking[0].Polygon[0][1]=0
dn
PrivacyMasking[0].Polygon[1][0]=128
Bh
PrivacyMasking[0].Polygon[1][1]=128
d
PrivacyMasking[0].Polygon[2][0]=256
PrivacyMasking[0].Polygon[2][1]=200
…
PrivacyMasking[0].Color[0]=128,
PrivacyMasking[0].Color[1]=128,
PrivacyMasking[0].Color[2]=128,
PrivacyMasking[0].Color[3]=255,
PrivacyMasking[0].Mosaic=8,
PrivacyMasking[1].Index =1,
PrivacyMasking[1].Enable=1,
…
General APIs 93
4.5.20 Set Privacy Masking
Request URL http://<server>/cgi-bin/PrivacyMasking.cgi?action=setPrivacyMasking
Method GET
Request Params ( key=value format at URL )
Name Type R/O Description Example
channel int R video channel index which starts 2
from 1
PrivacyMasking object R Privacy masking config
Index of PrivacyMasking which 3
+Index int R
starts from 0
+Name char[] O PrivacyMasking name "Privacy Masking1"
+Enable int R 1: enable; 0: disable 1
Shape type,can be: “Rect”, "Rect"
+ShapeType char[] R
“Polygon”
DA
+Rect int[] O
oordinate remap to 0 — 8192.
HT
"Rect"
_ AP
+Polygon int[][] O
fo
remap to 0 — 8192.
el
"Polygon"
n gS
24, 32}
0: no mosaic
+Mosaic int R 8: mosaic size 8*8
16: mosaic size 16*16
24: mosaic size 24*24
32: mosaic size 32*32
Request Example
http://192.168.1.108/cgi-
bin/PrivacyMasking.cgi?action=setPrivacyMasking&channel=2&PrivacyMasking.Index=3&PrivacyMa
sking.Name=Privacy%20Masking1&PrivacyMasking.Enable=1&PrivacyMasking.ShapeType=Rect&P
rivacyMasking.Rect[0]=0&PrivacyMasking.Rect[1]=0&PrivacyMasking.Rect[2]=50&PrivacyMasking.R
ect[3]=100&PrivacyMasking.Mosaic=8
General APIs 94
Response Params ( OK in body )
Name Type R/O Description Example
Response Example
OK
Request Example
HU
http://192.168.1.108/cgi-bin/PrivacyMasking.cgi?action=gotoPrivacyMasking&channel=2&index=3
A_
HT
Response Example
I_
OK
V3
.3
7
Method GET
n gS
from 1
d
General APIs 95
4.5.23 Clear Privacy Masking
Request URL http://<server>/cgi-bin/PrivacyMasking.cgi?action=clearPrivacyMasking
Method GET
Request Params ( key=value format at URL )
Name Type R/O Description Example
channel int R video channel index which starts 2
from 1
Request Example
http://192.168.1.108/cgi-bin/PrivacyMasking.cgi?action=clearPrivacyMasking&channel=2
Method GET
AP
from 1
fo
index int R
starts from 0
el
Request Example
se
http://192.168.1.108/cgi-bin/PrivacyMasking.cgi?action=getRealRect&channel=2&index=1
n gS
dn
General APIs 96
+Enable bool O Enable/Disable motion detect true
feature in a channel.
+PtzManualEna bool O Enable/Disable manual control Ptz, true
ble only for Hahua devices
+OsdTwinkleEna bool O Osd Twinkle Enable true
ble default : false
+Row int O motion detect row number 18
+Col int O motion detect colum number 22
+Level uint8 O sensitive ,range 1-6 3
+TimeDivide object[] O
++TimeSchedule TimeSchedu O TimeSchedule
le
++Level uint8 O sensitive in timesection, different 4
with global sensitive.
+DetectVersion char[32] O detect version "V1.0"
+PirMotionEnabl bool O false
DA
level
HT
+Region int[] O [
AP
4194303,
I_
Region 3216384,
V3
…
.3
7
]
fo
er described in SetEventHandler.
el
indow
gS
General APIs 97
MotionDetect [0].Region [0] =
4194303 (0x3FFFFF): the 22 blocks
in channel 0 line 0 is monitored.
MotionDetect [0].Region [1] =0: the
22 blocks in channel 0 line 1 is not
monitored.
MotionDetect [0].Region [17] = 3:
the left two blocks in the last line of
channel 0 is monitored.
++Id int O It is the Id of a detect window. 33
++Name char[256] O It is the name of a detect window. "Region1"
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=MotionDetect
DA
table.MotionDetect[0].Enable=false
A_
table.MotionDetect[0].EventHandler.AlarmOut=1
HT
table.MotionDetect[0].EventHandler.AlarmOutChannels[0]=0
TP
table.MotionDetect[0].EventHandler.AlarmOutEnable=true
_
table.MotionDetect[0].EventHandler.AlarmOutLatch=10
AP
table.MotionDetect[0].EventHandler.BeepEnable=false
I_
V3
table.MotionDetect[0].EventHandler.Dejitter=5
.3
table.MotionDetect[0].EventHandler.Delay=0
7
table.MotionDetect[0].EventHandler.ExAlarmOut=1
fo
table.MotionDetect[0].EventHandler.ExAlarmOutChannels[0]=0
rV
table.MotionDetect[0].EventHandler.ExAlarmOutEnable=false
el
se
table.MotionDetect[0].EventHandler.FlashEnable=false
n
table.MotionDetect[0].EventHandler.FlashLatch=10
gS
table.MotionDetect[0].EventHandler.LogEnable=true
dn
table.MotionDetect[0].EventHandler.MailEnable=false
Bh
table.MotionDetect[0].EventHandler.Matrix=1
d
table.MotionDetect[0].EventHandler.MatrixChannels[0]=0
table.MotionDetect[0].EventHandler.MatrixEnable=false
table.MotionDetect[0].EventHandler.MessageEnable=false
table.MotionDetect[0].EventHandler.PtzLink[0][0]=None
table.MotionDetect[0].EventHandler.PtzLink[0][1]=1
table.MotionDetect[0].EventHandler.PtzLinkEnable=false
table.MotionDetect[0].EventHandler.Record=1
table.MotionDetect[0].EventHandler.RecordChannels[0]=0
table.MotionDetect[0].EventHandler.RecordEnable=true
table.MotionDetect[0].EventHandler.RecordLatch=10
table.MotionDetect[0].EventHandler.Snapshot=1
table.MotionDetect[0].EventHandler.SnapshotChannels[0]=0
table.MotionDetect[0].EventHandler.SnapshotEnable=false
table.MotionDetect[0].EventHandler.TimeSection[0][0]=1 00:00:00-23:59:59
General APIs 98
table.MotionDetect[0].EventHandler.TimeSection[0][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[0][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[0][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[0][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[0][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][4]=0 00:00:00-23:59:59
DA
table.MotionDetect[0].EventHandler.TimeSection[2][5]=0 00:00:00-23:59:59
HU
table.MotionDetect[0].EventHandler.TimeSection[3][0]=1 00:00:00-23:59:59
A_
table.MotionDetect[0].EventHandler.TimeSection[3][1]=0 00:00:00-23:59:59
HT
table.MotionDetect[0].EventHandler.TimeSection[3][2]=0 00:00:00-23:59:59
TP
table.MotionDetect[0].EventHandler.TimeSection[3][3]=0 00:00:00-23:59:59
_
table.MotionDetect[0].EventHandler.TimeSection[3][4]=0 00:00:00-23:59:59
AP
table.MotionDetect[0].EventHandler.TimeSection[3][5]=0 00:00:00-23:59:59
I_
V3
table.MotionDetect[0].EventHandler.TimeSection[4][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[4][1]=0 00:00:00-23:59:59
.3
7
table.MotionDetect[0].EventHandler.TimeSection[4][2]=0 00:00:00-23:59:59
fo
table.MotionDetect[0].EventHandler.TimeSection[4][3]=0 00:00:00-23:59:59
rV
table.MotionDetect[0].EventHandler.TimeSection[4][4]=0 00:00:00-23:59:59
el
table.MotionDetect[0].EventHandler.TimeSection[4][5]=0 00:00:00-23:59:59
se
n
table.MotionDetect[0].EventHandler.TimeSection[5][0]=1 00:00:00-23:59:59
gS
table.MotionDetect[0].EventHandler.TimeSection[5][1]=0 00:00:00-23:59:59
dn
table.MotionDetect[0].EventHandler.TimeSection[5][2]=0 00:00:00-23:59:59
Bh
table.MotionDetect[0].EventHandler.TimeSection[5][3]=0 00:00:00-23:59:59
d
table.MotionDetect[0].EventHandler.TimeSection[5][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[5][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[6][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[6][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[6][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[6][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[6][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[6][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TipEnable=false
table.MotionDetect[0].EventHandler.Tour=1
table.MotionDetect[0].EventHandler.TourChannels[0]=0
table.MotionDetect[0].EventHandler.TourEnable=false
table.MotionDetect[0].EventHandler.Voice.AudioFileName=
table.MotionDetect[0].EventHandler.VoiceEnable=false
General APIs 99
table.MotionDetect[0].MotionDetectWindow[0].Id=0
table.MotionDetect[0].MotionDetectWindow[0].Name=Region1
table.MotionDetect[0].MotionDetectWindow[0].Region[0]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[1]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[2]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[3]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[4]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[5]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[6]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[7]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[8]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[9]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[10]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[11]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[12]=4194303
table.MotionDetect[0].MotionDetectWindow[0].Region[13]=4194303
DA
table.MotionDetect[0].MotionDetectWindow[0].Region[14]=4194303
HU
table.MotionDetect[0].MotionDetectWindow[0].Region[15]=4194303
A_
table.MotionDetect[0].MotionDetectWindow[0].Region[16]=4194303
HT
table.MotionDetect[0].MotionDetectWindow[0].Region[17]=4194303
TP
table.MotionDetect[0].MotionDetectWindow[0].Sensitive=60
_
table.MotionDetect[0].MotionDetectWindow[0].Threshold=5
AP
table.MotionDetect[0].MotionDetectWindow[0].Window[0]=0
I_
V3
table.MotionDetect[0].MotionDetectWindow[0].Window[1]=0
table.MotionDetect[0].MotionDetectWindow[0].Window[2]=8191
.3
7
table.MotionDetect[0].MotionDetectWindow[0].Window[3]=8191
fo
table.MotionDetect[0].MotionDetectWindow[1].Id=1
rV
table.MotionDetect[0].MotionDetectWindow[1].Name=Region2
el
table.MotionDetect[0].MotionDetectWindow[1].Region[0]=0
se
n
table.MotionDetect[0].MotionDetectWindow[1].Region[1]=0
gS
table.MotionDetect[0].MotionDetectWindow[1].Region[2]=0
dn
table.MotionDetect[0].MotionDetectWindow[1].Region[3]=0
Bh
table.MotionDetect[0].MotionDetectWindow[1].Region[4]=0
d
table.MotionDetect[0].MotionDetectWindow[1].Region[5]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[6]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[7]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[8]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[9]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[10]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[11]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[12]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[13]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[14]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[15]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[16]=0
table.MotionDetect[0].MotionDetectWindow[1].Region[17]=0
table.MotionDetect[0].MotionDetectWindow[1].Sensitive=60
table.MotionDetect[0].MotionDetectWindow[2].Region[9]=0
HU
table.MotionDetect[0].MotionDetectWindow[2].Region[10]=0
A_
table.MotionDetect[0].MotionDetectWindow[2].Region[11]=0
HT
table.MotionDetect[0].MotionDetectWindow[2].Region[12]=0
TP
table.MotionDetect[0].MotionDetectWindow[2].Region[13]=0
_
table.MotionDetect[0].MotionDetectWindow[2].Region[14]=0
AP
table.MotionDetect[0].MotionDetectWindow[2].Region[15]=0
I_
V3
table.MotionDetect[0].MotionDetectWindow[2].Region[16]=0
table.MotionDetect[0].MotionDetectWindow[2].Region[17]=0
.3
7
table.MotionDetect[0].MotionDetectWindow[2].Sensitive=60
fo
table.MotionDetect[0].MotionDetectWindow[2].Threshold=5
rV
table.MotionDetect[0].MotionDetectWindow[2].Window[0]=0
el
table.MotionDetect[0].MotionDetectWindow[2].Window[1]=0
se
n
table.MotionDetect[0].MotionDetectWindow[2].Window[2]=0
gS
table.MotionDetect[0].MotionDetectWindow[2].Window[3]=0
dn
table.MotionDetect[0].MotionDetectWindow[3].Id=3
Bh
table.MotionDetect[0].MotionDetectWindow[3].Name=Region4
d
table.MotionDetect[0].MotionDetectWindow[3].Region[0]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[1]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[2]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[3]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[4]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[5]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[6]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[7]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[8]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[9]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[10]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[11]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[12]=0
table.MotionDetect[0].MotionDetectWindow[3].Region[13]=0
onDetect[0].MotionDetectWindow[0].Region[1]=1&MotionDetect[0].MotionDetectWindow[0].Region[2]
HU
=1&MotionDetect[0].MotionDetectWindow[0].Region[3]=1&MotionDetect[0].MotionDetectWindow[0].R
A_
egion[4]=1&MotionDetect[0].DetectVersion=V3.0
HT
OK
_ AP
I_
V3
LAEConfig object O
el
se
alternative
A_
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
_
are as follows :
AP
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=LAEConfig
V3
table.LAEConfig.Enable=true
fo
table.LAEConfig.ManulEn=1
rV
table.LAEConfig.YSIGMA =1
el
table.LAEConfig.Dethr =1
se
n
table.LAEConfig.STS =1
gS
table.LAEConfig.GauFilter0=1
dn
table.LAEConfig.GauFilter1=1
Bh
table.LAEConfig.GauFilter2=1
d
table.LAEConfig.UVGauFilter0=1
table.LAEConfig.UVGauFilter1=1
table.LAEConfig.UVGauFilter2=1
table.LAEConfig.UVSigma =1
table.LAEConfig.EEGauFilter0=1
table.LAEConfig.EEGauFilter1=1
table.LAEConfig.EEGauFilter2=1
table.LAEConfig.EEratio =1
table.LAEConfig.GEnable =1
table.LAEConfig.GainLevel =1
table.LAEConfig.DebugPin =1
http://192.168.1.108/cgi-
HU
bin/PrivacyMasking.cgi?action=setPrivacyMaskingEnable&channel=2&Enable=true
A_
HT
Response Example
I_
OK
V3
.3
from 1
Bh
Request Example
d
http://192.168.1.108/cgi-bin/PrivacyMasking.cgi?action=getPrivacyMaskingEnable&channel=2
0 for never
AP
failed
+LoginFailLockTime int O 1800
.3
Unit seconds
fo
Unit seconds
el
+LocalPolicy object O
se
0 for never
Bh
failed
++LoginFailLockTime int O Login failure lock time 1800
Unit seconds
+ActivationTime char[24] O Date when the device started "2000-01-01 00:00:00"
using, date format: "yyyy-MM-dd
HH:mm:ss"
range "2000-01-01 00:00:00",
"2099-01-01 00:00:00"
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=General
Get Config Response Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&General.MachineName=MyIPC
A_
OK
TP
_
Method GET
.3
7
Request Example
el
se
http://192.168.1.108/cgi-bin/global.cgi?action=getCurrentTime
ngS
result char[20] O The time format is "Y-M-D H-m-S". It's 2011-7-3 21:02:32
d
time title.
A_
hour:mm:ss.
TP
be exchanged.
I_
V3
with century.
fo
is 0-23
h = 1 for 1:00, hh = 01 for 1:00, time
range is 1-12
Example:
yyyy-MM-dd HH:mm:ss or
MM-dd-yyyy HH:mm:ss or
dd-M-yy hh:mm:ss
+DSTEnable bool O Enable/Disable DST (daylight saving false
time)
+DSTStart object O DST start time
++Year int O Range is [2000-2038] 0
++Month int O Range is [1—12] 1
++Week int O Range is {1, 2, 3, 4, -1, 0}. 1
= fourth, -1 = last.
TP
Saturday
I_
If Locales.DSTEnd.Week is 0, use
.3
7
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
gS
are as follows :
dn
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Locales
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
7
are as follows :
fo
rV
table.Holiday.MonthMask[0]=3
gS
table.Holiday.MonthMask[1]=0
dn
table.Holiday.MonthMask[2]=0
Bh
table.Holiday.MonthMask[3]=0
d
table.Holiday.MonthMask[4]=0
table.Holiday.MonthMask[5]=0
table.Holiday.MonthMask[6]=0
table.Holiday.MonthMask[7]=0
table.Holiday.MonthMask[8]=0
table.Holiday.MonthMask[9]=1610612739
table.Holiday.MonthMask[10]=0
table.Holiday.MonthMask[11]=0
German }
HT
Response Example
TP
Languages=SimpChinese,English,French
_
AP
from interface in
n
GetLanguageCaps
gS
dn
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
Bh
are as follows :
d
Method GET
_
Request Example
I_
V3
http://192.168.1.108/cgi-bin/magicBox.cgi?action=getHardwareVersion
.3
7
xx.xx.
n
Response Example
version=1.00
Response Example
A_
name=my machine
HT
TP
Method GET
7
fo
Request Example
el
http://192.168.1.108/cgi-bin/magicBox.cgi?action=getSystemInfoNew
se
ngS
info.SyncTime.Strategy=“PerLogin”,
HU
info.2DCode=“123456”,
A_
info.TotalRunTime=123456
HT
info.cameraNum=0
TP
info.cardReader=false
_
info.flashID[0]=200
AP
info.flashID[1]=209
I_
info.flashID[2]=128
V3
info.flashID[3]=149
.3
7
info.flashID[4]=64
fo
info.flashID[5]=127
rV
info.flashID[6]=127
el
info.flashID[7]=200
se
n
info.hasRTC=true
gS
dn
Method GET
_
Request Example
7
http://192.168.1.108/cgi-bin/IntervideoManager.cgi?action=getVersion&Name=Onvif
fo
rV
el
version=2.4.2
Bh
d
Response Example
HT
class=HDVR
TP
_
0~6 = Sunday~Saturday
gS
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=AutoMaintain
Get Config Response Example
table.AutoMaintain.AutoRebootDay=3
table.AutoMaintain.AutoRebootHour=0
table.AutoMaintain.AutoRebootMinute=0
table.AutoMaintain.AutoShutdownDay=1
DA
table.AutoMaintain.AutoShutdownHour=0
HU
table.AutoMaintain.AutoShutdownMinute=0
A_
table.AutoMaintain.AutoStartUpDay=1
HT
table.AutoMaintain.AutoStartUpHour=2
TP
table.AutoMaintain.AutoStartUpMinute=0
_ AP
http://10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&AutoMaintain.AutoRebootDay=7
V3
OK
fo
rV
el
se
4.6.19 Reboot
ngS
Method GET
Bh
4.6.20 Shutdown
Request URL http://<server>/cgi-bin/magicBox.cgi?action=shutdown
Method GET
Request Params ( none )
specific parameters;
TP
of the Type is 0.
n
Request Example
gS
http://192.168.1.108/cgi-bin/magicBox.cgi?action=resetSystemEx&type=0
dn
Bh
Response Example
OK
elements as addCameraByDevice.
++DeviceInfo object R Device details
A_
default.
_AP
default.
.3
default.
el
R Protocol Type
+++ProtocolTy
dn
support configuration
A_
Response Example
HT
{
TP
"group": [{
_
AP
"deviceID": "uuid:4848",
"cameras": [{
I_
V3
"uniqueChannel": 1,
.3
"failedCode": 1
7
},…{}]
fo
},…{}]
rV
}
el
se
n
Method POST
Request Params ( JSON format in body )
Name Type R/O Description Example
group object[] O
+uniqueChannels int[] O unique channel list [1…3]
When the array size is 1 and the
element value is - 1, it indicates
that all channels under the
"DeviceID" device are deleted
+DeviceID char[128] O Device ID, "DH12345678910"
returned by method
addCameraByGroup.
When the "uniqueChannels"
array size is 1 and the element
Response Example
HT
{
TP
"info": [{
_
"failedCode": 0,
AP
"deviceID": "DH12345678910",
I_
V3
"uniqueChannel": 1
.3
},…{}]
7
}
fo
rV
el
Customer requests to obtain camera information, such as MAC address and SN, through CGI
dn
commands.
Bh
Method GET
Request Params ( key=value format in Url )
Name Type R/O Description Example
Request Example
http://192.168.1.108/cgi-bin/LogicDeviceManager.cgi?action=getCameraAll
DeviceInfo.
AP
same time.
fo
DeviceInfo. We recommend
gS
add/delete devices.
True: Add devices.
False: delete devices from the
channel.
A device can be added only when
"DeviceID" is " " and Info is not
NULL.
++Enable bool O The device is enabled or not. true
++EncryptStrea int O Device stream encryption 0
m algorithm (custom field for NVR).
(If other encryption algorithms are
used, refer to the encryption type
definition in stream format code
0x95).
UserName/Password is not
HT
required.
TP
}
_
of the RemoteDevice
rV
configuration.
el
se
enumchar[32]{
n
"Private"
gS
"Dahua2"
dn
"Dahua3"
Bh
"General"
d
"Onvif"
"Ehome"
“ICC”: The special protocol for the
central Intelligence platform. It
has not been reviewed, therefore
it is not allowed to add the
protocol type in this way in the
future.
"DahuaDSS": The special
protocol for the central
Intelligence platform. It has not
been reviewed, therefore it is not
allowed to add the protocol type
in this way in the future.
on 150311"
TP
e device. 00:00:00"
I_
HH:mm:ss”
.3
Second"
fo
rV
/*Minimum date*/
se
"2099-01-01
n
00:00:00",/*Maximum date*/}
gS
storage node
d
(DataNodeManager.addDataNod
e) in N + M cluster mode.
++Mac char[] O MAC address "08:00:20:0A:8C:6D"
++OEMVendor char[] O OEM vendor type. "XXX"
During cloud update, for some
vendors, the Vendor field is
displayed as OEM, and
OEMVendor is added to indicate
the actual vendor information.
OEMVendor is the same as
Vendor by default. If OEMVendor
is defined in the product
cascading channel.
_
}
AP
] enumchar[32]{
"Main": Main stream
.3
7
appropriate stream.
gS
stream.
Bh
audio stream).
}
+Channel uint O Channel number of the remote 0
device (optional).
DeviceID is unique.
+UniqueChannel int O Unique channel number of 0
uniform device number
(required).
You can obtain video/audio
streams by specifying the
channel number with 0x11/0xF4
second-generation protocol.
Notes: When implementing any
addressing function of
(N+0 cluster).
_
Compatible process:
fo
reset automatically.
gS
non-zero to zero), if
AutoReset=true, the device will
actively enable the channel to be
idle (that is, the video source
attribute Enable=false ).
+VideoStandard enumchar[32 O Current video standard "PAL"
] enumchar[32]{
"PAL"
"NTSC"
"SECAM"
}
+Label enumchar[32 O Device label "Indoor"
] enumchar[32]{
"Indoor": Indoor
camera[0].DeviceInfo.Enable=true
HU
camera[0].DeviceInfo.EncryptStream=0
A_
camera[0].DeviceInfo.Adress=10.6.5.10
HT
camera[0].DeviceInfo.Port=37777
TP
camera[0].DeviceInfo.usePreSecret=1
_
camera[0].DeviceInfo.UserName=admin
AP
camera[0].DeviceInfo.Password=pass123456
I_
V3
camera[0].DeviceInfo.ProtocolType=Private
.3
camera[0].DeviceInfo.SoftwareVersion=2.420.0000006.0.R.150311
7
…
fo
camera[0].DeviceID= dev123
rV
camera[0].ImageInfo. FilePath=/var/local/ch1.jpg"
el
se
camera[0].PasswordGenType=UserInput
n
…
gS
camera[1].ControlID=5002
dn
status)
TP
enumchar[12]{
AP
"Connecting"
I_
V3
"Connected"
.3
information.
el
se
--<boundary>
Content-Type: application/json
Content-Length: <data length>
Heartbeat
--<boundary>
…
Method POST
HU
Request Example
TP
http://192.168.1.108/cgi-bin/api/MagicBox/getCompleteMachineVersion
_ AP
hineVersion
fo
Response Example
rV
{
el
se
"CompleteMachineVersion": "S2"
n
}
gS
dn
Bh
channels.
HT
Request Example
TP
{
_
"uniqueChannels": [-1]
AP
}
I_
V3
.3
State enumchar[12]{
gS
"Connecting": connecting.
dn
connect
"Empty”: The channel is not
configured or configured into ""
"Disable": The channel is configured
but disabled.
"UnInited": the front-end devices are
not initialized.
"Hibernation": hibernate
}
++capsState bool O Represents whether the current true
channel can get capacity from the
front-end devices.
++errorMessa char[128] O Reason for failed to connect "LoginConnectFailed"
ge
"states" : [ {
HU
"channel" : 0,
A_
"connectionState" : "Connecting",
HT
"capsState": true,
TP
"errorMessage": "LoginConnectFailed"
_
}, …, {}]
AP
}
I_
V3
.3
Method POST
se
n
Request Example
Bh
{}
d
"State" : 1
HU
},
A_
"Extra1" : {},
HT
"Extra2" : {},
TP
"Extra3" : {}
_
}, …, {}]
AP
}
I_
V3
.3
user.AuthorityList[0]=AuthUserMag
HU
user.AuthorityList[1]=Monitor_01
A_
user.AuthorityList[2]=Replay_01
HT
user.AuthorityList[3]=AuthSysCfg
TP
user.AuthorityList[4]=AuthSysInfo
_
user.AuthorityList[5]=AuthManuCtr
AP
I_
V3
.3
Method GET
se
Request Example
http://192.168.1.108/cgi-bin/userManager.cgi?action=getUserInfoAll
Bh
d
user[0].AuthorityList[5]=AuthManuCtr
HU
…
A_
HT
TP
Method GET
.3
Request Example
el
http://192.168.1.108/cgi-bin/userManager.cgi?action=getActiveUserInfoAll
se
n gS
+Name char[128] O The device has one or two default user "admin"
HU
replaying authorities.
I_
Response Example
V3
group.Name=admin
.3
7
group.Memo=administrator group
fo
group.AuthorityList[0]=AuthUserMag
rV
group.AuthorityList[1]=Monitor_01
el
group.AuthorityList[2]=Replay_01
se
group.AuthorityList[3]=AuthSysCfg
n gS
group.AuthorityList[4]=AuthSysInfo
dn
group.AuthorityList[5]=AuthManuCtr
Bh
…
d
…
HU
group[1].Id=1
A_
group[1].Name=user
HT
group[1].Memo=user group
TP
group[1].AuthorityList[0]=Monitor_01
_
…
AP
I_
V3
.3
Method GET
n gS
Response Example
OK
A_
HT
Method GET
.3
7
authorities.
d
Response Example
HU
OK
A_
HT
TP
Method GET
7
modified
n
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=LoginAuthCtrl
DA
table.LoginAuthCtrl.PriSvrPolicy=1
A_
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&LoginAuthCtrl.PriSvrPolicy=2
TP
OK
I_
V3
.3
4.8 Network
7
fo
rV
Method GET
dn
Request Example
http://192.168.1.108/cgi-bin/netApp.cgi?action=getInterfaces
+ConnStatus "Connected"
32] "Down": close
HU
"Connecting"
HT
"Connected"
TP
}
_
network card
fo
bool true
PoE distance POE speed negotiation
el
se
Response Example
n
netInterface[0].Name=eth0
gS
netInterface[0].Type=Normal
dn
netInterface[0].Valid=true
Bh
netInterface[0].NetCardName=eth0
d
netInterface[0].ConnStatus=Connected
netInterface[0].Speed=100
netInterface[0].PhysicalAddress=00:10:5C:F2:1C:B4
netInterface[0].SupportLongPoE=true
…
netInterface[1].Name=3g
netInterface[1].Type=Auto,WCDMA,TD-SCDMA,TD-LTE,FDD-LTE
netInterface[1].Valid=true
netInterface[1].NetCardName=eth0
netInterface[1].ConnStatus=Connected
netInterface[1].Speed=100
netInterface[1].PhysicalAddress=00:10:5C:F2:1C:B4
netInterface[1].SupportLongPoE=true
…
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
A_
are as follows :
HT
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=AccessFilter
_
table.AccessFilter.Enable=false
I_
table.AccessFilter.TrustList[0]=10.6.10.23
V3
table.AccessFilter.TrustList[1]=10.6.10.62
.3
7
table.AccessFilter.BannedList[0]=10.6.10.1
fo
table.AccessFilter.BannedList[1]=10.6.10.2
rV
table.AccessFilter.Type=BannedList
el
se
n
http://10.0.0.8/cgi-
dn
bin/configManager.cgi?action=setConfig&AccessFilter.Enable=true&AccessFilter.Type=BannedList&Acc
Bh
essFilter.BannedList[0]=10.6.10.1
d
"adapt"
HU
"half10M"
A_
"full10M"
HT
"half100M"
TP
"full100M"
_
"full1000M"
AP
"longPoE10M"
I_
"longPoE100M"
V3
}
.3
7
255]
se
n
Example:
gS
255.255.255.0
dn
way
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Network
OK
A_
HT
enumchar[][32]{
gS
"PAP"
dn
"CHAP"
Bh
"EAP"
d
}
+UserName char[64] O PPPoE user name. "hz150260"
+Password char[64] O PPPoE user password. "Dont Know"
+Mode char[8] O dial mode "Default"
default Custom
"Default":Use default network card
"Custom": network card specified by
eth
+Eth char[32] O Network card used for current dialing "eth0"
+DefaultPPPo char[8] O The default ppp network card "ppp0"
EInterface
+PPPOE1 object O Other PPPOE dialing configurations
The naming method is:PPPOE1、
PPPOE2、PPPOE3
eth
HU
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=PPPoE
_
table.PPPoE.Enable=true,
I_
table.PPPoE.AuthType[0]=PAP,
V3
table.PPPoE.UserName=hz150260,
.3
7
table.PPPoE.Password=Dont Know,
fo
table.PPPoE.Mode=Default,
rV
table.PPPoE.Eth=eth0,
el
table.PPPoE.DefaultPPPoEInterface=ppp0,
se
n
table.PPPoE.PPPOE1.Enable=true,
gS
table.PPPoE.PPPOE1.AuthType[0]=PAP,
dn
table.PPPoE.PPPOE1.UserName=hz150260,
Bh
table.PPPoE.PPPOE1.Password=Don’t Know,
d
table.PPPoE.PPPOE1.Mode=Custom,
table.PPPoE.PPPOE1.Eth=eth1
"LUPUS DDNS"
HU
"Oray DDNS"
A_
"Ipplus DDNS"
TP
"Q-See DDNS"
_
"SYSDNS DDNS"
AP
"Videotrend DDNS"
I_
"CEPSA DDNS"
V3
"G4IP DDNS"
.3
7
"HOSS DDNS"
fo
"Intelbras DDNS"
rV
"HSY DDNS"
el
"Flir DDNS"
se
P2P
dn
"Mivigilante DDNS"
Bh
"ByDemes DDNS"
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
HU
are as follows :
A_
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=DDNS
TP
table.DDNS[0].Address=www.ttt.com
AP
table.DDNS[0].Enable=true
I_
table.DDNS[0].HostName=www.ttt.com
V3
table.DDNS[0].KeepAlive=10
.3
7
table.DDNS[0].Password=none
fo
table.DDNS[0].Port=5050
rV
table.DDNS[0].UserName=user1
se
n
table.DDNS[0].DefaultHostName.Enable=false
gS
table.DDNS[0].DefaultHostName.HostName=9002A9D77133.ttt.com
dn
…
Bh
d
ranges is 0~86400
AP
[32] enumchar[][32]{
"MachineName"
.3
7
"IP"
fo
"Index"
rV
"EventName"
el
}
se
ngS
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
dn
are as follows :
Bh
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Email
Get Config Response Example
table.Email.Address=www.ttt.com
table.Email.Anonymous=true
table.Email.AttachEnable=true
table.Email.Enable=true
table.Email.HealthReport.Enable=false
table.Email.HealthReport.Interval=61
table.Email.Password=123456
table.Email.Port=26
table.Email.Receivers[0][email protected]
table.Email.Receivers[1][email protected]
table.Email.Receivers[2][email protected]
[email protected]
name
+eth2 object O wileless interface configuration
I_
V3
32] Infrastructure}.
gS
automatically.
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
DA
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=WLan
HU
table.WLan.eth2.Enable=true
HT
table.WLan.eth2.Encryption=off
TP
table.WLan.eth2.KeyFlag=false
_
table.WLan.eth2.KeyID=0
AP
table.WLan.eth2.KeyType=Hex
I_
table.WLan.eth2.Keys[0]=password1
V3
table.WLan.eth2.Keys[1]=password2
.3
7
table.WLan.eth2.Keys[2]=password3
fo
table.WLan.eth2.Keys[3]=password4
rV
table.WLan.eth2.LinkMode=Auto
el
table.WLan.eth2.SSID=ttt
se
ngS
http://192.168.1.108/cgi-
Bh
bin/configManager.cgi?action=setConfig&WLan.eth2.Enable=true&WLan.eth2.KeyType=Hex
d
ype range {
HU
0: 11b
A_
1: 11a
HT
2: 11a/n
TP
3: 11b/g
_
4: 11b/g/n
AP
}
I_
V3
range{
0: NONE
el
se
1: WEP
n
2: TKIP
gS
3: AES(CCMP)
dn
5: UnKnown
d
}
+LinkMode enumint O link mode 0
range{
0: auto
1: adhoc
2: Infrastructure
}
+LinkQuality uint8 O quality, percentage 30
range[0, 100]
+RSSIQuality int8 O Received signal strength in dBm -68
range [-100, 0]
+SSID char[32] O Specified SSID, if not include any "xia_yuguo 13098
SSID, all Wi-Fi information will be Internet"
searched and displayed.
iscover
_
32] range{
I_
V3
"Manual"
"Auto"
.3
7
}
fo
me
gS
32]
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=UPnP
Get Config Response Example
table.UPnP.Enable=true
table.UPnP.MapTable[0].Enable=true
table.UPnP.MapTable[0].InnerPort=80
table.UPnP.MapTable[0].OuterPort=8080
table.UPnP.MapTable[0].Protocol=TCP
32] Success
V3
Unknown
.3
Error
7
}
fo
rV
s
n
Enumchar[32]{
d
Success
Unknown
Failed
}
Response Example
status.InnerAddress=0.0.0.0
status.OuterAddress=0.0.0.0
status.PortMapStatus[0]=Failed
status.PortMapStatus[1]=Failed
status.PortMapStatus[2]=Failed
status.PortMapStatus[3]=Failed
status.Status=Unknown
status.Working=false
{0, 0*3600,"GMT+00:00"},
.3
7
{1, 1*3600,"GMT+01:00"},
fo
{2, 2*3600,"GMT+02:00"},
rV
{3, 3*3600,"GMT+03:00"},
el
{4, 3*3600+1800,"GMT+03:30"},
se
n
{5, 4*3600,"GMT+04:00"},
gS
{6, 4*3600+1800,"GMT+04:30"},
dn
{7, 5*3600,"GMT+05:00"},
Bh
{8, 5*3600+1800,"GMT+05:30"},
d
{9, 5*3600+1800+900,"GMT+05:45"},
{10, 6*3600,"GMT+06:00"},
{11, 6*3600+1800,"GMT+06:30"},
{12, 7*3600,"GMT+07:00"},
{13, 8*3600,"GMT+08:00"},
{14, 9*3600,"GMT+09:00"},
{15, 9*3600+1800,"GMT+09:30"},
{16, 10*3600,"GMT+10:00"}
{17, 11*3600,"GMT+11:00"}
{18, 12*3600,"GMT+12:00"}
{19, 13*3600,"GMT+13:00"}
{20, -1*3600,"GMT-01:00"},
{21, -2*3600,"GMT-02:00"},
{22, -3*3600,"GMT-03:00"},
{39,12*3600+2700,"GMT+12:45"}
HU
sc
HT
TP
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
_
are as follows :
AP
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=NTP
V3
table.NTP.Address=clock.isc.org
fo
table.NTP.Enable=false
rV
table.NTP.Port=38
el
table.NTP.TimeZone=9
se
n
table.NTP.UpdatePeriod=31
gS
table.NTP.ServerList[0].Enable=true,
dn
table.NTP.ServerList[0].Address=192.168.1.108,
Bh
table.NTP.ServerList[0].Port=123
d
table.NTP.Tolerance=5,
table.NTP.TimeZoneDesc=GMT
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=RTSP
Get Config Response Example
table.RTSP.Enable=true
table.RTSP.Port=554
table.RTSP.RTP.EndPort=40000
table.RTSP.RTP.StartPort=20000
DA
HU
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&RTSP.Enable=true&RTSP.Port=554
HT
OK
_
AP
I_
V3
32] "DAHUA"
dn
"BOSCH"
Bh
"DAHUA_CLOUD"
d
}
+Address char[128] O IP address "www.dahuatech.com"
+Port uint16 O port 37777
+EthernetNam char[32] O The network card name "3G"
e
+UserName char[64] O user name "anonymity"
+Password char[64] O password "none"
+ReportWeek int O -1 means not to report, 0-6 means to 4
Day report regularly from Sunday to
Saturday, and 7 means to report
regularly every day
+ReportTime char[32] O Regular report time "12:00:00"
bin/configManager.cgi?action=setConfig&AlarmServer.Address=as.ttt.com&AlarmServer.Enable=false
HU
OK
HT
TP
password.
se
n gS
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
dn
are as follows :
Bh
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=UserGlobal
Get Config Response Example
table.UserGlobal.OnvifLoginCheck=false
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=SSHD
Get Config Response Example
table.SSHD.Enable=true
table.SSHD.Port=22
packages.
.3
adapters.
Bh
MonthFlux.FluxStartDay=1&CellularFlux.3G.SIM1.MonthFlux.FluxUp=299&CellularFlux.3G.SIM1.Mo
nthFlux.FluxUpUnit=GB&CellularFlux.3G.SIM1.MonthFlux.FluxWarn=99&CellularFlux.3G.SIM1.Mont
HU
hFlux.FluxWarnUnit=GB
A_
OK
TP
_
Method POST
fo
rV
are:
enumchar[32]{
3G
3G1
3G2
3G3
}
Single card/module: 3G; Multiple
cards/modules: 3G, 3G1, 3G2, and
3G3.
SimName char[32] O SIM card name. The first SIM card "SIM1"
is SIM1, the second SIM2, and the
third SIM3.
days.
V3
kb.
fo
rV
kb.
se
Byte.
++MonthTotalFlu uint64 O The total traffic of the month. Unit: 8000
dn
x Byte.
Bh
Response Example
d
{
"info": {
LastMonthTotalFlux" : 8000,
"totalFlux" : 8000,
"SendFlux": 3000,
"RecvFlux": 5000,
"Time": "2014-01-01 14:01:01",
"Record" : [{
"Date": "2014-01-01",
"DaySendFlux" : 3000,
"DayRecvFlux" : 3000,
"DayTotalFlux" : 8000,
are:
AP
enumchar[32]{
I_
V3
3G
.3
3G1
7
3G2
fo
3G3
rV
}
el
se
3G3.
dn
+SimName char[32] O SIM card name. The first SIM card is "SIM1"
Bh
SIM3.
+ICCID char[24] O IC card identification code (namely "898601168360145
SIM card number). It consists of 20 32534"
digits.
Mode char[32] R Search modes: "day"
enumchar[32]{
month: Search by month
day: Search by day
hour: Search by hour
}
+StartTime char[20] O Start time of statistics "2021-01-01
00:00:00"
+EndTime char[20] O End time of statistics "2021-04-01
00:00:00"
YYYY-MM-DD
++SendFlux uint64 R Uplink traffic of the year/month/day. 70305
el
se
Unit: Byte.
n
Unit: Byte.
dn
this filed when using signaling to interact with the management platform. Note: Although the
HU
configuration name is RTMP_NVR, both NVR and IPC will use this configuration, which is a general
A_
configuration.
HT
RTMP_NVR object O Both IPC and NVR are using the general
AP
configuration of RTMP.
I_
address.
Bh
+Main object[] O
d
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=RTMP_NVR
TP
table.RTMP_NVR.Address=0.0.0.0
AP
table.RTMP_NVR.CustomPath=live
I_
table.RTMP_NVR.Enable=true
V3
table.RTMP_NVR.Extra[0].ChannelID=0
.3
7
table.RTMP_NVR.Extra[0].Enable=false
fo
table.RTMP_NVR.Extra[0].Url=
rV
table.RTMP_NVR.Extra2[0].ChannelID=0
el
table.RTMP_NVR.Extra2[0].Enable=false
se
n
table.RTMP_NVR.Extra2[0].Url=
gS
table.RTMP_NVR.Key=
dn
table.RTMP_NVR.Main[0].ChannelID=0
Bh
table.RTMP_NVR.Main[0].Enable=true
d
table.RTMP_NVR.Main[0].Url=
table.RTMP_NVR.Port=1935
table.RTMP_NVR.StreamPath=liveStream
LossDetect
HU
MotionDetect
A_
LoginFailureAlarm
HT
NetAbort
TP
…
_
hannels
TP
with events.
rV
Pattern}
n
PtzLink[ch][0],
dn
If PtzLink[ch]][0] is
Bh
ght"
HU
e
HT
O Light Duration
V3
n unit: s
.3
meSection
fo
rV
O linkage command
se
mand bin/eventManager.cgi?"
gS
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=MotionDetect[0].EventHandler
Get Config Response Example
table.MotionDetect[0].EventHandler.AlarmOut=1
table.MotionDetect[0].EventHandler.AlarmOutChannels[0]=0
table.MotionDetect[0].EventHandler.AlarmOutEnable=true
table.MotionDetect[0].EventHandler.AlarmOutLatch=10
table.MotionDetect[0].EventHandler.BeepEnable=false
table.MotionDetect[0].EventHandler.Dejitter=30
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[1][0]=1 00:00:00-23:59:59
HU
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[1][1]=0 00:00:00-23:59:59
A_
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[1][2]=0 00:00:00-23:59:59
HT
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[1][3]=0 00:00:00-23:59:59
TP
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[1][4]=0 00:00:00-23:59:59
_
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[1][5]=0 00:00:00-23:59:59
AP
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[2][0]=1 00:00:00-23:59:59
I_
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[2][1]=0 00:00:00-23:59:59
V3
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[2][2]=0 00:00:00-23:59:59
.3
7
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[2][3]=0 00:00:00-23:59:59
fo
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[2][4]=0 00:00:00-23:59:59
rV
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[2][5]=0 00:00:00-23:59:59
el
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[3][0]=1 00:00:00-23:59:59
se
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[3][1]=0 00:00:00-23:59:59
n gS
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[3][2]=0 00:00:00-23:59:59
dn
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[3][3]=0 00:00:00-23:59:59
Bh
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[3][4]=0 00:00:00-23:59:59
d
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[3][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[4][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[4][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[4][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[4][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[4][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[4][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[5][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[5][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[5][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[5][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[5][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[5][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.LightingLink.WhiteLightTimeSection[6][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.PtzLinkEnable=false
HU
table.MotionDetect[0].EventHandler.Record=1
A_
table.MotionDetect[0].EventHandler.RecordChannels[0]=0
HT
table.MotionDetect[0].EventHandler.RecordEnable=true
TP
table.MotionDetect[0].EventHandler.RecordLatch=10
_
table.MotionDetect[0].EventHandler.Snapshot=1
AP
table.MotionDetect[0].EventHandler.SnapshotChannels[0]=0
I_
table.MotionDetect[0].EventHandler.SnapshotEnable=true
V3
table.MotionDetect[0].EventHandler.SnapshotPeriod=0
.3
7
table.MotionDetect[0].EventHandler.SnapshotTimes=0
fo
table.MotionDetect[0].EventHandler.TimeSection[0][0]=1 00:00:00-23:59:59
rV
table.MotionDetect[0].EventHandler.TimeSection[0][1]=0 00:00:00-23:59:59
el
table.MotionDetect[0].EventHandler.TimeSection[0][2]=0 00:00:00-23:59:59
se
table.MotionDetect[0].EventHandler.TimeSection[0][3]=0 00:00:00-23:59:59
n gS
table.MotionDetect[0].EventHandler.TimeSection[0][4]=0 00:00:00-23:59:59
dn
table.MotionDetect[0].EventHandler.TimeSection[0][5]=0 00:00:00-23:59:59
Bh
table.MotionDetect[0].EventHandler.TimeSection[1][0]=1 00:00:00-23:59:59
d
table.MotionDetect[0].EventHandler.TimeSection[1][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[1][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][3]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][4]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[2][5]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[3][0]=1 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[3][1]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[3][2]=0 00:00:00-23:59:59
table.MotionDetect[0].EventHandler.TimeSection[6][1]=0 00:00:00-23:59:59
HU
table.MotionDetect[0].EventHandler.TimeSection[6][2]=0 00:00:00-23:59:59
A_
table.MotionDetect[0].EventHandler.TimeSection[6][3]=0 00:00:00-23:59:59
HT
table.MotionDetect[0].EventHandler.TimeSection[6][4]=0 00:00:00-23:59:59
TP
table.MotionDetect[0].EventHandler.TimeSection[6][5]=0 00:00:00-23:59:59
_
table.MotionDetect[0].EventHandler.TipEnable=false
AP
table.MotionDetect[0].EventHandler.Tour=0
I_
table.MotionDetect[0].EventHandler.TourChannels[0]=0
V3
table.MotionDetect[0].EventHandler.TourEnable=false
.3
7
fo
http://192.168.1.108/cgi-
el
bin/configManager.cgi?action=setConfig&Alarm[0].EventHandler.AlarmOutChannels[0]=1&Alarm[0].Eve
se
ntHandler.AlarmOutEnable=true
ngS
OK
Bh
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Alarm
Get Config Response Example
table.Alarm[0].Enable=false
table.Alarm[0].EventHandler….(output of EventHandler is described in GetEventHandler)
table.Alarm[0].Name=Door1
table.Alarm[0].SensorType=NC
table.Alarm[1]….
…
OK
A_
HT
TP
0: automatically alarm
n
1: force alarm
gS
2: close alarm
dn
Bh
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific examples
d
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=AlarmOut
Get Config Response Example
table.AlarmOut[0].Mode=0
table.AlarmOut[0].Name=Beep
…
Method GET
I_
Request Example
fo
http://192.168.1.108/cgi-bin/alarm.cgi?action=getOutSlots
rV
el
Response Example
Bh
result=1
d
present.
_
AP
Response Example
I_
result=1
V3
.3
r ler in SetEventHandler
d
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=BlindDetect
Get Config Response Example
table.BlindDetect[0].Enable=false
table.BlindDetect[0].EventHandler….(output of EventHandler is described in GetEventHandler)
table.BlindDetect[0]. Level=3
r ler in SetEventHandler.
A_
HT
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific
TP
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=LossDetect
V3
table.LossDetect[0].Enable=false
7
table.LossDetect[1]….
…
el
se
n
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&LossDetect[0].Enable=true
dn
OK
d
st
TP
r ler in SetEventHandler.
I_
V3
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific examples
.3
7
are as follows :
fo
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=StorageNotExist
el
table.StorageNotExist.Enable=false
gS
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&StorageNotExist.Enable=true
Set Config Response Example
OK
ace
HT
dler SetEventHandler.
AP
I_
V3
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific
examples are as follows :
.3
7
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=StorageLowSpace
rV
table.StorageLowSpace.Enable=false
se
n
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&StorageLowSpace.Enable=true
d
dler SetEventHandler.
_
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific examples
fo
are as follows :
rV
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=IPConflict
se
n
table.IPConflict.Enable=false
dn
table.IPConflict.FilterEth[0]=eth0
d
table.IPConflict.SendArpWhenConflict=false
Response Example
fo
channels[0]=0
rV
channels[1]=2
el
se
channels[2]=3
ngS
Subscribe to event messages. For details on the event name and parameters, see the
d
on
HU
ection
HT
event
_
nt
.3
7
nt
el
event
dn
event
d
2CVideoLoss%2CVideoBlind%2CFaceDetection]
HU
A_
Values: Start/Stop/pulse
I_
corresponding section.
rV
Response Example
el
HTTP/1.1 200 OK
se
n
Cache-Control: no-cache
gS
Pragma: no-cache
dn
Connection: close
d
--myboundary
Content-Type: text/plain
Content-Length: 39
Code=VideoMotion;action=Start;index=0
--myboundary
Content-Type: text/plain
Content-Length: 38
Code=FaceDetection;action=Start;index=0;data={
“Faces”: [ { “BoundingBox”: [2992,136,6960,8192],
--myboundary
Content-Type: text/plain
Content-Length: 9
Heartbeat
DA
--myboundary
HU
……
A_
HT
Method GET
I_
Request Example
fo
http://192.168.1.108/cgi-bin/eventManager.cgi?action=getCaps
rV
el
ble
d
elay
A_
rmServer
TP
300] by default
se
n
HTTP protocol
HU
HTTP protocol
TP
Response Example
AP
caps.AlarmOutEnable=true
I_
caps.BeepEnable=true
V3
caps.DejitterEnable=true
.3
7
caps.MMSEnable=true
fo
caps.MailEnable=true
rV
caps.MonitorTourEnable=true
el
caps.PtzLinkEnable=true
se
n
caps.RecordEnable=true
gS
caps.SnapshotEnable=true
dn
caps.TimeSectionEnable=true
Bh
caps.TipEnable=true
d
caps.RecordCloudEnable=true,
caps.SnapshotCloudEnable=false,
caps.SnapshotTimes[0]=3,
caps.SnapshotTimes[1]=10,
caps.SupportAlarmBell=false,
caps.SupportAccessControl=false,
caps.SipCallEnable=false,
caps.SupportAlarmServer=false,
caps.SupportPtzLinkDelay=false,
caps.SupportPSTNAlarmServer=false,
caps.SupportICR=false,
caps.BeepTime=false,
caps.DejitterRange.Min=0,
caps.DejitterRange.Max=60
caps.SupportDisableLinkage[0]=0
HU
caps.SupportDisableLinkage[1]=0
A_
caps.SupportDisableLinkage[2]=0
HT
caps.SupportDisableLinkage[3]=0
TP
caps.SupportHTTPUpload.PictureHttpUploadEnable=false
_
caps.SupportHTTPUpload.EventHttpUploadEnable=false
AP
I_
array.
gS
from 0.
d
"NO"
HU
}
A_
Alarm linkage
HT
SetEventHandler.
_ AP
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
I_
V3
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=NetAlarm
7
fo
table.NetAlarm[0].Enable=false
el
table.NetAlarm[0].Name=channel1
se
table.NetAlarm[0].SensorType=NO
ngS
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&NetAlarm[0].Enable=true
d
OK
HU
A_
Method GET
I_
Request Example
.3
7
http://192.168.1.108/cgi-bin/eventManager.cgi?action=getExposureEvents
fo
rV
FaceDetection,
Bh
VideoMotion,…]
d
Response Example
events[0]=VideoMotion
events[1]=AlarmLocal
events[2]=FaceDetection
events[3]=VideoMotion
…
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=TrigerHttpUserList
Get Config Response Example
table.TrigerHttpUserList[0].TrigerHttpName=admin
table.TrigerHttpUserList[0].TrigerHttpPassword=admin
table.TrigerHttpUserList[0].TrigerServerName=Server1
DA
table.TrigerHttpUserList[0].TrigerServerIP=0.0.0.0
HU
table.TrigerHttpUserList[0].TrigerServerPort=80
A_
table.TrigerHttpUserList[0].TrigerHttpsEnable=false
HT
table.TrigerHttpUserList[1].TrigerHttpName=admin
TP
…
_
AP
http://10.0.0.8/cgi-
V3
bin/configManager.cgi?action=setConfig&TrigerHttpUserList[0].TrigerHttpName=admin&TrigerHttpUserL
.3
7
ist[0].TrigerHttpPassword=admin
fo
OK
el
se
ngS
4.10 Record
dn
Bh
default false
HU
Response Example
A_
caps.MaxPreRecordTime=30
HT
caps.PacketLengthRange[0]=1
TP
caps.PacketLengthRange[1]=60
_
caps.PacketSizeRange[0]=131072
AP
caps.PacketSizeRange[1]=2097152
I_
V3
caps.SupportExtraRecordMode=true
.3
caps.SupportHoliday=true
7
caps.SupportPacketType[0]=Time
fo
caps.SupportPacketType[1]=Size
rV
caps.SupportResumeTransmit=false
el
se
n gS
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Record
Get Config Response Example
table.Record[0].PreRecord=6
table.Record[0].TimeSection[1][0]=65535 00:00:00-24:00:00
DA
table.Record[0].TimeSection[1][1]=0 02:00:00-24:00:00
HU
table.Record[0].TimeSection[1][2]=0 03:00:00-24:00:00
A_
table.Record[0].TimeSection[1][3]=0 04:00:00-24:00:00
HT
table.Record[0].TimeSection[1][4]=0 05:00:00-24:00:00
TP
table.Record[0].TimeSection[1][5]=0 06:00:00-24:00:00
_
AP
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&Record[0].TimeSection[0][0]=6
V3
00:00:00-23:59:59
.3
7
OK
rV
el
se
n
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=RecordMode
Get Config Response Example
table.RecordMode[0].Mode=0
As "ExtraFormat", "Extra2Format",
_
"Extra3Format"}
AP
I_
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific examples
V3
are as follows :
.3
7
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=MediaGlobal
rV
table.MediaGlobal.OverWrite=true,
se
n
table.MediaGlobal.PacketType=0,
gS
table.MediaGlobal.PacketLength=60,
dn
table.MediaGlobal.PacketSize=1024,
Bh
table.MediaGlobal.LogRecord=false,
d
table.MediaGlobal.LogEncode=false,
table.MediaGlobal.SnapFormatAs=MainFormat
Start to find media files satisfied the conditions with the finder.
object.
_
http://192.168.1.108/cgi-
HU
bin/mediaFileFind.cgi?action=findFile&object=08137&condition.Channel=1&condition.Dirs[0]=/mnt/dv
A_
r/sda0&condition.Types[0]=dav&condition.Events[0]=AlarmLocal&condition.Events[1]=VideoMotion&c
HT
ondition.StartTime=2014-1-1%2012:00:00&condition.EndTime=2015-1-
TP
10%2012:00:00&condition.VideoStream=Main
_
AP
I_
Response Example
.3
OK
7
fo
Method GET
n gS
items[0].Channel=1
HU
items[0].StartTime=2011-1-1 12:00:00
A_
items[0].EndTime=2011-1-1 13:00:00
HT
items[0].Type=dav
TP
items[0].Events[0]=AlarmLocal
_
items[0].VideoStream=Main
AP
items[0].FilePath=/mnt/dvr/sda0/2010/8/11/dav/15:40:50.jpg
I_
items[0].Length=790
V3
items[0].Duration=3600
.3
7
fo
Method GET
se
n
This API is the same as the API in "4.10.5 Find Media Files".
HU
Start to find media files satisfied the common conditions and FaceDetection condition with
A_
the finder.
HT
TP
Start to find media files satisfied the common conditions and FaceDetection conditions with the finder.
_
Method GET
I_
V3
object.
n
http://192.168.1.108/cgi-
HU
bin/mediaFileFind.cgi?action=findFile&object=08137&condition.Channel=1&condition.StartTime=201
A_
4-1-1%2012:00:00&condition.EndTime=2015-1-
HT
10%2012:00:00&condition.Types[0]=jpg&condition.Flags[0]=Event&condition.Events[0]=FaceDetecti
TP
on&condition.DB.FaceDetectionRecordFilter.ImageType=GlobalSence&condition.DB.FaceDetection
_
RecordFilter.Sex=Man&condition.DB.FaceDetectionRecordFilter.Age[0]=25&condition.DB.FaceDetec
AP
tionRecordFilter.Age[1]=40&condition.DB.FaceDetectionRecordFilter.Glasses=1
I_
V3
Response Example
fo
OK
rV
el
se
Method GET
Bh
period
HU
"FaceDetectionRecord" "
TP
+++ImageType string O
"GlobalSence" , "Small"
I_
+++Sex string O
"Unknown"
el
+++Glasses int O
wear, 2: wear
dn
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
A_
HT
Start to find media files satisfied the common conditions and FaceRecognition conditions
TP
Method GET
.3
object.
condition object R user id 101
dn
search all
HU
1990-5-1
HT
should be 2
_
string length is 31
rV
wear
Bh
object.
_
count int R Get the number of files that have been 100
AP
100.
V3
Request Example
.3
7
http://192.168.1.108/cgi-bin/mediaFileFind.cgi?action=findNextFile&object=08137&count=100
fo
rV
++++Sex string O
"Unknown"
A_
wear, 2: wear
_
++++Eye int O
eye, 2: open eye
I_
++++Mouth int O
mouth, 2: open mouth
.3
7
++++Mask int O
wearing mask, 2: wearing mask
rV
++++Beard int O
beard, 2: has beard
se
n
+++Candidates object[] O
group.
dn
items[0].SummaryNew[0].Value.ImageInfo.FilePath=/tmp/1.jpg
HU
items[0].SummaryNew[0].Value.Object.Sex=Man
A_
items[0].SummaryNew[0].Value.Object.Age=40
HT
items[0].SummaryNew[0].Value.Object.Glasses=1
TP
items[0].SummaryNew[0].Value.Object.Eye=2
_
items[0].SummaryNew[0].Value.Object.Mouth=1
AP
items[0].SummaryNew[0].Value.Candidates[0].Similarity=50
I_
items[0].SummaryNew[0].Value.Candidates[0].Person.Name=ZhangSan
V3
items[0].SummaryNew[0].Value.Candidates[0].Person.Birthday=1980-01-01
.3
7
items[0].SummaryNew[0].Value.Candidates[0].Person.Sex=Male
fo
items[0].SummaryNew[0].Value.Candidates[0].Person.Country=CN
rV
items[0].SummaryNew[0].Value.Candidates[0].Person.Province=XXX
el
items[0].SummaryNew[0].Value.Candidates[0].Person.City=YYY
se
items[0].SummaryNew[0].Value.Candidates[0].Person.CertificateType=IC
ngS
items[0].SummaryNew[0].Value.Candidates[0].Person.ID=1234567890
dn
items[0].SummaryNew[0].Value.Candidates[0].Person.FeatureState=0
Bh
…
d
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
Start to find media files satisfied the common conditions and HumanTrait conditions with
the finder
259.
A_
"Cutout"
AP
" HumanTrait"
.3
7
++HumanTrait
rV
+++HumanAttr
se
ibutes
gS
Response Example
HT
OK
TP
Method GET
.3
7
object.
dn
count int R Get the number of files that have been 100
Bh
100.
Request Example
http://192.168.1.108/cgi-bin/mediaFileFind.cgi?action=findNextFile&object=08137&count=100
available values,
A_
available values,
_
++++TrousersC
string O in 16.1.3.5 [Event] HumanTrait for
I_
olor
available values,
V3
++++TrousersTy
7
pe
available values,
rV
++++HasHat int O
hat, 2: has hat
se
n
++++HasBag int O
bag, 2: has bag
dn
"Unknown"
d
+++FacePath string O
259 :40:50.jpg
HU
is 259
_
string O
ePath length is 259
I_
Response Example
V3
found=100
.3
7
items[0].Channel=1
fo
items[0].StartTime=2011-1-1 12:00:00
rV
items[0].EndTime=2011-1-1 13:00:00
el
items[0].Type=jpg
se
n
items[0].Events[0]=HumanTrait
gS
items[0].FilePath=/mnt/dvr/sda0/2010/8/11/dav/15:40:50.jpg
dn
items[0].Length=790
Bh
items[0].SummaryNew.Key=HumanTraitRecord
d
items[0].SummaryNew.Value.HumanAttributes.CoatColor=White
items[0].SummaryNew.Value.HumanAttributes.CoatType=1
items[0].SummaryNew.Value.HumanAttributes.TrousersColor=Black
items[0].SummaryNew.Value.HumanAttributes.TrousersType=1
items[0].SummaryNew.Value.HumanAttributes.HasHat=2
items[0].SummaryNew.Value.HumanAttributes.HasBag=1
items[0].SummaryNew.Value.HumanAttributes.Sex=Man
items[0].SummaryNew.Value.HumanAttributes.Age=30
items[0].SummaryNew.Value.HumanAttributes.HairStyle=2
items[0].SummaryNew.Value.HumanAttributes.HasUmbrella=1
items[0].SummaryNew.Value.HumanAttributes.Bag=0
items[0].SummaryNew.Value.HumanAttributes.Cap=2
items[0].SummaryNew.Value.FaceAttributes.Sex=Man
items[0].SummaryNew.Value.FaceAttributes.Age=35
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
HT
TP
Start to find media files satisfied the common conditions and TrafficCar conditions with the
_
finder
AP
I_
V3
Start to find media files satisfied the common conditions and TrafficCar conditions with the finder.
.3
Note: some request params can use compare condition, it's value is an array, first item is a string of
7
compare condition type, and the following items are compare values.
fo
rV
"==": means equal, followed with one param, if param type is string, then param value can contain some
se
"||": means equal one of the params, followed with one or more params.
gS
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Sample
object string R Search object of the media files; 08137
Create the object in the previous
command, and then search for the
object.
condition object R user id 101
+Channel int R Channel number; starting from 1 1
+StartTime string R Start time "2010-05-25 12:05:00"
+EndTime string R End time "2010-05-25 12:10:00"
+Dirs string[] O The directory where the recordings ["/mnt/dvr/sda0", "/mnt
are saved; array; /dvr/sda1"]
+++PlateType O
condition> condition format, ex: ["==", "Armed"],
A_
Request Example
I_
http://192.168.1.108/cgi-
V3
bin/mediaFileFind.cgi?action=findFile&object=08137&condition.Channel=1&condition.StartTime=201
.3
7
4-1-1%2012:00:00&condition.EndTime=2015-1-
fo
10%2012:00:00&condition.Types[0]=jpg&condition.Flags[0]=Event&condition.DB.TrafficCar.PlateNu
rV
mber[0]=%3d%3d&condition.DB.TrafficCar.PlateNumber[1]=%2a888&condition.DB.TrafficCar.Speed[
el
0]=%3c%3e&condition.DB.TrafficCar.Speed[1]=40&condition.DB.TrafficCar.Speed[2]=80&condition.D
se
n
B.TrafficCar.VehicleColor[0]=%3d%3d&condition.DB.TrafficCar.VehicleColor[1]=White
gS
dn
Response Example
d
OK
recordings
HT
11/dav/15:40:50.jpg
_
+CutLength int
and end time
I_
V3
+++PlateNumbe A08888
el
etc
d
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
A_
HT
Start to find media files satisfied the common conditions and IVS conditions with the finder
TP
_AP
Method GET
V3
object.
n gS
10%2012:00:00&condition.Types[0]=jpg&condition.DB.IVS.Rule=CrossLineDetection&condition.DB.I
HU
VS.Action=Cross&condition.DB.IVS.ObjectType[0]=Human&condition.DB.IVS.ObjectType[1]=NonMot
A_
or
HT
TP
Response Example
AP
OK
I_
V3
Method GET
rV
object.
d
count int R Get the number of files that have been 100
found, and the maximum number is
100.
Request Example
http://192.168.1.108/cgi-bin/mediaFileFind.cgi?action=findNextFile&object=08137&count=100
+++ObjectType string O
value
HU
Response Example
A_
found=100
HT
items[0].Channel=1
TP
items[0].StartTime=2011-1-1 12:00:00
_
items[0].EndTime=2011-1-1 13:00:00
AP
items[0].Type=jpg
I_
items[0].Events[0]=CrossLineDetection
V3
items[0].FilePath=/mnt/dvr/sda0/2010/8/11/dav/15:40:50.jpg
.3
7
items[0].Length=790
fo
items[0].Summary.IVS.Rule=CrossLineDetection
rV
items[0].Summary.IVS.Action=Cross
el
items[0].Summary.IVS.ObjectType=Human
se
n
…
gS
This API is the same as the API in "4.10.5 Find Media Files".
d
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
Start to find media files satisfied the common conditions and NonMotor conditions with the
finder
"Cutout"
HT
++NonMotorR
AP
int O
ling e can be 1 ~ 3
.3
7
+++Color string O
"Darkorange" "Mistyrose" "Tomato"
dn
"Chartreuse" "Greenyellow"
d
"Forestgreen" "Seagreen"
"Deepskyblue" "Cyan" "Other"
NonMotor type, can be : "Non-Motor" "Non-Motor"
"Bicycle" "Tricycle" "Motorcycle"
"DualTriWheelMotorcycle"
"LightMotorcycle"
+++Category string O "EmbassyMotorcycle"
"MarginalMotorcycle"
"AreaoutMotorcycle"
"ForeignMotorcycle" "TrialMotorcycle"
"CoachMotorcycle"
Helmet status, 0 : unknown, 1 : without 1
+++Helmet int O
helmet, 2 : with helmet
Request Example
object.
TP
count int R Get the number of files that have been 100
_
100.
I_
Request Example
V3
http://192.168.1.108/cgi-bin/mediaFileFind.cgi?action=findNextFile&object=08137&count=100
.3
7
fo
"DualTriWheelMotorcycle"
A_
"LightMotorcycle"
HT
"MarginalMotorcycle"
_
"AreaoutMotorcycle"
AP
"ForeignMotorcycle" "TrialMotorcycle"
I_
"CoachMotorcycle"
V3
+++Helmet int O
7
Response Example
rV
found=100
el
items[0].Channel=1
se
n
items[0].StartTime=2011-1-1 12:00:00
gS
items[0].EndTime=2011-1-1 13:00:00
dn
items[0].Type=jpg
Bh
items[0].Events[0]=NonMotorDetect
d
items[0].FilePath=/mnt/dvr/sda0/2010/8/11/dav/15:40:50.jpg
items[0].Length=790
items[0].SummaryNew.Key=NonMotorRecordFilter
items[0].SummaryNew.Value.NumOfCycling=2
items[0].SummaryNew.Value.Color=White
items[0].SummaryNew.Value.Category=Bicycle
items[0].SummaryNew.Value.Helmet=1
…
This API is the same as the API in "4.10.5 Find Media Files".
This API is the same as the API in "4.10.5 Find Media Files".
Start to find media files satisfied the common conditions and NonMotor conditions with
the finder
Request URL http://<server>/cgi-bin/mediaFileFind.cgi?action=findFile
Method GET
Request Params ( key=value format at URL)
Name Type R/O Description Example
object int32 R Search object of the media files 08137
condition object R Search condition
+Channel int32 R Video channel number; integer; the 1
DA
1.
A_
ring>
AP
and Cutout.
7
It should be Event.
fo
ring> WorkClothesDetection. ]
el
se
database.
Bh
attributes alarm.
HT
CompareDetect.
AP
Request Example
_
AP
GET http://192.168.1.108/cgi-bin/mediaFileFind.cgi?action=findNextFile&object=08137&count=15
I_
V3
ng> n"]
+FilePath string O File path. It cannot exceed 259 characters. "/mnt/2010/8/11/dav/15
:40:50.jpg"
+CutLength int32 O The file length within a specified period. 79000
+Length int32 O The whole file length. 5536
+SummaryN object[] R Database record object.
ew
++Key string R Database record name. It should be "WorkClothesDetection
WorkClothesDetection. "
++Value object O Database record value.
+++Helmet object O Safety helmet attribute. Required.
++++HasHel enumint8 R Wearing safety helmet 2
met enumint8{
ColorEnum.
HU
ath
HT
mageLength
_
ceneImageL
7
ength
fo
sType enumint{
dn
0: No glasses
Bh
1. Sunglasses
d
2: Black-rimmed glasses
3: Half-frame glasses
4: Rimless glasses
5: Ordinary glasses
6: Industrial goggles
}
++++HasGla int32 R Glasses detection results. 0
sses 0: Compliant
1: Non-compliance
2: Unknown.
Response Example
found=100
items[0].Channel=1
items[0].StartTime=2011-1-1 12:00:00
items[0].SummaryNew[0].Value.HumanBoundingBox[3]=8144
HU
This API is the same as the API in "4.10.5 Find Media Files".
HT
This API is the same as the API in "4.10.5 Find Media Files".
AP
Appendix:
I_
V3
Name ColorEnum
.3
Type char[16]
7
separately.
gS
Download a file by filename. The <Filename> in URL is got by chapter file finding.
d
default value is 0.
Bh
0: Main stream
d
1: Sub stream 1
2: Sub stream 2
Types string O The type of files that are being “dav”
searched for
Request Example
http://192.168.1.108/cgi-bin/loadfile.cgi?action=startLoad&channel=1&startTime=2012-10-
8%2013:00:01&endTime=2012-10-8%2014:00:01&subtype=0&Types=dav
<file data>
Request Example
HU
http://172.29.2.241/cgi-bin/RecordStreamInterleaved.cgi?action=attachStream&path=/mnt/sd/2019-0
A_
7-01/001/dav/12/12.36.16-12.36.26[F][0@0][0].dav
HT
TP
Response Example
I_
Content-Type: Application/octet-stream
.3
7
Content-Length: <fileLength>
fo
Body:
rV
<data>
el
<data>
se
n gS
dn
4.11 Log
+StartTime char[20] O the start time of log. Format is: yyyy- "2010-04-01 00:00:00"
HU
mm-dd hh:mm:ss.
A_
+EndTime char[20] O the end time of log. Format is: yyyy- "2010-04-08 00:00:00"
HT
mm-dd hh:mm:ss.
+Type char[] O log type. The range is { "System", "System"
TP
_
"CourseRecord" }.
V3
And (StartTimeRealUTC,
rV
time first.
n
gS
http://192.168.1.108/cgi-bin/log.cgi?action=doFind&token=1&count=100
HU
A_
is found.
AP
yyyy-mm-ddThh:mm:ssZ
rV
Response Example
d
found=2
items[0].RecNo=789
items[0].Time=2011-05-20 11:59:10
items[0].Type=ClearLog
items[0].User=admin
items[1].Detail.Compression=H.264->MJPG
items[1].Detail.Data=Encode
items[1].RecNo=790
items[1].Time=2011-05-20 11:59:21
items[1].TimeRealUTC=2011-05-20T03:59:21Z
items[1].Type=SaveConfig
items[1].User=System
Request Example
HT
http://192.168.1.108/cgi-bin/log.cgi?action=clear
TP
_
Response Example
I_
V3
OK
.3
7
fo
Method GET
gS
condition object O
d
&w_User: default
&Time: 2014-09-01 15:20:45
&Type: VideoLoss
&Content: EventType: VideoLoss
channel: <8>
StartTime: 2014-09-01 15:20:45
Request Example
http://192.168.1.108/cgi-bin/Log.cgi?action=doFind&token=1&count=100
I_
V3
.3
yyyy-mm-ddThh:mm:ssZ
d
hh:mm:ss
2014-8-25 01:02:32
A_
hh:mm:ss
TP
+Password char[] R
AP
in zip format.
I_
Request Example
V3
http://192.168.1.108/cgi-bin/Log.exportEncrypedLog?action=All&condition.StartTime=2014-8-25%20
.3
00:02:32&condition.EndTime=2020-8-25%2001:02:32&condition.Password=12345
7
fo
rV
Response Example
n
gS
HTTP/1.1 200 OK
dn
Transfer-Encoding: chunked
CONNECTION: keep_alive
Bh
Please refer to "4.2.1 Get and Set Configure”for more info about the get/set operation
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&name=DebugInfoRedir
Get Config Response Example
table.DebugInfoRedir.SerialPortLogLevel=3
table.DebugInfoRedir.SerialPortLogType=1
DA
http://192.168.1.108/cgi-
A_
bin/configManager.cgi?action=setConfig&DebugInfoRedir.SerialPortLogLevel=6&DebugInfoRedir.Ser
HT
ialPortLogType=1
TP
OK
AP
I_
V3
4.12 Upgrader
.3
7
fo
rV
Use this message to upload the firmware, and when the device receiving all the data successfully, it will
ngS
start to upgrade the device, and then use the getState method to get the state.
dn
Method POST
d
-----------------------------8655433224198
Content-Disposition:form-data;name="upgrade"; filename= "xxxxxx.bin"
Content-Type: application/octet-stream
Firmware data….
Preparing, Downloading,
AP
Response Example
rV
state.State=Upgrading
el
state.Progress=45
se
ngS
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
Url char[] R Upgrade package address, also https://aaa/bbb/ccc/licen
support ftp address se.bin
checkType int O check method 0
enumint8{
0: MD5
}
checkSum char[] O Upgrade package checksum f38ad920
Request Example
http://<server>/cgi-
bin/upgrader.cgi?action=updateFirmwareByUrl=https://aaa/bbb/ccc/license.bin&checkType=0&checkSu
m=f38ad920
Response Example
HT
OK
TP
_ AP
I_
Method POST
el
se
enumint8{ 0: Updating by
Bh
connection. 1: Checking
through proxy server. 2:
Detecting by acquiring cached
test results. }
proxy object O Proxy server address, valid
when way==1 (optional).
+IP char[40] R Network address "10.1.2.3"
+Port int32 O Port 8080
Request Example
{
"way" : 0,
"proxy" : {
"IP" : "10.1.2.3",
"Port" : 8080
to be enabled)
_
}
AP
return
7
enumchar[32]{
fo
"web"
n
"logo"
gS
"custom"
dn
"gui"
Bh
"pd"
d
"data"
"ptz_power": PTZ power.
"ptz_light": PTZ light.
"ptz_heater": PTZ heater.
}
+OldVersion char[64] O Old version, which needs to be "0000"
returned when State is not None.
+NewVersion char[64] O New version, which needs to be "0004"
returned when State is not None.
+Attention char[2048] O Updated content of the new update "What is new"
package.
+PackageUrl char[256] O Download address of update "https://example.com/
package (required for agent 1.zip"
upgrade).
}
HU
}
A_
HT
TP
Method POST
7
fo
fails.
d
"Port" : 8080
HU
},
A_
"info" : {
HT
"PackageUrl" : "https://example.com/1.zip",
TP
"PackageId" : "1d2ee7",
_
"CheckSum" : "F3D288AB"
AP
}
I_
V3
}
.3
7
Response Example
el
se
{}
n gS
dn
Cancel the online update during the download process. If you have already started writing Flash,
you cannot cancel the update.
Request URL http://<server>/cgi-bin/api/CloudUpgrader/cancel
Method POST
Request Params (JSON format in body)
Name Type R/O Description Example
Request Example
{}
O Authentication "digest”
A_
ication
AP
+UploadServerList object[]
V3
uploaded information
.3
the server
fo
++EventType char[][32]
aceDetection"]
Bh
The device uploads images and event data to the specified address based on the client
HU
configuration. For details on the parameters for each event, please refer to the corresponding [Event]
A_
chapters. The IP address, port and URL of the uploaded target server is specified by the
HT
PictureHttpUpload. Each set of images and events are sent within one separate HTTP request, in which
TP
Event Code
]
dn
] "Stop" "Pulse".
d
--<boundary>
Content-Type: application/json
Content-Length: <data length>
<jpeg data>
A_
--<boundary>
HT
…
TP
--<boundary>--
_ AP
I_
Response Example
.3
OK
7
fo
rV
Configure the device to upload event (without image) to the specified address. Before
n gS
configuration, the client should monitor in the specified IP address. Once the configuration is complete,
the device would upload event data to this address using the command described in chapter " 4.13.4
dn
table.EventHttpUpload.Enable=true
table.EventHttpUpload.Type=digest
A_
table.EventHttpUpload.UploadServerList[0].Address=192.168.1.208
HT
table.EventHttpUpload.UploadServerList[0].Port=80
TP
table.EventHttpUpload.UploadServerList[0].UserName=abc
_AP
table.EventHttpUpload.UploadServerList[0].Password=123
I_
table.EventHttpUpload.UploadServerList[0].Uploadpath=/example/handleevt.php
V3
table.EventHttpUpload.UploadServerList[0].EventType[0]=CrossLineDetection
.3
table.EventHttpUpload.UploadServerList[0].EventType[1]=FaceDetection
7
fo
rV
http://192.168.1.108/cgi-
se
bin/configManager.cgi?action=setConfig&EventHttpUpload.Enable=true&EventHttpUpload.Type=dige
n gS
st&EventHttpUpload.UploadServerList[0].Address=192.168.1.208&EventHttpUpload.UploadServerLi
dn
st[0].Port=80&EventHttpUpload.UploadServerList[0].UserName=abc&EventHttpUpload.UploadServer
List[0].Password=123&EventHttpUpload.UploadServerList[0].Uploadpath=/example/handleevt.php&E
Bh
ventHttpUpload.UploadServerList[0].EventType[0]=CrossLineDetection&EventHttpUpload.UploadSer
d
verList[0].EventType[1]=faceDetection
Set Config Response Example
OK
{
"Code" : "FaceRecognition",
DA
"Action" : "Pulse",
HU
"Index" : 0
A_
Data
HT
"UTC" : 123456789,
TP
...
_
}
AP
}
I_
V3
.3
Response Example
rV
OK
el
se
Configure the device to upload report data to the specified address. Before configuration, the client
should monitor in the specified IP address. Once the configuration is complete, the device would upload
Bh
report data to this address using the command described in chapters 4.13.6 ~ 4.13.11.
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
DA
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=ReportHttpUpload
A_
table.ReportHttpUpload.Enable=true
TP
table.ReportHttpUpload.Type=digest
_
table.ReportHttpUpload.Period=1
AP
table.ReportHttpUpload.UploadServerList[0].Address=192.168.1.208
I_
table.ReportHttpUpload.UploadServerList[0].Port=80
V3
table.ReportHttpUpload.UploadServerList[0].UserName=abc
.3
7
table.ReportHttpUpload.UploadServerList[0].Password=123
fo
table.ReportHttpUpload.UploadServerList[0].Uploadpath=/example/handlerpt.php
rV
table.ReportHttpUpload.UploadServerList[0].ReportType[0]=NumberStat
el
table.ReportHttpUpload.UploadServerList[0].ReportType[1]=ObjectDetect
se
n gS
http://192.168.1.108/cgi-
Bh
bin/configManager.cgi?action=setConfig&ReportHttpUpload.Enable=true&ReportHttpUpload.Type=di
d
gest&ReportHttpUpload.Period=1&ReportHttpUpload.UploadServerList[0].Address=192.168.1.208&
ReportHttpUpload.UploadServerList[0].Port=80&ReportHttpUpload.UploadServerList[0].UserName=a
bc&ReportHttpUpload.UploadServerList[0].Password=123&ReportHttpUpload.UploadServerList[0].U
ploadpath=/example/handlerpt.php&ReportHttpUpload.UploadServerList[0].ReportType[0]=NumberSt
at&ReportHttpUpload.UploadServerList[0].ReportType[1]=ObjectDetect
Set Config Response Example
OK
otal
A_
tal
TP
] 00:00:00"
gS
] 23:59:59"
Bh
al ManNumDetection,QueueDetection, the
subtotal of number of people in the region
++AreaID uint16 O Area ID. 1
++AverageSta uint O Average regional retention time 10
yTime
++Channel int O Channel No. 0
+QueueDetecti object[] O Queuing Management Data. The number
on of arrays equals to that of the period. If the
time of period is an hour, then the number
of array is one. If the time of the period is
three hours, then the number of array is
three.
++StartTime char[20 O Start time "2012-03-14
] 00:00:00"
{
DA
"NumberStat" : [ {
HU
"SN" : "6M053FDYAQ00003"
A_
"ManNumDetection" : [ {
HT
"Channel" : 0,
TP
"EnteredSubtotal" : 0,
AP
"ExitedSubtotal" : 0,
I_
}, {
.3
7
"Channel" : 0,
fo
"EnteredSubtotal" : 0,
el
"ExitedSubtotal" : 0,
se
n
}, …, { } ],
dn
"PeopleCount" : [ {
Bh
"Channel" : 0,
d
OK
HU
When the client subscribes ObjectDetect (video Structuring) dashboard, the device will upload
TP
video structuring dashboard to the specified address. The target service address and port, URL are
_ AP
designated by ReportHttpUpload. Each video structuring report data is sent within one separate HTTP
I_
request.
V3
Method POST
fo
cycle
HU
hicles
_
Request Example
AP
User-Agent: Device/1.0
V3
Content-Type: application/json
.3
7
{
el
"ObjectDetect" : [ [ {
se
n
"MotoVehicles" : 8,
gS
"Period" : 60,
dn
"PeriodBySeconds" : 0,
Bh
"SN" : "6J0CB81YAG10101",
d
"UTC" : 1615492800,
"UTCMS" : 0,
"VehicleTypeFlow" : {
"PasserbyVehicles" : 6
},
"Vehicles" : 17
}, …, { } ], …, [ ] ]
}
Request Example
_
User-Agent: Device/1.0
I_
Content-Type: application/json
V3
{
rV
"HeatMap" : [ {
el
"Channel" : 0,
se
"SN" : "66:66:66:56:78:9a",
n gS
"height" : 64,
"width" : 64
d
"EncodeData" : "abcd=",
}, …, {} ]
}
onds
HU
Null: No data
_
'0': No direction
AP
1: Southwest to Northeast
rV
2: West to East
el
3: Northwest to Southeast
se
n
4: North to South
gS
dn
5: Northeast to Southwest
Bh
6: East to West
d
7: Southeast to Northwest
8: Ignore
9: Customize
10: No direction
11: A ->B direction
12: B ->A direction
+LocalTime char[20] O Local time at the end of the statistical "2016-03-23 15:08:00"
cycle
+Vehicles int O Total count of motorized and non- 0
motorized vehicle
+VehicleTypeF object O Statistical data on the traffic volume
low based on vehicle type
++PasserbyVe int O Pedestrian traffic flow 0
hicles
{
"RoadFlowStat" : [ [ {
"SN" : "6J0CB81YAG10101",
"UTC" : 1615485600,
"UTCMS" : 0,
"Lane" : 1,
"PresetID" : 0,
"Period" : 60,
"PeriodBySeconds" : 0,
"MotoVehicles" : 0,
DA
"Vehicles" : 26506
HU
"VehicleTypeFlow" : {
A_
"PasserbyVehicles" : 0
HT
},
TP
}, …, { } ], … , [ ] ]
_
}
AP
I_
Response Example
.3
7
OK
fo
rV
When the client subscribes CrowdDistriMap (Crowd Distribution) report data, the device will upload
gS
video structuring data to the specified address. The target service address and port, URL are
dn
designated by ReportHttpUpload. Each crowd distribution report data is sent within one separate HTTP
Bh
request.
d
{
"CrowdDistriMap" : [ {
"CrowdDistriMap" : {
"DataList" : [ {
"AreaName" : "CDM-1",
"PeopleNum" : 0,
"UTC" : 1617375600
DA
}, {
HU
"AreaName" : "CDM-1",
A_
"PeopleNum" : 0,
HT
"UTC" : 1617379200
TP
}]
_
},
AP
"SN" : "7B0606BYAQ00010"
I_
}, … , { } ]
V3
}
.3
7
fo
rV
Response Example
se
OK
n gS
When the client subscribes VehiclesDistri vehicle density) report data, the device will upload video
d
structuring data to the specified address. The target service address and port, URL are designated by
ReportHttpUpload. Each vehicle density report data is sent within one separate HTTP request.
Request URL http://<Address>:<Port>/<Uploadpath_of_ReportHttpUpload>
Method POST
Request Params ( JSON in body )
Name Type R/O Description Example
VehiclesDistri Object[] R Data statistics on vehicle density
distribution. Each dimension is the
data of a channel.
+SN char[32] O Device SN "1C03E08YAZ00020"
+CongestionDete object O The data report of vehicle density 0
ction congestion rules.
Request Example
TP
User-Agent: Device/1.0
AP
Content-Type: application/json
I_
{
fo
"VehiclesDistri" : [ {
rV
"CongestionDetection" : {
el
"DataList" : [ {
se
n
"RuleName" : "VD-1",
gS
"UTC" : 1617375600,
dn
"VehiclesNum" : 0
Bh
}, {
d
"RuleName" : "VD-1",
"UTC" : 1617379200,
"VehiclesNum" : 0
} ],
"DataNum" : 2
},
"SN" : "7B0606BYAQ00010",
"VehicleLimitDetection" : {
"DataNum" : 0
}
}, … , { } ]
}
channel.
+SN char[32] R Device SN "8J0751AYAQ00004"
HU
number of arrays is 3.
.3
t
se
Request Example
d
{
"FaceAnalysis": [
{
"Channel": 0,
"SN": "8J0751AYAQ00004",
"Info": [{
"EndTime": "2022-12-21 11:59:59",
"FaceAnalysisCount": 92,
5.1 Image
and normal.
AP
0~100
el
0~100
gS
range : [Gentle,Standard,Flamboyant]
+TimeSection char[20] O time section "1 00:00:00-24:00:00"
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoColor
Get Config Response Example
table.VideoColor[0][0].Name=Day,
table.VideoColor[0][0].Brightness=50,
table.VideoColor[0][0].Contrast=50,
table.VideoColor[0][0].Saturation=50,
table.VideoColor[0][0].Hue=50,
table.VideoColor[0][0].Gamma=50,
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
el
se
are as follows :
n
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoInSharpness
dn
table.VideoInSharpness [0][0].Level=4
d
table.VideoInSharpness [0][0].Sharpness=8
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
DA
are as follows :
HU
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoImageControl
HT
table.VideoImageControl[0].Flip=true
_
table.VideoImageControl[0].Mirror=false
AP
table.VideoImageControl[0].Rotate90=0
I_
V3
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&VideoImageControl[0].Flip=true
fo
OK
el
se
n gS
5.2 Exposure
dn
Bh
value.
HU
If ExposureSpeed is 0(AutoExposure
I_
of manualExposure
fo
ExposureValue1
gS
100.
Bh
true: IrisAuto
false: No IrisAuto
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoInExposure
Get Config Response Example
table.VideoInExposure[0][0].AntiFlicker=0
table.VideoInExposure[0][0].Gain=50
table.VideoInExposure[0][0].GainMax=50
table.VideoInExposure[0][0].GainMin=0
table.VideoInExposure[0][0].Iris=50
table.VideoInExposure[0][0].IrisAuto=false
5.3 Backlight
and normal.
se
GlareInhibition: HLC
WideDynamic: WDR
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoInBacklight
Get Config Response Example
table.VideoInBacklight[0][0].GlareInhibition=50
table.VideoInBacklight[0][0].Mode=Off
table.VideoInBacklight[0][0].WideDynamicRange=50
and normal.
I_
ManualDatum
7
+GainRed int O 80
fo
Range is [0—100]
rV
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
d
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoInWhiteBalance
Get Config Response Example
VideoInWhiteBalance[0][0].GainBlue=50
VideoInWhiteBalance[0][0].GainRed=50
VideoInWhiteBalance[0][0].Mode=Auto
switching.
HT
"Timing"}.
AP
photoresistor,
rV
mode
dn
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoInDayNight
Get Config Response Example
VideoInDayNight[0][0].Delay=10
VideoInDayNight[0][0].Mode=Brightness
VideoInDayNight[0][0].Sensitivity=2
VideoInDayNight[0][0].Type=Mechanism
-1 means resetting.
I_
-1 means resetting.
fo
Request Example
rV
http://192.168.1.108/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.5&zoom=-0.5
el
se
ngS
OK
Bh
d
Auto focus.
HU
Method GET
HT
Request Example
.3
http://192.168.1.108/cgi-bin/devVideoInput.cgi?action=autoFocus&channel=1
7
fo
rV
OK
ngS
5.6.5 setFocus
Method POST
HU
to 0
AP
parameter is 0
el
se
Request Example
n
{
gS
"Channel ": 0,
dn
“FocusType”:1
Bh
}
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=VideoInZoom
Get Config Response Example
DA
table.VideoInZoom[0][0].Name=Day
HU
table.VideoInZoom[0][0].Speed=8
A_
table.VideoInZoom[0][0].DigitalZoom=true
HT
…
TP
_
http://192.168.1.108/cgi-
I_
bin/configManager.cgi?action=setConfig&VideoInZoom[0][0].DigitalZoom=false&VideoInZoom[0][0].S
V3
peed=8
.3
7
OK
rV
el
1: Manual correction
HU
2: Auto correction
A_
0: High
TP
1: Default
_
2: Low
AP
+FocusLimitSelec char[16] O Focuings limit mode (The distance limit for "Auto"
I_
"Manual"
.3
7
"Auto"
fo
rV
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
el
are as follows :
se
n
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=VideoInFocus
dn
table.VideoInFocus[0][0].Name=Day
d
table.VideoInFocus[0][0].Mode=0
table.VideoInFocus[0][0].Sensitivity=1
table.VideoInFocus[0][0].FocusLimitSelectMode=Manual,
table.VideoInFocus[0][0].FocusLimit=2000
table.VideoInFocus[0][0].FocusFarLimit=5000
table.VideoInFocus[0][0].AutoFocusTrace=0
table.VideoInFocus[0][0].IRCorrection=0
…
5.7 Lighting
"ZoomPrio"}.
A_
lamps.
TP
"ExclusiveManual" }
I_
ZoomPrio mode.
7
0~100
+MiddleLight object[] O middle light.
dn
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Lighting
Get Config Response Example
http://192.168.1.108/cgi-
HT
bin/configManager.cgi?action=setConfig&Lighting[0][0].Correction=50&Lighting[0][0].Mode=ZoomPrio
TP
OK
AP
I_
V3
Method POST
dn
R Splicing state 0
d
State int32
1: Switch to splice mode
(Binocular camera's monocular
mode)
0: Switch to non-splicing mode
(Binocular camera's original
mode)
Request Example
{
"State": 0
}
n depends on capability in
HU
GetVideoInputCaps
A_
0: backlight closed.
HT
1: backlight grade 1
TP
...
_AP
n - backlight grade n
+DayNightCol int O Range is {0,1,2} 0
I_
V3
or 0: always multicolor
.3
2: always monochrome,
fo
"Outdoor", "Custom"
Bh
advanced modes:
"CustomColorTemperature", "Indoor",
"ATW", "Manual", "AutoOutdoor",
"ManualDatum" and so on.
+Mirror bool O true: enable video mirror function false
false: disable video mirror function
+Flip bool O true: enable video flip function false
false: disable video flip function
+IrisAuto bool O true: IrisAuto false
false: No IrisAuto
+GainRed uint8 O Range is [0—100] 50
Gain for red value, Value is effective
when WhiteBalance is "Custom."
+GainBlue uint8 O Range is [0—100] 50
value.
HU
false: No GainAuto
HT
Video rotation:
V3
0: No rotate
.3
7
External Synchronous
dn
0: Internal Synchronization
Bh
1: External Synchronous
d
3: 192us
HU
…
A_
15 - 960us
HT
Trigger mode:
.3
7
0: low level
fo
1: high level
rV
2: rising-edge
el
3: falling-edge
se
n
n GlareInhibition:
dn
0: Close GlareInhibition.
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoInOptions
Get Config Response Example
head.Backlight=0
table.VideoInOptions[0].NightOptions.Backlight=0
HU
table.VideoInOptions[0].NightOptions.BacklightRegion[0]=3096
A_
table.VideoInOptions[0].NightOptions.BacklightRegion[1]=3096
HT
table.VideoInOptions[0].NightOptions.BacklightRegion[2]=5096
TP
table.VideoInOptions[0].NightOptions.BacklightRegion[3]=5096
_
table.VideoInOptions[0].NightOptions.BrightnessThreshold=50
AP
table.VideoInOptions[0].NightOptions.DayNightColor=2
I_
table.VideoInOptions[0].NightOptions.ExposureMode=0
V3
table.VideoInOptions[0].NightOptions.ExposureSpeed=0
.3
7
table.VideoInOptions[0].NightOptions.ExposureValue1=0
fo
table.VideoInOptions[0].NightOptions.ExposureValue2=40
rV
table.VideoInOptions[0].NightOptions.ExternalSyncPhase=125
el
table.VideoInOptions[0].NightOptions.Flip=false
se
table.VideoInOptions[0].NightOptions.Gain=50
n gS
table.VideoInOptions[0].NightOptions.GainAuto=true
dn
table.VideoInOptions[0].NightOptions.GainBlue=50
Bh
table.VideoInOptions[0].NightOptions.GainGreen=50
d
table.VideoInOptions[0].NightOptions.GainMax=50
table.VideoInOptions[0].NightOptions.GainMin=0
table.VideoInOptions[0].NightOptions.GainRed=50
table.VideoInOptions[0].NightOptions.GlareInhibition=0
table.VideoInOptions[0].NightOptions.IrisAuto=true
table.VideoInOptions[0].NightOptions.Mirror=false
table.VideoInOptions[0].NightOptions.Profile=3
table.VideoInOptions[0].NightOptions.ReferenceLevel=50
table.VideoInOptions[0].NightOptions.Rotate90=0
table.VideoInOptions[0].NightOptions.SunriseHour=0
table.VideoInOptions[0].NightOptions.SunriseMinute=0
table.VideoInOptions[0].NightOptions.SunriseSecond=0
table.VideoInOptions[0].NightOptions.SunsetHour=23
table.VideoInOptions[0].NightOptions.SunsetMinute=59
table.VideoInOptions[0].NormalOptions.ExposureValue2=40
HU
table.VideoInOptions[0].NormalOptions.ExternalSyncPhase=125
A_
table.VideoInOptions[0].NormalOptions.Flip=false
HT
table.VideoInOptions[0].NormalOptions.Gain=50
TP
table.VideoInOptions[0].NormalOptions.GainAuto=true
_
table.VideoInOptions[0].NormalOptions.GainBlue=50
AP
table.VideoInOptions[0].NormalOptions.GainGreen=50
I_
table.VideoInOptions[0].NormalOptions.GainMax=50
V3
table.VideoInOptions[0].NormalOptions.GainMin=0
.3
7
table.VideoInOptions[0].NormalOptions.GainRed=50
fo
table.VideoInOptions[0].NormalOptions.GlareInhibition=0
rV
table.VideoInOptions[0].NormalOptions.IrisAuto=true
el
table.VideoInOptions[0].NormalOptions.Mirror=false
se
table.VideoInOptions[0].NormalOptions.Profile=0
ngS
table.VideoInOptions[0].NormalOptions.ReferenceLevel=50
dn
table.VideoInOptions[0].NormalOptions.Rotate90=0
Bh
table.VideoInOptions[0].NormalOptions.SunriseHour=0
d
table.VideoInOptions[0].NormalOptions.SunriseMinute=0
table.VideoInOptions[0].NormalOptions.SunriseSecond=0
table.VideoInOptions[0].NormalOptions.SunsetHour=23
table.VideoInOptions[0].NormalOptions.SunsetMinute=59
table.VideoInOptions[0].NormalOptions.SunsetSecond=59
table.VideoInOptions[0].NormalOptions.SwitchMode=0
table.VideoInOptions[0].ReferenceLevel=50
table.VideoInOptions[0].ReferenceLevelEnable=false
table.VideoInOptions[0].Rotate90=0
table.VideoInOptions[0].SignalFormat=BT656
table.VideoInOptions[0].WhiteBalance=Disable
…
Set Manual:
HU
http://192.168.1.108/cgi-
A_
bin/configManager.cgi?action=setConfig&VideoInOptions[0].ExposureMode=4&VideoInOptions[0].Expo
HT
sureSpeed=32&VideoInOptions[0].GainMin=0&VideoInOptions[0].GainMax=50&VideoInOptions[0].Expo
TP
sureValue1=40&VideoInOptions[0].ExposureValue2=40
_ AP
Set SmartIRExposure:
I_
http://192.168.1.108/cgi-
V3
bin/configManager.cgi?action=setConfig&VideoInOptions[0].SmartIRExposure=true
.3
7
fo
Filp:
el
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].Flip=true
se
Mirror:
n gS
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].Mirror=true
dn
Or turn 90°:
Bh
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].Rotate90=1
d
http://192.168.1.108/cgi-bin/storageDevice.cgi?action=factory.getPortInfo
HU
A_
bus channel.
el
se
Response Example
I_
list[0]=/dev/sda0
V3
list[1]=/dev/sda1
.3
list[2]=/dev/sg1
7
fo
Method GET
Request Params ( key=value format in URL )
Bh
Request Example
http://192.168.1.108/cgi-bin/storageDevice.cgi?action=getDeviceAllInfo
list.info[0].Detail[0].TotalBytes=0
HU
list.info[0].Detail[0].Type=ReadWrite
A_
list.info[0].Detail[0].Path=/mnt/dvr/sda0
HT
list.info[0].Detail[0].UsedBytes=0
TP
list.info[0].Name=/dev/sda
_
list.info[0].State=Success
AP
I_
Method GET
rV
Request Example
gS
http://192.168.1.108/cgi-bin/storage.cgi?action=getCaps
dn
Bh
Response Example
HU
OK
A_
HT
TP
object
cordType
fo
rV
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
dn
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=SupportDiskRecordType
d
volume
HT
SAMBA, NFS)
_
}
AP
Device Information
V3
InvidualPhysical、InvidualRaid、
el
VolumeGroup
se
n
Request Example
gS
{
dn
"volume": "PhysicalVolume"
Bh
}
d
32] enumchar[32]{
A_
fault type)
I_
physical disk
rV
disk)*/
d
enumchar[32]{
HU
"ReadWrite"
A_
"ReadOnly"
HT
}
TP
s
gS
t “Recovering” or “Resyncing” is in
RAID status. Value: [0, 100]
++RecoverMBps double O Recover speed. Its is valid when 29.531
“Recovering” or “Resyncing” is in
RAID status. Unit: Mbps
++RecoverTimeR double O Remaining time. When in RAID status, 30.0
emain “Recovering” or “Resyncing” is valid.
Unit: Minute (s)
++AliasName char[24] O RAID alias, UTF-8 code. "Image storage
RAID"
++Sync enumint8 O Sync mode. I/O resources distributing 0
strategy enumint8{
0: Self-adaptive (The default value is )
1: I / O is prioritized to RAID
cabinets.
AP
(such as SAS)
rV
32] enumchar[32]{
gS
1: Standby status
HT
2: Waiting to be formatted
TP
3: Formatting…
_
4: Waiting to be fragmentated
AP
5: Fragmenting...
I_
7: Creating RAID...
.3
7
9: Deleting RAID...
rV
11: Fixing...
se
13: Pre-checking...
dn
{
HU
"device": {
A_
"Name" : "/dev/sda",
HT
"Media" : "CDROM",
TP
"BUS" : "ATA",
_
"PhysicNo" : 1,
AP
"LogicNo" : 0,
I_
"Capacity" : 314537952,
V3
"Volume": "RaidVolume",
.3
7
"State": "Running",
fo
"Parent" : "/dev/md0",
rV
"Type" : "ReadWrite",
el
"Module" : "HCT7210SLA360",
se
n
"SerialNo" : "STH607MGAS",
gS
"Temperature" : 38.5,
dn
"Firmware" : "ST6OA31E",
Bh
"Partitions" : [ {
d
"Name" : "/dev/sda0",
"Start" : 0,
"Total" : 2000000000,
"Remain" : 1000000000,
"MountOn" : "/mnt/dvr/idea0",
"FileSystem" : "VFAT",
"IsSupportFs" : "ture",
"Status" : "LvAvailable",
"Group" : "ReadWrite2",
"IsError" : false
},…,{}],
"Raid" : {
"Members" : ["/dev/sda", "/dev/sdb", "/dev/sdc"],
"MemberInfos" : [{
},//end of Raid
HU
"ISCSI" : {
A_
"Name" : "iSCSIA"
HT
}, // end of ISCSI
TP
"Tank" : {
_
"Level" : 1,
AP
"Slot" : 0,
I_
"TankNo" : 1
V3
}, // end of Tank
.3
7
"Slot" : 0,
fo
"PowerMode" : "StandBy",
rV
"PreDiskCheck" : "Good",
el
"OpState" : 0
se
"ManuFactory": "WD",
n
gS
"PosLedState": 0,
dn
"CmrSize": 0,
Bh
"MRType": 0,
d
"MediaType": "SSD",
"DRTypeMixState": "Mix"
}
}
6.2 NAS
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
I_
are as follows :
V3
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=NAS
fo
table.NAS[0].Name=FTP1
el
table.NAS[0].Enable = true
se
n
table.NAS[0].Protocol =FTP"
gS
table.NAS[0].Address =www.ttt.com
dn
table.NAS[0].Port =21
Bh
table.NAS[0].UserName =anonymity
d
table.NAS[0].Password =none
table.NAS[0].Directory =share
no SD card.
HU
directory or not.
AP
ange
V3
++CompressB int O 15
se
efore
gS
d
Bh
Record
+AlarmRecord object O refer to "TimingRecord"
+EventRecord object O refer to "TimingRecord"
+TimingSnapS object O refer to "TimingRecord"
hot
+ManualSnap object O refer to "TimingRecord"
Shot
+VideoDetect object O refer to "TimingRecord"
SnapShot
+AlarmSnapS object O refer to "TimingRecord"
hot
+EventSnapS object O refer to "TimingRecord"
hot
OK
A_
HT
TP
+Channels object[] O
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
table.StorageGroup[1].RecordPathRule=%y-%M-%d/%c/dav/%h/%h.%m.%s-%h.%m.%s[%E][%O@%S
HU
][%R].da
A_
HT
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&StorageGroup[0].Name=main
_
OK
I_
V3
.3
7
6.4 SDEncrypt
fo
rV
el
Method GET
Bh
Response Example
OK
A_
HT
TP
Method GET
.3
7
deviceName char[] R
bin/storageDevice.cgi?action=getDeviceAl
ngS
lInfo).
dn
Request Example
d
http://192.168.1.108/cgi-
bin/SDEncrypt.cgi?action=clearPassword&deviceName=/dev/mmc0&password=123456
Method GET
TP
bin/storageDevice.cgi?action=getDeviceAl
7
lInfo).
fo
rV
Request Example
ngS
http://192.168.1.108/cgi-
bin/SDEncrypt.cgi?action=getOperateErrorPolicy&deviceName=/dev/mmc0&operate=decrypt
dn
Bh
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific
examples are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=StorageHealthAlarm
Get Config Response Example
table.StorageHealthAlarm.Enable=true
table.StorageHealthAlarm.LowerLimit=10
table.StorageHealthAlarm.EventHandler= …(output of EventHandler is described in GetEventHandler)
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&StorageHealthAlarm.Enable=true
HU
OK
HT
TP
_ AP
I_
V3
.3
7
fo
rV
el
se
ngS
dn
Bh
d
7.1 GUI
a background.
A_
ble
TP
deTime directory.
fo
logout.
dn
ShowEnable
d
+ChannelTitle uint[4] O
The position of the channel title.
Pos
+AutoGuideEn bool O true
Auto guide or not when startup.
able
Please refer to “4.2.1 Get and Set Configure” for configuration getting and setting. Specific
examples are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=GUISet
Get Config Response Example
table.GUISet[0].WindowAlpha =128
table.GUISet[0].TimeTitleEnable =true
table.GUISet[0].TimeTitlePos[0]=0
table.GUISet[0].TimeTitlePos[1]=0
se&GUISet[0].MenuShowOption=1
HU
OK
HT
TP
_
Method GET
se
n
<= 2.
d
Request Example
http://192.168.1.108/cgi-bin/storage.cgi?action=getCaps
8,split9,split12,split16,split20,split25,split3
HU
siteSplit1" / "FitDisplayUnit4"};
TP
Request Example
rV
http://192.168.1.108/cgi-bin/split.cgi?action=setMode&channel=1&mode=split4&group=1
el
se
Response Example
dn
OK
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=MonitorTour
Get Config Response Example
table.MonitorTour[0].Enable=true
table.MonitorTour[0].Interval=128
table.MonitorTour[0].Mask.Split1=0,1,5
table.MonitorTour[0].Mask.Split8=0,1,5
table.MonitorTour[0].Collections=Favortite1, Favortite2…
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&MonitorTour[0].Enable=true
HU
OK
HT
TP
_
Method GET
7
2.
n
bool R true
gS
http://192.168.1.108/cgi-bin/split.cgi?action=enableTour&channel=1&enable=true
Bh
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
HU
are as follows :
A_
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=MonitorCollection
TP
table.MonitorCollection.collectionname. Mode=Split1
AP
table.MonitorCollection.collectionname.Windows[0].Enable= true
I_
V3
table.MonitorCollection.collectionname.Windows[0].Device=device1
.3
table.MonitorCollection.collectionname.Windows[0].VideoChannel=5
7
table.MonitorCollection.collectionname.Windows[0].VideoStream=Main
fo
table.MonitorCollection.collectionname.Windows[0].AudioChannel=5
rV
table.MonitorCollection.collectionname.Windows[0].AudioStream=Main
el
…
se
ngS
http://192.168.1.108/cgi-
Bh
bin/configManager.cgi?action=setConfig&MonitorCollection.Favorite1.Mode=split4&MonitorCollection.F
d
avorite1.Windows[1].Enable=true&MonitorCollection.Favorite1.Windows[1].VideoChannel=2
Set Config Response Example
OK
8.1 PTZ
protocol list.
HU
address.
AP
Space}.
dn
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Ptz
Get Config Response Example
table.Ptz[0].Address=8
table.Ptz[0].Attribute[0]=115200
table.Ptz[0].Attribute[1]=8
table.Ptz[0].Attribute[2]=Even
table.Ptz[0].Attribute[3]=1
table.Ptz[0].Homing[0]=0
table.Ptz[0].Homing[1]=30
DA
table.Ptz[0].NumberInMatrixs=0
HU
table.Ptz[0].ProtocolName=NONE
A_
HT
http://192.168.1.108/cgi-
_
bin/configManager.cgi?action=setConfig&Ptz[0].Address=192.168.0.1&Ptz[0].Attribute[0]=9600
AP
OK
V3
.3
7
fo
Method GET
gS
Request Example
http://192.168.1.108/cgi-bin/ptz.cgi?action=getProtocolList&channel=1
functions.
HU
caps.Iris=false
HU
caps.Menu=false
A_
caps.MonAddrMax=255
HT
caps.MonAddrMin=0
TP
caps.Name=DH-SD1
_
caps.Pan=false
AP
caps.PanSpeedMax=255
I_
caps.PanSpeedMin=1
V3
caps.PatternMax=5
.3
7
caps.PatternMin=1
fo
caps.PresetMax=80
rV
caps.PresetMin=1
el
caps.Tile=false
se
n
caps.TileSpeedMax=255
gS
caps.TileSpeedMin=1
dn
caps.TourMax=7
Bh
caps.TourMin=0
d
caps.Type=1
caps.Zoom=false
caps.PtzMotionRange.HorizontalAngle[0]=0
caps.PtzMotionRange.HorizontalAngle[1]=360
caps.PtzMotionRange.VerticalAngle[0]=-20
caps.PtzMotionRange.VerticalAngle[1]=90
caps.ZoomMax=30
caps.ZoomMin=1
1~1
HU
1~1
TP
Response Example
I_
status.UTC=6538920
V3
status.MoveStatus=Idle
.3
7
status.ZoomStatus=Idle
fo
status.PresetID=10
rV
status.Position[0]=0.0
el
status.Position[1]=0.0
se
n
status.Position[2]=1.0
gS
dn
code char[16 R See the following table for the operation "Up"
TP
Request Example
7
http://192.168.1.108/cgi-bin/ptz.cgi?action=stop&code=Up&channel=1&arg1=0&arg2=0&arg3=0
fo
rV
el
Response Example
n
gS
OK
dn
Method GET
HU
] must be "Continuously".
AP
s).
n
Request Example
d
http://192.168.1.108/cgi-
bin/ptz.cgi?action=start&code=Continuously&channel=1&arg1=5&arg2=5&arg3=5&arg4=60
Appendix: Direction of the continuous movement of the PTZ and the step length parameters.
] must be "Continuously".
A_
Request Example
I_
http://192.168.1.108/cgi-
V3
bin/ptz.cgi?action=stop&code=Continuously&channel=1&arg1=0&arg2=0&arg3=0&arg4=0
.3
7
fo
rV
Response Example
se
OK
ngS
3D Positioning
dn
The PTZ moves to the specified position [startX, startY], [endX, endY] on the screen through 3D
Bh
positioning .
d
1]
HU
Request Example
TP
http://192.168.1.108/cgi-
_
bin/ptz.cgi?action=moveRelatively&channel=1&arg1=0.1&arg2=0.1&arg3=0.5
AP
I_
Response Example
.3
7
OK
fo
el
Accurate PTZ positioning; the actual parameter range depends on the device. For capability
se
details, execute the command mentioned in "8.1.3 Get PTZ Capability of Current Protocol".
n gS
Method GET
Bh
8.1.6 Preset
Getting Preset Information
Get the preset information
Request URL http://<server>/cgi-bin/ptz.cgi?action=getPresets
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
DA
http://192.168.1.108/cgi-bin/ptz.cgi?action=getPresets&channel=1
HT
TP
Preset type 0
rV
0: Normal preset
+Type int O
el
2: Special preset
ngS
(Auto)
The coordinate of the preset and [900, -900, 5]
zoom; three integers
The first parameter is the horizontal
coordinate; range: [0,3599], referring
to 0° to 359.9° (the number of degree
+Position int[3] O
is expanded by 10 times).
The second parameter is the vertical
coordinate; range: [-1800,1800],
referring to -180° to 180° (the number
of degree is expanded by 10 times).
Request Example
AP
http://192.168.1.108/cgi-
I_
bin/ptz.cgi?action=start&code=GotoPreset&channel=1&arg1=0&arg2=1&arg3=0
V3
.3
7
Response Example
rV
OK
el
se
n
Configuring Preset
gS
Method GET
Bh
Delete a preset.
HU
Method GET
HT
Request Example
fo
http://192.168.1.108/cgi-
rV
bin/ptz.cgi?action=start&code=ClearPreset&channel=1&arg1=0&arg2=2&arg3=0
el
se
n
Response Example
dn
OK
Bh
d
8.1.7 Tour
Start the tour
Request URL http://<server>/cgi-bin/ptz.cgi?action=start&code=StartTour
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
channel int R PTZ channel index which starts from 1. 1
Range is [1 — n].
arg1 int R the number of tour route 1
arg2 int R Ignore 0
arg3 int R Ignore 0
Request Example
Request Example
http://192.168.1.108/cgi-
A_
bin/ptz.cgi?action=start&channel=1&code=StopTour&arg1=1&arg2=0&arg3=0
HT
TP
Response Example
I_
OK
V3
7
Method GET
rV
Range is [1 — n].
dn
Request Example
http://192.168.1.108/cgi-bin/ptz.cgi?action=setTour&channel=1&arg1=1&arg2=1
Range is [1 — n].
arg1 int R the number of tour route 1
A_
Request Example
_
AP
http://192.168.1.108/cgi-
I_
bin/ptz.cgi?action=start&channel=1&code=AddTour&arg1=1&arg2=2&arg3=0
V3
.3
Response Example
rV
OK
el
se
n
Response Example
HT
OK
TP
_
I_
Method GET
.3
Range is [1 — n].
se
Request Example
Bh
http://192.168.1.108/cgi-
d
bin/ptz.cgi?action=start&channel=1&code=SetRightLimit&arg1=1&arg2=0&arg3=0
Start scan
Request URL http://<server>/cgi-bin/ptz.cgi?action=start&code=AutoScanOn
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
channel int R PTZ channel index which starts from 1. 1
Range is [1 — n].
Stop scan
Request URL http://<server>/cgi-bin/ptz.cgi?action=start&code=AutoScanOff
Method GET
Request Params ( key=value format in URL )
DA
Request Example
I_
http://192.168.1.108/cgi-
V3
bin/ptz.cgi?action=start&channel=1&code=AutoScanOff&arg1=1&arg2=0&arg3=0
.3
7
fo
Response Example
el
OK
se
ngS
8.1.9 Pattern
dn
d
OK
HT
TP
Start pattern
_
Method GET
I_
V3
Range is [1 — n].
rV
Request Example
dn
http://192.168.1.108/cgi-
Bh
bin/ptz.cgi?action=start&channel=1&code=StartPattern&arg1=1&arg2=0&arg3=0
d
Stop pattern
Request URL http://<server>/cgi-bin/ptz.cgi?action=start&code=StopPattern
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
channel int R PTZ channel index which starts from 1. 1
Range is [1 — n].
arg1 int R pattern number 1
8.1.10 Pan
Start pan
Request URL http://<server>/cgi-bin/ptz.cgi?action=start&code=AutoPanOn
DA
Method GET
HU
Range is [1 — n].
TP
Request Example
.3
http://192.168.1.108/cgi-
7
fo
bin/ptz.cgi?action=start&channel=1&code=AutoPanOn&arg1=0&arg2=0&arg3=0
rV
el
Response Example
ngS
OK
dn
Bh
Stop pan
d
00:00:00-23:59:59","0
A_
TimeSchedule[week][section]=1 00:00:00-23:59:59","0
HT
10:00:00-11:00:00 00:00:00-23:59:59""0
TP
00:00:00-23:59:59","0
_
AP
a maximum of 6
el
se
32] Scan
gS
Preset
dn
Pattern
Bh
Tour
d
None
}
+ScanId int O Scan Id, start from 1 1
+PresetId int O Preset Id, start from 1 1
+PatternId int O Pattern Id, start from 1 1
+TourId int O Tour Id, start from 1 1
+AutoHoming object O auto homing
++Enable bool O enable/disable true
++Time uint O Recover time, unit is second. 300
+SnapshotEna bool O Enable/Disable Snap, when "Fuction" is false
ble "Preset".
+SnapshotDel int O Delay time of snap, when "Fuction" is 30
ayTime "Preset".
table.PtzAutoMovement[0][0].TimeSection[0][3]=0 00:00:00-23:59:59
HU
table.PtzAutoMovement[0][0].TimeSection[0][4]=0 00:00:00-23:59:59
A_
table.PtzAutoMovement[0][0].TimeSection[0][5]=0 00:00:00-23:59:59
HT
table.PtzAutoMovement[0][0].TimeSection[1][0]=0 00:00:00-23:59:59
TP
table.PtzAutoMovement[0][0].TimeSection[1][1]=0 00:00:00-23:59:59
_
table.PtzAutoMovement[0][0].TimeSection[1][2]=0 00:00:00-23:59:59
AP
table.PtzAutoMovement[0][0].TimeSection[1][3]=0 00:00:00-23:59:59
I_
table.PtzAutoMovement[0][0].TimeSection[1][4]=0 00:00:00-23:59:59
V3
table.PtzAutoMovement[0][0].TimeSection[1][5]=0 00:00:00-23:59:59
.3
7
table.PtzAutoMovement[0][0].TimeSection[2][0]=0 00:00:00-23:59:59
fo
table.PtzAutoMovement[0][0].TimeSection[2][1]=0 00:00:00-23:59:59
rV
table.PtzAutoMovement[0][0].TimeSection[2][2]=0 00:00:00-23:59:59
el
table.PtzAutoMovement[0][0].TimeSection[2][3]=0 00:00:00-23:59:59
se
table.PtzAutoMovement[0][0].TimeSection[2][4]=0 00:00:00-23:59:59
ngS
table.PtzAutoMovement[0][0].TimeSection[2][5]=0 00:00:00-23:59:59
dn
table.PtzAutoMovement[0][0].TimeSection[3][0]=0 00:00:00-23:59:59
Bh
table.PtzAutoMovement[0][0].TimeSection[3][1]=0 00:00:00-23:59:59
d
table.PtzAutoMovement[0][0].TimeSection[3][2]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[3][3]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[3][4]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[3][5]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[4][0]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[4][1]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[4][2]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[4][3]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[4][4]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[4][5]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[5][0]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[5][1]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[5][2]=0 00:00:00-23:59:59
table.PtzAutoMovement[0][0].TimeSection[5][3]=0 00:00:00-23:59:59
OK
HU
A_
HT
Range is [1 — n].
arg1 int R Ignore 0
el
se
Request Example
dn
http://192.168.1.108/cgi-bin/ptz.cgi?action=start&channel=1&code=Restart&arg1=0&arg2=0&arg3=0
Bh
d
Method GET
HU
Range is [1 — n].
TP
Request Example
.3
http://192.168.1.108/cgi-bin/ptz.cgi?action=start&channel=1&code=Menu&arg1=0&arg2=0&arg3=0
7
fo
rV
Response Example
se
OK
ngS
dn
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
channel int R PTZ channel index which starts from 1. 1
Range is [1 — n].
arg1 int R Ignore 0
arg2 int R Ignore 0
arg3 int R Ignore 0
Request Example
http://192.168.1.108/cgi-bin/ptz.cgi?action=start&channel=1&code=Exit&arg1=0&arg2=0&arg3=0
Confirm
Request URL http://<server>/cgi-bin/ptz.cgi?action=start&code=Enter
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
channel int R PTZ channel index which starts from 1. 1
Range is [1 — n].
arg1 int R Ignore 0
arg2 int R Ignore 0
arg3 int R Ignore 0
Request Example
http://192.168.1.108/cgi-bin/ptz.cgi?action=start&channel=1&code=Enter&arg1=0&arg2=0&arg3=0
DA
Response Example
A_
OK
HT
TP
Method GET
V3
MenuUp
el
MenuDown
se
MenuLeft
n gS
MenuRight
dn
}
Bh
Range is [1 — n].
arg1 int R Ignore 0
arg2 int R Ignore 0
arg3 int R Ignore 0
Request Example
http://192.168.1.108/cgi-
bin/ptz.cgi?action=start&channel=1&code=MenuUp&arg1=0&arg2=0&arg3=0
"Oneplusthree" - 1 + 3 mode;
"Oneplusfive" - 1 + 5 mode
HU
True - on,
HT
False close
TP
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=EptzLink
Get Config Response Example
table.EptzLink[0].Enable=true
table.EptzLink[0].DisplayMode=Original
OK
HU
A_
HT
Method POST
I_
V3
from 0
rV
Request Example
el
{
se
n
"Channel": 0
gS
}
dn
Bh
Unit: degrees
HU
Normalized to - 1~1.
A_
Response Example
HT
{
TP
"status" : {
_
"Distance" : 20.0,
AP
"AngelH" : 30.5,
I_
"AzimuthH" : 0.5,
V3
"AngelV" : 30.5,
.3
7
"AzimuthV" : 0.5,
fo
"InclinationH" : 0.5
rV
}
el
}
se
ngS
dn
8.2 Wiper
Bh
d
Response Example
HT
OK
TP
_
Method GET
rV
Request Example
http://192.168.1.108/cgi-bin/rainBrush.cgi?action=moveOnce&channel=1
Bh
d
8.3 Illuminator
The following commands are applicable to non-intelligent illuminators.
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=SignLight
Get Config Response Example
table.SignLight[0].onCycle=30
table.SignLight[1].onCycle=35
…
OK
HU
A_
HT
Illuminator configuration is used by IPC/SD production line. The illumination effect depends on the
I_
type of installed illuminator. Usage constraint: The illuminator type of the device is unique, only IR light,
V3
white light or other types of lights. If there are many different types of lights, only the Mode field of this
.3
configuration is used, and other fields are not used. In June, 2017, schedule control requirements were
7
added to the white light. The second dimensional lighting configuration was expanded from one
fo
rV
element to four elements. The 0 element of the second dimension indicates the configuration that takes
effect immediately. If the 0 element is modified, it needs to respond immediately. When the
el
se
Elements 1, 2 and 3 in the second dimension represent day, night, and normal respectively.
gS
Compatibility rule: If Lighting [0] is modified, it will take effect immediately (compatible with the usage
dn
without schedule function). If Lighting [0] is not modified, it means that the lights are controlled by
Bh
schedule, and the configuration of [1]/[2]/[3] take effect. Subscripts 0 and 123 are not synchronized with
d
each other. Doorbell products of intelligent building production line use Mode field to control the switch
of illuminators, and only "SmartLight" and "Off" modes are used.
Config Data Params
Name Type R/O Description Example
Lighting object[][] O 2D array. The first dimension corresponds to
video input channels, and each video
channel has several configurations.
+Mode char[32] O Light mode. "ZoomPrio"
"Manual": Manually control the brightness
and angle (the following settings are valid
only when this field is available).
"Auto": No need to set the brightness and
angle.
"Off": Turn off the light.
configuration is used.
TP
modes.
I_
kept).
rV
priority mode.
se
0–100.
Bh
mode.
Range: 0–5.
3 by default.
+Times int O Turn-on time, only valid in auto mode. 30
Unit: Second (required by turnstiles with face
recognition function)
+NearLight object[] O Near light group.
The number of arrays is controlled by the
LightingControl capability set.
++Light int O Percentage of light brightness (1–100). 0
0: Turn off.
++Angle int O Normalized angle of laser light. 50
Range: 0–100
+MiddleLight object[] O Medium light group.
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=Lighting
HT
table.Lighting[0][0].Correction=50
_
table.Lighting[0][0].FarLight[0].Angle=50
AP
table.Lighting[0][0].FarLight[0].Light=50
I_
table.Lighting[0][0].Mode=ZoomPrio
V3
table.Lighting[0][0].NearLight[0].Angle=50
.3
7
table.Lighting[0][0].NearLight[0].Light=50
fo
table.Lighting[0][0].Sensitive=3
rV
el
http:// 10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&Lighting[0][0].Mode=Manual
gS
OK
Bh
d
"PilotLight": Indicator.
HU
}
A_
32] enumchar[32]{
TP
angle.
fo
settings.
"ForceOn": Turn on the light forcibly.
}
+Correction int O Light compensation, only valid in zoom 2
priority mode.
Range: 0–100.
+PercentOfMa uint8 O The percentage of the upper limit 100
xBrightness brightness of the current white light
relative to the maximum brightness of the
general white light.
Range: 0–100. The device calculates the
actual limit value according to the
percentage of the maximum brightness
value of the general white light.
0: Turn off.
HU
Range: 0–100.
HT
1: Cold light.
I_
2 : Warm light.
V3
0: Turn off.
se
n
Range: 0–100.
dn
+TimeSection bool O Enable the period for solid on of the light. true
gS
table.Lighting_V2[0][0][0].Correction=50
A_
table.Lighting_V2[0][0][0].LightType=InfraredLight
HT
table.Lighting_V2[0][0][0].MiddleLight[0].Angle=50
TP
table.Lighting_V2[0][0][0].MiddleLight[0].Light=50
_
table.Lighting_V2[0][0][0].Mode=Auto
AP
table.Lighting_V2[0][0][0].PercentOfMaxBrightness=100
I_
table.Lighting_V2[0][0][0].Sensitive=3
V3
.3
7
http://10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][0][0].Correction=50
rV
OK
se
n gS
dn
effect.
_
8.4 Flashlight
format of
V3
char[7][24]
+TimeSection hh: Hour; range: [0–24]
fo
[32]
rV
Mask value:
n gS
For example:
Bh
TimeSection[1][0]=1 12:00:00—
d
18:00:00
Meaning the flashing light works from
12:00:00 through 18:00:00 on
Monday.
For getting and setting the configurations, see 4.2.1 Get and Set Configure”.
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=FlashLight
Get Config Response Example
table.FlashLight.Enable=true
table.FlashLight.Brightness=50
table.FlashLight.TimeSection[0][0]=1 00:00:00-23:59:59
table.FlashLight.TimeSection[0][1]=0 00:00:00-23:59:59
…
Method GET
A_
1: White light
fo
2: Speaker
rV
1: On
se
2: Off
n gS
1: Linked trigger
Bh
2: Manual trigger
d
Request Example
http://192.168.1.108/cgi-
bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=1&info[0].TriggerMode
=2
Method GET
V3
1
el
Request Example
se
http://192.168.1.108/cgi-bin/pirAlarm.cgi?action=getPirParam&channel=1
n gS
dn
int[Line
++Region and 22 blocks/line.
Num]
HU
Example:
TP
MotionDetect[0].Region[0] = 4194303
_
22 blocks is monitored.
I_
blocks is monitored.
el
Staurday) 24:00:00","1
n gS
00:00:00-
d
++SnapshotEn O true
bool Enable/Disable snapshot function.
HU
able
A_
O Range is [0—255]. 10
HT
++AlarmBellEn O true
I_
int
7
Response Example
el
configEx[0].Enable=true
se
n
configEx[0].PirLink.LightingLink.Enable=true
gS
configEx[0].PirLink.LightingLink.LightLinkType=Filcker
dn
configEx[0].PirLink.LightingLink.FilckerIntevalTime=5
Bh
configEx[0].PirLink.LightingLink.LightDuration=10
d
configEx[0].PirLink.LightingLink.WhiteLightTimeSection=TimeSection
configEx[0].PirLink.TimeSection[0][0]=1 00:00:00-24:00:00
configEx[0].PirLink.TimeSection[0][1]=0 02:00:00-24:00:00
configEx[0].PirLink.TimeSection[0][2]=0 03:00:00-24:00:00
configEx[0].PirLink.TimeSection[0][3]=0 04:00:00-24:00:00
configEx[0].PirLink.TimeSection[0][4]=0 05:00:00-24:00:00
configEx[0].PirLink.TimeSection[0][5]=0 06:00:00-24:00:00
configEx[0].RecordEnable=true
configEx[0].RecordChannels=[0, 1, 2]
configEx[0].RecordLatch=10
configEx[0].AlarmOutEnable=true
configEx[0].AlarmOutChannels=[1, 4]
configEx[0].AlarmOutLatch=10
configEx[0].SnapshotEnable=true
Method GET
TP
1
.3
channel.
el
Request Example
ngS
http://192.168.1.108/cgi-
dn
bin/pirAlarm.cgi?action=setPirParam&channel=1&configEx[1].Enable=true&configEx[1].PirLink.Lighti
ngLink.Enable=true&...
Bh
d
8.7 SCADA
info object[] R
HU
temperature”
HT
second
dn
characters.
A_
Supports up to 16 characters.
TP
Supports up to 16 characters.
AP
Response Example
I_
V3
{
.3
"info": [{
7
"Unit": "℃",
el
"Type": "YC",
se
n
"ID": "01001010111",
gS
"StartDelay": 120,
dn
"StopDelay": 20,
Bh
"Period": 180,
d
"Threshold": 40.0,
"AlarmWaveVal": 2,
"AbsoluteVal": 0.2,
"RelativeVal": 0,
"Status": 0,
"DisplayOptions": 0x00000000,
"Valid": true,
"Delay": 120,
"Describe": "Environment temperature",
"IECCode": "12345",
"HJCode": "a01001"
},…{}]
}
second
HU
same .
I_
disabled or is "0".
se
enumint{
dn
0: normal
1: Level-1 alarm
Bh
2: Level-2 alarm
d
3: Level-3 alarm
4: Level-4 alarm
5: Operation event
6: Invalid data
}
+DisplayOptio uint O Displays data: 0x00000000
ns BIT0: Displays the switch or not. 0: No;
1: Yes.
BIT1: Displays the switch when scrolling.
0: No; 1: Yes.
+Valid bool R Valid signal point. true: Valid. true
false: Invalid.
Request Example
}
HU
A_
state object O
_
Response Example
.3
{
7
"state": {
fo
"Success": [ "01001010111"],
rV
"Fail": ["01001010122"]
el
}
se
n
}
gS
dn
}
HT
YX: Integer
.3
the type.
rV
YK: Integer
el
enumint{
dn
0: Normal
Bh
1: Level-1 alarm
d
2: Level-2 alarm
3: Level-3 alarm
4: Level-4 alarm
5: Operation Event
6: Invalid data
}
+RecordTime char[20] O Collection time "2015-1-3 10:10:45"
Response Example
{
"info": [{
"Type": "YC",
"ID": "01001010111",
"PointName": "aaa",
"MeasuredVal": 213.1,
YK: Integer
TP
Request Example
_
{
AP
"DeviceId": "01001010111",
I_
V3
"points": [{
.3
"Type": "YT",
7
"ID": "01001010111",
fo
"SetupVal": 12.3
rV
},…{}]
el
se
}
n gS
state object O
d
{
HU
"condition": {
"StartTime": "2015-1-2 10:10:45",
A_
"DeviceId": "01001010111",
TP
"ID": "01001010111"
_
AP
}
I_
}
V3
.3
Response Example
n
gS
{
dn
"token": 46878,
"totalCount": 3333
Bh
}
d
the condition.
HU
enumchar[32]{
HT
}
.3
+MeasuredVal float R Value You can change this filed type, 213.1
fo
value is integer.
gS
filed.
d
Response Example
HT
{}
TP
_
Method POST
7
Request Example
el
se
{}
n
gS
8.8 Gyro
Method POST
HT
Request Example
I_
{}
V3
.3
detail object R
el
8.9 Other
object[][]
_
AP
capability VideoInSceneLink.
Bh
brightness.
TP
range is 0–100.
AP
VideoIndayNight.
AP
of values.
V3
shutters.
rV
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoInDayNight
Bh
table.VideoInDayNight[0][0].Delay=6
table.VideoInDayNight[0][0].Mode=Brightness
table.VideoInDayNight[0][0].Name=Day
table.VideoInDayNight[0][0].Sensitivity=2
table.VideoInDayNight[0][0].Type=Mechanism
to 0 — 8192.
I_
V3
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
.3
7
--<boundary>
rV
Content-Type: text/plain
el
Content-Length: <length>
se
n gS
Events[0].EventBaseInfo.Code=LeftDetection
dn
Events[0].EventBaseInfo.Action=Start
Bh
Events[0].EventBaseInfo.Index=0
d
Events[0].Object.BoundingBox[0]= 4392
Events[0].Object.BoundingBox[1]=4136
Events[0].Object.BoundingBox[2]=6960
Events[0].Object.BoundingBox[3]=6512
……
--<boundary>
Content-Type: image/jpeg
Content-Length: <image size>
to 0 — 8192.
HU
A_
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
HT
Content-Type: text/plain
AP
Content-Length: <length>
I_
V3
Events[0].EventBaseInfo.Code=TakenAwayDetection
.3
Events[0].EventBaseInfo.Action=Start
7
fo
Events[0].EventBaseInfo.Index=0
rV
Events[0].Object.BoundingBox[0]= 4392
el
Events[0].Object.BoundingBox[1]=4136
se
Events[0].Object.BoundingBox[2]=6960
n gS
Events[0].Object.BoundingBox[3]=6512
dn
……
--<boundary>
Bh
Content-Type: image/jpeg
d
— 8192.
HT
TP
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
_
--<boundary>
I_
Content-Type: text/plain
V3
Content-Length: <length>
.3
7
fo
Events[0].EventBaseInfo.Code=WanderDetection
rV
Events[0].EventBaseInfo.Action=Start
el
Events[0].EventBaseInfo.Index=0
se
n
Events[0].Objects[0].BoundingBox[0]= 4392
gS
Events[0].Objects[0].BoundingBox[1]=4136
dn
Events[0].Objects[0].BoundingBox[2]=6960
Bh
Events[0].Objects[0].BoundingBox[3]=6512
d
Events[0].Tracks[0][0][0]=23
Events[0].Tracks[0][0][1]=23
Events[0].Tracks[0][1][0]=500
Events[0].Tracks[0][1][1]=401
Events[0].Tracks[0][2][0]=1003
Events[0].Tracks[0][2][1]=192
…
Events[0].DetectRegion[0][0]=192
Events[0].DetectRegion[0][1]=192
Events[0].DetectRegion[1][0]=562
Events[0].DetectRegion[1][1]=552
Events[0].DetectRegion[2][0]=600
Events[0].DetectRegion[2][1]=733
Events[0].DetectRegion[3][0]=200
++BoundingBox uint16[4] R
AP
remap to 0 — 8192.
.3
array.
fo
remap to 0 — 8192.
Bh
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Events[0].DetectRegion[2][0]=600
HU
Events[0].DetectRegion[2][1]=733
A_
Events[0].DetectRegion[3][0]=200
HT
Events[0].DetectRegion[3][1]=270
TP
…
_
Events[0].AreaID=2
AP
Events[0].PresetID=1
I_
--<boundary>
V3
Content-Type: image/jpeg
.3
7
--<boundary>
se
n gS
dn
"Dimgray", "Whitesmoke",
++CoatColor char[] O
A_
"Darkorange", "Mistyrose",
HT
"Darkolivegreen", "Chartreuse",
_
"Greenyellow", "Forestgreen",
AP
"Seagreen", "Chartreuse",
I_
V3
char[] O
r of CoatColor.
el
se
skirt.
dn
"SunGlasses", "NoGlasses",
HU
"Confused", "Scream".
_
++Eye int O
close eye, 2: open eye.
I_
V3
mask.
el
se
glasses.
[ Example ]
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Events[0].EventBaseInfo.Code=HumanTrait
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].HumanAttributes.BoundingBox[0]=1341
Events[0].HumanAttributes.BoundingBox[1]=2451
Events[0].HumanAttributes.BoundingBox[2]=4513
Events[0].HumanAttributes.BoundingBox[3]=4135
Events[0].FaceAttributes.Mouth=1
HU
Events[0].FaceAttributes.Glass=1
A_
--<boundary>
HT
Content-Type: image/jpeg
TP
--<boundary>
V3
.3
7
fo
When detect some object cross the line, send this event.
n gS
Event Data
d
“RightToLeft”, “Any”.
HU
A_
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
HT
--<boundary>
_
Content-Type: text/plain
AP
Content-Length: <length>
I_
V3
Events[0].EventBaseInfo.Code=CrossLineDetection
.3
7
Events[0].EventBaseInfo.Action=Start
fo
Events[0].EventBaseInfo.Index=0
rV
Events[0].Object.BoundingBox[0]= 4392
el
Events[0].Object.BoundingBox[1]=4136
se
n
Events[0].Object.BoundingBox[2]=6960
gS
Events[0].Object.BoundingBox[3]=6512
dn
Events[0].Objects[0].BoundingBox[0]= 4392
Bh
Events[0].Objects[0].BoundingBox[1]=4136
d
Events[0].Objects[0].BoundingBox[2]=6960
Events[0].Objects[0].BoundingBox[3]=6512
Events[0].DetectLine[0][0]=192
Events[0].DetectLine[0][1]=192
Events[0].DetectLine[1][0]=562
Events[0].DetectLine[1][1]=552
Events[0].DetectLine[2][0]=600
Events[0].DetectLine[2][1]=733
Events[0].DetectLine[3][0]=200
Events[0].DetectLine[3][1]=270
…
Events[0].Direction=LeftToRight
…
--<boundary>
8192.
V3
O
this array.
7
fo
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
Events[0].EventBaseInfo.Code=CrossLineDetection
Events[0].EventBaseInfo.Action=Start
Events[0].EventBaseInfo.Index=0
Events[0].Object.BoundingBox[0]= 4392
Events[0].Object.BoundingBox[1]=4136
Events[0].Object.BoundingBox[2]=6960
Events[0].Object.BoundingBox[3]=6512
Events[0].Objects[0].BoundingBox[0]= 4392
Events[0].Objects[0].BoundingBox[1]=4136
Events[0].Objects[0].BoundingBox[2]=6960
Events[0].Objects[0].BoundingBox[3]=6512
Events[0].DetectRegion[0][0]=192
DA
Events[0].DetectRegion[0][1]=192
HU
Events[0].DetectRegion[1][0]=562
A_
Events[0].DetectRegion[1][1]=552
HT
Events[0].DetectRegion[2][0]=600
TP
Events[0].DetectRegion[2][1]=733
_
Events[0].DetectRegion[3][0]=200
AP
Events[0].DetectRegion[3][1]=270
I_
…
V3
Events[0].Action=Disappear
.3
7
Events[0].Direction=LeftToRight
fo
…
rV
--<boundary>
el
Content-Type: image/jpeg
se
--<boundary>
d
+PresetID int O
involved. if omit, means preset is
V3
unknown.
.3
7
fo
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
rV
--<boundary>
se
n
Content-Type: text/plain
gS
Content-Length: <length>
dn
Bh
Events[0].EventBaseInfo.Code=QueueStayDetection
d
Events[0].EventBaseInfo.Action=Start
Events[0].EventBaseInfo.Index=0
Events[0].Object.BoundingBox[0]= 4392
Events[0].Object.BoundingBox[1]=4136
Events[0].Object.BoundingBox[2]=6960
Events[0].Object.BoundingBox[3]=6512
Events[0].Objects[0].BoundingBox[0]= 4392
Events[0].Objects[0].BoundingBox[1]=4136
Events[0].Objects[0].BoundingBox[2]=6960
Events[0].Objects[0].BoundingBox[3]=6512
Events[0].DetectRegion[0][0]=192
Events[0].DetectRegion[0][1]=192
Events[0].DetectRegion[1][0]=562
Events[0].DetectRegion[1][1]=552
When detect the queue people number exceed limit, send this event
A_
Event index 0
_ AP
Event Data
I_
+AreaID int O
means single area.
d
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Events[0].EventBaseInfo.Code=QueueNumDetection
Events[0].EventBaseInfo.Action=Pulse
PPE (safety helmet, work clothes, work pants and more) detection is used for construction sites or
_
safety production detection. Original images (images taken at the current preset) and human body
AP
Event Data
rV
"ProtectiveSuit"
dn
event.
HU
same as VideoAnalyseRule.Id.
TP
same.
.3
7
Type: 02-image
Bh
Time: YYYYMMDhhmmss
d
Number: 00001
+GroupID int O Event group ID. Multiple human 123
bodies detected at a time have the
same GroupID.
+CountInGrou int O Number of snapshots in an event 1
p group.
+IndexInGrou int O Snapshot number in an event 1
p group, starting from 1.
+HumanImage object O Human body image information.
++IndexInData uint O The image number in the uploaded 0
image data.
++Offset uint O Offset in the binary data block. 0
++Length uint O Image size, in bytes. 100000
++Width uint O Image width. 1920
}
A_
Customized parameter.
HT
CoatColor in HumanTrait.
AP
Alarm type:
V3
speed.
fo
speed.
el
0: No alarm.
Bh
1: Alarm.
d
128 characters.
A_
y 0: Full body.
TP
1: Upper body.
_
same time.
fo
ributes Enumint{
0: Unknown.
1: Positive sample.
2: negative sample.
}
1 by default.
+++GroupNa char[128] O The name of the PPE detection "Group1"
me database linked to the alarm.
++TrousersCol ColorEnum O Work pants color. "Red"
or The value range is the same as
CoatColor in HumanTrait.
+WorkPants object O The information on the status
related to the work pants attributes.
Used for NVR customization
enumint8{
A_
0: Unknown.
HT
compliant.
_
compliant.
I_
compliant.
.3
7
}
el
customization requests.
ngS
(optional).
d
enumint8{
_
0: Unknown.
AP
1: No.
I_
2: Yes.
V3
}
rV
enumint8{
d
0: Unknown.
1: No.
2: Yes.
}
++HasLegalH enumin8 O Hat detection results. 0
at enumint8{
0: Compliant.
1: Non-compliant.
2: Unknown.
}
+Mask object O The information on the status of
face mask attributes.
++HasMask enumint8 O Wear a face mask or not. 0
enumint8{
2: Yes.
HU
}
A_
pron enumint8{
TP
0: Compliant.
_
1: Non-compliant.
AP
2: Unknown.
I_
}
V3
gloves attributes.
fo
enumint8{
el
0: Unknown.
se
n
1: No.
gS
2: Yes.
dn
}
Bh
ove enumint8{
0: Compliant.
1: Non-compliant.
2: Unknown.
}
+Boot object O The information on the status of
boots attributes.
++HasBoot enumint8 O Wear boots or not. 0
enumint8{
0: Unknown.
1: No.
2: Yes.
}
0: Compliant.
HU
1: Non-compliant.
A_
2: Unknown.
HT
}
TP
attributes.
AP
enumint8{
V3
0: Unknown.
.3
7
1: No.
fo
2: Yes.
rV
}
el
at enumint8{
gS
0: Compliant.
dn
1: Non-compliant.
Bh
2: Unknown.
d
}
+PTS double O Timestamp of relative events, in 150.0
milliseconds.
+ProtectiveSui object O The information on the status of
t protection suit attributes.
++HasProtecti enumint8 O Wear protective suit or not. 2
veSuit enumint8{
0: Unknown.
1: No
2: Yes
3: The protective suit in the
specified color does not exist.
}
CoatColor.
A_
n 2]
TP
00]
I_
enumint8{
rV
0: Unknown.
el
1: No
se
n
2: Yes
gS
not exist.
Bh
}
d
}
HU
glasses attributes.
HT
e rules.
_
enumint{
AP
0: No glasses.
I_
1: Sunglasses.
V3
2: Black-rimmed glasses.
.3
7
3: Half-rimmed glasses.
fo
4: Rimless glasses.
rV
5: General glasses.
el
6: Industrial goggles.
se
n
}
gS
alMask 0: Compliant.
Bh
1: Non-compliant.
d
2: Unknown.
+LegalAlarmT uint O Alarm method (0 by default). 0
ype 0: Alarms are triggered when there
are non-compliant items.
1: Alarms are triggered when all
items are compliant.
+SafeBelt object O The information on the status of
seatbelt attributes.
++HasSafeBel enumint8 O Wear seatbelt or not. 0
t enumint8{
0: Unknown.
1: No.
2: Yes.
}
0: Compliant.
HU
1: Non-compliant.
A_
2: Unknown.
HT
}
TP
hoes enumint8{
V3
0: Unknown.
.3
7
1: No.
fo
2: Yes.
rV
}
el
afetyShoes enumint8{
gS
0: Compliant.
dn
1: Non-compliant.
Bh
2: Unknown.
d
}
+WristGuard object O The information on the status of
wrist guard attributes.
++HasWristGu enumint8 O Wear wrist guard or not. 0
ard enumint8{
0: Unknown.
1: No.
2: Yes.
}
++HasLegalW enumint8 O Wrist guard detection results 0
ristGuard enumint8{
0: Compliant.
1: Non-compliant.
2: Unknown.
Event Response Example (multipart, key=value format in body, binary data in body) (response to
4.4.3 snap subscription)
--<boundary>
Content-Type: text/plain
Content-Length: <length>
DA
Events[0].EventBaseInfo.Code=WorkClothesDetection
HU
Events[0].EventBaseInfo.Action=Start
A_
Events[0].EventBaseInfo.Index=0
HT
Events[0].Name=WorkClothesDetection1
TP
Events[0].Class=OperateMonitor or ProtectiveSuit
_
Events[0].Type=Helmet
AP
Events[0].ObjectID=12345
I_
Events[0].UTC=1465389120
V3
Events[0].UTCMS=123
.3
7
Events[0].EventID=5864
fo
Events[0].RuleID=1
rV
Events[0].SourceID=022019030714003000001
el
Events[0].GroupID=123
se
n
Events[0].CountInGroup=1
gS
Events[0].IndexInGroup=1
dn
Events[0].HumanImage.IndexInData=0
Bh
Events[0].HumanImage.Offset=0
d
Events[0].HumanImage.Length=100000
Events[0].HumanImage.Width=1920
Events[0].HumanImage.Height=1080
Events[0].SceneImage.IndexInData=0
Events[0].SceneImage.Offset=100000
Events[0].SceneImage.Length=52000
Events[0].SceneImage.Width=1920
Events[0].SceneImage.Height=1080
Events[0].Helmet.HasHelmet=2
Events[0].Helmet.HelmetColor=Red
Events[0].Helmet.HelmetFlag=1
Events[0].Helmet.ReportFlag=1
Events[0].Helmet.HasLegalHat=0
Events[0].Clothes.HasClothes=2
Events[0].Hardhat.HasHat=2
HU
Events[0].Hardhat.HatColor=Red
A_
Events[0].Ushanka.HasHat=2
HT
Events[0].Ushanka.HatColor=Red
TP
Events[0].Prohelmet.HasHat=2
_
Events[0].Prohelmet.HatColor=Red
AP
Events[0].NormalHat.HasHat=0
I_
Events[0].NormalHat.HasLegalHat=0
V3
Events[0].Mask.HasMask=0
.3
7
Events[0].Mask.HasLegalMask=0
fo
Events[0].Apron.HasApron=0
rV
Events[0].Apron.HasLegalApron=0
el
Events[0].Glove.HasGlove=0
se
Events[0].Glove.HasLegalGlove=0
n
gS
Events[0].Boot.HasBoot=0
dn
Events[0].Boot.HasLegalBoot=0
Bh
Events[0].ShoesCover.HasCover=0
d
Events[0].ShoesCover.HasLegalCover=0
Events[0].NoHat.HasHat=0
Events[0].NoHat.HasLegalHat=0
Events[0].PTS=150.0
Events[0].ProtectiveSuit.HasProtectiveSuit=2
Events[0].ProtectiveSuit.ProtectiveSuitColor=Red
Events[0].FireProofClothes.HasFireProofClothes=2
Events[0].FireProofClothes.FireProofClothesColor=Red
Events[0].DetectRegion[0][0]=
…
Events[0].Objects[0]=
…
Events[0].Uniform.HasUniform=1
Events[0].Uniform.UniformColor=Red
--<boundary>
HU
Content-Type: image/jpeg
A_
--<boundary>
AP
I_
V3
.3
7
9.2 FaceRecognitionServer
fo
rV
el
Method GET
Request Params ( key=value format in URL )
Bh
[0,100]
HT
Request Example
TP
http://192.168.1.108/cgi-
_AP
bin/faceRecognitionServer.cgi?action=modifyGroup&groupID=10000&groupName=Test1&groupDetail=
I_
ForTest1
V3
.3
Response Example
fo
rV
OK
el
se
ngS
Method GET
d
+similary int R
— 100.
HT
Request Example
TP
http://192.168.1.108/cgi-
_AP
bin/faceRecognitionServer.cgi?action=putDisposition&groupID=10000&list[0].channel=1&list[0].similary
I_
=80&list[1].channel=2&list[1].similary=70
V3
.3
request channel.
se
Response Example
n
report[0]=true
gS
report[1]=false
dn
Bh
d
Method GET
HU
channel int[] R
1.
TP
list object[] O
AP
+similary int R
fo
— 100.
rV
Request Example
el
http://192.168.1.108/cgi-
se
bin/faceRecognitionServer.cgi?action=setGroup&channel=1&list[0].groupID=10000&list[0].similary=80&l
ngS
ist[1].groupID=10002&list[1].similary=75
dn
Response Example
d
OK
similary[2]=85
HU
….
A_
HT
TP
Find the face group. If the groupID is not present in the URL, it will return all the groups.
I_
V3
Method GET
7
fo
Request Example
dn
http://192.168.1.108/cgi-bin/faceRecognitionServer.cgi?action=findGroup
Bh
GroupList[0].TimeSection[0][4]=0 00:00:00-23:59:59
HU
GroupList[0].TimeSection[0][5]=0 00:00:00-23:59:59
A_
GroupList[0].TimeSection[1][0]=1 00:00:00-23:59:59
HT
GroupList[0].TimeSection[1][1]=0 00:00:00-23:59:59
TP
GroupList[0].TimeSection[1][2]=0 00:00:00-23:59:59
_
GroupList[0].TimeSection[1][3]=0 00:00:00-23:59:59
AP
GroupList[0].TimeSection[1][4]=0 00:00:00-23:59:59
I_
GroupList[0].TimeSection[1][5]=0 00:00:00-23:59:59
V3
GroupList[0].TimeSection[2][0]=1 00:00:00-23:59:59
.3
7
GroupList[0].TimeSection[2][1]=0 00:00:00-23:59:59
fo
GroupList[0].TimeSection[2][2]=0 00:00:00-23:59:59
rV
GroupList[0].TimeSection[2][3]=0 00:00:00-23:59:59
el
GroupList[0].TimeSection[2][4]=0 00:00:00-23:59:59
se
GroupList[0].TimeSection[2][5]=0 00:00:00-23:59:59
n
gS
GroupList[0].TimeSection[3][0]=1 00:00:00-23:59:59
dn
GroupList[0].TimeSection[3][1]=0 00:00:00-23:59:59
Bh
GroupList[0].TimeSection[3][2]=0 00:00:00-23:59:59
d
GroupList[0].TimeSection[3][3]=0 00:00:00-23:59:59
GroupList[0].TimeSection[3][4]=0 00:00:00-23:59:59
GroupList[0].TimeSection[3][5]=0 00:00:00-23:59:59
GroupList[0].TimeSection[4][0]=1 00:00:00-23:59:59
GroupList[0].TimeSection[4][1]=0 00:00:00-23:59:59
GroupList[0].TimeSection[4][2]=0 00:00:00-23:59:59
GroupList[0].TimeSection[4][3]=0 00:00:00-23:59:59
GroupList[0].TimeSection[4][4]=0 00:00:00-23:59:59
GroupList[0].TimeSection[4][5]=0 00:00:00-23:59:59
GroupList[0].TimeSection[5][0]=1 00:00:00-23:59:59
GroupList[0].TimeSection[5][1]=0 00:00:00-23:59:59
GroupList[0].TimeSection[5][2]=0 00:00:00-23:59:59
GroupList[0].TimeSection[5][3]=0 00:00:00-23:59:59
GroupList[0].TimeSection[5][4]=0 00:00:00-23:59:59
GroupList[1].groupID=00003
GroupList[1].groupName=Test3
GroupList[1].groupDetail=ForTest3
GroupList[1].groupSize=50
GroupList[1].channels[0]=1
GroupList[1].channels[1]=2
…
GroupList[1].similarity[0]=70
DA
GroupList[1].similarity[1]=85
HU
…
A_
HT
TP
Start ReAbstract
I_
V3
About the process of the re-extract, the device will use an event named "FaceFeatureAbstract" to
fo
Method GET
n
Request Example
http://192.168.1.108/cgi-
bin/faceRecognitionServer.cgi?action=groupReAbstract&groupID[0]=10000&groupID[1]=10001
Stop ReAbstract
Request URL http://<server>/cgi-bin/faceRecognitionServer.cgi?action=stopGroupReAbstract
Method GET
groupID char[] R
person to add. Max string length is 63.
HT
name char[] R
63.
_AP
01".
V3
"Unknown".
7
is 63.
gS
city char[] O The city name, max string length is 63. YYY
dn
certificateType char[] O
"Passport", "Unknown".
d
uid R
length is 31.
HU
is 63.
_
birthday O
01".
I_
sex O
"Unknown".
.3
7
ISO3166.
el
province O
is 63.
n gS
city char[] O The city name, max string length is 63. YYY
dn
"Passport", "Unknown".
d
Response Example
HU
OK
A_
HT
TP
Start to find
V3
Note: the returned token will be expired after 60 seconds without any doFind call.
.3
7
Method GET
rV
63.
d
Response Example
HU
token=123456789
A_
totalCount=24
HT
TP
Note: the returned token will be expired after 60 seconds without any doFind call.
I_
V3
Method GET
7
search.
gS
totalCount –1.
d
Request Example
http://<server>/cgi-bin/faceRecognitionServer.cgi?action=doFind&token=123456789&index=0
Server: Device/1.0
HU
Content-Length: <length>
HT
TP
--<boundary>
_
Content-Type: text/plain
AP
Content-Length: <length>
I_
V3
person.UID=0005
.3
7
person.GroupID=10000
fo
person.Name=ZhangSan
rV
person.Birthday=1980-01-01
el
person.Sex=Male
se
n
person.Country=CN
gS
person.Province=XXX
dn
person.City=YYY
Bh
person.CertificateType=IC
d
person.ID=1234567890
person.FeatureState=0
--<boundary>
Content-Type: image/jpeg
Content-Length: <image size>
Stop finding
Request URL http://<server>/cgi-bin/faceRecognitionServer.cgi?action=stopFind
Method GET
Request Params ( key=value format in URL )
Method GET
HT
UID char[][31] O
string length is 31.
I_
Request Example
V3
http://192.168.1.108/cgi-bin/faceRecognitionServer.cgi?action=reAbstract&uid[0]=001&uid[1]=002
.3
7
fo
Response Example
el
OK
se
ngS
Stop ReAbstract
dn
Bh
Method GET
Request Params ( none )
Name Type R/O Description Example
Request Example
http://192.168.1.108/cgi-bin/faceRecognitionServer.cgi?action=stopReAbstract
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
A_
are as follows :
HT
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=FaceRecognitionAlarm
_
table.FaceRecognitionAlarm[0].GroupID=0017
I_
table.FaceRecognitionAlarm[0].GroupName=wsd
V3
table.FaceRecognitionAlarm[0].AlarmOutEnable=true
.3
7
table.FaceRecognitionAlarm[0].AlarmChannel[0].AlarmRuleMask=0
fo
table.FaceRecognitionAlarm[0].AlarmChannel[0].AlarmOutLatch=5
rV
table.FaceRecognitionAlarm[0].AlarmChannel[1].AlarmRuleMask=0
el
table.FaceRecognitionAlarm[0].AlarmChannel[1].AlarmOutLatch=8
se
n
…
gS
table.FaceRecognitionAlarm[1].GroupID=0018
dn
table.FaceRecognitionAlarm[1].GroupName=cst
Bh
table.FaceRecognitionAlarm[1].AlarmOutEnable=true
d
table.FaceRecognitionAlarm[1].AlarmChannel[0].AlarmRuleMask=0
table.FaceRecognitionAlarm[1].AlarmChannel[0].AlarmOutLatch=10
table.FaceRecognitionAlarm[1].AlarmChannel[1].AlarmRuleMask=0
table.FaceRecognitionAlarm[1].AlarmChannel[1].AlarmOutLatch=15
…
Request Example
A_
POST http://<server>/cgi-bin/faceRecognitionServer.cgi?action=startFindByPic&GroupID[0]=00001&Gr
HT
oupID[1]=00003&Similarity=80&MaxCandidate=500
TP
Content-Type: image/jpeg
_ AP
<JPEG data>
.3
7
stop search.
gS
progress uint R
finished.
Bh
totalCount int R
still searching.
Response Example
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: multipart/x-mixed-replace; boundary=<boundary>
Connection: closed
--<boundary>
Content-Type: application/json
Content-Length: <length>
{ "token": 123456789,
"progress": 20
"totalCount": -1
{ "token": 123456789,
"progress": 60
"totalCount": -1
}
--<boundary>
Content-Type: application/json
Content-Length: <length>
{ "token": 123456789,
"progress": 100
"totalCount": 350
DA
}
HU
--<boundary>--
A_
HT
Get the find result, reply using multipart format, first part is json string to describe all candidate person,
AP
then the following parts are the person's pictures, refer by UID and GroupID in part header Content-Info.
I_
V3
Note: the returned token will be expired after 60 seconds without any doFind call.
.3
Method GET
fo
rV
search.
dn
–1.
Number of result to get, start 30
count uint R
from index.
Request Example
http://<server>/cgi-
bin/faceRecognitionServer.cgi?action=doFindByPic&token=123456789&index=0&count=10
++City O
63.
HU
"Passport", or "Unknown".
HT
++FeatureState int O
1:Failed, 2:OK.
I_
++HomeAddress char[] O
NO1199”
.3
7
Response Example
rV
HTTP/1.1 200 OK
el
Server: Device/1.0
se
n
Connection: closed
dn
Bh
--<boundary>
d
Content-Type: application/json
Content-Length: <length>
{ "Found" : 10,
"Candidates" : [
{
"person" : {
"UID" : "0001",
"GroupID" : "001",
"Name" : "ZhangSan",
"Birthday" : "1980-01-05",
"Sex" : "Male",
...
},
--<boundary>
HU
Content-Info: UID=0001&GroupID=001
A_
Content-Type: image/jpeg
HT
Content-Length: <length>
TP
_
--<boundary>
I_
Content-Info: UID=0002&GroupID=002
V3
Content-Type: image/jpeg
.3
7
Content-Length: <length>
fo
rV
--<boundary>
se
...
n
gS
dn
Stop finding
Bh
d
01-13T00:00:00Z.
End time to search, ex: 2018-01- 2018-01-14T00:00:00Z
HU
EndTime string R
14T00:00:00Z.
A_
Request Example
_ AP
POST http://<server>/cgi-bin/faceRecognitionServer.cgi?action=startFindHistoryByPic&Channel=0&Sta
I_
rtTime=2018-01-13T00:00:00Z&EndTime=2018-01-14T00:00:00Z&Type=All&Similarity=80&MaxCandid
V3
ate=500
.3
Content-Type: image/jpeg
7
<JPEG data>
el
se
n
search.
Search Progress, 100 means 20
progress uint R
finished.
Result num, return -1 means still -1
totalCount int R
searching.
Response Example
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: multipart/x-mixed-replace; boundary=<boundary>
Connection: closed
--<boundary>
Content-Type: application/json
Content-Length: <length>
{ "token": 123456789,
"progress": 60
"totalCount": -1
}
--<boundary>
Content-Type: application/json
Content-Length: <length>
DA
HU
{ "token": 123456789,
A_
"progress": 100
HT
"totalCount": 350
TP
}
_
--<boundary>--
AP
I_
V3
Get the find result, reply by multipart, first part is json string to describe all candidate person, then the
fo
following part is the person's picture, refer by UID in part header Content-Info.
rV
Note: the returned token will be expired after 60 seconds without any doFind call.
el
se
Method GET
gS
Connection: closed
HU
A_
--<boundary>
HT
Content-Type: application/json
TP
Content-Length: <length>
_ AP
{
I_
"Found" : 12,
V3
"Candidates" : [
.3
7
{
fo
"person" : {
rV
"UID" : "0001",
el
"Sex" : "Male",
se
n
"Age" : 30,
gS
"Glasses": 1
dn
},
Bh
"Similarity" : 85
d
Stop finding
A_
Method GET
TP
searching.
.3
7
Request Example
fo
http://<server>/cgi-bin/faceRecognitionServer.cgi?action=stopFindHistoryByPic&token=123456789
rV
el
Response Example
ngS
OK
dn
Bh
d
mask.
TP
Event Response Example ( multipart , JSON format in body ) ( response to 4.9.17 event
V3
subscription )
.3
7
--<boundary>
fo
Content-Type: text/plain
rV
Content-Length: <length>
el
se
n
Code=FaceDetection;action=Start;index=0;data={
gS
"Sex": "Man",
Bh
"Age": 40,
d
+++Name string O
63.
HU
"Unknown".
TP
ISO3166.
I_
+++Province string O
is 63.
.3
7
string O
pe "Passport", "Unknown".
el
+++ID string O
n
between 1 — 100.
d
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Events[0].EventBaseInfo.Code=FaceRecognition
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].UID=00105
Events[0].Candidates[0].Person.UID=0012
DA
Events[0].Candidates[0].Person.GroupID=10000
HU
Events[0].Candidates[0].Person.Name=ZhangSan
A_
Events[0].Candidates[0].Person.Birthday=1980-01-02
HT
Events[0].Candidates[0].Person.Sex=Male
TP
…
_
Events[0].Candidates[0].Similarity=80
AP
Events[0].Candidates[1].Person.UID=0014
I_
Events[0].Candidates[1].Person.GroupID=10000
V3
Events[0].Candidates[1].Person.Name=Lisi
.3
7
Events[0].Candidates[1].Person.Birthday=1980-01-05
fo
Events[0].Candidates[1].Person.Sex=Male
rV
…
el
Events[0].Candidates[1].Similarity=75
se
n
…
gS
Events[0].Face.Sex=Man
dn
Events[0].Face.Age=20
Bh
Events[0].Face.Feature[0]=SunGlasses
d
Events[0].Face.Feature[1]=Smile
Events[0].Face.Eye=2
Events[0].Face.Mouth=1
Events[0].Face.Mask=1
Events[0].Face.Beard=2
--<boundary>
Content-Type: image/jpeg
Content-Length: <image size>
Event Response Example ( multipart , JSON format in body ) ( response to 4.9.17 event
AP
subscription )
I_
--<boundary>
V3
Content-Type: text/plain
.3
7
Content-Length: <length>
fo
rV
Code=FaceFeatureAbstract;action=Start;index=0;data={
el
"Progress": 30,
n gS
"UID": "20005",
dn
"GroupID": "10000"
Bh
}, {…}, … ]
}
d
--<boundary>
int R 0
k Bit 0 : recognition success
HU
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
TP
are as follows :
_
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=FaceRecognitionEventHandler
I_
table.FaceRecognitionEventHandler[0].GroupID=0017
.3
7
table.FaceRecognitionEventHandler[0].GroupName=wsd
fo
table.FaceRecognitionEventHandler[0].EventEnableMask=3
rV
table.FaceRecognitionEventHandler[0].RecordEnableMask=0
el
table.FaceRecognitionEventHandler[0].RecordLatch=10
se
n
table.FaceRecognitionEventHandler[0].SnapEnableMask=3
gS
table.FaceRecognitionEventHandler[0].MailEnableMask=0
dn
…
Bh
table.FaceRecognitionEventHandler[1].GroupID=0018
d
table.FaceRecognitionEventHandler[1].GroupName=cst
table.FaceRecognitionEventHandler[1].EventEnableMask=3
table.FaceRecognitionEventHandler[1].RecordEnableMask=0
table.FaceRecognitionEventHandler[1].RecordLatch=10
table.FaceRecognitionEventHandler[1].SnapEnableMask=3
table.FaceRecognitionEventHandler[1].MailEnableMask=0
…
Request Example
HU
http://192.168.1.108/cgi-
A_
bin/configManager.cgi?action=setConfig&CitizenPictureCompareRule.Threshold=60
HT
TP
Response Example
I_
V3
OK
.3
7
fo
Method POST
Request Params (JSON format in body)
Bh
User-Agent: client/1.0
HU
--<boundary>
HT
Content-Type: application/json
TP
Content-Length: 20
_ AP
I_
{
V3
"password": "abcd"
.3
}
7
fo
--<boundary>
rV
Content-Type: application/octet-stream
el
Content-Length: 800
se
n
gS
{}
HU
A_
HT
"sftp://username:password "xx"]
Bh
@ip:port/xxxx/1.jpg"
d
default is 1.
TP
Request Example
_
http://192.168.1.108/cgi-bin/videoStatServer.cgi?action=getSummary&channel=1
AP
I_
V3
summary object R
video .
rV
int O
Section clearSectionStat
HU
+ExitedDupSu
object O People duplicate leave stat.
A_
btotal
HT
int O
V3
Section clearSectionStat
+InsideSubtota
.3
l
fo
object[] O
t leaved.
se
n
2012-01-04
gS
2012-01-04
+++ExitTime string O People leave time.
Bh
00:00:45
d
Response Example
summary.Channel=0
summary.RuleName=NumberStat
summary.EnteredSubtotal.Today=0
summary.EnteredSubtotal.Total=14
summary.EnteredSubtotal.TotalInTimeSection=0
summary.ExitedSubtotal.Today=0
summary.ExitedSubtotal.Total=32
summary.ExitedSubtotal.TotalInTimeSection=0
summary.PassedSubtotal.Hour=0
summary.PassedSubtotal.Today=0
summary.PassedSubtotal.Total=142
summary.PassedSubtotal.TotalInTimeSection=0
summary.EnteredDupSubtotal.Hour=0
Start to find
HU
Start to find video stat info, in response, there is a token for further info finding process, and there is
A_
Method GET
_ AP
channel int O
default is 1.
7
fo
2012-01-04
+StartTime string R Find time range start
el
00:00:00
se
2012-01-04
n
00:02:00
dn
+Granularity string R
Week, Month, Season, Year } (Note: Most
d
token=12345
HU
totalCount=56
A_
Get the find result of Video Stat info with channel, token, begin Number and count.
TP
Method GET
I_
Request Example
d
http://192.168.1.108/cgi-
bin/videoStatServer.cgi?action=doFind&channel=1&token=12345&beginNumber=0&count=20
+EnteredDupSubt int O 14
Total duplicate entered num.
TP
otal
_
+ExitedDupSubto int O 5
AP
Response Example
V3
found=20
.3
7
info[0].Channel=0
fo
info[0].AreaID=2
rV
info[0].RuleName=NumberStat
el
info[0].StartTime=2012-03-14 00:00:00
se
n
info[0].EndTime=2012-04-14 00:00:00
gS
info[0].EnteredSubtotal=14
dn
info[0].ExitedSubtotal=5
Bh
info[0].InsideSubtotal=65
d
info[0].PassedSubtotal=0
info[0].EnteredDupSubtotal=0
info[0].ExitedDupSubtotal=0
info[1].Channel=0
info[1].AreaID=3
info[1].RuleName=NumberStat
info[1].StartTime=2012-03-14 00:00:00
info[1].EndTime=2012-04-14 00:00:00
info[1].EnteredSubtotal=14
info[1].ExitedSubtotal=5
info[1].InsideSubtotal=65
info[1].PassedSubtotal=0
info[1].EnteredDupSubtotal=0
info[1].ExitedDupSubtotal=0
Response Example
HT
OK
TP
Method GET
fo
default is 1.
gS
Request Example
dn
GET http://192.168.1.108/cgi-bin/videoStatServer.cgi?action=clearSectionStat&channel=1
Bh
d
"ManNumDetection": Count
A_
in "InsideSubtotal" param.
+RuleName string R
TP
"ExitedSubtotal" param.
V3
+EnteredSubto
.3
tal
fo
int O
Section clearSectionStat.
dn
+ExitedSubtot
object O People leave stat.
Bh
al
d
O
t ect> that leaved.
HU
Response Example
TP
HTTP/1.1 200 OK
_
Server: Device/1.0
AP
Connection: closed
.3
7
--<boundary>
fo
Content-Type: text/plain
rV
Content-Length: <length>
el
se
n
summary.Channel=0
gS
summary.RuleName=NumberStat
dn
summary.EnteredSubtotal.Today=2
Bh
summary.EnteredSubtotal.Total=14
d
summary.EnteredSubtotal.TotalInTimeSection=1
summary.ExitedSubtotal.Today=3
summary.ExitedSubtotal.Total=32
summary.ExitedSubtotal.TotalInTimeSection=2
summary.PassedSubtotal.Hour=0
summary.PassedSubtotal.Today=0
summary.PassedSubtotal.Total=142
summary.PassedSubtotal.TotalInTimeSection=0
summary.EnteredDupSubtotal.Hour=0
summary.EnteredDupSubtotal.Today=0
summary.EnteredDupSubtotal.Total=0
summary.EnteredDupSubtotal.TotalInTimeSection=0
summary.EnteredSubtotal.TotalInTimeSection=17
summary.ExitedDupSubtotal.Hour=0
Heartbeat
--<boundary>
Content-Type: text/plain
Content-Length: <length>
DA
HU
summary.Channel=0
A_
summary.RuleName=NumberStat
HT
summary.EnteredSubtotal.Today=2
TP
summary.EnteredSubtotal.Total=14
_
…
AP
I_
Method GET
rV
channel int O
default is 1.
dn
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
HU
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=VideoWidgetNumberStat
TP
table.VideoWidgetNumberStat[0].EncodeBlend=true
AP
table.VideoWidgetNumberStat[0].ShowEnterNum=true
I_
table.VideoWidgetNumberStat[0].ShowExitNum=true
V3
table.VideoWidgetNumberStat[0].TextAlign=0
.3
7
…
fo
rV
http://192.168.1.108/cgi-
se
n
bin/configManager.cgi?action=setConfig&VideoWidgetNumberStat[0].EncodeBlend=true&VideoWidg
gS
etNumberStat[0].ShowEnterNum=true&VideoWidgetNumberStat[0].ShowExitNum=true&VideoWidget
dn
NumberStat[0].TextAlign=0
Bh
OK
Event Response Example ( multipart , JSON format in body ) ( response to 4.9.17 event
DA
subscription )
HU
--<boundary>
A_
Content-Type: text/plain
HT
Content-Length: <length>
TP
_
Code=NumberStat;action=Start;index=0;data={
AP
"Number": 120,
I_
"EnteredNumber": 180,
V3
"ExitedNumber": 60,
.3
7
"PassedNumber": 60,
fo
"EnteredDupNumber": 180,
rV
"ExitedDupNumber": 60,
el
"Type": "EnterOver",
se
n
"Area": 2
gS
}
dn
--<boundary>
Bh
d
Event Response Example ( multipart , JSON format in body ) ( response to 4.9.17 event
subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Code=ManNumDetection;action=pulse;index=0;data={
DA
{…}, … ],
HT
"AreaID" : 2
TP
}
_
--<boundary>
AP
I_
V3
.3
Event index 0
dn
Event Data
Name Type R/O Description Example
Bh
+CrowdList object[] O
list.
The center point, must be two int, [5734,2377]
++Center int[] R means x and y value, coordinate
remap to 0 — 8192.
++Radius int R The radius length. 10
+RegionList object[] O The people num overrun region list.
++RegionID int R The region index. 0
++PeopleNum int R The people count in region. 100
Event Response Example ( multipart , JSON format in body ) ( response to 4.9.17 event
subscription )
--<boundary>
Content-Type: text/plain
Code=CrowdDetection;action=start;index=0;data={
"CrowdList": [ { "Center" : [5734,2377],"Radius" : 10}, …{} ],
"RegionList" : [ { "RegionID" : 0, "PeopleNum" : 100 },…{} ]
}
--<boundary>
event. "FinanceRegulation" or
TP
"StereoBehavior"
_
event group.
fo
event group.
el
milliseconds.
gS
1:On duty.
HU
optional).
V3
Event Response Example ( multipart , JSON format in body ) ( response to 4.9.17 event
subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Code=LeaveDetection;action=Pulse;index=0;data={
"Name": "LeaveDetection",
"DetectRegion": [],
"Count": 100,
"TriggerMode": "NoPerson",
…
}
] HH:mm:ss.
PtzPresetId int O Preset, starting from 1 1
A_
Request Example
HT
http://192.168.1.108/cgi-bin/heatMap.cgi?action=getPicByTime&channel=1&StartTime=2015-08-
TP
20%2000:00:00&EndTime=2015-08-21%2023:59:59&PtzPresetId=1
_ AP
I_
Response Example
.3
HTTP/1.1 200 OK
7
fo
Server: Device/1.0
rV
Content-Type: application/octet-stream
el
Content-Length: <length>
se
n
gS
<heatmap data>
dn
0 1 2 3 4 … 15 16 17 18 …
d
Server: Device/1.0
HU
Content-Type: application/octet-stream
A_
Content-Length: <length>
HT
TP
Appendix A: The heat map binary data format when HeatMapType is AverageStayTime.
V3
ion nnel et ed
rV
16~31
el
octet
se
reserved
n
value
gS
dn
44+4*(N-1)+1~
octet …… …… ……
44+4*(N-1)+4
value next line number data num in next line data 1 data N
Note: If “lines in this packet” is 0, then all data has been sent, and connection will be closed.
Appendix B: The heat map binary data format when HeatMapType is HumanStatistics.
octet 0 1 2 3 4~7 8~11 12~15
vers cha pres reserv
value total data length total lines lines in this packet
ion nnel et ed
octet 16~31
value reserved
44+4*(N-1)+1~
octet …… …… ……
44+4*(N-1)+4
value next line number data num in next line data 1 data N
Note: If “lines in this packet” is 0, then all data has been sent, and connection will be closed.
Appendix C: The heat map binary data format when HeatMapType is HumanTrack.
octet 0 1 2 3 4~7 8~11 12~15
vers chann pres reser tracks in this
value total data length total tracks
ion el et ved packet
octet 16~31
value reserved
DA
HU
this object
TP
44+4*(N-1)+1~
octet
_
…… …… ……
44+4*(N-1)+4
AP
next object
.3
Note: If “tracks in this packet” is 0, then all data has been sent, and connection will be closed.
7
fo
rV
Method GET
dn
channel int O
default is 1.
Send heartbeat interval, range is [1, 60],unit is 5
second. If the URL contains this parameter,
and the value is 5, it means every 5 seconds
heartbeat int O the device should send the heartbeat
message to the client, the heartbeat meaage
are "Heartbeat". If this parameter is not
present, its default value is 60.
Request Example
http://192.168.1.108/cgi-
bin/videoStatServer.cgi?action=attachRealTraceProc&channel=1&heartbeat=5
--<boundary>
Content-Type: application/octet-stream
Content-Length: <length>
Heartbeat
HU
--<boundary>
A_
Content-Type: application/octet-stream
HT
Content-Length: <length>
TP
_
--<boundary>
I_
…
V3
.3
7
fo
octet 16~31
dn
Bh
value reserved
d
Server: Device/1.0
HU
Connection: closed
HT
TP
--<boundary>
_
Content-Type: application/octet-stream
AP
Content-Length: <length>
I_
V3
--<boundary>
fo
Content-Type: application/octet-stream
rV
Content-Length: <length>
el
se
n
--<boundary>
dn
…
Bh
d
value reserved
Request Example
HT
http://192.168.1.108/cgi-bin/HeatMapManager.cgi?action=attachRaw&channel=1&heartbeat=5
TP
_
Response Example
V3
HTTP/1.1 200 OK
.3
7
Server: Device/1.0
fo
Connection: closed
el
se
n
--<boundary>
gS
Content-Type: application/octet-stream
dn
Content-Length: <length>
Bh
d
Heartbeat
-<boundary>
Content-Type: application/octet-stream
Content-Length: <length>
octet 48 49 …
Method GET
HU
Request Example
TP
http://192.168.1.108/cgi-bin/crowdDistriMap.cgi?action=getCaps
_ AP
I_
Response Example
n
CrowdCapsList[0].channel=1
gS
CrowdCapsList[0].Support=true
dn
CrowdCapsList[1].channel=2
Bh
CrowdCapsList[1].Support=false
d
eNum
A_
List
_
e
V3
][2]
fo
eNum
el
um default 0
gS
--<boundary>
CrowdStatData[0].Channel=1
CrowdStatData[0].GloabalPeopleNum =10
CrowdStatData[0].RegionNum =1
CrowdStatData[0].RegionPeopleList[0].RegionID=0
CrowdStatData[0].RegionPeopleList[0].Region[0][0]=10
CrowdStatData[0].RegionPeopleList[0].Region[0][1]=10
CrowdStatData[0].RegionPeopleList[0].Region[1][0]=10
CrowdStatData[0].RegionPeopleList[0].Region[1][1]=100
…
CrowdStatData[0].RegionPeopleList[0].RegionPeopleNum=100
CrowdStatData[0].CrowdEventNum =2
CrowdStatData[0].CrowdList[0].Center=2
CrowdStatData[0].CrowdList[0].Radius=2
DA
CrowdStatData[0].RegionEventNum =2
HU
CrowdStatData[0].RegionList[0].Region[0][0]=10
A_
CrowdStatData[0].RegionList[0].Region[0][1]=10
HT
CrowdStatData[0].RegionList[0].Region[1][0]=10
TP
CrowdStatData[0].RegionList[0].Region[1][0]=100
_
…
AP
CrowdStatData[0].RegionList[0].RegionID=0
I_
CrowdStatData[0].RegionList[0].PeopleNum=100
V3
--<boundary>
.3
7
Content-Type: text/plain
fo
Content-Length: 11
rV
el
Heartbeat
se
--<boundary>
n gS
Content-Type: text/plain
dn
CrowdStatData[0].Channel=1
…
][2]
A_
eNum
TP
um default 0
AP
Num
rV
][2]
gS
region
d
Response Example
CrowdStatData[0].Channel=1
CrowdStatData[0].GloabalPeopleNum =10
CrowdStatData[0].RegionNum =1
CrowdStatData[0].RegionPeopleList[0].RegionID=0
CrowdStatData[0].RegionPeopleList[0].Region[0][0]=10
CrowdStatData[0].RegionPeopleList[0].Region[0][1]=10
CrowdStatData[0].RegionPeopleList[0].Region[1][0]=10
CrowdStatData[0].RegionPeopleList[0].Region[1][1]=100
…
CrowdStatData[0].RegionPeopleList[0].RegionPeopleNum=100
CrowdStatData[0].CrowdEventNum =2
CrowdStatData[0].CrowdList[0].Center=2
CrowdStatData[0].CrowdList[0].Radius=2
Method GET
HU
http://192.168.1.108/cgi-bin/devVideoAnalyse.cgi?action=getcaps&channel=1
AP
I_
enes
ngS
on
Bh
ms
++++Groud object O groud
+++++Horizont uint16[2] O Range of values for the number of [1, 2]
alStaffs horizontal staffs
the first is the minimum and the second is
the maximum
+++++VerticalS uint16[2] O Range of values for the number of [3, 3]
taffs vertical staffs
the first is the minimum and the second is
the maximum
++NumberStat object O number stat
+++CameraTy uint8 O range {0,1,2} 1
pe
ne
HT
egion
_
egions
I_
ptions
.3
7
Filter
rV
ctFilter
gS
Response Example
dn
caps.CalibrateBoxs[0]=2
Bh
caps.CalibrateBoxs[1]=3
d
caps.ComplexSizeFilter=false
caps.MaxCelibateAreas=10
caps.MaxExcludeRegions=0
caps.MaxInternalOptions=512
caps.MaxModules=1
caps.MaxPointOfLine=20
caps.MaxPointOfRegion=20
caps.MaxRules=10
caps.MaxStaffs=4
caps.SpecifiedObjectFilter=true
caps.SupportedRules[0]=CrossLineDetection
caps.SupportedRules[1]=CrossRegionDetection
caps.SupportedRules[2]=LeftDetection
caps.SupportedRules[3]=TakenAwayDetection
"FaceRecognition", "FaceDetection",
7
"NumberStat", "HeatMap",
fo
"VideoDiagnosis", "VehicleAnalyse",
rV
"TrafficPatrol", "CourseRecord",
el
se
"Vehicle" , "ObjectDetect",
n
"VehicleCompare"}
gS
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
bin/configManager.cgi?action=setConfig&VideoAnalyseGlobal[0].Scene.Type=Normal&VideoAnalyseGl
HU
obal[0].Scene.PtzPresetId=1
A_
OK
TP
_
AP
channel 1).
gS
"CrossRegionDetection", "LeftDetection",
"TakenAwayDetection"}.
+Name char[128] O Rule name, it must be unique. "GuardLine1"
+Enable bool O Enable/Disable this rule. true
+Type char[32] R The range is {"CrossLineDetection", "CrossLineDetection
"CrossRegionDetection", "LeftDetection", "
"TakenAwayDetection",
"VideoAbnormalDetection",
"FaceDetection", "AudioMutation",
"AudioAnomaly", "VideoUnFocus",
"WanderDetection", "RioterDetection",
"ParkingDetection", "MoveDetection",
"NumberStat", "HeatMap", "FaceAttribute",
"VehicleDetect", "NonMotorDetect",
"RightToLeft"
HU
"Both"
A_
}
HT
Adapt to:
V3
{"CrossLineDetection",
.3
7
"CrossRegionDetection", "LeftDetection",
fo
"TakenAwayDetection", "FaceDetection",
rV
"WanderDetection", "RioterDetection",
el
"ParkingDetection", "MoveDetection"}.
se
n
"LeftToRight"
HU
"RightToLeft"
A_
}
HT
O
se
0: Center point
HU
O
V3
False: Disable
n
True: Enable
gS
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=VideoAnalyseRule
Get Config Response Example
table.VideoAnalyseRule[0][0].Name= line1
table.VideoAnalyseRule[0][0].Type=CrossLineDetection
table.VideoAnalyseRule[0][0].VideoAnalyseRule[0][0].Enable =true
table.VideoAnalyseRule[0][0].VideoAnalyseRule[0][0].EventHandler= (output of EventHandler is
described in GetEventHandler)
…
Request Example
I_
http://192.168.1.108/cgi-
V3
bin/devVideoAnalyse.cgi?action=getLastEventInfo&channel=1&ClassName=StereoBehavior&EventN
.3
ame=ManStandDetection
7
fo
rV
0: off
dn
1: on
}
Bh
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
DA
table.GlobalDeviceParam.LocateHeight=10.5
HT
table.GlobalDeviceParam.Profile=0
TP
_
AP
http://10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&GlobalDeviceParam.LocateHeight=10.5
V3
OK
7
fo
rV
Gets all intelligent rule configuration templates and default values under the specified category
n gS
Method GET
Bh
e
HU
d
TP
es
AP
Example
rV
Rule.Normal.CrossLineDetection.Id=0
el
Rule.Normal.CrossLineDetection.Enable=false
se
n
Rule.Normal.CrossLineDetection.Class=Normal
gS
Rule.Normal.CrossLineDetection.Type=CrossLineDetection
dn
Rule.Normal.CrossLineDetection.ObjectTypes[0]=Unknown
Bh
Rule.Normal.CrossLineDetection.PtzPresetId=0
d
Rule.Normal.Config.Direction=Both
Rule.Normal.Config.SizeFilter.MaxSize[0]=[8191, 8191]
Rule.Normal.Config.SizeFilter.MinSize[0]=[0, 0]
…
channel sensitive.
HT
is enabled.
_ AP
enumchar[32]{
V3
packages. Up to 10 packages
7
user.
se
n
range: 1-300.
dn
36,000 s or 0.
d
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=IntelliSchemeTour
table.IntelliSchemeTour.TourPlan[0][12].TimeSection=1 00:00:00-00:00:00
HU
table.IntelliSchemeTour.TourPlan[0][13].TimeSection=1 00:00:00-00:00:00
A_
table.IntelliSchemeTour.TourPlan[0][14].TimeSection=1 00:00:00-00:00:00
HT
table.IntelliSchemeTour.TourPlan[0][15].TimeSection=1 00:00:00-00:00:00
TP
table.IntelliSchemeTour.TourPlan[1][0].TimeSection=1 00:00:00-00:00:00
_
table.IntelliSchemeTour.TourPlan[1][1].TimeSection=1 00:00:00-00:00:00
AP
table.IntelliSchemeTour.TourPlan[1][2].TimeSection=1 00:00:00-00:00:00
I_
table.IntelliSchemeTour.TourPlan[1][3].TimeSection=1 00:00:00-00:00:00
V3
table.IntelliSchemeTour.TourPlan[1][4].TimeSection=1 00:00:00-00:00:00
.3
7
table.IntelliSchemeTour.TourPlan[1][5].TimeSection=1 00:00:00-23:00:00
fo
table.IntelliSchemeTour.TourPlan[1][6].TimeSection=1 00:00:00-00:00:00
rV
table.IntelliSchemeTour.TourPlan[1][7].TimeSection=1 00:00:00-00:00:00
el
table.IntelliSchemeTour.TourPlan[1][8].TimeSection=1 00:00:00-00:00:00
se
table.IntelliSchemeTour.TourPlan[1][9].TimeSection=1 00:00:00-00:00:00
ngS
table.IntelliSchemeTour.TourPlan[1][10].TimeSection=1 00:00:00-00:00:00
dn
table.IntelliSchemeTour.TourPlan[1][11].TimeSection=1 00:00:00-00:00:00
Bh
table.IntelliSchemeTour.TourPlan[1][12].TimeSection=1 00:00:00-00:00:00
d
table.IntelliSchemeTour.TourPlan[1][13].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[1][14].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[1][15].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][0].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][1].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][2].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][3].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][4].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][5].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][6].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][7].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][8].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][9].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[2][10].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[3][11].TimeSection=1 00:00:00-00:00:00
HU
table.IntelliSchemeTour.TourPlan[3][12].TimeSection=1 00:00:00-00:00:00
A_
table.IntelliSchemeTour.TourPlan[3][13].TimeSection=1 00:00:00-00:00:00
HT
table.IntelliSchemeTour.TourPlan[3][14].TimeSection=1 00:00:00-00:00:00
TP
table.IntelliSchemeTour.TourPlan[3][15].TimeSection=1 00:00:00-00:00:00
_
table.IntelliSchemeTour.TourPlan[4][0].TimeSection=1 00:00:00-00:00:00
AP
table.IntelliSchemeTour.TourPlan[4][1].TimeSection=1 00:00:00-00:00:00
I_
table.IntelliSchemeTour.TourPlan[4][2].TimeSection=1 00:00:00-00:00:00
V3
table.IntelliSchemeTour.TourPlan[4][3].TimeSection=1 00:00:00-00:00:00
.3
7
table.IntelliSchemeTour.TourPlan[4][4].TimeSection=1 00:00:00-00:00:00
fo
table.IntelliSchemeTour.TourPlan[4][5].TimeSection=1 00:00:00-00:00:00
rV
table.IntelliSchemeTour.TourPlan[4][6].TimeSection=1 00:00:00-00:00:00
el
table.IntelliSchemeTour.TourPlan[4][7].TimeSection=1 00:00:00-00:00:00
se
table.IntelliSchemeTour.TourPlan[4][8].TimeSection=1 00:00:00-00:00:00
ngS
table.IntelliSchemeTour.TourPlan[4][9].TimeSection=1 00:00:00-00:00:00
dn
table.IntelliSchemeTour.TourPlan[4][10].TimeSection=1 00:00:00-00:00:00
Bh
table.IntelliSchemeTour.TourPlan[4][11].TimeSection=1 00:00:00-00:00:00
d
table.IntelliSchemeTour.TourPlan[4][12].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[4][13].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[4][14].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[4][15].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][0].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][1].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][2].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][3].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][4].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][5].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][6].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][7].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][8].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[5][9].TimeSection=1 00:00:00-00:00:00
table.IntelliSchemeTour.TourPlan[6][10].TimeSection=1 00:00:00-00:00:00
HU
table.IntelliSchemeTour.TourPlan[6][11].TimeSection=1 00:00:00-00:00:00
A_
table.IntelliSchemeTour.TourPlan[6][12].TimeSection=1 00:00:00-00:00:00
HT
table.IntelliSchemeTour.TourPlan[6][13].TimeSection=1 00:00:00-00:00:00
TP
table.IntelliSchemeTour.TourPlan[6][14].TimeSection=1 00:00:00-00:00:00
_
table.IntelliSchemeTour.TourPlan[6][15].TimeSection=1 00:00:00-00:00:00
AP
table.IntelliSchemeTour.TourPriMode=Switch
I_
V3
http://172.27.2.72/cgi-bin/configManager.cgi?action=setConfig&IntelliSchemeTour.TourPriMode=Switch
fo
OK
el
se
n gS
Export information, such as intelligent diagnosis, allowlist, and blocklist information. The export data
d
format is csv
Request URL http://<server>/cgi-bin/api/ImExport/exportData
Method POST
Request Params (JSON format in body)
Name Type R/O Description Example
type enumint O Exported data type. 0
enumint{
0: License plate allowlist
1: License plate blocklist
2: License plate blocklist and
allowlist
3: Voice talk contacts
4: Custom password
5: Card recordset
Response Example
HU
HTTP/1.1 200 OK
A_
Server: Device/1.0
HT
Content-Type: application/octet-stream
TP
Content-Length: <length>
_ AP
Method POST
n
gS
enumint{
d
--<boundary>
HU
Content-Type: application/json
A_
Content-Length: 12
HT
TP
{
_
"type": 0,
AP
"isOverWrite": true
I_
V3
}
--<boundary>
.3
7
Content-Type: application/octet-stream
fo
Content-Length: 800
rV
el
--<boundary>
gS
dn
Response Example
{}
+AnalyseMode char[] O
RecordFileStream, PicFileStream
HU
+MultiChannel
object O Multi channel description
A_
Mode
HT
+MultiVideoAn
fo
++AlgorithmVer char[]
R Algorithm version
dn
sion
Bh
++AlgorithmVe char[]
R Algorithm Vendor name
d
ndor
+TotalCapacity object[] O Intelligent analyse total capacity
++Class char[] R Intelligent analyse class, ex : ObjectDetect ObjectDetect
Intelligent analyse rules, ex : ["FaceDetection"]
++Type char[][] R
FaceDetection
The maximum number of video channels
++Number int R
that can be analysed at same time
Response Example
caps.AnalyseMode=RealStream
caps.MultiChannelMode.IndepMode[0][0].Channel=0
caps.MultiChannelMode.IndepMode[0][0].Type=Normal
caps.MultiChannelMode.IndepMode[0][1].Channel=1
caps.MultiChannelMode.IndepMode[0][1].Type=ObjectDetect
…
caps.TotalCapacity[1].Type[0]=FaceDetection
HU
caps.TotalCapacity[1].Number=3
A_
…
HT
TP
_
Method GET
7
60.
Request Example
http://192.168.1.108/cgi-bin/intelli.cgi?action=attachResource&heartbeat=5
--<boundary>
Content-Type: text/plain
Content-Length: <length>
RemainCapacity[0].Class=Normal
RemainCapacity[0].Number=1
RemainCapacity[1].Class=ObjectDetect
RemainCapacity[1].Number=2
--<boundary>
Content-Type: text/plain
Content-Length: 11
DA
Heartbeat
HU
--<boundary>
A_
Content-Type: text/plain
HT
Content-Length: <length>
TP
_
RemainCapacity[0].Class=Normal
AP
RemainCapacity[0].Number=1
I_
RemainCapacity[1].Class=ObjectDetect
V3
RemainCapacity[1].Number=1
.3
7
…
fo
rV
el
se
Method POST
Bh
HTTP/1.1 200 OK
HT
Server: Device/1.0
TP
Content-Type: application/octet-stream
_ AP
Content-Length: <length>
I_
V3
//Before the device returns the actual data, use AES symmetric encryption (the key is generated
7
fo
{}
HU
A_
HT
Get the list of intelligent schemes that have been opened for a channel.
I_
V3
Method GET
7
fo
Request Example
se
http://<server>/cgi-bin/devVideoAnalyse.cgi?action=getSceneList
ngS
dn
Bh
Response Example
A_
OK
HT
TP
Method GET
fo
getSceneList
dn
Request Example
d
http://192.168.1.108/cgi-
bin/devVideoAnalyse.cgi?action=disableScene&typeList=[Normal,HeatMap]&channel=0
Request Example
{
"Channel": -1,
"AlgType": "Normal"
}
DA
HU
000000.1.R"]
I_
V3
Response Example
.3
{
7
"Info": [[{
fo
"ClassType": "Normal",
rV
"AlgTypeVersion": ["R497490.0_V3.004.0000000.1.R"]
el
se
},…{}],…[]]
n
}
gS
dn
Bh
9.7 WorkSuitCompareServer
d
characteristics
HT
Request Example
TP
{
_
"Group": {
AP
"GroupName": "takeout",
I_
V3
"CutoutPolicy": 1,
.3
"Similarity": 90,
7
"GroupType": "BlockListDB",
fo
"GroupDetail":"community owner",
rV
"Type": "ClothesCommon"
el
se
}
n
}
gS
dn
Request Example
_
{
AP
"GroupID": "000001"
I_
}
V3
.3
7
group information
se
n
to 127 characters.
Bh
0: Full body
1: Upper body
+GroupType enumchar[ O Compliance library group type "BlockListDB"
16] enumchar[16]{
"BlockListDB": Registry (control list)
to save external imported data
}
+GroupDetail char[256] O group remark info "community owner"
+GroupSize int O size 30
+Channels int16[1024] O The list of video channel numbers to [0]
which the current group is bound
(see setgroup).
If not associated with any video
channel, it should be [-1]
replaced
TP
identification by algorithm
V3
Response Example
gS
{
dn
"GroupList": [{
Bh
"GroupID": "000001",
d
"GroupName": "taken",
"CutoutPolicy": 0,
"GroupType": "BlockListDB",
"GroupDetail": "community owner",
"GroupSize": 30,
"Channels": [0],
"Similarity": [90],
"FeatureState": [10,20,30,40]
},…{}]
}
0: Full body
1: Upper body
HU
Response Example
A_
{
HT
"GroupList": [{
TP
"GroupID": "001",
_
AP
"Similarity": 80,
I_
"CutoutPolicy": 1
V3
},…{}]
.3
}
7
fo
Method POST
Request Params ( JSON format in body )
dn
Method POST
HT
characters
el
the threshold
dn
modification
d
1: Extraction failed;
HU
2: Extracted successfully;
A_
remodeling is required.
_
AP
Request Example
I_
{
V3
"Condition": {
.3
"GroupID": ["00001","00002"]
7
},
fo
rV
"WorkSuit": {
"FeatureState": 1
el
se
}
n
}
gS
dn
search results.
HT
return it.
7
Request Example
fo
{
rV
"Condition": {
el
se
"Token": 46878,
n
"BeginNumber": 0,
gS
"Count": 20,
dn
"NeedData": 1
Bh
}
d
greater than 0.
HU
1: Modeling failed.
HT
analyzer).
I_
V3
5: Multiple targets.
fo
6: No target.
rV
el
se
50.jpg
gS
platform.
d
Method POST
I_
Request Example
el
{
se
"Token": 46878
n gS
}
dn
Response Example
{}
Method POST
TP
to 31 characters.
rV
through getappendtoken
gS
Request Example
dn
{
Bh
"WorkSuit": [{
d
"UID": "120837"
},…{}],
"Token": 1
}
"Middle", "High"
I_
default false
.3
7
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
Bh
are as follows :
d
prevail.
HU
vehicle.
AP
00:00:00"
.3
00:00:00"
fo
"ascOrder"
"ascOrder": Ascending order (default
el
se
value).
n
Request Example
dn
{
Bh
"Condition": {
d
"Channel": 0,
"Channels": [0,1,2,5],
"SmdType": ["smdTypeHuman", "smdTypeVehicle", "smdTypeHumanAndVehicle" ],
"StartTime": "2017-08-01 00:00:00",
"EndTime": "2017-08-02 00:00:00",
"Order": "ascOrder"
}
}
{
HU
"Token": 1,
A_
"Offset": 0,
HT
"Count": 100
TP
}
_AP
I_
certain time.
el
"smdTypeVehicle": Vehicle.
Bh
"smdTypeHumanAndVehicle": Human
d
and vehicle.
+StartTime char[32] O Start time 2017-01-01 10:00:
Response Example
{
"SmdInfo": [{
"Channel": 1,
"StartTime": "2017-08-01 00:00:00",
"EndTime": "2017-08-02 00:00:00",
"Type": "smdTypeHuman"
},…{}]
}
{}
HU
A_
Method POST
7
a response
gS
such as analysePushVideoFile.
TP
created or not
AP
LocalVideoFile, LocalPictureFile,
V3
RemoteVideoFile, and
.3
7
created.
ngS
LocalStream
d
e is supported
TP
LocalVideoFile
AP
LocalPictureFile
el
++Files object[] O
se
n
OffLineVideoFile
_
RTSP
V3
xx/a.dav"
dn
period.
_
enabled by default.
I_
CalibrateArea, CalibrateArea1 ……
A_
all.
V3
area.
fo
ruler lines.
se
n
1 horizontal element)
Bh
range of 0–8192
HU
length, in meters
TP
ctionEnable area
AP
2] DetectRegion.
.3
7
16] enumchar[16]{
rV
}
gS
ght in meters
Bh
supported.
HT
suits.
AP
VAClassEnum.
V3
not enabled.
HU
be detected.
TP
"VideoAnalyseRule(XXXX)
AP
Config array
V3
default.
el
true: True
gS
false: False
dn
},
HU
"LocalVideoFile": {
A_
"FileID": "file-1234",
HT
"Path": "/xxxx/a.dav"
TP
},
_
"LocalPictureFile": {
AP
"Files": [{
I_
"FileID": "file-1234",
V3
"Path": "/xxxx/a.jpg"
.3
7
},…{}]
fo
},
rV
"RemoteVideoFile": {
el
"Protocol": "RTSP",
se
"VideoAnalysisProcess": 66,
ngS
"Path": "rtsp://192.168.1.1:554/xxxx/a.dav",
dn
"IP": "192.168.1.1",
Bh
"Port": 554,
d
"Channel": 1,
"Subtype": 1,
"Username": "admin",
"Password": "123456",
"FileID": "file-1234",
"StartTime": "2010-05-25 00:00:00",
"EndTime": "2010-05-25 23:59:59"
},
"OffLineVideoFile": {
"Protocol": "RTSP",
"FileSize": 1000,
"VideoAnalysisProcess": 66,
"Path": "rtsp://192.168.1.1:554/xxxx/a.dav",
"IP": "192.168.1.1",
},
HU
"Global": {
A_
"Lanes": [{
HT
"Enable": true,
TP
"Number": 0,
_
"LeftLine": ,
AP
"LeftLineExt": ,
I_
"LeftLineType": "WhiteSolid",
V3
"RightLine": ,
.3
7
"RightLineExt":,
fo
"RightLineType": "WhiteSolid"
rV
},…{}],
el
"CalibrateArea": [{
se
"Area": ,
n
gS
"Staffs": [{
dn
"Type": "Horizontal",
Bh
"Config": {
A_
},
HT
"ExperienceConfig": [{
TP
"ID": "1",
_
"Similarity": 67,
AP
"IsPositive": true
I_
},…{}]
V3
},…{}],
.3
7
"MQConfig": "",
fo
"IsRepeat": 0
rV
}
el
}
se
n gS
TaskID uint32 O Task ID, > 0. (If it is failed, the result 1234
d
is false)
VirtualChannel uint32 O The corresponding virtual channel 1234
number of the task. The value range
is within the values of
ChannelManager.getVirtualChannel
s.
Path char[256] O RTSP address of the AI stream "rtsp://192.168.1.1:554/xx"
Response Example
{
"TaskID": 1234,
"VirtualChannel": 1234,
"Path": "rtsp://192.168.1.1:554/xx"
}
dimensional array. If
_ AP
cutout
n gS
Request Example
{
"TaskID": [ 1, 2, 3 ],
"Filters": {
"Events": [ "FaceDetection", … ],
"ImageDataFlag": 0,
ta ta
A_
a corresponds to the
TP
UserDefineData field in
_
analyseTaskManager.analyseP
AP
ushPictureFileByRule.
I_
V3
0: Analyzing
el
se
1: Complete
n
2: Failed
gS
reason.
d
"FileID": "file-1234",
HU
"FileState": 0,
A_
"Events": [{}],
TP
"Flag": 2,
_
"Image": {
AP
"Offset": 0,
I_
"Length": 60000
V3
}
.3
7
}
fo
]
rV
}
el
--<boundary>
se
n
Content-Type: text/plain
gS
Content-Length: 11
dn
Heartbeat
Bh
--<boundary>
d
be selected at a time
TP
Request Example
gS
{
dn
"TaskID": 1,
Bh
"Files": [{
d
"FileID": "file-1234",
"Url": "ftp://username:password@hostname:port/filepath",
"Offset": 0,
"Length": 256000,
"XRayCustomInfo": ,
"ModelPath": "/aaa/bbb/ccc"
},…{}]
}
--<boundary>
Content-Type: image/jpeg
Content-Length:<image size>
<JPEG image data>
--<boundary>
9.10 SceneModeManager
Request Example
_ AP
{
I_
"DeviceID": "12345678",
V3
"Channel": 0
.3
}
7
fo
rV
caps object[102 O
n gS
4]
+SupportedMo char[32][32 O Supported scenario modes. ["AcuPick"]
dn
"Channel": 0,
"DeviceID": "12345678"
HU
}
A_
HT
infos object[] O
I_
Response Example
el
{
se
"infos": [{
n gS
"Channel": 0,
"Mode": "None"
dn
},…{}]
Bh
}
d
Set the scene mode. To check the mode settings and whether the device needs to be restarted, please
TP
Method POST
I_
4] of
rV
"SceneModeManager.getMode".
el
Request Example
dn
{
Bh
"infos": [{
d
},…{}],
"DeviceID": "12345678"
}
9.11 ExperienceRegistry
Method POST
Request Example
{}
databases.
HU
databases.
HT
TP
enumchar[32]{
_AP
database of filtered
V3
alarm database). If
el
attribute can be
Bh
extended to positive
d
samples.
}
+MaxGroupNum uint32 O The maximum number of 10
groups supported by the
current database.
+PicStorageNum uint32 O The maximum number of 1,000
images that can be
stored in the current
database (the sum of
images in all groups).
+ImportSmallNu uint32 O The maximum number of 50
mber small images that can be
imported at a time.
needed); 2 (0010B):
HU
combination of 0001B
TP
images.
V3
databases cannot be
el
created by category.
se
n gS
“Negative”: Negative
samples.
}
++SupportedRule object[16] O The types of rules that
s can be created. If the
field does not exist, it
means that databases
cannot be created by
rule.
rules.
A_
HT
client determines
_
AP
functions according to
V3
used if there is no
7
fo
SupportedObjects.
rV
2] “Pegative”]
se
enumchar[16][32]{
n gS
dn
“Positives”: Positive
samples.
Bh
d
“Negative”: Negative
samples.
}
+++SupportedObj object[16] O List of detection target
ects types. If the field does
not exist, it means that it
is not supported.
++++ObjectType enumchar[32] O Types of detection “Human”
targets.
“Positives”: Positive
samples.
“Negative”: Negative
samples.
}
Whether registered
DA
el
by channel. true:
A_
supported. It is not
TP
supported by default.
_ AP
on is supported. true:
V3
supported. It is not
7
supported by default.
fo
rV
the same.
d
Response Example
{
"GroupTypeList": [
{
"GroupType": "FilterEvent",
"ImportSmallNumber": 50,
"ImportBigNumber": 50,
"SinglePicMaxLength": 50,
"MaxGroupNum": 10,
"PicStorageNum": 1000,
{
HU
"RuleType": "CrossLineDetection",
A_
"EventType": "CrossLineDetection",
HT
"FuncList": [
TP
_
"Negative"
AP
],
I_
V3
"Subclasses": true,
.3
"SupportedObjects": [
7
fo
{
rV
"ObjectType": "Human",
el
se
"FuncList": [
ngS
"Negative"
dn
],
Bh
"Subclasses": true
d
}
]
}
]
}
]
}
]
}
Method POST
database. Homeowners"
A_
1: Positive samples; 2:
TP
Negative samples.
_AP
database.
V3
.3
enumchar[32]{
7
fo
rV
“FilterEvent”: Sample
database of filtered
el
se
negative sample
dn
database).
Bh
d
}
+Channel int O The channel of the group 0
starting from 0. If this
field does not exist or if it
is -1, it means that it is
not dependent on the
channel.
Request Example
A_
{
HT
"Group": {
TP
_
"GroupName": "zl",
AP
I_
"GroupDetail": "11",
V3
"SampleAttribute": 1,
.3
7
"GroupType": "FilterEvent",
fo
"Channel": 0,
rV
el
"ClassType": "Normal",
se
"RuleType": "RuleType",
n gS
"ObjectType": "ObjectType",
dn
"Disposition": [
Bh
{
d
"DeployedChannel": 0,
"Similarity": 90,
"Enable" : false
}
]
}
}
Response Example
"GroupID": "34"
Method POST
experience database. If
TP
searching information on
V3
all groups.
.3
7
database.
rV
el
Request Example
se
n
{
gS
"GroupID": [],
dn
Bh
"GroupType": "FilterEvent"
d
enumchar[32]{
“FilterEvent”: Sample
database of filtered
events (including positive
sample database and
negative sample
database).
DA
}
HU
channel.
I_
V3
depends on the
capabilities of the video
Bh
channel.
d
Response Example
{
"GroupList": [
{
"GroupName": "zl",
"GroupDetail": "11",
"SampleAttribute": 1,
"GroupType": "FilterEvent",
"Channel": 0,
"ClassType": "Normal",
DA
"RuleType": "RuleType",
HU
"ObjectType": "ObjectType",
A_
"Disposition": [
HT
TP
{
_
"DeployedChannel": 0,
AP
I_
"Similarity": 90,
V3
"Enable": false
.3
7
}
fo
rV
]
el
}
se
n
]
gS
}
dn
Bh
Method POST
Request Example
Response Example
{}
Method POST
HT
experience database.
.3
7
database.
se
n gS
Request Example
{
"Group": {
"GroupID": "1",
"GroupName": "zl",
"GroupDetail": "11",
"Disposition": [
DA
{
HU
"DeployedChannel": 0,
A_
"Similarity": 90,
HT
"Enable" : false
TP
}
_
AP
]
I_
V3
}
.3
}
7
fo
rV
Response Example
dn
Bh
{}
d
Method POST
{
"GroupType": "FilterEvent"
}
experience database.
HU
A_
experience database.
_ AP
I_
imported to the
7
experience database.
fo
rV
Response Example
el
se
{
n gS
"TotalSize": 11,
dn
"FreeSize": 11,
Bh
"TotalCount": 11,
d
"FreeCount": 11
}
Method POST
Request Example
{}
Response Example
{
"Token": 17
DA
}
HU
A_
Add multiple experience database samples asynchronously to use them with getDetectToken.
_ AP
Method POST
.3
7
images.
dn
image.
b)
HU
"/mnt/2010/8/1/dav/15:40:
A_
50.jpg"
HT
and Length.
_
AP
import.
7
fo
import request is
el
se
Request Example
Content-Type: application/json
Content-Length: <data length>
{
"PicInfo": [
{
"GroupID": "1",
"BigID": "1",
"BigName": "aaaaa",
"Image": {
100
HU
]
A_
]
HT
}
TP
_
],
AP
"Info": {
I_
V3
"Token": 1,
.3
"State": false,
7
fo
"DetectWay": 2
rV
}
el
se
}
n
gS
--<boundary>
dn
Content-Type: image/jpeg
Bh
Response Example
HU
A_
{
HT
"ErrCode": [
TP
1,
_
AP
2
I_
V3
]
.3
}
7
fo
rV
Method POST
Bh
d
this status.
HT
4: Modeling is complete,
TP
update. Remodeling is
I_
V3
needed.
.3
Request Example
7
fo
rV
{
el
"Condition": {
se
"GroupID": ["00001"]
n gS
},
dn
"FeatureState" : [1,4]
Bh
}
d
Response Example
"TotalCount": 3333
Method POST
search.
HU
beginNumber records,
.3
records.
fo
0<=beginNumber<=
rV
totalCount-1
el
se
Request Example
Bh
d
{
"Token": 46878,
"BeginNumber": 0,
"Count": 20
}
0: Unknown.
HU
need to be replaced.
_
AP
calculated, it is enough.
fo
rV
milliseconds. It is mainly
dn
Response Example
}
HU
}
A_
HT
Database
I_
V3
Method POST
el
se
Request Example
{
"Token": 46878
}
Response Example
{}
Method POST
Request Example
DA
{
HU
"GroupID": "1",
A_
HT
"SmallID": [
TP
"123",
_
AP
"234"
I_
]
V3
}
.3
7
fo
rV
result.
d
1: Successful.
2: The feature ID does not
exist.
3: Failed to perform
operation on the
database.
4: Failed to update the
arming database.
5: Failed to perform
operation on the storage
service.
Response Example
"ErrCode": [
1,
Subscribe to feature extraction progress and use it with multiAppend, reAbstract and groupReAbstract.
HU
Method POST
HT
TP
Request Example
"UserData": "asdvbtgrffg",
HU
"TaskCustomData": null,
A_
"FileID": "file-1234",
HT
TP
"FileState": 0,
_
"Events": [{}],
V3
"Flag": 2,
.3
7
"Image": {
fo
rV
"Offset": 0,
el
"Length": 60000
se
}
n
gS
}
dn
]
Bh
}
d
--<boundary>
Content-Type: text/plain
Content-Length: 11
Heartbeat
--<boundary>
progress.
HU
A_
be imported.
TP
{
V3
1: Modeling failed.
.3
7
unstarted modeling
n
analyzer).
gS
dn
3: Failed to perform
operation on the
Bh
database.
d
Response Example
HTTP/1.1 200 OK
Content-Type: multipart/x-mixed-replace; boundary=<boundary>
Connection: close
--<boundary>
Content-Type: application/json
DA
{
A_
"SID": 123,
HT
"info": {
TP
"Progress": 34,
_ AP
"Token": 1,
I_
V3
"SucceedCnt": 100,
.3
"FailedCnt": 20,
7
fo
"FailedPicDetails": [
rV
{
el
se
"SmallName": "aaaaa",
n
gS
"BigName": "aaaaa",
dn
"ErrCode": 1
Bh
}
d
]
}
}
--<boundary>
Content-Type: text/plain
Content-Length: 11
Heartbeat
--<boundary>
The feature vectors of the images are stored in the database after the calculation of the algorithm database. The
feature vectors need to be reconstructed after the algorithm is updated. Non-blocking interface used with
attachFeatureState.
Request URL http://<server>/cgi-bin/api/ExperienceRegistry/reAbstract
Method POST
images.
HU
image.
TP
Request Example
_ AP
I_
{
V3
"GroupID": "00001",
.3
7
"PicInfoList": [
fo
{
rV
el
"SmallID": "111"
se
}
n gS
]
dn
}
Bh
d
Response Example
{
"Token": 1
}
Method POST
Request Example
DA
{
HU
"GroupID": [
A_
"00001"
HT
]
TP
_
}
AP
I_
V3
modeling.
se
n
Response Example
gS
dn
{
Bh
"Token": 1
d
Method POST
Request Example
{
"GroupID": [
"00001"
]
}
Response Example
A_
{}
HT
TP
Method POST
rV
Request Example
{
"Condition": {
"StartTime": "2012-01-04 00:00:00",
"EndTime": "2012-01-04 23:59:59"
}
}
Response Example
{
"Token": 123,
"TotalCount": 23
}
Read the search results for the suspected false alarm events.
A_
Method POST
_ AP
search.
rV
el
beginNumber records,
and returns count
records.
0<=BeginNumber<=
TotalCount-1
Request Example
{
"Condition": {
"Token": 123,
found.
A_
HT
Response Example
el
se
{
n gS
"Results": {
dn
"Found": 12,
Bh
"Info": [
d
{
"EventType": "CrossLineDetection",
"ClassType": "Normal",
"UTC": 152463285,
"RuleType": "CrossLineDetection"
}
]
}
}
Method POST
Request Example
DA
{
HU
"Token": 123
A_
}
HT
TP
_
Response Example
7
fo
{}
rV
el
se
n
gS
dn
Bh
d
+IndexInGroup int O
group, start from 1.
HT
+TriggerType int O
AP
"WithoutSunShade".
HU
8192.
V3
"WithoutSafeBelt".
rV
el
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
se
n
--<boundary>
dn
Content-Type: text/plain
Bh
Content-Length: <length>
d
Events[0].EventBaseInfo.Code=TrafficJunction
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].GroupID=123
Events[0].CountInGroup=3
Events[0].IndexInGroup=1
Events[0].Lane=0
Events[0].Vehicle.BoundingBox[0]=1341
Events[0].Vehicle.BoundingBox[1]=2451
Events[0].Vehicle.BoundingBox[2]=4513
Events[0].Vehicle.BoundingBox[3]=4135
Events[0].Vehicle.Text=Audi
Events[0].Vehicle.SubText=A6L
Events[0].CommInfo.Seat[0].ShadePos[2]=2151
HU
Events[0].CommInfo.Seat[0].ShadePos[3]=3661
A_
Events[0].CommInfo.Seat[0].SafeBelt=WithoutSafeBelt
HT
…
TP
--<boundary>
_
Content-Type: image/jpeg
AP
--<boundary>
fo
rV
Event params is the same as TrafficJunction, except for event Code is TrafficRetrograde.
dn
Bh
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Events[0].EventBaseInfo.Code=TrafficJam
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].GroupID=123
Events[0].CountInGroup=3
DA
Events[0].IndexInGroup=1
HU
Events[0].Lane=0
A_
Events[0].StartJaming=123456789
HT
Events[0].AlarmInterval=180
TP
Events[0].JamLenght=70
_
Events[0].JamRealLength=120
AP
…
I_
--<boundary>
V3
Content-Type: image/jpeg
.3
7
--<boundary>
se
n gS
Event params is the same as TrafficJunction, except for event Code is TrafficUnderSpeed, and
add following params:
Event Code TrafficUnderSpeed
Event action Start/Stop
Event index 0
Event Data
Name Type R/O Description Example
Speed limit, 2 integer, min speed [60,120]
+SpeedLimit int[2] O
and max speed.
+UnderSpeedin 20
int O Percentage of under speed.
gPercentage
The other event parameters are the
+…
same as TrafficJunction
Events[0].EventBaseInfo.Code=TrafficUnderSpeed
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].GroupID=123
Events[0].CountInGroup=3
Events[0].IndexInGroup=1
Events[0].Lane=0
Events[0].Vehicle.BoundingBox[0]=1341
Events[0].Vehicle.BoundingBox[1]=2451
Events[0].Vehicle.BoundingBox[2]=4513
DA
Events[0].Vehicle.BoundingBox[3]=4135
HU
Events[0].Vehicle.Text=Audi
A_
Events[0].Vehicle.SubText=A6L
HT
Events[0].Vehicle.SubBrand=5
TP
Events[0].Vehicle.BrandYear=2
_
Events[0].TrafficCar.RecNo=123
AP
Events[0].SpeedLimit[0]=60
I_
Events[0].SpeedLimit[1]=120
V3
Events[0].UnderSpeedingPercentage=20
.3
7
…
fo
--<boundary>
rV
Content-Type: image/jpeg
el
--<boundary>
Bh
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Events[0].EventBaseInfo.Code=TrafficOverSpeed
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].GroupID=123
Events[0].CountInGroup=3
DA
Events[0].IndexInGroup=1
HU
Events[0].Lane=0
A_
Events[0].Vehicle.BoundingBox[0]=1341
HT
Events[0].Vehicle.BoundingBox[1]=2451
TP
Events[0].Vehicle.BoundingBox[2]=4513
_
Events[0].Vehicle.BoundingBox[3]=4135
AP
Events[0].Vehicle.Text=Audi
I_
Events[0].Vehicle.SubText=A6L
V3
Events[0].Vehicle.SubBrand=5
.3
7
Events[0].Vehicle.BrandYear=2
fo
Events[0].TrafficCar.RecNo=123
rV
Events[0].SpeedLimit[0]=60
el
Events[0].SpeedLimit[1]=120
se
n
Events[0].UnderSpeedingPercentage=20
gS
…
dn
--<boundary>
Bh
Content-Type: image/jpeg
d
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
DA
--<boundary>
A_
Content-Type: text/plain
HT
Content-Length: <length>
TP
_
Events[0].EventBaseInfo.Code=TrafficPedestrain
AP
Events[0].EventBaseInfo.Action=Pulse
I_
Events[0].EventBaseInfo.Index=0
V3
Events[0].GroupID=123
.3
7
Events[0].CountInGroup=3
fo
Events[0].IndexInGroup=1
rV
Events[0].Lane=0
el
Events[0].Vehicle.Category=Passerby
se
n
Events[0].Vehicle.BoundingBox[0]=1341
gS
Events[0].Vehicle.BoundingBox[1]=2451
dn
Events[0].Vehicle.BoundingBox[2]=4513
Bh
Events[0].Vehicle.BoundingBox[3]=4135
d
…
--<boundary>
Content-Type: image/jpeg
Content-Length: <image size>
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
--<boundary>
DA
Content-Type: text/plain
HU
Content-Length: <length>
A_
HT
Events[0].EventBaseInfo.Code=TrafficParking
TP
Events[0].EventBaseInfo.Action=Pulse
_
Events[0].EventBaseInfo.Index=0
AP
Events[0].GroupID=123
I_
Events[0].CountInGroup=3
V3
Events[0].IndexInGroup=1
.3
7
Events[0].Lane=0
fo
Events[0].Vehicle.BoundingBox[0]=1341
rV
Events[0].Vehicle.BoundingBox[1]=2451
el
Events[0].Vehicle.BoundingBox[2]=4513
se
n
Events[0].Vehicle.BoundingBox[3]=4135
gS
Events[0].Vehicle.Text=Audi
dn
Events[0].Vehicle.SubText=A6L
Bh
Events[0].Vehicle.SubBrand=5
d
Events[0].Vehicle.BrandYear=2
Events[0].TrafficCar.RecNo=123
Events[0].StartParking=6538920
Events[0].AlarmInterval=180
Events[0].ParkingAllowedTime=1600
…
--<boundary>
Content-Type: image/jpeg
Content-Length: <image size>
0 and 59999.
HT
name
7
name
rV
el
se
Event Response Example ( multipart , JSON format in body ) ( response to 4.9.17 event
n gS
subscription )
dn
--<boundary>
Bh
Content-Type: text/plain
d
Content-Length: xxxx
Code=TrafficFlowStat;action=Pulse;index=0;data={
"FlowStates": [ { "Lane": 0,
"Flow": 50,
"Period": 5,
"DrivingDirection": [ "Approach", "XXXCity", "YYYCity"]
}, {…}, … ]
}
--<boundary>
Response Example
dn
totalCount=1000
Bh
found=100
d
records[0].RecNo=12345
records[0].CreateTime=123456789
records[0].StaticsticsTime=123456789
records[0].Period=300
records[0].Channel=0
records[0].Lane=0
records[0].Vehicles=250
records[0].AverageSpeed=25.4
…
records[1].RecNo=13579
records[1].CreateTime=123456799
records[1].StaticsticsTime=123456799
records[1].Period=300
records[1].Channel=0
getCaps.
n
Enumchar[8]{
gS
report)
Bh
"PresetID": [1],
HU
"Direction": "Both",
A_
"Channels": [0,1,2,5]
HT
}
TP
}
_
AP
query criteria
rV
Response Example
el
se
{
n
"token": 2342343,
gS
"totalCount": 333
dn
}
Bh
d
{
HU
"found": 12,
A_
"info": [{
HT
"PresetID" : 1
TP
"Lane" : 1,
AP
"MachineName" : "Device001",
V3
"UTC" : 1465389203,
.3
"UTCMS" : 123,
7
……
fo
},…{}]
rV
}
el
se
n
Method POST
d
PlateColor O
"Yellow", "Blue", … etc.
HU
char[] "2010-05-25
AP
char[] "2010-06-25
V3
AuthorityList object O
"TrafficRedList" table.
rV
Request Example
se
n
http://192.168.1.108/cgi-
gS
bin/recordUpdater.cgi?action=insert&name=TrafficBlackList&PlateNumber=AC00001&MasterOfCar=
dn
ZhangSan&PlateColor=Yellow&VehicleColor=Blue&BeginTime=2011-01-
Bh
01%2012:00:00&CancelTime=2011-01-10%2012:00:00
d
"TrafficRedList" table.
HT
Request Example
_
http://192.168.1.108/cgi-
AP
bin/recordUpdater.cgi?action=update&name=TrafficBlackList&recno=12345&PlateNumber=AC00001
I_
&MasterOfCar=ZhangSan&PlateColor=Yellow&VehicleColor=Blue&BeginTime=2011-01-
V3
01%2012:00:00&CancelTime=2011-01-10%2012:00:00
.3
7
fo
Response Example
el
OK
se
n gS
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
The record table name, TrafficBlackList
name char[] R "TrafficBlackList"for BlockList and
"TrafficRedList"for AllowList.
recno int R The record id. 12345
Request Example
http://192.168.1.108/cgi-bin/recordUpdater.cgi?action=remove&name=TrafficBlackList&recno=12345
char[][] O
VagueGroup string length is 47.
TP
Begin 0.
V3
Request Example
.3
http://192.168.1.108/cgi-
7
fo
bin/recordFinder.cgi?action=find&name=TrafficBlackList&condition.PlateNumber=AC00001&StartTim
rV
e=123456700&EndTime=123456800&count=100
el
se
Request Example
TP
http://192.168.1.108/cgi-
_
bin/recordUpdater.cgi?action=removeEx&name=TrafficBlackList&PlateNumber=AC00001
AP
I_
Response Example
.3
7
OK
fo
rV
Upload a blocklist or allowlist file to the device, and then import the data into the device. This
dn
Method POST
Request Params ( key=value format in URL ; binary data in body )
Name Type R/O Description Example
Type char[16] R File type, value: "TrafficBlackList"
"TrafficBlackList” Traffic blocklist
"TrafficRedList" Traffic allowlist
format char[16] R File format, fixed to "CSV” "CSV”
code char[16] R Encoding format, the value is "utf-8" or "utf-8"
"GB2312”
Request Example
POST http://192.168.1.108/cgi-bin/trafficRecord.cgi?action=uploadFile&Type=TrafficBlackList&forma
t=CSV&code=utf-8 HTTP/1.1
User-Agent: Client/1.0
--<boundary>
Content-Disposition: form-data; name="blackfile"; filename="TrafficBlackList.CSV"
Content-Type: application/vnd.ms-excel
<File data….>
--<boundary>--
Notify the device to export the traffic blocklist and allowlist to the file. This operation is non-blocking.
A_
Method GET
_ AP
or "GB2312”
dn
Request Example
http://<server>/cgi-
Bh
bin/recordUpdater.cgi?action=exportAsyncFile&name=TrafficBlackList&filename=RecordFile01&form
d
at=CSV&code=utf-8
state=0
HU
Method GET
AP
export command(exportAsyncFile).
n gS
Request Example
dn
http://<server>/cgi-bin/trafficRecord.cgi?action=downloadFile&Type=TrafficBlackList&filename=Recor
Bh
dFile01
d
<File Data…>
rdFile01&format=CSV&code=utf-8
HU
Response Example
HT
OK
TP
AP
low
7
Method GET
fo
rV
Request Example
gS
http://<server>/cgi-bin/recordUpdater.cgi?action=getFileExportState&name=TrafficFlow
dn
Bh
<File Data…>
DA
HU
Notify the device to export the traffic snapshot event records to the file. This operation is non-
_ AP
blocking. To obtain the export result, please run the “getFileExportState” command.
I_
e=TrafficSnapEventInfo
.3
Method GET
7
fo
"TrafficSnapEventInfo" o"
n gS
"GB2312"
d
Response Example
HU
state=0
A_
ntInfo
I_
Method GET
V3
"TrafficSnapEventInfo”
el
export command
dn
(exportAsyncFileByConditon).
Bh
Request Example
d
http://<server>/cgi-bin/trafficRecord.cgi?action=downloadFile&Type=TrafficSnapEventInfo&filename=
RecordFile01
<File Data…>
bin/trafficSnap.cgi?action=openStrobe&channel=1&info.openType=Normal&info.plateNumber=046X
HU
RW
A_
HT
Response Example
_
OK
AP
I_
Method POST
rV
Request Example
Bh
{
d
"info": {
"location": 0
}
}
Take a snapshot manually. For intelligent traffic device, it should use this method to take a snapshot.
A_
But, the response is not image data.If you want to get the image data, please follow these steps:
HT
1. Use the method mentioned chapter (4.4.3 Subscribe to snapshot) to subscribe the image data,
TP
3. In the connection which built in the Step 1, the device will send the image data.
.3
Method GET
rV
1.
Request Example
dn
http://192.168.1.108/cgi-bin/trafficSnap.cgi?action=manSnap&channel=1
Bh
d
Response Example
A_
status[0].Lane=0
HT
status[0].PictureId=5
TP
status[0].TrafficCar.CountInGroup=1
_
…
AP
status[1].Lane=1
I_
V3
status[1].PictureId=4
status[1].TrafficCar.CountInGroup=1
.3
7
…
fo
rV
Method GET
dn
Request Example
http://192.168.1.108/cgi-bin/trafficParking.cgi?action=getAllParkingSpaceStatus
statisticsmode is "areamode"
A_
Response Example
V3
status[0].Lane=0
.3
7
status[0].CustomParkNo = A2701
fo
status[0].Status = Park
rV
status[0].SpaceType = 0
el
…
se
n
status[1].Lane=1
gS
…
Bh
sceneType = ParkingStatistics
d
statisticsMode = AreaMode
areaStatus[0].Name = A01
areaStatus[0].Count = 10
areaStatus[0].SpaceType = 0
areaStatus[0].RemainCnt = 5
…
areaStatus[1].Name = A02
areaStauts[1].Count = 20
…
}
HU
0: off
HT
1: on
TP
2: flshing
_
}
AP
0: off
V3
1: on
.3
7
2: flshing
fo
}
rV
0: off
se
n
1: on
gS
2: flshing
dn
}
Bh
0: off
1: on
2: flshing
}
++Pink enumint O enumint{ 0
0: off
1: on
2: flshing
}
++Cyan enumint O enumint{ 0
0: off
1: on
2: flshing
}
refer to SpaceFree
HU
refer to SpaceFree
TP
aborted
AP
refer to SpaceFree
.3
7
space
rV
refer to SpaceFree
el
refer to SpaceFree
dn
refer to SpaceFree
+SpaceFreeMode enumint O 0: Long on, 1: Flashing, 2: Off 1
Default 0
+SpaceFullMode enumint O When the parking space is full, 2
the indicator light mode is: 0:
permanently on, 1: flashing, and
2: off Default 0
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=ParkingSpaceLightState
Get Config Response Example
table.ParkingSpaceLightState.SpaceFree.Blue=0
table.ParkingSpaceLightState.SpaceOrder.Purple=0
HU
table.ParkingSpaceLightState.SpaceOrder.Red=0
A_
table.ParkingSpaceLightState.SpaceOrder.White=0
HT
table.ParkingSpaceLightState.SpaceOrder.Yellow=1
TP
table.ParkingSpaceLightState.SpaceOverLine.Blue=0
_
table.ParkingSpaceLightState.SpaceOverLine.Green=0
AP
table.ParkingSpaceLightState.SpaceOverLine.Pink=0
I_
table.ParkingSpaceLightState.SpaceOverLine.Purple=0
V3
table.ParkingSpaceLightState.SpaceOverLine.Red=0
.3
7
table.ParkingSpaceLightState.SpaceOverLine.White=0
fo
table.ParkingSpaceLightState.SpaceOverLine.Yellow=1
rV
table.ParkingSpaceLightState.SpaceSpecial.Blue=0
el
table.ParkingSpaceLightState.SpaceSpecial.Green=0
se
table.ParkingSpaceLightState.SpaceSpecial.Pink=0
ngS
table.ParkingSpaceLightState.SpaceSpecial.Purple=0
dn
table.ParkingSpaceLightState.SpaceSpecial.Red=0
Bh
table.ParkingSpaceLightState.SpaceSpecial.White=0
d
table.ParkingSpaceLightState.SpaceSpecial.Yellow=1
Method GET
A_
Request Example
el
http://192.168.1.108/cgi-
se
n
bin/trafficParking.cgi?action=setLightState&state[0].LightNo=0&state[0].Color=Red&state[0].State=0&
gS
state[0].Enable=true
dn
Bh
Response Example
OK
OK
A_
Method GET
I_
“StopOverLine”.
se
n
Request Example
gS
http://192.168.1.108/cgi-
dn
bin/trafficParking.cgi?action=setOverLineState&state[0].Lane=0&state[0].State=OverLine
Bh
d
QR code URL.
A_
Local.
fo
0: General text
el
time)
Bh
2: QR code
d
3: Resource file
+Color uint32 O Text color: 1
0: Green
1: Red
2: Yellow
3: White
+RollMode uint32 O Text scrolling mode: 1
0: NA (Do not scroll when the
content does not exceed the
screen)
1: Scroll left and right
2: Scroll up and down
3: Crop (Crop the part that exceeds
the screen)
When RollMode is 3:
HU
{
A_
0: Left alignment
HT
1: Center
TP
2: Right alignment
_
}
AP
to 16 arrays.
V3
0: General text
rV
broadcasting)
gS
format of time)
Bh
o
.3
16] enumchar[16]{
"Red"
el
se
"Yellow"
n
"Green"
gS
"Blue"
dn
"Purple"
Bh
"White"
d
"Pink"
}
+State enumint O Parking light status 1
enumint{
0: permanently off
1: permanently on
2: blink
3: Consistent with previous state
}
+KeepTime int32 O Duration, in seconds 30
-1 for permanently on
Request Example
{
"Channel": 0,
Method GET
_ AP
Request Example
d
http://192.168.1.108/cgi-bin/intelli.cgi?action=attachResource&heartbeat=5
--<boundary>
Content-Type: text/plain
Content-Length: <length>
Channel=1
VehiclesData[0].PtzPresetId=1
DA
VehiclesData[0].RuleId=1
HU
VehiclesData[0].RuleType=197
A_
VehiclesData[0].VehiclesNum=25
HT
VehiclesData[0].QueueLen=53
TP
VehiclesData[0].Region[0][0]=1032
_
VehiclesData[0].Region[0][1]=1035
AP
VehiclesData[0].Region[1][0]=1045
I_
VehiclesData[0].Region[1][1]=5072
V3
VehiclesData[0].Region[2][0]=6163
.3
7
VehiclesData[0].Region[2][1]=5127
fo
VehiclesData[0].Region[3][0]=6031
rV
VehiclesData[0].Region[3][1]=1063
el
se
n
--<boundary>
gS
Content-Type: text/plain
dn
Content-Length: 11
Bh
d
Heartbeat
-<boundary>
Content-Type: text/plain
Content-Length: <length>
Channel=1
VehiclesData[0].PtzPresetId=2
…
"BlockListDB": Blocklist
HU
}
A_
Request Example
HT
{
TP
"group": {
_
}
7
}
fo
rV
Response Example
dn
{
Bh
"groupID": "10000"
d
{}
HU
A_
Method POST
AP
groups.
fo
Request Example
rV
{
el
"groupID": "000001"
se
n
}
gS
dn
Response Example
{}
group
A_
parameter.
I_
Response Example
V3
{
.3
7
"GroupList": [{
fo
"groupID": "000001",
rV
"groupSize": 30,
dn
"channels": [0]
Bh
},…{}]
d
ANPR events.
HU
reserved.
gS
component value.
d
owner
TP
Request Example
I_
{
V3
"vehicle":
.3
7
[{
fo
"UID" : 120837,
rV
"GroupID" : "00001",
el
"GroupName" : "Group1",
se
n
"PlateNumber" : "ZA12345",
gS
"PlateCountry" : "CN",
dn
"PlateType" : 12,
Bh
"Type" : 2,
d
"Brand" : 10,
"Serie" : 1005,
"CarSeriesModelYearIndex" : 12,
"VehicleColor" : [128, 128, 128, 255],
"VehicleColorState" : 0,
"PlateColor" : [128, 128, 128, 255],
"PlateColorState" : 0,
"Name" : "ZhangSan",
"Sex" : "Male",
"CertificateType" : "IC",
"ID" : "123456789",
"Country" : "CN",
"Province" : "XXX",
"City" : "YYY",
exist.
A_
Response Example
_
{
AP
"ErrCode": [0, 0]
I_
}
V3
.3
7
Method POST
se
n
reserved.
HU
component value.
TP
component value.
V3
(meaningless).
rV
tate Known.
se
n
+PlateColor uint8[4] O License plate color. It is the same as [128, 128, 128, 255]
gS
vehicle color.
dn
e 1: Known.
d
"Type" : 2,
HU
"Brand" : 10,
A_
"Serie" : 1005,
HT
"CarSeriesModelYearIndex" : 12,
TP
"VehicleColorState" : 0,
AP
"PlateColorState" : 0,
V3
"Name" : "ZhangSan",
.3
7
"Sex" : "Male",
fo
"CertificateType" : "IC",
rV
"ID" : "123456789",
el
"Country" : "CN",
se
n
"Province" : "XXX",
gS
"City" : "YYY",
dn
"Email" : "[email protected]",
d
"PhoneNo" : "13xxxxx5678",
}
}
Response Example
HT
{}
TP
_
Method POST
.3
7
specific databases.
Bh
reserved.
HU
component value.
TP
component value.
V3
(meaningless).
rV
tate Known.
se
n
+PlateColor uint8[4] O License plate color. It is the same as [128, 128, 128, 255]
gS
vehicle color.
dn
e 1: Known.
d
"Brand" : 10,
HU
"Serie" : 1005,
A_
"CarSeriesModelYearIndex" : 12,
HT
"VehicleColorState" : 0,
_
"PlateColorState" : 0,
I_
"Name" : "ZhangSan",
V3
"Sex" : "Male",
.3
7
"CertificateType" : "IC",
fo
"ID" : "123456789",
rV
"Country" : "CN",
el
"Province" : "XXX",
se
n
"City" : "YYY",
gS
"Email" : "[email protected]",
Bh
"PhoneNo" : "13xxxxx5678",
d
}
}
{
HU
"condition": {
"token": 23443U,
A_
"beginNumber": 0,
HT
"count": 20
TP
}
_ AP
}
I_
V3
databases.
ngS
{
HU
"token": 23443U
A_
}
HT
TP
Response Example
I_
{}
V3
.3
7
fo
Method POST
gS
ibVersion
PacketTotal uint R total package count 10
PacketIndex uint R packet index, starts from 1 3
TaskInfo object[100] R task info
+URLList char[4][256 R resource url list ["sftp://admin:admin@1
] 0.12.4.84:554/media/1.
txt", "xx"]
Request Example
{
"PlateNumberLibVersion": ,
"PacketTotal": 10,
"PacketIndex": 3,
"TaskInfo": [{
"URLList": ["sftp://admin:[email protected]:554/media/1.txt", "xx"]
from 1.
Request Example
HU
http://192.168.1.108/cgi-bin/ThermographyManager.cgi?action=getCaps&channel=1
A_
HT
"Rainbow"
HU
"Globow"
A_
"Ironbow1"
HT
"Ironbow2"
TP
"Sepia"
_
"Color1"
AP
"Color2"
I_
"Icefire"
V3
"Rain"
.3
7
"Red Hot"
fo
"Green Hot"
rV
"Spring"
el
"Summer"
se
n
"Winter"
gS
"Autumn"
dn
"Alarm"
Bh
}
d
ue
AP
cSupport
rV
p,GainModeHighTemp} "GainModeHighTemp"
gS
]
dn
es ]
d
Response Example
caps.PresetModes = Indoor
caps.Brightness.Max = 100
caps.Brightness.Min = 0
caps.Brightness.Step = 1
caps.Sharpness.Max= 100
caps.Sharpness.Min = 0
caps.Sharpness.Step = 5
caps.EZoom.Max= 24
caps.EZoom.Min = 0
caps.EZoom.Step = 1
caps.ThermographyGamma.Max= 8
caps.ThermographyGamma.Min = -8
caps.ThermographyGamma.Step = 1
channel
.3
Thermography".
el
se
yGamma -8~8
gS
"Black Hot",
"Ironbow2",
"IceFire"
Range is got from interface in "11.1.1
Get Capability of Thermography".
+SmartOptimi int O range is 0 ~100 10
zer
+OptimizedRe object O
gion
++Type char[16] O Range is {"Full Screen", "Full Screen"
"Sky",
"Ground",
"Horizontal",
"Center 75%",
Thermography".
HT
+HighTempGa object O
TP
inMode
_
++Agc uint8 O 10
AP
++AgcMaxGai uint8 O 10
I_
n
V3
"HighTemperature", "LowTemperature",
rV
"Auto"}
el
+Auto object O
se
n
++LowToHigh uint32 O 13
gS
++LowToHigh uint32 O 10
Bh
Delay
d
++HighToLow uint32 O 12
++HLROI uint32 O percentage range is[0—100] 95
++HighToLow uint32 O 10
Delay
+ContrastRect Rect O region, Range is [0—8191].
+BaseBrightne uint32 O Base brightness 0
ss
+StretchIntens uint32 O Stretch intensity 0
ity
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=ThermographyOptions
table.ThermographyOptions[0][0].Auto.HighToLow=12
HU
table.ThermographyOptions[0][0].Auto.HLROI=95
A_
HT
http://192.168.1.108/cgi-
_
bin/configManager.cgi?action=setConfig&ThermographyOptions[0][0].OptimizedRegion.Type=Gound
AP
OK
V3
.3
7
fo
Method GET
gS
from 1.
Request Example
http://192.168.1.108/cgi-bin/ThermographyManager.cgi?action=getCaps&channel=1
bin/ThermographyManager.cgi?action=getPresetParam&channel=1&mode=Default
HU
A_
presetInfo object O
_
amma
fo
]
el
+OptimizedRegion object O
gS
]
Bh
Request Example
HU
http://192.168.1.108/cgi-bin/ThermographyManager.cgi?action=getOptimizedRegion&channel=1
A_
HT
optimizedRegion object O
I_
Response Example
fo
rV
optimizedRegion.Regions[0][0]=0
n
optimizedRegion.Regions[0][1]=0
gS
optimizedRegion.Regions[0][2]=0
dn
optimizedRegion.Regions[0][3]=0
Bh
d
Response Example
TP
OK
_AP
I_
V3
Method GET
el
from 1.
Request Example
Bh
http://192.168.1.108/cgi-bin/ThermographyManager.cgi?action=doFFC&channel=1
d
11.2 Radiometry
+TemperPresets object O
TP
6]
.3
y
fo
Meter
Bh
caps.TotalNum.Area.MaxAreas=8
HU
caps.TemperPresets.MaxPresets=256
A_
caps.MeterInfo.Type[0u]=Spot
HT
caps.MeterInfo.Type[1u]=Area
TP
caps.MeterInfo.ObjectEmissivity.Max=100
_
caps.MeterInfo.ObjectEmissivity.Min=0
AP
caps.MeterInfo.ObjectEmissivity.Default=0
I_
caps.MeterInfo.ObjectEmissivity.Step=1
V3
caps.MeterInfo.ObjectDistanceMeter.Max=100
.3
7
caps.MeterInfo.ObjectDistanceMeter.Min=0
fo
caps.MeterInfo.ObjectDistanceMeter.Default=0
rV
caps.MeterInfo.ObjectDistanceMeter.Step=1
el
caps.MeterInfo.ReflectedTemperature.Max=100
se
n
caps.MeterInfo.ReflectedTemperature.Min=0
gS
caps.MeterInfo.ReflectedTemperature.Default=0
dn
caps.MeterInfo.ReflectedTemperature.Step=1
Bh
caps.MeterInfo.RelativeHumidity.Max=100
d
caps.MeterInfo.RelativeHumidity.Min=0
caps.MeterInfo.RelativeHumidity.Default=0
caps.MeterInfo.RelativeHumidity.Step=1
caps.MeterInfo.AtmosphericTemperature.Max=100
caps.MeterInfo.AtmosphericTemperature.Min=0
caps.MeterInfo.AtmosphericTemperature.Default=0
caps.MeterInfo.AtmosphericTemperature.Step=1
caps.Statistics.MinPeriod=60
caps.Isotherm.MaxTemp=327.0
caps.Isotherm.MinTemp=-20.0
MaxVaue.
_
mp
I_
MinVaue
fo
emp
el
true or false
n
play
gS
w
d
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=HeatImagingThermometry
Get Config Response Example
table.HeatImagingThermometry.RelativeHumidity=50
table.HeatImagingThermometry.AtmosphericTemperature=20.0
table.HeatImagingThermometry.HotSpotOsdShow=false
http://10.0.0.8/cgi-
HU
bin/configManager.cgi?action=setConfig&HeatImagingThermometry.RelativeHumidity=50
A_
OK
TP
_
Rule configuration
rV
measurement
+Enable bool O Enable/Disable true
+PresetId int O Range [0—PresetMax] 0
PresetMax is got from interface in
GetCurrentProtocolCaps.
+RuleId int O Range [0—MaxNum] 0
MaxNum is got from interface in
getCaps.
+Name char[64] O Radiometry rule name. "xxxx"
+Type char[16] O Range is {Spot, Line, Area }. "Spot"
+MeterRegion object O position
++Coordinates Point[] O List of temperature measurement point [Point, ]
coordinates
Unit is second
HT
ld
_
Unit is second
I_
16] "Aver",
.3
7
"Max",
fo
"Min"
rV
}
el
ters
gS
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=ThermometryRule
Get Config Response Example
table.ThermometryRule[0][0].Enable = true
table.ThermometryRule[0][0].PresetId =0
table.ThermometryRule[0][0].LocalParameters.Enable=true
HU
table.ThermometryRule[0][0].LocalParameters.ObjectEmissivity=0.95
A_
table.ThermometryRule[0][0].LocalParameters.ObjectDistance=0.95
HT
table.ThermometryRule[0][0].LocalParameters.RefalectedTemp=0
TP
_
http://10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&ThermometryRule[0][0].Name=name1
I_
OK
.3
7
fo
channel number
+Enable bool R Enable/Disable Heat Imaging Temper false
feature.
+EventHandle EventHand O Setting of EventHandler is described in
r ler SetEventHandler.
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
specific examples are as follows:
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=HeatImagingTemper
Get Config Response Example
table.HeatImagingTemper[0].Enable=false
table.HeatImagingTemper[0].EventHandler….(output of EventHandler is described in SetEventHandler)
table.HeatImagingTemper[1]….
measurement point
HU
Request Example
A_
http://192.168.1.108/cgi-
HT
bin/RadiometryManager.cgi?action=getRandomPointTemper&channel=1&coordinate[0]=1024&coordina
TP
te[1]=1024
_AP
spot
el
temperature
n
Response Example
gS
TempInfo.Type=Spot
dn
TempInfo.TemperAver=27.5
Bh
d
enumchar[16]{
HT
"Spot"
TP
"Area"
_
"Line"
AP
}
I_
temperature
Response Example
.3
7
TempInfo.Type=Spot
fo
TempInfo.TemperAver=27.5
rV
el
se
n
Method GET
Request Params (key=value format in URL )
Name Type R/O Description Example
condition object O condition
+StartTime char[] O The start time to find. 2010-04-01%200:00:00
+EndTime char[] O The end time to find. 2010-04-08%200:00:00
+Type char[] O The type of data. Range is {Spot, "Spot"
Line, Area}
+Period int O Range is {5, 10, 15, 30}, minute 5
+channel int O Video channel index. Start from 1 1
Request Example
Request Example
I_
http://192.168.1.108/cgi-
V3
bin/RadiometryManager.cgi?action=doFind&token=46878&beginNumber=16&count=16
.3
7
fo
+info object[] R
gS
info[i].QueryTemperInfo.TemperMax=50.2
HU
info[i].QueryTemperInfo.TemperMin=50.0
A_
HT
Method GET
I_
Request Example
el
http://192.168.1.108/cgi-bin/RadiometryManager.cgi?action=stopFind&token=46878
se
n gS
Response Example
d
OK
] "Area": Area
HT
"Line": Line
TP
char[64 "xxxx"
+Name O Query item name
_
]
AP
+Coordinate int[8][2] O
8, using the 8192 relative coordinate
.3
7
system.
fo
+Channel int O
0
el
char[16
n
]
"Fahrenheit": Fahrenheit
dn
--<boundary>
Content-Type: text/plain
Content-Length: <data length>
info[0].Time=2010-04-08 16:12:46
info[0].PresetId=1
Heartbeat
DA
--<boundary>
HU
……
A_
HT
Method GET
.3
Server: Device/1.0
HU
Connection: closed
HT
TP
--<boundary>
_
Content-Type: text/plain
AP
dataInfo.Width=1920
.3
7
dataInfo.Height=1080
fo
dataInfo.Channel=0
rV
dataInfo.Time=2010-05-25 00:00:00
el
dataInfo.Length=2073600
se
n
dataInfo.sensorType="Tau"
gS
dataInfo.Unzip.ParamR=1
dn
dataInfo.Unzip.ParamB=1
Bh
dataInfo.Unzip.ParamF=1
d
dataInfo.Unzip.ParamO=1
--<boundary>
Content-Type: application/octet-stream
Content-Length: <data length>
<Binary data>
--<boundary>
Content-Type: text/plain
Content-Length: 11
Heartbeat
--<boundary>
……
Response Example
status=Ready
A_
HT
TP
configuration
el
input channel.
dn
able
d
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
A_
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=FireWarning
_
table.FireWarning[0][0].Enable=true
I_
table.FireWarning[0][0].PresetId=0
V3
table.FireWarning[0][0].Row = 31
.3
7
table.FireWarning[0][0].Col = 40
fo
table.FireWarning[0][0].Mode=Auto
rV
table.FireWarning[0][0].SmdFilterEnable=false
el
table.FireWarning[0][0].MovingTargetFilterEnable=false
se
n
table.FireWarning[0][0].SunReflectEnable=false
gS
table.FireWarning[0][0].TimeDurationEnable=false
dn
table.FireWarning[0][0].FireDuration= 15
Bh
table.FireWarning[0][0].DetectWindow[windowsNum].Regions[0]=123468789
d
table.FireWarning[0][0].DetectWindow[windowsNum].Regions[1]=123468789
table.FireWarning[0][0].DetectWindow[windowsNum].Regions[2]=123468789
table.FireWarning[0][0].DetectWindow[windowsNum].Regions[3]=123468789
table.FireWarning[0][0].DetectWindow[windowsNum].Postion[0]=0
table.FireWarning[0][0].DetectWindow[windowsNum].Postion[1]=0
table.FireWarning[0][0].DetectWindow[windowsNum].Postion[2]=0
table.FireWarning[0][0].DetectWindow[windowsNum].Postion[3]=0
table.FireWarning[0][0].DetectWindow[windowsNum].Sensitivity = 95
table.FireWarning[0][0].DetectWindow[windowsNum].Id=1
table.FireWarning[0][0].DetectWindow[windowsNum].Name=windName
table.FireWarning[0][0].EventHandler=(output of EventHandler is described in GetEventHandler)
…
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
HU
http://10.0.0.8/cgi-bin/configManager.cgi?action=getConfig&name=FireWarningMode
TP
table.FireWarningMode[0].Mode="PtzPreset"
AP
I_
V3
OK
rV
el
Method GET
Bh
info.TemperatureUnit=0
HU
A_
HT
feature.
se
r ler SetEventHandler.
gS
dn
Please refer to "4.2.1 Obtaining and Setting Configuration" to obtain and set the configuration. The
Bh
conversion
fo
rV
conversion
gS
conversion
Bh
Response Example
d
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: multipart/x-mixed-replace; boundary=<boundary>
Connection: closed
--<boundary>
Content-Type: text/plain
Content-Length: <data length>
dataInfo.Height=0
dataInfo.Width=0
dataInfo.Channel=0
dataInfo.Time=2010-05-25 00:00:00
dataInfo.Length=0
--<boundary>
Content-Type: application/octet-stream
Content-Length: <data length>
<Binary data>
--<boundary>
……
DA
Method POST
TP
remap to 0 — 8192.
el
Request Example
se
n
{
gS
"Channel": 1,
dn
}
d
{
HU
"RegionTempInfo": {
A_
"TemperatureUnit": "Centigrade",
HT
"TemperAver": 3100,
TP
"TemperMax": 3200,
_
"TemperMin": 3000,
AP
"TemperMaxPoint": [100,300],
I_
"TemperMinPoint": [200,600],
V3
"RuleName": "RuleName"
.3
7
}
fo
}
rV
el
se
11.3 TemperCustom
ngS
dn
DA
HU
A_
HT
TP
_ AP
I_
V3
.3
7
fo
rV
el
se
n
gS
dn
Bh
d
Request Example
HT
http://192.168.1.108/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Re
TP
mote
_ AP
Response Example
.3
OK
7
fo
Method GET
Request Params ( key=value format in URL )
Bh
Break, Close}
HU
Response Example
A_
Info.status=Open
HT
Method GET
V3
Parameters in Response :
se
Request Example
n gS
http://192.168.1.108/cgi-bin/accessControl.cgi?action=getLockStatus&channel=0
dn
Bh
Request Example
HT
http://<server>/cgi-
bin/accessControl.cgi?action=captureFingerprint&info.ReaderID=101&info.FingerPrintName=aaaa&in
TP
_
fo.UserID=10221&heartbeat=5&timeout=10
AP
I_
Response Example
fo
HTTP/1.1 200 OK
rV
Cache-Control: no-cache
el
Pragma: no-cache
se
Connection: close
dn
--myboundary
Content-Type: text/plain
Content-Length: 238002
Code=Fingerprint;action=Pulse;index=0;data={
"CollectResult": true,
"FingerPrintID": 60,
"RecNo": 1234,
"ReaderID": "1",
"UserID": "001",
"CardNo": "001",
"FingerprintPacket": {
"Length": 512,
"Count": 3
--myboundary
Content-Type: text/plain
Content-Length: 9
Heartbeat
--myboundary
……
Only ID verification terminals such as ASHZ320/520 are supported. Common access control is not
HU
supported.
A_
Method GET
_ AP
0x01 - Face
7
fo
Request Example
dn
http://<server>/cgi-
bin/accessControl.cgi?action=captureCmd&type=1&UserID=10221&heartbeat=5&timeout=10
Bh
d
--myboundary
Content-Type: text/plain
Content-Length: 2380
--myboundary
Content-Type: text/plain
Content-Length: 9
DA
HU
Heartbeat
A_
HT
--myboundary
TP
……
_ AP
I_
V3
Method GET
rV
name string
be "AccessControlCardRec". ec"
dn
1024.
d
+Type string
"Entry", "Exit".
HU
failed, 1—success.
+Status
HT
means success.
_
0: by password
I_
1: by access card
V3
2: by access card and then
.3
7
+Method password
fo
access card
el
6: by fingerprint
se
n
talk device )
d
+CitizenIDAddre O BinanRoad
string address
A_
ss
HT
+CitizenIDAutho O gggg
string signing and issuing organization
TP
rity
_
+CitizenIDEnd
mens Long term effectiveness
V3
+HatType int O
.3
7
"Unknown"
rV
"Transparent"
el
"Other"
se
n
"White",
gS
"Orange",
dn
"Pink",
Bh
"Black",
d
"Red",
"Yellow",
"Gray",
"Blue",
"Green",
"Purple",
"Brown",
"Silver",
"Darkviolet",
"Maroon",
"Dimgray",
"Whitesmoke",
"Darkorange",
"Mistyrose",
ature
A_
es
TP
0: unknow
AP
1 without mask
I_
2 with mask
V3
+ButtonCheck uint8 O 0
fo
Response Example
d
totalCount=1000
found=100
records[0].RecNo=12345
records[0].CreateTime=123456789
records[0].CardNo=12001
records[0].CardName=ZhangSan
records[0].UserID=ZhangSan
records[0].Type=Entry
records[0].Method=1
…
records[1].RecNo=13579
records[1].CreateTime=123456799
records[1].CardNo=12001
records[1].CardName=ZhangSan
25%2000:01:32 25%2000:01:32
EndTime char[] O end time formt: 2014-8-
A_
2014-8-
25%2000:02:32 25%2000:02:32
HT
Request Example
V3
http://192.168.1.108/cgi-
.3
bin/recordFinder.cgi?action=find&name=AccessControlAlarmRecord&StartTime=2014-8-
7
fo
25%2000:02:32&EndTime=2014-8-25%2001:02:32&count=500
rV
el
Event index 0
I_
Event Data
V3
+Type string O
"Exit"
se
n
1—success
+Status int O
dn
means success.
d
password
I_
password
.3
7
and password
rV
and face
se
password
dn
password
d
++CurrentTempe O 36.7
float people’s current temperature
A_
rature
HT
O temperature unit:{ 0
TP
0: centigrade
++TemperatureU
_
integer 1: Fahrenheit
AP
nit
2: Kelvin
I_
}
V3
++IsOverTemper O false
.3
ature
fo
rV
el
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
se
--<boundary>
dn
Content-Type: text/plain
Content-Length: <length>
Bh
d
Events[0].EventBaseInfo.Code=AccessControl
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].RecNo=123
Events[0].Name=Door1
Events[0].Type=Entry
Events[0].Status=1
Events[0].Method=1
Events[0].CardNo=09DDAABB
Events[0].UserID=101
…
--<boundary>
Content-Type: image/jpeg
considered successful
HU
percentage
HT
range[1, 100]
TP
range[1, 100]
AP
0 unknow
.3
7
1 male
fo
2 female
rV
9 not stated
el
}
se
n
r products)
HU
Number products)
_
ionship
I_
OpenDoorMethod)
.3
7
AccessControlevents)
se
n
building products)
Bh
0: compare result
1: Face acquisition
2: visitor registration
3: Face permission distribution
4: inquirement of ID card face
group
+UserID String O user ID
+FaceIndex integer O face index, range [0,4] 0
+Mask integer O is with mask, it can be { 0
0: unknow
1: without mask
2: with mask
}
default 0.
Events[0].EventBaseInfo.Code= CitizenPictureCompare
Events[0].EventBaseInfo.Action=Pulse
Events[0].EventBaseInfo.Index=0
Events[0].UTC=1999999999
Events[0].CompareResult=true
Events[0].Similarity=80
Events[0].Threshold=75
…
--<boundary>
DA
Content-Type: image/jpeg
HU
--<boundary>
_ AP
Event index 0
rV
Event Data
el
Event Response Example ( multipart , key=value format in body , binary data in body ) ( response to
4.4.3 snap subscription )
--<boundary>
Content-Type: text/plain
Content-Length: <length>
+AccessPropert
string O “bidirect” ( This param is supported by
HU
y
access control device. )
A_
+ABLock object O
by access control device. )
TP
++Doors int[][] O
V3
+CustomPassw
bool O ( This param is supported by video talk
rV
ordEnable
device. )
el
se
+ButtonExitEnab
bool O ( This param is supported by video talk
le
Bh
device. )
d
}
HU
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
I_
are as follows :
V3
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=AccessControlGeneral
7
fo
table.AccessControlGeneral.AccessProperty=bidirect
el
table.AccessControlGeneral.ABLock.Enable=true
se
table.AccessControlGeneral.ABLock.Doors[0][0]=1
ngS
table.AccessControlGeneral.ABLock.Doors[0][1]=2
dn
table.AccessControlGeneral.ABLock.Doors[0][2]=3
table.AccessControlGeneral.ABLock.Doors[1][0]=4
Bh
table.AccessControlGeneral.ABLock.Doors[1][1]=5
d
table.AccessControlGeneral.ABLock.Doors[1][2]=6
table.AccessControlGeneral.CustomPasswordEnable=true
table.AccessControlGeneral.CommonPassword=123456
table.AccessControlGeneral.ButtonExitEnable=true
table.AccessControlGeneral.CheckSensorBeforeLock=true
table.AccessControlGeneral.CheckSensorTime=30
table.AccessControlGeneral.DuressPassword=654321
table.AccessControlGeneral.DuressEnable=true
value, default is 2 :
HU
0 : only by password
A_
6 : only by fingerprint
.3
fingerprint
fo
fingerprint together
el
se
together
dn
+Method int O
11 : by multiple access user
Bh
or password
HU
face
HT
card ) or face
.3
7
ID card )
rV
picture in ID card )
se
n
AccessTimeSechdule config.
A_
+AutoRemoteCh
object O auto open door remotely
.3
eck
7
integer O
me do not start
dn
+LockMode uint8 O
2: Ring mode
HU
A_
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
HT
are as follows :
TP
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=AccessControl
AP
table.AccessControl[0].Enable=true
.3
table.AccessControl[0].SN=1C03E08YAZ00020
7
table.AccessControl[0].Name=Door1
fo
table.AccessControl[0].State=Normal
rV
table.AccessControl[0].LocalControlEnable=true
el
se
table.AccessControl[0].RemoteControlEnable=true
n
table.AccessControl[0].Mode= HandProtected
gS
…
dn
Bh
http://192.168.1.108/cgi-
bin/configManager.cgi?action=setConfig&AccessControl[0].Enable=true&AccessControl[0].SN=1C03E0
8YAZ00020&AccessControl[0].State=Normal&AccessControl[0].LocalControlEnable=true
Set Config Response Example
OK
+Doors integer O
door 1
HU
A_
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
HT
are as follows :
TP
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=Wiegand
I_
table.Wiegand[0].Mode=1
.3
table.Wiegand[0].PulseWidth=200
7
fo
table.Wiegand[0].PulseStep=1000
rV
table.Wiegand[0].TransferMode=1
el
table.Wiegand[0].OutType=1
se
table.Wiegand[0].InputType=3
n gS
table.Wiegand[0].Doors=0
dn
table.Wiegand[1].Mode=1
…
Bh
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
HU
are as follows :
Get Config Request Example
A_
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=AccessTimeSchedule
HT
table.AccessTimeSchedule[0].Name=TS1
_ AP
table.AccessTimeSchedule[0].Enable=true
I_
table.AccessTimeSchedule[0].TimeSchedule[0][0]=1 00:00:00-12:00:00
V3
table.AccessTimeSchedule[0].TimeSchedule[0][1]=1 15:00:00-20:00:00
.3
table.AccessTimeSchedule[0].TimeSchedule[1][0]=1 00:00:00-12:00:00
7
fo
table.AccessTimeSchedule[0].TimeSchedule[1][1]=1 15:00:00-20:00:00
rV
…
el
se
http://192.168.1.108/cgi-
dn
bin/configManager.cgi?action=setConfig&AccessTimeSchedule[0].Name=TS1&AccessTimeSchedule[0]
.Enable=true
Bh
OK
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=SpecialDayGroup
Get Config Response Example
table.SpecialDayGroup[0].Name=SpecialDayGroup1
table.SpecialDayGroup[0].Enable=true
table.SpecialDayGroup[0].Days[0].SpecialDayName=NationalDay
DA
table.SpecialDayGroup[0].Days[0].StartTime=2017-10-01 00:00:00
HU
table.SpecialDayGroup[0].Days[0].StartTime=2017-10-07 23:59:59
…
A_
HT
http://192.168.1.108/cgi-
_AP
bin/configManager.cgi?action=setConfig&SpecialDayGroup[0].Name=SpecialDayGroup1&SpecialDayG
I_
roup[0].Enable=true
V3
OK
7
fo
rV
bin/configManager.cgi?action=setConfig&SpecialDaysSchedule[0].Name=SpecialDayGroup1
HU
OK
HT
TP
_
MeasureTemper
object R MeasureTemperature config object
el
ature
se
++Enable bool R
gS
temperature function
dn
mask mode
0: don not detect mask
Bh
+MaskOpt uint R
1: mask prompt
d
2: mask intercept
+OnlyTemperatu whether to enable the single function,
bool O
reMode temperature monitoring
+TemperatureDi
bool R whether to show the temperature
splay
temperature unit:{
+TemperatureUn 0: centigrade
uint O
it 1: Fahrenheit
}
Temperature monitoring method, it can
be:
+Type integer R
0: Single chip microcomputer infrared
temperature monitoring
++DebugModelE
Bool O temperature monitoring, show
nable
HU
++HeatDisplayE
bool O whether to show heat
HT
nbale
TP
monitoring, unit: cm
AP
++ProjectDebug
I_
video.
rV
Float O
n
ureLowerLimit value
d
++RetentionTim
Uint32 O temperature retention Time, unit: ms
HU
e
A_
+WristTemperat
Object O param of wrist temperature monitoring
TP
ureParam
_
++InvalidTemper
I_
Uint32 O
7
imeout s
fo
++ValidTemperat
el
flaot O
ureLowerLimit value
dn
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
d
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=MeasureTemperature
Get Config Response Example
table.MeasureTemperature.Enable=true
table.MeasureTemperature.GuideModuleParam.CalibrationModel=1
table.MeasureTemperature.GuideModuleParam.Correct=0
table.MeasureTemperature.GuideModuleParam.DebugModelEnable=false
table.MeasureTemperature.GuideModuleParam.HeatDisplayEnbale=false
table.MeasureTemperature.GuideModuleParam.MaxDistance=0
table.MeasureTemperature.GuideModuleParam.ProjectDebugModel=false
table.MeasureTemperature.GuideModuleParam.RectEnable=true
table.MeasureTemperature.GuideModuleParam.TempRandReplaceThreshold=0
table.MeasureTemperature.ThermalImagingParam.Threshold=60
HU
table.MeasureTemperature.Type=3
A_
table.MeasureTemperature.WristTemperatureParam.Correct=0
HT
table.MeasureTemperature.WristTemperatureParam.InvalidTemperatureDistance=24
TP
table.MeasureTemperature.WristTemperatureParam.TemperatureTimeout=10
_
table.MeasureTemperature.WristTemperatureParam.Threshold=37.300000
AP
table.MeasureTemperature.WristTemperatureParam.ValidTemperatureDistance=5
I_
table.MeasureTemperature.WristTemperatureParam.ValidTemperatureLowerLimit=35
V3
…
.3
7
fo
http://192.168.1.108/cgi-
el
bin/configManager.cgi?action=setConfig&MeasureTemperature.Enable=true&MeasureTemperature.Gui
se
deModuleParam.CalibrationModel=1
ngS
OK
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=CitizenPictureCompare
Get Config Response Example
table.CitizenPictureCompare.SysMode=CitizenCompare
table.CitizenPictureCompare.Threshold=50
table.CitizenPictureCompare.UnlockEnable=false
table.CitizenPictureCompare.FuncEnable=false
table.CitizenPictureCompare.CitizenIDCheck=false
DA
…
HU
http://192.168.1.108/cgi-
HT
bin/configManager.cgi?action=setConfig&CitizenPictureCompare.SysMode=CitizenCompare&CitizenPic
TP
tureCompare.Threshold=50
_ AP
OK
V3
.3
7
fo
Method GET
Bh
talk device )
I_
talk device )
fo
enumint{
dn
0: Not supported
Bh
1: Support
d
}
Default 0
+SupportUnlocki bool O Does the device support true
ng unlocking function
+HasCardAuth bool O Does the device support card false
swiping permission
Response Example
caps.AccessControlChannels=3
caps.AccessControlAlarmRecord=true
caps.CustomPasswordEncryption=1
caps.SupportFingerPrint=1
caps.OnlySingleDoorAuth=1
caps.AsynAuth=1
caps.SpecialDaysSchedule.Support=true
Request Example
HU
http://192.168.1.108/cgi-bin/accessControlManager.cgi?action=addDevice&devAddr=1&name=Sub1
A_
HT
Response Example
FaiedCode=0
.3
7
fo
Method GET
gS
devInfo[1].FaiedCode=1
HU
A_
HT
Method GET
V3
Request Example
http://192.168.1.108/cgi-
el
se
bin/accessControlManager.cgi?action=getSubControllerInfo&devAddrs[0]=4&devAddrs[1]=5
ngS
devInfo object[] O
d
devInfo[1].DoorToReadID[0].Door=0
HU
devInfo[1].DoorToReadID[0].ReaderID[0]=11
A_
devInfo[1].DoorToReadID[0].ReaderID[1]=12
HT
Method GET
V3
Request Example
el
http://192.168.1.108/cgi-
se
n
bin/accessControlManager.cgi?action=getSubControllerStates&devAddrs[0]=4&devAddrs[1]=5
gS
dn
Response Example
HT
OK
TP
_ AP
Method GET
fo
rV
Request Example
gS
http://192.168.1.108/cgi-bin/accessControlManager.cgi?action=addDevice&devAddr=1&name=Sub1
dn
Bh
]
HU
Request Example
A_
http://192.168.1.108/cgi-
HT
bin/accessControlManager.cgi?action=setABLockRoute&index=0&routeInfo.PointInfo[0].Doors[0]=11
TP
&routeInfo.PointInfo[0].Doors[1]=22&routeInfo.PointInfo[1].Doors[0]=33&routeInfo.PointInfo[1].Doors[
_
1]=44&routeInfo.TimeSections=1&routeInfo.Flag=1&routeInfo.Name=123
AP
I_
V3
OK
fo
rV
Method GET
dn
http://192.168.1.108/cgi-bin/accessControlManager.cgi?action=getLogStatus&devAddr=1
HU
A_
Response Example
TP
OK
_ AP
Method GET
fo
Request Example
gS
http://192.168.1.108/cgi-bin/accessControlManager.cgi?action=syncOfflineLog&devAddr=1
dn
Bh
Response Example
OK
Request Example
rV
POST http://<server>/cgi-bin/FaceInfoManager.cgi?action=add
el
se
Content-Type: application/json
n
Content-Length: <length>
gS
dn
{
Bh
"UserID": "102",
d
"Info": {
"UserName": "ZhangSan",
"RoomNo": [ "301", "303", … ],
"FaceData": [ "xxxx", "xxxx", … ],
"PhotoData": [ "yyyy", "yyyy", … ]
}
}
PhotoData.
TP
PhotoData.
fo
rV
Request Example
el
POST http://<server>/cgi-bin/FaceInfoManager.cgi?action=update
se
Content-Type: application/json
n gS
Content-Length: <length>
dn
{
Bh
"UserID": "102",
d
"Info": {
"UserName": "ZhangSan",
"RoomNo": [ "301", "303", … ],
"FaceData": [ "xxxx", "xxxx", … ],
"PhotoData": [ "yyyy", "yyyy", … ]
}
}
Method GET
_
Request Example
fo
http://192.168.1.108/cgi-bin/FaceInfoManager.cgi?action=startFind&Condition.UserID=1001
rV
el
se
Token int
token to get result and stop search.
Bh
Response Example
{
"Token": 1234,
"Total": 20
}
bytes.
HU
Response Example
A_
{
HT
"Info": [ {
TP
"UserID": "102",
_
}, …{}]
I_
}
V3
.3
7
Method GET
se
search.
d
Request Example
http://192.168.1.108/cgi-bin/FaceInfoManager.cgi?action=stopFind&Token=1234
withdrawed
HU
time limit
_
prompts.
.3
7
Mother Card
gS
Add access user card with fingerprint. If add only access user card, please use : http://<server>/cgi-
HT
bin/recordUpdater.cgi?action=insert&name=AccessControlCard
TP
_
Method POST
I_
"AccessControlCard".
el
CardName
string length is 32.
n gS
ValidDateEnd
"yyyyMMdd hhmmss". 1
HU
FingerprintPack O
object The fingerprint packet info.
HT
et
TP
packet.
AP
Request Example
V3
http://192.168.1.108/cgi-
.3
7
bin/recordUpdater.cgi?action=insertEx&name=AccessControlCard&CardName=ZhangSan&CardNo=
fo
12345&UserID=102&CardStatus=0&Password=123456&Doors[0]=1&Doors[1]=3&Doors[2]=5&VTOP
rV
osition=01018001&ValidDateStart=20151022%20093811&ValidDateEnd=20151222%20093811&Fin
el
gerprintPacket.Length=500&FingerprintPacket.Count=3
se
n
Content-Type: application/octet-stream
gS
Content-Length: <length>
dn
Bh
following:
HU
card
HT
withdrawed
_
time limit
.3
7
prompts.
se
n
Mother Card
Password char[] O The Access card's password. 123456
O The index of the doors that this
Doors int[]
card can open.
O The index of the time sections of
TimeSections int[]
each door that this card can open.
char[] O VTO position number. ( This param 01018001
VTOPosition is not supported by access control
device )
char[] O The start of valid date, format is 20151022%2009381
ValidDateStart
"yyyyMMdd hhmmss". 1
char[] O The end of valid date, format is 20151222%2009381
ValidDateEnd
"yyyyMMdd hhmmss". 1
IsValid bool O Is the card still valid.
"AccessControlCard".
HT
following:
rV
card
se
gS
withdrawed
dn
http://192.168.1.108/cgi-
HU
bin/recordUpdater.cgi?action=updateEx&name=AccessControlCard&recno=12345&CardName=Zhan
A_
gSan&CardNo=12345&UserID=102&CardStatus=0&CardType=0&Password=123456&Doors[0]=1&D
HT
oors[1]=3&Doors[2]=5&ValidDateStart=20151022%20093811&ValidDateEnd=20151222%20093811&
TP
FingerprintPacket.Length=500&FingerprintPacket.Count=3
_
Content-Type: application/octet-stream
AP
Content-Length: <length>
I_
V3
Response Example
el
OK
se
n gS
dn
http://192.168.1.108/cgi-bin/recordUpdater.cgi?action=clear&name=AccessControlCard
HU
A_
Response Example
TP
OK
_ AP
I_
V3
Method GET
se
"AccessControlCard".
d
card
A_
withdrawed
TP
time limit
V3
7
prompts.
el
Mother Card
d
+UserType int
2: user in Blocklist
HU
}
A_
+DynamicCheck O 235843758
char[] dynamic check code
TP
Code
_
configured by
.3
7
SpecialDaysSchedule
fo
2: General user
gS
Response Example
totalCount=1000
found=100
records[0].RecNo=12345
records[0].CreateTime=123456789
records[0].CardName=ZhangSan
records[0].CardNo=300
records[0].UserID=103
records[0].CardStatus=0
records[0].CardType=0
records[0].Doors[0]=1
records[0].Doors[1]=3
records[0].Doors[2]=5
records[1].CardNo=302
HU
records[1].UserID=103
A_
records[1].CardStatus=0
HT
records[1].CardType=0
TP
records[1].Doors[0]=2
_
records[1].Doors[1]=4
AP
records[1].Doors[2]=6
I_
records[1].VTOPosition=01018002
V3
records[1].ValidStart=20151022 093811
.3
7
records[1].ValidEnd=20151222 093811
fo
records[1].IsValid=true
rV
records[1].Handicap=false
el
records[1].CitizenIDNo=
se
records[1].RepeatEnterRouteTimeout=4294967295
ngS
records[1].UserType=0
dn
records[1].FirstEnter=false
Bh
records[1].DynamicCheckCode=
d
records[1].UseTime=0
…
withdrawed
HU
time limit
_
prompts.
.3
7
Mother Card
gS
Response Example
HU
record.RecNo=4
A_
record.CreateTime=123456789
HT
record.CardName=ZhangSan
TP
record.CardNo=300
_
record.UserID=103
AP
record.CardStatus=0
I_
record.CardType=0
V3
record.Doors[0]=1
.3
7
record.Doors[1]=3
fo
record.Doors[2]=5
rV
record.VTOPosition=01018001
el
record.ValidStart=20151022 093811
se
n
record.ValidEnd=20151222 093811
gS
record.IsValid=true
dn
records.Handicap=false
Bh
records.CitizenIDNo=
d
records.RepeatEnterRouteTimeout=4294967295
records.UserType=0
records.FirstEnter=false
records.DynamicCheckCode=
records.UseTime=0
…
following:
HT
card
_
withdrawed
I_
1 << 3: the card is arrearage
.3
7
time limit
rV
prompts.
dn
1: normal user
+UserType int
HU
2: user in Blocklist
A_
}
HT
+DynamicCheck O 235843758
char[] dynamic check code
_
Code
AP
+FingerprintPac O 500
V3
++Length int
packet.
rV
Response Example
se
n
HTTP/1.1 200 OK
gS
Server: Device/1.0
dn
Content-Length: <length>
d
--<boundary>
Content-Type: text/plain
Content-Length: <length>
record.RecNo=4
record.CreateTime=123456789
record.CardName=ZhangSan
record.CardNo=300
record.UserID=103
record.CardStatus=0
record.CardType=0
record.Doors[0]=1
record.Doors[1]=3
Content-Type: application/octet-stream
HU
Content-Length: <length>
A_
HT
--<boundary>--
_
AP
I_
12.3.9 Get the Total Number of Records of Access User Card and
V3
.3
Fingerprint
7
fo
rV
Method GET
se
n
"AccessControlCard".
Request Example
http://192.168.1.108/cgi-bin/recordFinder.cgi?action=getQuerySize&name=AccessControlCard
+UserType uint16 O
ACBlocklist); 2: Guest user; 3: Patrol
HU
true: Yes
_
+FirstEnterDo
AP
+Authority uint8 O
7
"Doors": [1,3,5,7],
HU
"TimeSections": [1,2,3,4],
A_
"SpecialDaysSchedule": [1,2],
HT
},…,{}]
AP
}
I_
V3
Response Example
fo
OK
rV
el
se
n
Method POST
Request Params ( JSON format in body )
Name Type R/O Description Example
UserList object[] R User list, with up to 10 entries
+UserID string R User ID
+UserName string O User name
0: General user, by default; 1: Blocklist 0
user (report the blocklist event
+UserType uint16 O
ACBlocklist); 2: Guest user; 3: Patrol
user; 4: VIP user; 5: Extend time user
+UseTime uint16 O Limit of passing times for guest users 4
First user authority or not. false: true
+IsFirstEnter bool O
No; true: Yes
+TimeSections uint16[] O
corresponds to period 2. Each element
HU
configuration).
AP
"ValidDateStart" is deprecated.
.3
7
"ValidDateEnd" is deprecated.
el
Request Example
se
n
{
gS
"UserList": [{
dn
"UserID": "100013",
Bh
"UserName": "",
d
"UserType": 0,
"UseTime": 1,
"IsFirstEnter": true,
"FirstEnterDoors": [0, 1],
"UserStatus": 0,
"Authority": 1,
"CitizenIDNo": "123456789012345678",
"Password": "xxxxxxxxxx",
"Doors": [1,3,5,7],
"TimeSections": [1,2,3,4],
"SpecialDaysSchedule": [1,2],
"ValidFrom": "2018-01-02 00:00:00",
"ValidTo": "2018-01-02 01:00:00",
},…,{}]
http://192.168.1.108/cgi-bin/AccessUser.cgi?action=removeAll
HU
Response Example
HT
OK
TP
_AP
I_
Method GET
el
se
Request Example
Bh
http://192.168.1.108/cgi-bin/AccessUser.cgi?action=removeMulti&UserIDList[0]=103&UserIDList
d
[1]=102
+UseTime uint16 O
users
HU
+FirstEnterDoor
int16[] O -1 indicates all channels
TP
s
_
+Password string O
when unlocking by UserID +
se
n
password
gS
Users[0].Password=ZhangSan
HU
Users[0].Doors=0
A_
Users[0].TimeSections=12345678
HT
Users[0].SpecialDaysSchedule=1
TP
Users[0].ValidFrom=1
_
records[0].ValidTo=ZhangSan
AP
…
I_
V3
Method GET
n
uint32[64] O
Schedule SpecialDaysSchedule (defined in the
HU
configuration).
A_
"ValidDateStart" is deprecated.
_
"ValidDateEnd" is deprecated.
V3
Request Example
.3
7
http://192.168.1.108/cgi-bin/AccessUser.cgi?action=startFind&Condition.UserID=1
fo
rV
Total uint32 R
found this time
Bh
Search capability: 20
d
Maximum number of
Caps uint32 R
records that can be returned
each time.
Response Example
{
"Token": 1234,
"Total": 20,
"Caps ": 20
}
+UserType uint16 O
ACBlocklist); 2: Guest user; 3: Patrol
A_
+FirstEnterDo
I_
ors
+UserStatus uint16 O 0: Normal; 1: Frozen
.3
7
+Authority uint8 O
field). 1: Admin; 2: General user
rV
Method GET
TP
Request Example
.3
http://192.168.1.108/cgi-bin/AccessUser.cgi?action=stopFind&Token=1234
7
fo
rV
Response Example
se
OK
ngS
dn
"CardNo" : ""
HU
"CardType" : 0
A_
"CardName" : "201-zhangSan"
HT
"CardStatus" : 0
TP
} ,…,{}]
_
}
AP
I_
Response Example
.3
7
OK
fo
rV
el
se
Method POST
d
"CardStatus" : 0
HU
} ,…,{}]
A_
}
HT
TP
Response Example
AP
OK
I_
V3
.3
7
Method GET
dn
Request Example
d
http://192.168.1.108/cgi-bin/AccessCard.cgi?action=removeAll
Method GET
Request Params ( key=value format at URL)
A_
R
entries "12345687"]
_
AP
Request Example
I_
http://192.168.1.108/cgi-
V3
bin/AccessCard.cgi?action=list&CardNoList[0]=12345678&CardNoList[1]=12345687
.3
7
fo
Card type 0
Enumint{
Bh
0: Ordinary card
d
1: VIP card
+CardType uint16 O
2: Guest card
3: Patrol card
4: Blocklist card
5: Duress card
+CardName string O Card name xxx
Card status. Different card status 0
results in different person status.
0: Normal
+CardStatus uint32 O
1<<0: Reported for loss
1<<1: Canceled
1<<2: Frozen
Method GET
I_
Card type 0
dn
Enumint{
0: Ordinary card
Bh
1: VIP card
d
+CardType uint16 O
2: Guest card
3: Patrol card
4: Blocklist card
5: Duress card
+CardName string O Card name aaa
Card status Different card status 0
results in different person status.
0: Normal
1<<0: Reported for loss
+CardStatus uint32 O
1<<1: Canceled
1<<2: Frozen
1<<3: Arrearage
1<<4: Overdue
Method GET
V3
Request Example
ngS
http://192.168.1.108/cgi-bin/AccessCard.cgi?action=doFind&Token=1234&Offset=0&Count=20
dn
Method GET
I_
Request Example
rV
http://192.168.1.108/cgi-bin/AccessCard.cgi?action=stopFind&Token=1234
el
se
Response Example
dn
OK
Bh
d
{
HU
"UserID": "102",
A_
"FingerprintPacket" :
HT
{
TP
"Length" : 810,
_
"Count" : 3,
AP
"DuressIndex" : 2
I_
}
V3
}
.3
7
]
fo
}
rV
el
Response Example
gS
OK
dn
Bh
d
"UserID": "102",
HU
"FingerprintPacket" : {
A_
"Length" : 810,
HT
"Count" : 3,
TP
"DuressIndex" : 2
_
}
AP
}
I_
]
V3
}
.3
7
fo
Response Example
el
OK
se
n gS
dn
Method GET
I_
Request Example
fo
rV
http://192.168.1.108/cgi-bin/AccessFingerprint.cgi?action=get&UserID=1
el
se
FingerprintData BinaryData R
Data).
Bh
FingerprintPack
d
+UserID char[] R
char[][] Base64 of red light face templates, [ "xxxx", "xxxx", … ]
HT
+FaceData O
8192 Bytes/per face, maximum 20.
TP
+PhotoData O
AP
200kx5.
I_
is available now.
el
Request Example
se
{
n gS
"FaceList":[
dn
{
"UserID": "102",
Bh
is available now.
HT
Request Example
{
TP
_
"FaceList":[{
AP
"UserID": "102",
I_
},
rV
….
el
]
se
}
n gS
dn
Response Example
OK
d
bin/AccessFace.cgi?action=removeMulti&UserIDList[0]=101&UserIDList[1]=102
HU
Response Example
HT
OK
TP
_ AP
I_
Method GET
el
se
Request Example
Bh
http://192.168.1.108/cgi-bin/AccessFace.cgi?action=list&UserIDList[0]=101&UserIDList[1]=102
d
Method GET
I_
Request Example
ngS
http://192.168.1.108/cgi-bin/AccessFace.cgi?action=startFind&Condition.UserID=1
dn
returned.
HT
20.
I_
+PhotoData O
200kx5.
.3
7
+PhotoURL O
invalid when it is subject to
se
available now.
dn
Response Example
Bh
{
d
"Info": [ {
"UserID": "102",
…
}, { … }, … ]
}
needs.
TP
Request Example
{
.3
7
"WantMethods": True
fo
}
rV
el
Response Params
se
n
authentication is supported.
A_
cards.
I_
0: No; 1: Yes
V3
SpecialDaysSchedules.
gS
}
HU
idCheck Enumint {
TP
0: Not supported
_
1: Supported
AP
}
I_
mport Enumint {
fo
0: Not supported
rV
1: Supported
el
0: Unknown, meaningless
Bh
fingerprint comparison.
2: The device only supports back-end
fingerprint comparison.
3: Indicates that the device supports
both front-end and back-end fingerprint
comparison.
++SupportHel enumint O Supports safety helmet function. 0
met ( Takend from IsSupportHelmet)
Enumint{
0: Not supported
1: Supported
} Not supported if it does not exist.
++UserName uint32 O Supports limiting name length on the 32
MaxLen device.
is supported.
HT
ate
V3
represents as 0x00010502.
TP
ze
AP
ze
V3
igen
Bh
++MultiFaceD object O -
d
etect
+++Support bool O Whether multi-detection identification is True
supported.
+++MaxNums uint32 O The maximum number of detections 3
supported at a time.
+AccessIris object O AccessIris capability set.
++MaxInsertR uint16 O Maximum number of inserts per time. 10
ate
++MinIrisPhot uint16 O Minimum size of the image, unit KB. 1
oSize
++MaxIrisPhot uint16 O Maximum size of the image, unit KB. 50
oSize
++MaxIrisGro uint16 O Maximum number of groups supported 1
up by each user**.
Response Example
A_
{
HT
"Caps": {
TP
"AC": {
_
…
AP
}
I_
}
V3
}
.3
7
fo
rV
Method POST
dn
BTCardList object[] R
+AKID uint64 R The sequence number of the Bluetooth 123456
card
+UserID char[32] R User ID "123"
+BTCardNo char[32] R Bluetooth card number "1234567"
Request Example
{
"BTCardList": [, ....]
}
information.
HT
Response Example
I_
V3
{
"BTCards": [, ....]
.3
7
}
fo
rV
el
Method POST
Bh
Method POST
HT
Request Example
fo
{
rV
"Condition": {
el
}
se
n
}
gS
dn
"Count": 6
HU
}
A_
Card[1000]
I_
Response Example
V3
{
.3
"Info": [, ....]
7
fo
}
rV
el
se
Method POST
d
device )
A_
HT
device )
fo
device )
se
n
"yyyyMMdd hhmmss".
dn
"yyyyMMdd hhmmss".
d
device )
TP
device )
n
"yyyyMMdd hhmmss".
dn
"yyyyMMdd hhmmss".
d
Response Example
TP
OK
_AP
I_
.3
Method GET
fo
"AccessControlCustomPassword".
dn
Request Example
Bh
http://192.168.1.108/cgi-bin/recordUpdater.cgi?action=clear&name=AccessControlCustomPassword
d
records array<object R
The records that returned.
A_
>
HT
word
+AlarmPassword string O
.3
device )
el
records[1].Doors[1]=4
HU
records[1].Doors[2]=6
A_
records[1].VTOPosition=01018002
HT
records[1].ValidStart=20151022 093811
TP
records[1].ValidEnd=20151222 093811
_
…
AP
I_
V3
Method GET
rV
"AccessControlCustomPassword". stomPassword
dn
Request Example
d
http://192.168.1.108/cgi-
bin/recordUpdater.cgi?action=get&name=AccessControlCustomPassword&recno=3
Response Example
HU
record.RecNo=3
A_
record.CreateTime=123456789
HT
record.UserID=103
TP
record.OpenDoorPassword=123456
_
record.Doors[0]=1
AP
record.Doors[1]=3
I_
record.Doors[2]=5
V3
record.VTOPosition=01018001
.3
7
record.ValidStart=20151022 093811
fo
record.ValidEnd=20151222 093811
rV
…
el
se
ngS
Password
d
DA
HU
A_
HT
TP
_ AP
I_
V3
.3
7
fo
rV
el
se
n gS
dn
Bh
d
Request Example
A_
http://192.168.1.108/cgi-bin/VideoTalkPeer.cgi?action=attachState
HT
Enumchar[32]{
7
fo
"Answer"
se
"Refuse"
n gS
"Cancel"
dn
"Hangup"
"Busying"
Bh
}
d
}
HU
respectively.
V3
on Enumchar[32]{
rV
"MPEG4"
el
"MPEG2"
se
n
"MPEG1"
gS
"MJPG"
dn
"H.263"
Bh
"H.264"
d
}
++++Frequency integer No Video sampling frequency 9000
++MediaAddr string No Streaming address 224.10.10.10
It can be an intercom or broadcast
address
Response Example
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: multipart/x-mixed-replace; boundary=<boundary>
Connection: closed
--<boundary>
Content-Type: text/plain
Content-Length: <data length>
state.Talkback.Video.Format[1].Compression=MJPG
HU
…
A_
state.Talkback. MediaAddr=224.10.10.10
HT
--<boundary>
TP
…
_ AP
Method GET
rV
attachState
dn
Request Example
Bh
http://192.168.1.108/cgi-bin/VideoTalkPeer.cgi?action=detachState&SID=101
d
PCM
HU
"ADPCM"
A_
"G.711A"
HT
"G.711Mu"
TP
"G.726"
_
"G.729"
AP
"MPEG2"
I_
"AMR"
V3
"AAC"
.3
7
}
fo
http://192.168.1.108/cgi-bin/VideoTalkPeer.cgi?action=cancel
HU
A_
Response Example
TP
OK
_ AP
Method GET
rV
Enumchar[32]{
TCP
"UDP"
}
+Type string O Talk type Talk
Enumchar[32]{
"Talk": Talk
"Broadcast": Broadcast
}
+Audio object O Audio Description
++Format object[] O Supported audio decoding formats
+++Compressio string O Audio compression format PCM
n Enumchar[32]{
PCM
n Enumchar[32]{
HT
"MPEG4"
TP
"MPEG2"
_
"MPEG1"
AP
"MJPG"
I_
"H.263"
V3
"H.264"
.3
7
}
fo
address
gS
Example
dn
http://192.168.1.108/cgi-bin/VideoTalkPeer.cgi?action=answer&Talkback.Protocol=UDP&Talkback.Ty
Bh
pe=Talk&Talkback.MediaAddr=224.10.10.10
d
13.1.7 Hang Up
Close it when the conversation is over.
Request URL http://<server>/cgi-bin/VideoTalkPeer.cgi?action=hangup
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
Request Example
http://192.168.1.108/cgi-bin/VideoTalkPeer.cgi?action=hangup
DA
Response Example
A_
OK
HT
TP
Method GET
el
se
"Outgoing"}.
+EndState string O end state of the call Missed
Enumchar[32]{
"Missed"
"Received"
}
+count int O the number of records to get 100
Request Example
http://192.168.1.108/cgi-
bin/recordFinder.cgi?action=find&name=VideoTalkLog&condition.CallType=Incoming&condion.EndSt
ate=Missed&count=500
"VTH"
HU
"VTS"
A_
}
HT
Other: Undefined
V3
Response Example
d
totalCount=1000
found=500
records[0].RecNo=789
records[0].CreateTime=123456789
records[0].CallType=Incoming
records[0].EndState=Received
records[0].PeerNumber=501
…
ure 1: background2,
HU
2: background3
A_
Request Example
HT
http://192.168.1.108/cgi-
TP
bin/recordUpdater.cgi?action=insert&name=Announcement&Content=stringData&ExpirTime=2012-
_
01-01%2012:00:00&IssueTime=2012-01-
AP
01%2012:00:00&Title=Anounce1&User=101&State=0&ReadFlag=0
I_
V3
record
el
Response Example
se
n
recno=232
gS
dn
Bh
Find the AlarmRecord record. ( This api is supported by video talk device. )
Request URL http://<server>/cgi-bin/recordFinder.cgi?action=find
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
name string R It is fixed to "AlarmRecord" AlarmRecord
StartTime string O The start time ,format : 2014-8- 2014-8-
25%2000:01:32 25%2000:01:32
EndTime string O The end time, format: 2014-8- 2014-8-
25%2000:02:32 25%2000:02:32
count int O the number of records to get, 500
The record count, default 1024
"SmokingSensor",
HU
"WaterSensor", "ActiveInfrared",
A_
"CallButton", "UrgencyButton",
HT
"Steal", "Perimeter",
TP
"PreventRemove", "DoorBell" }
_
0: read
V3
1: unread
.3
7
}
fo
Response Example
el
se
totalCount=1000
n
found=500
gS
records[0].RecNo=789
dn
records[0].CreateTime=123456789
Bh
records[0].Channel=0
d
records[0].SenseMethod=DoorMagnetism
records[0].RoomNumber=501
records[0].ReadFlag=0
records[0].Comment=Friend
…
13.3 SIP
The user needs to connect video intercom through CGI protocol, but do not know how to use this
protocol to configure the device. This document provides the corresponding CGI protocol according
to the configuration data format involved in the specific service.
User account ID
+UserID String R
HU
0-65535
el
0-65535
ngS
bool O
eboot true: Delete
Bh
+DefaultCallNu
string O Default call number
mber
+MediaDetail Object O Media configuration
Video stream Main
enumchar[32]{
"Main": Main stream
++VideoStream string O "Extra1": Sub stream 1
"Extra2": Sub stream 2
"Extra3": Sub stream 3
}
Audio stream Main
++AudioStream string O enumchar[32]{
"Main": Main stream
+SIPServerRed
Standby server login username
HU
undancyUserNa string O
For intelligent building only
A_
me
HT
+SIPServerRed
Standby server login password
TP
undancyPassWo string O
For intelligent building only
_
rd
AP
string O
Start analog system
.3
7
string O
End analog system
se
n
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=SIP
Get Config Response Example
table.SIP.AuthID=8001
table.SIP.AuthPassword=pass123456
table.SIP.IsMainVTO=0
table.SIP.LocalRTPPort=15000
table.SIP.LocalSIPPort=5060
table.SIP.OutboundProxy=192.168.1.111
http://10.0.0.8/cgi-
A_
bin/configManager.cgi?action=setConfig&SIP.SIPServer=192.168.1.108&SIP.SIPServerPort=5060&SIP.
HT
RegisterRealm=VDP&SIP.RouteEnable=true
TP
OK
AP
I_
server.
gS
must be unique.
Bh
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=SIP
Get Config Response Example
DA
table.Registar[0].ServerType=VTO
HU
table.Registar[0].Enable =true
A_
table.Registar[0].RegistarName =xxx
HT
table.Registar[0].GeneralServerInfo.Address=10.0.0.15
TP
table.Registar[0].GeneralServerInfo.Port=61255
_
table.Registar[0].GeneralServerInfo.Password=123456
AP
…
I_
V3
http://10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&Registar.ServerType=VTO
fo
OK
el
se
ngS
ss video talk
_
r[32] Enumchar[32]{
.3
7
}
el
r[32] Enumchar[32]{
gS
"public"
dn
"local"
Bh
}
d
result
HT
ber
AP
Request Example
I_
V3
http://<server>/cgi-
bin/recordFinder.cgi?action=find&name=VideoTalkContact&count=10&condition.VTShortNumber=10
.3
7
1
fo
rV
r[32] Enumchar[32]{
A_
}
_
r[32] Enumchar[32]{
I_
"public"
V3
"local"
.3
7
}
fo
d
el
r
Bh
Method GET
_ AP
Request Example
fo
http://<server>/cgi-bin/recordUpdater.cgi?action=get&name=VideoTalkContact&recno=12345
rV
el
se
r[32] Enumchar[32]{
A_
}
_
r[32] Enumchar[32]{
I_
"public"
V3
"local"
.3
7
}
fo
d
el
r
Bh
Method GET
A_
er
el
ber
gS
notification message.
_
Request Example
fo
http://<server>/cgi-
rV
bin/recordUpdater.cgi?action=update&name=VideoTalkContact&recno=12345&FirstName=Green&F
el
amilyName=Jim&VTHPassword=654321
se
ngS
Response Example
Bh
OK
d
OK
HU
A_
Method GET
AP
VideoTalkContact.
fo
Request Example
rV
http://<server>/cgi-bin/recordFinder.cgi?action=getQuerySize&name=VideoTalkContact
el
se
n
Response Example
d
count=200
13.5 ElevatorFloorCounter
Request Example
HU
http://192.168.1.108/cgi-bin/ ElevatorFloorCounter.cgi?action=getElevatorWorkInfo&Channel=1
A_
HT
information
V3
Response Example
se
table.ElevatorFloor=20
n gS
table.ElevatorWorkState=1
dn
table.ElevatorWorkSpeed=20
table.IsCheckFloor=true
Bh
d
number).
HT
enumint{
I_
protocol of Dahua.
d
another floor.
A_
same time.
_
}
d
Request Example
HU
{}
A_
scripts.
I_
V3
{
fo
"Caps": {
rV
"MaxNum": 16,
el
"Count":
se
n
}
gS
}
dn
Bh
d
button by users.
.3
7
multiple floors.
rV
peak times.
se
n
}
gS
Response Example
dn
{
Bh
"Protocols": {
d
"ID": 1,
"Name": "Dahua",
"IsUsing": false,
"IsPreloaded": false,
"Type": "485",
"SupportFuncList": ["OpenAllFloors","OpenDestFloor"]
}
}
Method POST
HT
Request Example
I_
V3
{
"ID": 1
.3
7
}
fo
Response Example
se
n
{}
gS
dn
Bh
d
items[0].VideoStream=Main
HU
items[0].Length =790
A_
items[0].Duration = 3600
HT
TP
File 2:
_
items[0].Channel =1
AP
items[0].Events[0]=AlarmLocal
7
items[0].VideoStream=Main
fo
items[0].Length =790
rV
items[0].Duration = 3600
el
se
n
File 3:
dn
items[0].Channel =1
Bh
is {"AlarmLocal", "VideoMotion",
A_
files
V3
.3
"VideoMotion", "Timing",
n
be combined.
Bh
Request Example
d
http://172.23.1.66/cgi-
bin/fileFindHelper.cgi?action=startFind&condition.channel=1&condition.startTime=2014-1-
1%2012:00:00&condition.endTime=2015-1-
10%2012:00:00&condition.streamType=Main&condition.flags[0]=Event&condition.events[0]=AlarmLocal
&condition.events[1]=VideoMotion&combineMode.granularity=16&combineMode.types[0]=AlarmLocal&
combineMode.types[0]=VideoMotion
motionRegion object R
+senseLevel uint32 R the motion sensitive level, range is 0– 16
A_
right
7
fo
Request Example
rV
http://172.23.1.66/cgi-
el
bin/fileFindHelper.cgi?action=startMotionFind&condition.channel=1&condition.startTime=2014-1-
se
1%2012:00:00&condition.endTime=2015-1-
ngS
10%2012:00:00&condition.streamType=Main&condition.flags[0]=Event&condition.events[0]=AlarmLocal
&condition.events[1]=VideoMotio&motionRegion.senseLevel=1&motionRegion.rects[1][0]=0&motionReg
dn
ion.rects[1][1]=0&motionRegion.rects[1][2]=21&motionRegion.rects[1][3]=17
Bh
d
yyyy-mm-dd hh:mm:ss
A_
found=1
fo
items[0]. channel =1
rV
items[0]. events[0]=AlarmLocal
dn
items[0]. streamType=Main
Bh
+channel uint32 1
from 1.
HU
yyyy-mm-dd hh:mm:ss
HT
yyyy-mm-dd hh:mm:ss
_ AP
"Extra3"}.
7
+flags char[64][32 O which flags of the file you want to ["Timing", "Event", "Marke
fo
rV
Request Example
d
http://<server>/cgi-
bin/FileFindHelper.cgi?action=getBoundFile&condition.channel=1&condition.startTime=2014-1-
1%2012:00:00&condition.endTime=2015-1-
10%2012:00:00&condition.streamType=Main&condition.flags[0]=Timing
items[0]. channel =1
HU
items[0]. streamType=Main
_
items[1]. channel =1
V3
items[1]. streamType=Main
el
14.2 BandLimit
d
example 2011-7-3%2021:02:32
A_
{ "RecordProtect", "RecordRestrict"]
_
"RecordRestrict" }.
AP
Request Example
I_
http://192.168.1.108/cgi-
V3
bin/FileManager.cgi?action=addConditionList&condition.Types[0]=RecordRestrict&condition.Types[1]
.3
7
=RecordProtect&condition.StartTime=2014-7-3%2021:02:32&condition.EndTime=2014-7-
fo
3%2023:02:32&condition.Channel[0]=1&condition.Channel[1]=3
rV
el
Response Example
n gS
OK
dn
from 1.
HT
example 2011-7-3%2021:02:32
_
{ "RecordProtect", "RecordRestrict"]
.3
"RecordRestrict" }.
7
Request Example
fo
http://192.168.1.108/cgi-
rV
bin/FileManager.cgi?action=removeConditionList&condition.Types[0]=RecordRestrict&condition.Type
el
se
s[1]=RecordProtect&condition.StartTime=2014-7-3%2021:02:32&condition.EndTime=2014-7-
n
3%2023:02:32&condition.Channel[0]=0&condition.Channel[1]=3
gS
dn
Response Example
d
OK
14.3.4 DownloadFile
download file
Request URL http://<server>/cgi-bin/FileManager.cgi?action=downloadFile
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
fileName string R filename or path download.jpg
Request Example
http://192.168.1.108/cgi-bin/FileManager.cgi?action=downloadFile&fileName=download.jpg
<Binary Data>
14.3.5 UploadFile
Upload radar photos
http://<server>/cgi-bin/FileManager.cgi?action=uploadFile&fileName=<FileName>&Pat
Request URL
h=<Path>
DA
Method POST
HU
Request Example
V3
POST http://192.168.1.108/cgi-bin/FileManager.cgi?action=uploadFile&fileName=xxxxxx.bmp&fileLengt
.3
h=124879 HTTP/1.1
7
Host: 192.168.1.108
fo
rV
Connection: keep-alive
Content-Type: multipart/form-data;boundary=---------------------------8655433224198
el
se
Content-Length: xxxxxxxxx
n
gS
-----------------------------8655433224198
dn
Content-Disposition:form-data;name="upload"; filename="xxxxxx.bmp"
Bh
photo data….
-----------------------------8655433224198--
}
HU
16] enumchar[16]{
I_
"File"
V3
"Directory"
.3
}
7
fo
Unit: byte
d
ITC custom use. Search for downloaded files according to condition, no other response, only the found
A_
Method POST
_
Condition object R
V3
starting from 0, -1
fo
channels
el
type.
A_
Request Example
HT
{
TP
"Condition": {
_
"Channel": -1,
AP
"Types": ["jpg"],
.3
7
"DB": {
fo
"TrafficCar": {
rV
"PlateNumber": ["==","*8888"],
el
"Event": ["TrafficGate"]
se
}
n gS
}
dn
}
Bh
}
d
--<boundary>
Content-Type: application/octet-stream
Content-Disposition: form-data; name="name of file1"
<bytes of file1>
--<boundary>
<bytes of file2>
--<boundary>
……
14.4 Daylight
Method GET
HU
Request Example
HT
http://192.168.1.108/cgi-bin/global.cgi?action=getDST
TP
_
AP
Response Example
fo
result = 1
rV
el
se
ngS
dn
Bh
d
Request Example
HU
http://192.168.1.108/cgi-bin/deviceDiscovery.cgi?action=attach&DeviceClass=VTO
A_
HT
hannels
dn
els
d
deviceInfo[index].MachineName=YZZ4DZ008D00031
HU
deviceInfo[index].Port=37777
A_
deviceInfo[index].RemoteVideoInputChannels=0
HT
deviceInfo[index].SerialNo=YZZ4DZ008D00031
TP
deviceInfo[index].Vendor=Multi
_
deviceInfo[index].Version=1.200.0.0
AP
deviceInfo[index].VideoInputChannels=1
I_
deviceInfo[index].VideoOutputChannels=16
V3
.3
Start Application
gS
dn
Stop Application
Request URL http://<server>/cgi-bin/installManager.cgi?action= stop
HU
Request Example
_ AP
Host: 172.29.2.176
V3
Content-Length: 413124
.3
Content-Type:multipart/form-data;boundary=<boundary>
7
fo
rV
--<boundary>
el
Content-Type: application/octet-stream
ngS
dn
<app data>
--<boundary>--
Bh
d
http://192.168.1.108/cgi-
HU
bin/dhop.cgi?action=updateAppByUrl&appName=xxx&Url=https://aaa/bbb/ccc/app.bin
A_
Response Example
TP
OK
_
AP
I_
V3
Method GET
rV
https://aaa/bbb/ccc/firmwa
n
re.bin
Request Example
dn
http://192.168.1.108/cgi-
Bh
bin/dhop.cgi?action=updateFirmwareByUrl&Url=https://aaa/bbb/ccc/firmware.bin
d
Request Example
A_
Host: 172.29.2.176
TP
Content-Type: application/octet-stream
_
Content-Length: <length>
AP
I_
Response Example
rV
OK
el
se
n gS
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
appName char[] R The app name xxx
Request Example
http://192.168.1.108/cgi-bin/dhop.cgi?action=uninstall&appName=xxx
15.3 GPS
A_
HT
Method GET
7
Request Example
el
se
http://192.168.1.108/cgi-bin/GpsControl.cgi?action=getCaps
ngS
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=GPS
Get Config Response Example
Table.GPS[0].Enable=true
DA
Table.GPS[0].CurMode="GPS"
HU
Table.GPS[0].SyncTime=true
Table.GPS[1].Enable=false
A_
Table.GPS[1].CurMode="BEIDOU"
HT
Table.GPS[1].SyncTime=false
TP
_ AP
http://192.168.1.108/cgi-
V3
bin/configManager.cgi?action=setConfig&GPS[0].Enable=true&GPS[0].CurMode=GPS&GPS[0].Sync
.3
Time=true
7
fo
OK or ERROR
el
se
ngS
Method GET
Request Params ( key=value format in URL )
Name Type R/O Description Example
Request Example
http://192.168.1.108/cgi-bin/positionManager.cgi?action=getStatus
status.SatelliteCount=11
HU
status.WorkStatus=1
A_
HT
TP
Method GET
rV
Channel uint R
gS
starts from 1.
dn
Request Example
Bh
http://192.168.1.108/cgi-bin/LensFunc.cgi?action=getCaps&Channel=1
d
Direction uint8 R
direction, 2 : negative Y axis direction,
HT
Velocity uint8 R
AP
MaxVelocity
I_
Request Example
V3
http://192.168.1.108/cgi-
.3
bin/LensFunc.cgi?action=adjustAngleContinuously&Channel=1&Direction=2&Velocity=2
7
fo
rV
OK
n gS
dn
OK
HU
A_
Method GET
I_
from 1.
rV
float R
eed and negative value means difference
n gS
Request Example
Bh
http://192.168.1.108/cgi-
d
bin/LensFunc.cgi?action=adjustDepthFieldContinuously&Channel=1&DepthFieldSpeed=0.03
+ResetResult string O
“Success” : reset
A_
Response Example
TP
Status.Status=Normal
_
Status.DepthField=0.3
AP
Status.DepthFieldSteps=1000
I_
Status.ResetResult=Success
V3
.3
7
fo
Method GET
gS
Request Example
http://192.168.1.108/cgi-bin/LensFunc.cgi?action= autoAdjustDepthField&Channel=1
correction.
I_
Mode enumint O 1
only valid when the correction mode
.3
is manual correction.
7
enumint{
fo
0: Continuous rotation
rV
1: Point-based rotation
el
}
se
Request Example
n gS
{
dn
"Channel": 1,
"Type": 1,
Bh
"Direction": 1,
d
"Step": 5,
"Mode": 1
}
15.5 FishEye
The method described in the Section “4.5.12 Get video input capability” should be used first.In the
A_
response, it will contain these message "caps.FishEye=false", if the value of the FishEye is true,
HT
Then you can use the method described below to get the detail capability.
TP
Method GET
AP
starts from 1.
fo
Request Example
el
se
http://192.168.1.108/cgi-
n
bin/devVideoInput.cgi?action=getCapsEx&channel=1&name=VideoInFishEye
gS
dn
……
HU
caps.EPtzCmd[0]=Up
A_
caps.EPtzCmd[1]=Down
HT
…….
TP
_
AP
Fisheye camera configuration, currently used to save user set window coordinate information and
7
configuration.
+Position object O Window position information
dn
Panorama,
HU
DoublePanorama,
A_
OriginalPlusThreeEPtzRegion,
HT
Single,
TP
FourEPtzRegion,
_
TwoEPtzRegion,
AP
and Normal.
I_
n machine requirement)
.3
7
et
rV
ffset
se
n
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[1].HorizontalAngle=60
HU
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[1].VerticalAngle=60
A_
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[1].WinID=3
HT
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[1].X=2648
TP
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[1].Y=5544
_
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[2].HorizontalAngle=60
AP
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[2].VerticalAngle=60
I_
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[2].WinID=4
V3
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[2].X=5544
.3
7
table.FishEye[0].Position.OriginalPlusThreeEPtzRegion[2].Y=5544
fo
table.FishEye[0].Position.Single[0].HorizontalAngle=60
rV
table.FishEye[0].Position.Single[0].VerticalAngle=60
el
table.FishEye[0].Position.Single[0].WinID=1
se
table.FishEye[0].Position.Single[0].X=4096
ngS
table.FishEye[0].Position.Single[0].Y=4096
dn
Bh
http://10.0.0.8/cgi-bin/configManager.cgi?action=setConfig&FishEye[0].PlaceHolder=3&
FishEye[0].CalibrateMode=FourEPtzRegion
Set Config Response Example
OK
Response Example
HU
caps.DetectionRange = 5000
A_
caps.DetectionAngle = 8003
HT
caps.DetectionHuman = 4000
TP
_AP
Method GET
el
from 1.
Request Example
Bh
http://192.168.1.108/cgi-bin/radarAdaptor.cgi?action=getCapsEx&Channel=1
d
caps.DetectionHuman = 4000
HU
caps.Capacity.Support = true
A_
caps.Capacity.List[0] = 150
HT
...
TP
caps.Capacity.List[23] = 300
_
caps.RadarScene.Support = true
AP
caps.RadarChannel.Support = true
I_
caps.RadarChannel.List[0] = 1
V3
…
.3
7
caps.RadarChannel.List[23] = 2
fo
caps.MovedDetect.Support = true
rV
el
Method GET
d
Request Example
HU
http://192.168.0.108/cgi-
A_
bin/radarAdaptor.cgi?action=calculateRealSize&channel=1&distance=10.01&startPoint[0]=10&startP
HT
oint[1]=20&endPoint[0]=30&endPoint[1]=40
TP
_ AP
realSize object R
.3
unit:meter
fo
rV
Response Example
status.State = Normal
el
se
n gS
Radar track point request; A detach occurs when the connection is disconnected.
d
Bit0: Invalid
HU
area
gS
+RegionNumber int O 1
dn
point refers to
d
longitude
HU
120.1254;
I_
sX normalized to 8192
Bh
sY to 8192
Rule object[] O rule
+Id int O rule id
+PointNumber int O count 0
RealUTC int32 O 4646496
Response Example
HTTP/1.1 200 OK
Server: Device/1.0
Content-Type: multipart/x-mixed-replace; boundary=<boundary>
Connection: closed
--<boundary>
Content-Type: application/octet-stream
Content-Length: <length>
--<boundary>
Content-Type: text/plain
Content-Length: 11
DA
HU
Heartbeat
A_
-<boundary>
HT
Content-Type: application/octet-stream
TP
Content-Length: <length>
_ AP
Channel=1
I_
info[0].PointType=0x80
V3
……
.3
7
fo
--<boundary>
rV
…
el
se
n gS
Request Example
A_
http://192.168.1.108/cgi-
HT
bin/radarAdaptor.cgi?action=startRadarCalibration&channel=1&mode=1&direction=1&step=5
TP
_
AP
Response Example
V3
OK
.3
7
fo
rV
Method GET
Bh
Method GET
_ AP
equipment by default
fo
rV
Request Example
n
http://192.168.1.108/cgi-
gS
bin/radarAdaptor.cgi?action=delRadarLinkSD&Devices[0].SDLinkIP=10.11.17.98&Channel=1
dn
Bh
state[0].State=0
HU
state[0].Channel=1
A_
state[1].SDLinkIP=192.168.1.116
HT
state[1].State=0
TP
state[1].Channel=2
_AP
nate map
gS
Point
+MapSize object R Configuration of map size null
++PixelLine int[][] R Pixel coordinates of line segment in [[10,10], [20,20]]
the image
++Distance double R The actual length represented by the 10.1
line segment in the image (m)
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=MapPara
Get Config Response Example
table.MapPara.RadarCoordinate.RadarDirectionAngle=70.5
RadarAnalyseRule parameters:
HT
Rule object[][24]
V3
is fixed to
Bh
EventStart/EventStop/EventPulse and
d
it is false.
HU
e
HT
e
_
nable
gS
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=RadarAnalyseRule
cameras calibration.
HT
RadarCalibration object[] R
One-dimensional array, with one
TP
PTZ camera.
rV
horizontal direction.
dn
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
RadarAnalyseRule.
el
R Target filtering
se
bit0: Reserved
n gS
bit1: Human.
+TargetFilter integer 0x01
dn
bit2: Vehicle.
bit3: Animal
Bh
(Enable by setting it to 1)
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
el
se
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=RadarLink
gS
table.RadarLink[0].RadarLink=true
Bh
table.RadarLink[1].RadarLink=true
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=RadarLinkDevice
Get Config Response Example
DA
table.RadarLinkDevice[0][0].DeviceName=NorthDoor
HU
table.RadarLinkDevice[0][0].DeviceType=xxx
A_
table.RadarLinkDevice[0][0].Vendor=VVV
HT
table.RadarLinkDevice[0][0].SDLinkIP=192.168.1.108
TP
…
_AP
http://10.0.0.8/cgi-
V3
bin/configManager.cgi?action=setConfig&RadarLinkDevice[0][0].DeviceName=NorthDoor&RadarLinkDe
.3
7
vice[0][0].DeviceType=xxx
fo
OK
el
se
RadarPara
Bh
++TrackType integer 0
Trajectory
HU
R Scene selection.
TP
1: Default.
_
3: Spacious.
I_
4: Custom.
V3
.3
7
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
fo
are as follows :
rV
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=RadarPara
se
n
table.RadarPara[0].Sensitivity.Level=1
dn
table.RadarPara[0].TargetRatio.Ratio=1
Bh
table.RadarPara[0].Scene.Type=1
d
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
DA
http://192.168.1.108/cgi-bin/configManager.cgi?action=getConfig&name=RadarTrackGlobal
HU
table.RadarTrackGlobal[0].TrackSwitchMode=Rotation
HT
table.RadarTrackGlobal[0].TrackSwitchTime=5
TP
table.RadarTrackGlobal[0].TrajectoryTime=5
_
table.RadarTrackGlobal[0].SectorDisable=false
AP
…
I_
V3
http://10.0.0.8/cgi-
fo
bin/configManager.cgi?action=setConfig&RadarTrackGlobal[0].SectorDisable=false&RadarTrackGlobal[
rV
0].TrackSwitchMode=Rotation&RadarTrackGlobal[0].TrackSwitchTime=5
el
OK
gS
dn
Please refer to "4.2.1 Get and Set Configure" for configuration getting and setting. Specific examples
are as follows :
Get Config Request Example
Method POST
_ AP
Request Example
.3
{}
7
fo
rV
function is supported.
gS
true: Supported
Response Example
Bh
{
d
"Support": true
}
Request Example
HT
{}
TP
_
currently. enumint{
7
0: No
fo
1: Yes
rV
}
el
se
DataStore enumint{
gS
0: No
dn
1: Yes
Bh
}
d
Response Example
{
"Support": 0,
"SupportLocalDataStore": 0
}
enumint {
HU
1: I Category
A_
2: II Category
HT
3: III Category
TP
4: IV Category
_
5: V Category
AP
}
I_
"COD": 50.0,
HU
"NN": 20.0,
A_
"DO": 5.0,
HT
"Chl-a": 200.0,
TP
"TP": 2.5,
_
"CODMn": 20.0,
AP
"SS": 20.0,
I_
"BOD5": 25.0,
V3
"NO3-N": 20.0,
.3
7
"TSI": 20.0,
fo
"BlackSmellyLevel": "Light"
rV
},
el
}
ngS
dn
Response Example
HT
{
TP
"token": 2342343,
_ AP
"totalCount": 233
I_
}
V3
.3
Method POST
ngS
mg/ L)
HT
"Light”
Bh
"Heavy”
d
}
+DO float O Dissolved oxygen (0–10 mg/L) 20.0
Response Example
{
"found": 12,
"info": [{
"StartTime": "2012-03-14 00:00:00",
"Quality": 1,
"PH": 5.5,
"NTU": 250.0,
"NH3-N": 25.0,
"TN": 25.0,
"SD": 20.0,
"COD": 20.0,
Method POST
A_
Request Example
{
I_
V3
"token": 46284
.3
}
7
fo
Response Example
n
{}
gS
dn
15.9 Advertisement
Bh
d
"2016-08-10
el
EndTime char[20] O
Effective only for loop play 12:00:00"
dn
Mode char[16] O Repeat: Loop play the videos until the "Once"
Endtime
Alone: Cut-in play (solely)
Operation type If the value is not
entered, perform Replace by default.
Send the advertisement again after
Type char[16] R Replace is cleared. "Replace"
Add: Add files
Remove: Delete files
Clear: Clear the files
FileList object[] O Video file list
File type
enumchar[
+FileType O enumchar[16]{ "Video"
16]
"Video": Video files
"ftp://192.168.1.108/1
+URL char[128] O File resource address
HU
.dav"
A_
"http://10.35.81.187:8
bytes), which needs to be increased.
I_
927/1952fdd7-48e8-
Compatibility logic of platform: When the
V3
11eb-b015-
Support field of the device capability
.3
08eded28a344/20210
7
interface
315/1/cdce2e98-
fo
855d-11eb-ac3f-
returns true, the real download address
el
08eded28a344.jpg?to
is filled in the URLEx field, and the URL
se
ken=fe65ac56-ff42-
field is filled with an empty string.
n
4597-80f4-
gS
"Mode": "Once",
TP
"Type": "Replace",
_
"FileList": [{
AP
"FileType": "Video",
I_
"PlayWithMode": 1,
V3
"URL": "ftp://192.168.1.108/1.dav",
.3
7
"URLEx": "http://10.35.81.187:8927/1952fdd7-48e8-11eb-b015-
fo
80f4-33e571deab22",
el
"Sustain": 5,
se
[ ], ],
dn
"Size": 102400,
Bh
"ID": 3
d
},…{}]
}
}
HU
Type="File")
HT
sense.
rV
"/PublishFilePath/
el
D H-m-S
"/PublishFilePath/
++path char[260] O Relative path
2010/8/11/dav"
Response Example
{
"elementInfo": [{
"type": "File",
"file": {
"FileType": "Wireshark/tcpdump",
"CreateTime": "2010-4-15 9:58:32",
"ModifyTime": "2010-4-15 9:58:32",
"Size": 1873.0,
"path": " /PublishFilePath/2010/8/11/dav.jpg",
"Desc": "xxxxxxx"
Request Example
HU
{}
A_
HT
VideoOutput.deliveryFile (release at
HU
buidlings).
HT
0: normal;
dn
3: file damaged;
7: file in deleting;
8: file saved;
9: file in saving;
"Downloaded": true,
HU
"FileType": "Video",
A_
"LocalPath": "/PublishFilePath/1.dav",
HT
"Sustain": 5,
TP
"URL": "ftp://192.168.1.108/1.dav",
_
[ ], ],
I_
"Size": 102400,
V3
"ID": 3
.3
7
},…{}]
fo
},{},…{}]}
rV
el
se
Method POST
Request Params ( JSON format in body )
Name Type R/O Description Example
fileName char[32][12 R File name ["a.dav", "b.dav" ]
8]
Request Example
{
"fileName": ["a.dav", "b.dav" ]
}