Grandstream Video Surveillance API Guide
Grandstream Video Surveillance API Guide
Contents
DOCUMENT OVERVIEW ......................................................................................................... - 3 -
Software Version Requirement ................................................................................................ - 3 -
URL Parameter Definitions...................................................................................................... - 4 -
Common URL Format ............................................................................................................. - 4 -
Responses from the Device ...................................................................................................... - 5 -
PARAMETERS ........................................................................................................................... - 6 -
1. Audio/Video Parameters .................................................................................................. - 6 -
2. OSD Settings ................................................................................................................... - 8 -
3. Network Parameters ........................................................................................................ - 9 -
4. Dynamic DNS (DDNS) ................................................................................................. - 10 -
5. SIP ................................................................................................................................. - 10 -
6. Date & Time .................................................................................................................. - 12 -
7. Status ............................................................................................................................. - 15 -
8. Account Management .................................................................................................... - 16 -
9. SMTP (E-mail) Settings ................................................................................................ - 17 -
10.
FTP Settings .............................................................................................................. - 17 -
11.
PTZ Settings .............................................................................................................. - 18 -
12.
Alarm Event .............................................................................................................. - 19 -
13.
Motion Detection....................................................................................................... - 22 -
14.
System Log ................................................................................................................ - 26 -
15.
USB/SD Storage ........................................................................................................ - 26 -
16.
Maintenance/Upgrade ............................................................................................... - 27 -
17.
Contrast, Saturation, Brightness and Chroma ........................................................... - 28 -
18.
WIFI Settings ............................................................................................................ - 30 -
19.
System Settings ......................................................................................................... - 30 -
20.
PPPoE Settings .......................................................................................................... - 32 -
21.
Snapshot .................................................................................................................... - 32 -
22.
Web GUI Language ................................................................................................... - 33 -
23.
Decode Settings (For GXV3500 only) ...................................................................... - 33 -
24.
Stream Acquiring....................................................................................................... - 34 -
25.
CMOS Settings .......................................................................................................... - 34 -
26.
4*D1 Settings (For GXV3504 only) ......................................................................... - 35 -
27.
Alarm HTTP Servers Settings ................................................................................... - 36 -
28.
Record Settings ......................................................................................................... - 37 -
-2-
DOCUMENT OVERVIEW
Grandstream Video Surveillance API (Application Programming Interface) supports HTTP
1.0 protocol (RFC1945). This document explains in detail the parameter of functions in
client side, via the supported GET/POST method. Users will require administrator
privilege to retrieve or set the parameters.
-3-
Values
Description
cmd=<string>
add/remove/set/get
/search/reg
channel=<int>
0, 1, 2, 3
channel=0\r\n
<param>=<value>\r\n
channel=1\r\n
<param>=<value>\r\n
channel=2\r\n
<param>=<value>\r\n
channel=3\r\n
<param>=<value>\r\n
channel=0\r\n
.
[Link]=0\r\n
<param>=<value>\r\n
[Link]=1\r\n
<param>=<value>\r\n
[Link]=2\r\n
<param>=<value>\r\n
e.g.:
16 motion detection regions in channel 0
-4-
[Link]=3\r\n
<param>=<value>\r\n
[Link]=3\r\n
[Link]=1
[Link]=0
[Link]=7
[Link]=0
[Link]=86399
[Link]=2
[Link]=0
[Link]=1
[Link]=0
[Link]=4879
[Link]=3
[Link]=1
[Link]=7
[Link]=0
[Link]=86399
.
HTTP Text
Description
200
OK
Request successful.
It does not mean set/delete/add successful until
receiving Successful\r\n.
Successful Need Reboot\r\n: configure successful but it
would take effect after reboot.
No Privilege\r\n: incorrect privilege.
<param> Invalid\r\n: invalid parameter.
<param> Missing\r\n: missing parameter.
400
Bad Request
401
Unauthorized
Authorization failed.
404
Not Found
503
Service
Unavailable
Example:
Request includes invalid file names.
HTTP/1.0 404 Not Found\r\n
-5-
PARAMETERS
1. Audio/Video Parameters
Support method:
cmd = set/get
If devices support 2 streams, they are called primary stream and secondary stream, e.g.:
[Link]
<parameter>=<value>
Values
Description
channel=<int>
0, 1, 2, 3
[Link]=<int>
[Link]=<int>
96, 26
Video codec:
96: H264
26: MJPEG (not supported by
some models)
This parameter needs to be set
along with the parameter of
bitrate.
[Link]=<int>
[Link]=<int>
width(2 bytes)|
height(2 bytes)
First 2 bytes for
width of pixels;
Last 2 bytes for
height of pixels.
Video resolution.
Varies among different device
models and the NTSC/PAL
format used.
[Link]=<int>
[Link]=<int>
[Link]=<int>
[Link]=<int>
0, 1
0: VBR(Variable bitrate)
1: CBR(Constant bitrate)
[Link]=<int>
[Link]=<int>
1-30
Frame rate.
Varies among different device
models and NTSC/PAL format.
[Link]=<int>
[Link]=<int>
1-100
I frame interval.
[Link]=<int>
[Link]=<int>
1-5
Image quality:
Level 1-5.
The lower the value the greater
the image quality (only valid
with VBR configuration)
[Link]=<int>
[Link]=<int>
0, 1, 2, 3, 4
Audio codec.
0: pcmu
1: pcma
2: g726 (valid only for
-6-
GXV3601/350x/3611LL/3611H
D/3615/3615W)
3. disabled
4. AAC (valid only for
GXV3651FHD/3662HD/3615W
P_HD/3500)
Some device models may only
support [Link]
(share "[Link]")
[Link]=<int>
[Link]=<int>
16, 32
Audio bitrate.
Some device models may only
support [Link]
(share [Link]")
[Link]=<int>
0, 1
Audio input
[Link]=<int>
0, 1
Audio output
[Link]=<int>
(1-10)
Valid for:
GXV3601/3601
LL/3601HD/361
1LL/3611HD/35
01/3504/3615/3
615W
(1-5)
Valid for
GXV3651FHD/
3662HD/3615
WP_HD/3500
[Link]=<int>
(1-10)
Valid for:
GXV3601/3601
LL/3601HD/361
1LL/3611HD/35
01/3504/3615/3
615W
(0-31)
Valid for
GXV3651FHD/
3662HD/3615
WP_HD/3500
[Link]=<int>
0, 1, 0xFF
1: AIC3104
0xFF: None
[Link]=<int>
0, 1
Video format
(Read Only, not savable)
0:PAL
1:NTSC
[Link]=<int>
50, 60, 61
Power frequency.
Indoor 50: 50
Indoor 60: 60
Outdoor: 61
(For GXV3651_FHD/3662_HD
only, not for other models)
Example:
Set Audio/Video parameters.
[Link]
200 OK\r\n
Successful\r\n
2. OSD Settings
Support method: cmd = set/get
[Link]
<parameter>=<value>
Values
Description
channel=<int>
0, 1, 2, 3
osdposition=<int>
0, 1
osdtimeshow=<int>
0, 1
osdtextshow=<int>
0, 1
OSD text:
0: Not display
1: Display
osdopacity=<int>
0, 10, 20100.
osdcolor =<string>
(GXV3601/3601L
L/3601HD/3611L
OSD color
0xFFFFFE: Auto
-8-
L/3611HD/3501/3
504/3615/3615W
Only)
osdtext=<string>
osdtextindex=<int>
0xFFFFFF: White
0xFF0000: Red
0x800080: Purple
0xFF6100: Orange
0x0000FF: Blue
0xFFFF00: Yellow
0x008000: Green
0x00FFFF: Cyan
0x000000: Black
OSD; maximum 63 bytes.
0, 1, 2
Example:
[Link]
0&osdopacity=20&osdcolor =0xFFFFFE&osdtext=12345
200 OK\r\n
Successful\r\n
3. Network Parameters
Support cmd = set/get,
[Link]
<parameter>=<value>
Values
httpport=<int>
Description
HTTP port
enabledhcp=<int>
0, 1
DHCP.
0: disable
1: enable
ipaddress=<string>
[Link]
IP Address.
Not valid when starting DHCP.
subnetmask=<string>
[Link]
Subnet mask
defaultgateway=<string>
[Link]
Default gateway
autodns=<int>
0, 1
[Link]=<string>
[Link]=<string>
Example
-9-
[Link]
86.145
200 OK\r\n
Successful Need Reboot\r\n
cmd = set/get
[Link]
<parameter>=<value>
Values
Description
enableddns=<int>
0, 1
DDNS
0: disable
1: enable
isptype=<int>
0-6
ISP type
0: [Link]
1: [Link]
2: ActiveDNS
3: [Link]
4: [Link]
5: [Link]
6: [Link]
sitename=<string>
ddnsip=<string>
account=<string>
password=<string>
stunserver=<string>
Example:
[Link]
200 OK\r\n
Successful\r\n
5. SIP
Support cmd = set/get, it will take effect on next reboot.
[Link]
<parameter>=<value>
Values
Description
registeredstate=<int>
0, 1
Registration state.
0: Offline
- 10 -
1: Online
unregister=<int>
0, 1
Unregister on reboot.
0: No
1: Yes
accountname=<string>
sipserver=<string>
proxyserver=<string>
userid=<string>
authenticateid=<string>
Authenticate ID.
Could be the same or different as SIP UserID,
max 127 Bytes.
accountpassword=<string>
stunserver=<string>
sipstream=<int>
0, 1
0: Secondary
1: Primary
audioencoder=<int>
0, 1
0: PCMU
1: PCMA
Default is 0, PCMU.
regexpiration=<int>
localsipport=<int>
localrtpport=<int>
1024-30000
autohooktimer=<int>
0-65535
disable_audio=<int>
0, 1
0: No
1: Yes
enable_keep_alive=<int>
0, 1
0: No
1: Yes
direct_ip_call=<int>
0, 1
0: No
1: Yes
enable_white_list=<int>
0, 1
0: No
1: Yes
sipdoorenable=<int>
0, 1
sipdoorpwd=<string>
Number
0 to 9
sipdoortime=<int>
Phonebook settings. Support
<parameter>=<value>
Values
[Link]=<int>
Description
Total phonebook entries.
[Link]=<int>
1, 2.
[Link]=<string>
[Link]=<string>
white_list_phone=<string>
audio_warning_mode=<int>
0, 1
Example (URL)
[Link]
r=[Link]&userid=3028&authenticateid=3028&accountpassword=123456
[Link] white_list_phone=2222
[Link] white_list_phone=2222,3333,4444,
Delete phone
numbers in white list
cmd = set/get
[Link]
<parameter>=<value>
Values
Description
updatemode=<int>
1-2
Update mode.
1: Update via NTP time server (Default)
2: Self-defined
year=<int>
Current year
month=<int>
1-12
Current month
day=<int>
0-31
Current day
hour=<int>
0-23
Current hour
minute=<int>
0-59
Current minute
- 12 -
second=<int>
0-59
Current second
timezone=<int>
1-54
1: GMT-12 (Eniwetok,Kwajalein)
2: GMT-11 (Midway Isl., Samoa)
3: GMT-10 (Hawaii, AleutianIsl.)
4: GMT-09 (Alaska)
5: GMT-08 (LasVegas,SanFran cisco,
Vancouver)
6: GMT-07 (Calgary, Denver, Salt Lake
City)
7: GMT-06 (Chicago, Dallas, Mexico City)
8: GMT-05 (Cuba)
9: GMT-05 (New York, Toronto,
Washington DC)
10: GMT-04 (Paraguay)
11: GMT-04 (Chile)
12: GMT-04 (Charlottetown, Manaus)
13: GMT-03 (Brazilia, Sao Paulo)
14: GMT-02 (Noronha, Mid-Atlantic)
15: GMT-01(Azores, Cap Verde Isl.)
16: GMT (Dublin, Lisbon, London,
Reykjavik)
17: GMT+01 (Amsterdam, Berlin, Rome,
Stockholm)
18: GMT+02 (Athens, Helsinki, Istanbul,
Riga)
19: GMT+02 (Egypt)
20: GMT+02 (Israel)
21: GMT+02 (Lebanon)
22: GMT+02 (Syria)
23: GMT+03 (Moscow, Riyadh)
24: GMT+03 (Iraq)
25: GMT+03:30 (Iran)
26: GMT+04 (Abu Dubai, Baku)
27: GMT+04:30 (Kabul)
28: GMT+05 (Islamabad, Karachi,
Tashkent)
29: GMT+05:30 (Bombay, Calcutta, New
Delhi)
30: GMT+06 (Novosibirsk, Omsk)
31: GMT+07 (Bangkok, Hanoi, Jakarta)
32: GMT+08 (Beijing, Hong Kong,
Shanghai, Taipei, Taiwan)
33: GMT+09 (Osaka, Sapporo, Tokyo)
34: GMT+09:30 (Adelaide, Darwin)
- 13 -
ntpserverenable=<int>
0, 1
0: No
1: Yes
ntpserver=<string>
datestyle=<int>
7. Status
Support
cmd = get/set
[Link]
<parameter>=<value>
Values
Description
productmode=<string>
GXV3501,
GXV3504,
GXV3601,
GXV3601HD/LL,
GXV3611HD/LL,
GXV3615W/P,
GXV3651FHD,
GXV3662HD,
GXV3615WP_HD
GXV3500
hardwareversion=<string>
V0.2B...
Hardware version
partnumber=<string>
P/N number
bootloaderversion=<string>
BOOTLOADER version
coreversion=<string>
Core version
baseversion=<string>
Base version
firmwareversion=<string>
0-59
Firmware version
0, 1, 2, 3, 4, 5, 6
DDNS Status
0 :Disable
cameratype=<string>
ddnsstate=<int>
- 15 -
1 :Processing
2 :Success
3 :Account/Password Error
4 :Server blocking
5 :Stun Server error
6 :Database failed
wifistate=<int>
0, 1
Wi-Fi Status
0: Disconnected
1: Connected
systemrun=<string>
System up time
mac=<string>
MAC Address
ledstatus=<int>
0, 1
[Link]
[Link]
0, 1
PPPoE status
0: disconnected
1: connected
ipaddress
subnetmask
defaultgateway
8. Account Management
Support cmd = add/remove/set/get
[Link]
<parameter>=<value>
Values
Description
[Link]=<int>
>=1
[Link]=<int>
1, 2
Index of users
[Link]=<int>
0, 1, 2
User Privilege.
0: administrator
1: user
2: anonymous
[Link]=<string>
[Link]=<string>
[Link] =<int>
0, 1
Example:
[Link]
- 16 -
200 OK\r\n
Successful\r\n
cmd = set/get
[Link]
<parameter>=<value>
Values
Description
enablesmtp=<int>
0, 1
Enable SMTP:
0: No
1: Yes
smtpserver=<string>
smtpserverport=<int>
emailfrom=<string>
emailuser=<string>
emailpassword=<string>
emailto1=<string>
emailto2=<string>
emailto3=<string>
enablessl=<int>
0, 1
Use SSL.
0: No
1: Yes
smtptest=<int>
Example:
Set SMTP parameters. When enablesmtp=1, the Email address format will be checked.
[Link]
(when enablesmtp=1, basic check will be performed to all the addresses)
200 OK\r\n
Successful\r\n
cmd = set/get
- 17 -
[Link]
<parameter>=<value>
Values
Description
enableftp=<int>
0, 1
Enable FTP.
0: No
1: Yes
ftpserver=<string>
ftpserverport=<int>
ftpuser=<string>
ftppassword=<string>
ftppath=<string>
ftptest=<int>
Example:
Set FTP parameters.
[Link]
dmin&ftppath=admin
200 OK\r\n
Successful\r\n
cmd = set/get
[Link]
<parameter>=<value>
Values
Description
protocol=<int>
0, 1
channel=<int>
0-3
(pending)
baudrate=<int>
Baud rate.
May vary among different
device models.
- 18 -
ptzparam=<int>
0-63 (Speed)
0-127 (Default position)
ptzcontrol=<int>
0, 1
PTZ Control.
0: Stop
1: Tilt Up
2: Tilt Down
3: Pan Left
4: Pan Rigjt
5: Pan to upper left corner
6: Pan to lower left corner
7: Pan to upper right corner
8: Pan to lower right corner
9: Zoom in
10: Zoom out
11: Focus near
12: Focus far
13: IRIS open
14: IRIS close
15: Turn to default position
16: Clear default position
17: Set default position
18: Auto Pan
19: Stop Auto Pan
Example:
Set PTZ parameter.
[Link]
(rotation and speed have to be used together)
200 OK\r\n
Successful\r\n
Note: ptzcontrol and ptzparam would both need to be included in the link
cmd = set/get/add/remove
[Link]
<parameter>=<value>
Values
Description
[Link]=<int>
0, 1, 4
0, 1, 2, 3
[Link]=<int>
0, 1
Numbers of schedules
[Link]=<int>
1, 2, 3
ID of schedules
[Link]=<int>
0-7
0: Sunday
1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday
7: Everyday(default)
[Link]=<int>
0-86399
[Link]=<int>
0-86399
[Link]=<string>
yes
[Link]=<int>
0-160
([Link]<256)
0-100
([Link]<512)
0-50
([Link]<1024)
0-25
([Link]>1024)
[Link]=<int>
0-320
([Link]<256)
0-200
([Link]<512)
0-100
([Link]<1024)
0-50
([Link]>1024)
Record Video to
Post-Alarm (in seconds).
The range varies among
different bitrate.
[Link]=<int>
1, 2
0, 1
[Link]=<int>
0, 1
[Link]=<int>
0, 1
Enable/Disable alarm
output.
0: disable.
1: enable.
alarm in 1 corresponds
alarm out 1;
alarm in 2 corresponds
alarm out 2;
[Link]=<int>
0, 1
[Link]=<int>
0, 1
Example:
Parameter settings.
[Link]
&[Link]=10&[Link]=1&[Link]=1&[Link]
[Link]=1&[Link]=1&[Link]=1&[Link]
[Link]=1
- 21 -
cmd = add/remove/set/get
[Link]
<parameter>=<value>
Values
Description
[Link]=<int>
1, 4
[Link]=<int>
0, 1, 2, 3
[Link]=<int>
0, 1
Enable Motion
Detection
0: No
- 22 -
1: Yes
[Link]=<int>
0-15
Motion Detection
Region 0-15
[Link]=<int>
[Link]=<int>
[Link]=<int>
0-100
Sensitivity.
The higher the value the
greater the sensitivity
[Link]=<int>
0, 1
Total number of
schedule.
[Link]=<int>
0, 1, 2, 3
Schedule ID (1-n).
If ID is set to 0, all the
schedules will be
deleted.
[Link]=<int>
0-7
0: Sunday
1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday
7: Everyday(default)
[Link]=<int>
0-86399
Default is 0 (in
seconds).
Example: 12:39,
starttime =
12*3600+39*60
[Link]=<int>
0-86399
[Link]=<int>
0, 1, 2, 3
0-160
([Link]<256)
0-100
([Link]<512)
0-50
([Link]<1024)
0-25
([Link]>1024)
[Link]=<int>
0-320
([Link]<256)
0-200
([Link]<512)
0-100
([Link]<1024)
0-50
([Link]>1024)
Record Video to
Post-Alarm (in
seconds). This may
vary among different
bitrates.
[Link]=<int>
0, 1
[Link]=<int>
0, 1
[Link]=<int>
0, 1
Enable/Disable alarm
output.
0: enable.
1: disable.
alarm in 1 corresponds
alarm out 1;
alarm in 2 corresponds
alarm out 2;
[Link]=<int>
0, 1
[Link]=<int>
0, 1
Note
[Link]
[Link]
[Link]=26214800&[Link]=1
[Link]
[Link]=26214800&[Link]=101
[Link]
[Link]
me=30&[Link]=10&[Link]=0&[Link]=0&[Link]
[Link]=0&[Link]=0&[Link]=0
[Link]
me=10&[Link]=20&[Link]=1&[Link]=1&[Link]
[Link]=1&[Link]=1&[Link]=1
[Link]
[Link]
[Link]
[Link]
[Link]
2
[Link]/goform/motiondetect?cmd=set&[Link]=0&[Link]=0&[Link]
Delete Alarm
[Link]=0&[Link]=1
Region
- 25 -
cmd = set/get
[Link]
<parameter>=<value>
Values
logserver=<string>
loglevel=<int>
Description
Syslog server, max 127
Bytes
0, 1, 2, 3, 45
Syslog level:
0: NONE
1: DEBUG
2: INFO
3: WARNING
4: ERROR
Example
[Link]
200 OK\r\n
Successful Need Reboot\r\n
Example (URL)
Note
[Link]
[Link]
[Link]
cmd = remove/get/format
[Link]
<parameter>=<value>
Values
Description
[Link]=<int>
[Link]=<int>
1, 101, 201
1: USB
101: SD
201: DISK
[Link]=<string>
[Link]=<stri
ng>
- 26 -
[Link]=<strin
g>
[Link]=<int>
[Link]=<int>
1, 2, 3
File index
[Link]=<string>
[Link]=<string>
storage_type=<int>
1, 2, 3
Example:
Delete a file from USB/SD card.
[Link]
n1_2010_01_13_09_21_58.jpg
200 OK\r\n
Successful\r\n
16. Maintenance/Upgrade
Support cmd = set/get
[Link]
<parameter>=<value>
Values
Description
restart=<string>
yes
restore=<string>
yes
[Link]=<int>
1, 2, 3
Upgrade via:
1: TFTP
2: HTTP
3: HTTPS
- 27 -
[Link]=<string>
serverhost:port/dir
[Link]=<string>
serverhost:port/dir
Configuration server
path, max 255 Bytes
upgrade_cfg_xml_pwd=<string>
[Link]=<int>
0, 1
Automatic upgrade:
0: No
1: Yes
[Link]=<int>
60-525600
Automatic upgrade
interval (in minutes)
Example:
Set maintenance and upgrading parameters.
[Link]
200 OK\r\n
Successful\r\n
Values
Description
channel=<int>
0, 1, 2, 3
Assigned channel
number. Default number
for IP Camera is 0
brightness=<int>
For
GXV3501/3504/3600/3601/3612,
(0-255)
Brightness
For
GXV3601LL/3611LL/3615/3615W
, (0-60)
For GXV3601HD/3611HD, (0-5)
For
GXV3651HD/3651FHD/3662HD/
3500/ip1200/ip5150, (0-255)
- 28 -
contrast=<int>
For
GXV3501/3504/3600/3601/3612,
(0-255)
Contrast
For
GXV3601LL/3611LL/3615/3615W
, (0-7)
For GXV3601HD/3611HD, (0-3)
For
GXV3651HD/3651FHD/3662HD/3
500/ip1200/ip5150, (0-255)
saturation=<int>
For
GXV3501/3504/3600/3601/3612,
(0-255)
Saturation
For
GXV3601LL/3611LL/3615/3615W
, (0-63)
For GXV3601HD/3611HD, (0-8)
For
GXV3651HD/3651FHD/3662HD/3
500/ip1200/ip5150, (0-255)
chroma=<int>
0-255
Default=<int>
3, 4
Example:
[Link]
200 OK\r\n
Successful\r\n
- 29 -
Values
Description
wifiexist=<int>
0, 1
enable=<int>
0, 1
0: Disable
1: Enable
ssid=<string>
SSID
authentication=<int>
0-6
Security Mode
0:NONE
1:WEP/Shared
2:WEP/Open
3:WPA PSK TKIP
4:WPA PSK AES
5:WPA2 PSK TKIP
6:WPA2 PSK AES
keyindex=<int>
1-4
Key index
key=<string>
Encryption Key
Example:
Values
devicename=<string>
Description
Device name
channel=<int>
0-3
Channel number
[Link]=<int>
0,1
0:Normal Open
1:Normal Close
- 30 -
[Link]=<int>
0,1
0:Normal Open
1:Normal Close
[Link]=<int>
0,1
[Link]=<int>
0,1
alarm_output_time=<int>
0, 5,15,
30, 60,
180, 300,
600,
900,1800
gpio_pin_multiplex=<int>
0, 1
Example 1:
Example 2:
Alarm Type
Alarm Status
Result
[Link]=NORMAL
OPEN
[Link]=OPEN
[Link]=NORMAL
OPEN
[Link]=CLOSE
[Link]=NORMAL
CLOSE
[Link]=OPEN
[Link]=NORMAL
CLOSE
[Link]=CLOSE
[Link]=NORMAL
OPEN
[Link]=OPEN
[Link]=NORMAL
OPEN
[Link]=CLOSE
[Link]=NORMAL
[Link]=OPEN
- 31 -
CLOSE
[Link]=NORMAL
CLOSE
[Link]=CLOSE
cmd = set/get
[Link]
<parameter>=<value>
Values
Description
[Link]=<string>
PPPoE username
password=<string>
PPPoE password
(Not show when using get)
[Link]=<int>
0, 1
Example:
21. Snapshot
[Link]
<parameter>=<value>
[Link]
[Link]
[Link]
[Link]
Values
[Link]
[Link]
[Link]
[Link]
Description
Capture [Link] in single channel.
Capture [Link] [Link] in 4 channels.
Example:
Capture a snapshot.
[Link]
- 32 -
Values
Description
language=<int>
0, 1, 2
0: English (default)
1: Chinese
2: Russian
Example:
[Link]
Values
Description
decode_source=<int>
0, 1
Decode source.
0:RTSP
1:SIPphone
default_decode=<int>
0-7
enable_patrol=<int>
0, 1
Enable patrol
0:Disable
1:Enable
video_ouput_type
0-3
0:Auto or NTSC
1:Auto or PAL
2:NTSC
3:PAL
start_patrol=<int>
0, 1
Start patrol
0: Stop patrol
1: Start patrol
channel[i]=<int>
0-4
Video channel
Use i=0-7 to specify the 8
patrol decode devices
port[i]=<int>
Port i=0-7
time[i]=<int>
i=0-7
host[i]=<string>
i=0-7
user[i]=<string>
i=0-7
password[i]=<string>
i=0-7
description[i]=<string>
i=0-7
- 33 -
Example:
[Link]
Values
Description
channel=<int>
0-7
Example:
[Link]
Values
Description
flip=<int>
0, 1
0:off
1:on
lris=<int>
0, 1, 2
IRIS setting.
0: Mech_Manual
1: DC_Auto
2: DC_Manual
iris_open=<int>
1, 2, 3, 4, 5
up_bias=<int>
6000-11000
down_bias=<int>
6000-11000
- 34 -
shutter_speed=<int>
Shutter speed
0:Auto
N:1/N
ir_cut_setting=<int>
0, 1
IR CUT setting
0: Manual_Mode
1: Automatic_Mode
ir_cut_sensitivity=<int>
1, 2, 3, 4, 5
IR_CUT sensitivity
d_n_mod=<int>
0, 1
Day/Night mode.
0: day
1: night
color_mod=<int>
0, 1, 2
Color mode.
0: color
1: black-white
2: auto
Example:
Set CMOS parameters.
[Link] =1
200 OK\r\n
Successful \r\n
Example (URL)
Note
[Link] cmos?cmd=get
[Link] =30
Values
Description
enable=<int>
0, 1
0: No
1: Yes
[Link]=<int>
0, 1
0: PAL
1: NTSC
Read only. To identity type
for display.
Options=<int>
1-8
H264
1:4*704*480,
2048kbps@15fps+no
secondary stream
2:4*704*480,
- 35 -
1536kbps@19fps+no
secondary stream
3:4*704*480,
1536kbps@15fps+secondary
stream 4*QCIF (176*112)
128kbps@10fps
4:4*704*576,
2048kbps@13fps+no
secondary stream
5:4*704*576,
1536kbps@16fps+no
secondary stream
6:4*704*576,
1536kbps@10fps+secondary
stream 4*QCIF (176*144)
128kbps@10fps
MJPEG
7:4*704*480,
4096kbps@15fps+no
secondary stream
8:4*704*576,
4096kbps@13fps+no
secondary stream
Example:
[Link]
cmd=set/get
[Link]
<parameter>=<value>
Values
Description
server_name=<string>
Server name
server_url=<string>
Server URL
- 36 -
server_username=<string >
Username
server_user_password=<string >
Password
Example:
Set Alarm HTTP Servers parameters.
[Link]
l=http://
200 OK\r\n
Successful \r\n
Example (URL)
Note
[Link] event_server?cmd=get
[Link]
verurl&server_username=username&server_user_password=pwd
cmd = set/get
[Link]
<parameter>=<value>
Values
Description
channel=<int>
0-3
Channel number.
(For single channel device, this could be
skipped)
state_record=<int>
0-4
0: No record
1: Manual record
2: Auto record
3: Alarm record
4: No storage device
enable_time_table=<int>
0, 1
record_time_table=<string>
record_full_handle=<int>
Record schedule.
This is a 168-character string with possible
values 0 and 1.
0: No
1: Yes
1, 2
start_recort=<int>
0, 1
Example:
Set Record parameters.
Note
[Link] sdrecord?cmd=get
- 38 -
Table 1:
MODEL
GXV3662
GXV3651
GXV3601HD
GXV3611HD
Preserve
d
Memory(M
)
24
IP960
GXV3500
IP5150
GXV3501
GXV3504
GXV3601
GXV3601LL
GXV3611LL
GXV3615(W
)
3615WP_HD
IP1200
24
BitRate
(bps)
<=512
<=1024
<=1536
<=2048
<=3072
<=4096
<=6144
>6144
<=512
<=1024
<=1536
<=2048
<=3072
<=4096
<=6144
>6144
<=256
<=512
<=1024
<=1536
<=2048
Pre_Record
[Link](s
)
100
50
45
30
20
15
10
10
50
20
15
10
5
5
4
3
90
50
20
15
10
Post_Record
[Link](s)
200
100
60
60
40
30
20
10
70
40
25
20
15
10
5
4
120
70
40
25
20
<=256
160
320
<=512
100
200
<=1024
50
100
<=1536
45
60
<=2048
30
60
NA
- 39 -