B series CGI protocol.docx
- 文档编号:11364795
- 上传时间:2023-05-31
- 格式:DOCX
- 页数:31
- 大小:24.78KB
B series CGI protocol.docx
《B series CGI protocol.docx》由会员分享,可在线阅读,更多相关《B series CGI protocol.docx(31页珍藏版)》请在冰点文库上搜索。
BseriesCGIprotocol
IPCameraCGIApplicationGuide
Index
ipcameracgiIntroduction3
check_user.cgi4
snapshot.cgi4
videostream.cgi5
videostream.asf5
get_status.cgi5
get_camera_params.cgi7
decoder_control.cgi7
camera_control.cgi8
reboot.cgi8
restore_factory.cgi8
get_params.cgi9
upgrade_firmware.cgi11
upgrade_htmls.cgi11
set_alias.cgi12
set_datetime.cgi12
set_users.cgi12
set_network.cgi13
set_wifi.cgi13
set_pppoe.cgi14
set_upnp.cgi14
set_ddns.cgi14
set_ftp.cgi15
set_mail.cgi15
set_alarm.cgi16
set_forbidden.cgi17
get_forbidden.cgi18
set_misc.cgi18
get_misc.cgi19
wifi_scan.cgi19
get_wifi_scan_result.cgi19
get_log.cgi20
test_mail.cgi21
test_ftp.cgi21
backup_params.cgi22
restore_params.cgi22
set_mac.cgi22
ipcameracgiIntroduction
TheCGIlistedhereisanipcamerainterfacebasedonhttpprotocol.Theclientapplication(itcouldbethewebbrowserpageorotherapplications)canbeprogrammedbythisCGI.
●Cgisecuritycertificate:
AlltheCGIlistedbelowneedsecuritycertificatewhenitisvisited.
Besides,differentCGIinterfacerequiresdifferentauthority,thereare3classes:
guest,operator,andadministrator.Andtheauthorityiscontrolledbytheusersetonthedevice.
Thespecificsafetycertificationmechanismsupports2ways:
httpprotocolbasiconeandaddtheusernameandpasswordintotheCGIparameter.
●ThemethodtovisitCGI:
amongallthehttpmethods,theCGIonlysupportsgetandpost.Andupgrade_firmware.cgiandupgrade_htmls.cgionlysupportpost,andotherCGIjustsupportsgetmethod.
Getexample:
Postexample
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
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- series CGI protocol