next_url=index.htm”method=”post”enctype=”multipart/form-data”>
●Cgireturn:
accordingtothedifferentreturninformation,theCGIlistedcouldbedividedintobelow2category:
✓Getthestatusandparameter,includingget_status.cgiandget_params.cgi.Theirreturnincludesthetextofdevicestatusorparameter,thespecificformatissimilartovariabledefinitionsofjavascript,everystatusandparameteraredefinedasaVariableandreturn,forexample:
varid=’003456789A0A’;
varsys_ver=’0.0.1.2’;
varapp_ver=’0.0.1.3’;
varalias=”;
varnow=1195552193;
vartz=0;
varntp_enable=1;
varntp_svr=’time.nist.gov’;
✓Setdeviceparameteroroperateit:
TheCGIwillreturnthetextincludingoperationresult,forexampleifsucceeded,andthenreturn“ok”,iffailed,andthenreturntheerrorinformation,forexample:
“error:
illegalparam”.Ifyoudon’tneedonlythesimple“ok”text,youcouldaddaparameterintotheCGIparameterstring:
next_url.Theoperationissucceededandthenjumptonextdocument.Noteitmustbetherelativepath.
check_user.cgi
Description:
getthecurrentusercheckresult
Authority:
guest
Syntax:
/check_user.cgi[?
user=&pwd=]
Return:
user:
presentuser
pwd:
presentpassword
pri:
presentauthority
1:
guest
2:
operator
3:
adminstrator
snapshot.cgi
Description:
gettherealtimepicture
Authority:
guest
Syntax:
/snapshot.cgi[?
user=&pwd=&next_url=]
Parameter:
next_url:
Picturedocumentname
Instruction:
1Ifthereisnonext_urlparameter,returnpicturedocumentnameis:
deviceid(devicealias)_presenttime.jpg,otherwisethedocumentnameis:
next_urldefineddocumentname.
videostream.cgi
Description:
ipcamerasendsthejpegvideostreambyserverpushmode
Authority:
guest
Syntax:
/videostream.cgi[?
user=&pwd=&resolution=]
Parameter:
resolution:
(8:
320*240,32:
640*480)
videostream.asf
Description:
ipcamerasendasfvideostreamdata,onlysupportvlcplayerandmplayer
Authority:
guest
Syntax:
/videostream.asf[?
user=&pwd=&resolution=]
Parameter:
resolution:
(8:
320*240,32:
640*480)
get_status.cgi
Description:
getstatus
Authority:
N/A
Syntax:
/get_status.cgi
Return:
id:
deviceid
sys_ver:
firmwareversion
app_ver:
webpageversion
alias:
now:
thesecondsitgoesfrom1970-1-10:
0:
0
tz:
currenttimeareasettingandthedifferentsecondfromstandardGMTalarm_status:
alarmstatus,0:
noalarm;1:
Motiondetectionalarm;2:
inputalarm
ddns_status:
DDNSstatus
0
Nonoperation
1
Connecting
2
ServerConnectionerror
3
Dyndnssucceeded
4
Dyndnsfailed:
systemerror
5
Dyndnsfailed:
wrongusernameorpassword
6
Dyndnsfailed:
untrusteduser
7
DynDnsfailed:
wrongDomainNameFormregisteringsites
8
DynDnsfailed:
DomainNamedoesn'texist
9
DynDnsfailed:
Domainnamedoesn’tbelongtoyou
10
DynDnsfailed:
toomanyortoofewdomainnamerequest
11
DynDnsfailed:
domainnameispreventedbyabuse
12
DynDnsfailed:
servererror
13
DynDnsfailed:
Nocorrectresponsefromtheserver
14
Orayfailed:
Nocorrectresponsefromtheserver
15
Orayfailed:
wrongusernameorpassword
16
Orayfailed:
wrongdomainname
17
Oraysucceeded
18..28
Reserve
29
3322succeeded
30
3322failed:
systemerror
31
3322failed:
wrongusernameorpassword
32
3322failed:
untrusteduser
33
3322failed:
wrongDomainNameFormregisteringsites
34
3322failed:
DomainNamedoesn'texist
35
3322failed:
Domainnamedoesn’tbelongtoyou
36
3322failed:
toomanyortoofewdomainnamerequest
37
3322failed:
domainnameispreventedbyabuse
38
3322failed:
servererror
39
3322failed:
Nocorrectresponsefromtheserver
ddns_host:
ddnshostname
oray_type:
OrayServiceType,0:
standard;1:
dedicated
upnp_status:
ThecurrentUPNPoperationstatusofthedevice
0
0operation
1
succeeded
2
Devicesystemerror
3
Networkcommunicationerror
4
thedialogwithUpnPerror
5
UpnPrefused,portconflict
get_camera_params.cgi
Description:
settingsforgettingthedeviceparameter
Authority:
guest
syntax:
/get_camera_params.cgi[?
user=&pwd=]
Return:
resolution:
8:
qvga;32:
vga
brightness:
0~255
contrast:
0~6
mode:
0:
50hz;1:
60hz;2:
outdoor
flip:
0:
original;1:
flipvertical;2:
MirrorHorizontally;3:
flipvertical+mirrorhorizontally;
decoder_control.cgi
Description:
decodercontrol
Authority:
operator
syntax:
/decoder_control.cgi?
command=[&onestep=&user=&pwd=&next_url=]
parameter:
onestep=1
command:
decodercontrolcommand
value
PTZ
0
up
1
Stopup
2
down
3
Stopdown
4
left
5
Stopleft
6
right
7
Stopright
25
Center
26
Updowncruise
27
Updowncruisestop
28
Leftrightcruise
29
Leftrightcruisestop
90
Leftup
91
Rightup
92
Leftdown
93
Rightdown
94
IoOpen(Alarmoutinterface)
95
IoClose(Alarmoutinterface)
camera_control.cgi
Description:
imagesensorparametercontrol
Authority:
operator
Syntax:
/camera_control.cgi?
param=&value=[&user=&pwd=&next_url=]
Parameter:
param:
parametertype
value:
param
value
0:
resolution
2:
qqvga
8:
qvga
32:
vga
1:
brightness
0~255
2:
contrast
0~6
3:
mode
0:
50hz
1:
60hz
2:
outdoor
5:
rotation
0:
original
1:
flipvertical
2:
horizontalmirrorimage
3:
flipvertical+horizontalmirrorimage
reboot.cgi
Description:
reboot
Authority:
adminstrator
Syntax:
/reboot.cgi[?
user=&pwd=&next_url=]
restore_factory.cgi
Description:
restorefactorydefault
Authority:
adminstrator
Syntax:
/restore_factory.cgi[?
user=&pwd=&next_url=]
get_params.cgi
Description:
getdeviceparameter
Authority:
adminstrator
Syntax:
/get_params.cgi[?
user=&pwd=]
Return:
Id
Deviceid
sys_ver
Firmwareversion
app_ver
Webpageversion
Alias
alias
Now
thesecondsitgoesfrom1970-1-10:
0:
0
Tz
thedifferentsecondsbetweenthetimeareaandstandardGMT
ntp_enable
0:
disablentp;1:
enable
ntp_svr
Ntpserver
user1_name
User1name
user1_pwd
User1password
user1_pri
User1Priority,0:
guest;1:
operator;2:
adminstrator
…
user8_name
User8name
user8_pwd
User8password
user8_pri
User8Priority
Ip
Ipaddress
Mask
mask
Gateway
gateway
Dns
Dnsserver
port
Port
wifi_enable
0:
disablewifi;1:
enable
wifi_ssid
Addwifissid
wifi_channel
Reserver
wifi_mode
Reserver
wifi_encrypt
0:
disableencrypt;1:
wepencrypt
wifi_authtype
wepverificationmode,0:
open;1:
share
wifi_keyformat
Wepkeyformat,0:
hexadecimalnumbers;1:
asciicharacter
wifi_defkey
Wepkeyselection
wifi_key1
Wepkey1
wifi_key2
Wepkey2
wifi_key3
Wepkey3
wifi_key4
Wepkey4
wifi_key1_bits
Wepkey1LEN,0:
64bits;1:
128bits
wifi_key2_bits
Wepkey2LEN,0:
64bits;1:
128bits
wifi_key3_bits
Wepkey3LEN,0:
64bits;1:
128bits
wifi_key4_bits
Wepkey4LEN,0:
64bits;1:
128bits
wifi_wpa_psk
wpapskkey
pppoe_enable
0:
disablepppoe;1:
enable
pppoe_user
Pppoeuser
pppoe_pwd
Pppoepassword
upnp_enable
0:
disableupnp;1:
enable
ddns_service
0:
disableddns
1:
Oray
2:
DynDns.org(dyndns)
3:
DynDns.org(statdns)
4:
DynDns.org(custom)
5:
Reserve
6:
Reserve
7:
Reserve
8:
3322(dyndns)
9:
3322(statdns)
ddns_user
Ddnsuser
ddns_pwd
Ddnspassword
ddns_host
Ddnshost
ddns_proxy_svr
ProxyServer(onlyforChinaMainlanddyndnsusers)
ddns_proxy_port
ProxyServerport
mail_svr
Mailserver
mail_port
Mailserverport
mail_user
Mailserveruser
mail_pwd
Mailserverpassword
mail_sender
Mailsender
mail_receiver1
Mailreceiver1
mail_receiver2
Mailreceiver2
mail_receiver3
Mailreceiver3
mail_receiver4
Mailreceiver4
mail_inet_ip
Emailinformwhenipaddresshasbeenchanged,0:
No;1:
Yes
ftp_svr
ftpserveraddress
ftp_port
ftpserverport
ftp_user
Ftpserveruser
ftp_pwd
ftpserverpassword
ftp_dir
ftpserverstoragedirectory
ftp_mode
0:
portmode;1:
pasvmode
ftp_upload_interval
Uploadpictureinterval(second),0:
disable
alarm_motion_armed
0:
disarming;1:
armed
alar