Foscam IPCamera CGI User Guide

Similar documents
IP Camera User Manual

1. Introduction Overview Product Information... 3

CAMERAS WI-FI IP 100 SERIES. Please read this manual thoroughly before use and keep it for future reference

IP Camera user manual

SunEyes V Series IP Camera P2P CMS user manual

Pro71600N3 NVR User Manual

USER MANUAL. Mac Version

Pro7804N1 NVR User Manual

NCMP85IP. Megapixel Cameras

CAMERAS IP START SERIES

HD IPCameras User's Mannual

Wifi/IP Camera Instructions. Chapter 1 Introduction

Pro7400H1 Hybrid DVR User Manual

IP CAMERA User Manual 695h, 755h, 795h

NVMS1000. User Manual

IPC Online Operation Manual

QRT-502. IE Operation Manual

CAMERAS IP 100 SERIES. Please read this manual thoroughly before use and keep it for future reference

SPY-DVR4HYB & SPY-DVR8HYB SPY-DVR4HYB2ND & SPY-DVR8HYB2ND

IE Operating Instruction Manual MODEL SE-NI104T

errors, or places that do not match the product. If you have any unsolved please contact our technical support department.

Dear users, the configuration for this camera is professional, so please read the user manual carefully before using the camera V1.

HIP2P Network Video Camera Client Terminal User Manual

Wireless Pan & Tilt Camera

Video Surveillance Management Software NVClient V5 User Manual

user manual Version /1

NVMS User Manual

Product and company names appearing in this document are trademarks of each respective company or organization.

NVMS User Manual. Version 2.1.0

NS15WG 1080P Web App User Manual

TENVIS Technology Co., Ltd. User Manual. For H.264 Cameras. Version 1.0.0

HooToo IP Camera User Manual(part two)

NVMS1000. User Manual

FISH-EYE IP CAMERAS EASY SERIES ART. IPFE071A-IPFE073A. Please read this manual thoroughly before use and keep it for future reference

M511E Pan/Tilt Day/Night IP Camera Firmware User Manual

NVR Equipment WEB Operation Guide ISSUE V1.1 DATE

IP Camera User Manual

User Manual. Contents 1 WELCOME Features Installation Requirements Software Installation Software Operation...

CMS USER S MANUAL VER:

NVMS User Manual

Day & Night 6MP 360 Panorama Dome IR IP Camera

Wireless Day / Night Cloud Camera TV-IP751WIC (v1.0r)

Error! Bookmark not defined.

User s Manual of DVR ULTIMAX. Remote Client Software V wersja 2.40

Statement If the user manual doesn t help you to solve the problem, please call our technology center for technical support. Notice 1. Installation En

Configuring and Managing the IP Camera

CMS USER S MANUAL VER:

More Security, More Convenience. IPClient Software Guider (CMS Guider) V1.2

Network Video Monitor Software

XI100DE-HDMI-4K HDMI 4K

SecuGuard. Basic 5.0. Version: xxx

IP WEB User Manual V2.0

LS VISION TECHNOLOGY CO.,LTD. Network Surveillance System Client Operating Instructions

A-45 Quick Setup Guide

SecuGuard. Basic 5.0. User s manual. Dec Version: 5.0.x

4K Ultra HD Auto Focus IR IP Bullet Camera

IP Camera. Mar 2012 V

User Manual. Model: FN7108E-B4-2T / FN7108E-B8-2T. Version: V1.0.2

IP Camera. Apr 2012 V

F312A IP Camera. Firmware User Manual

User Manual Model: FN3104W-B4

PROVISION-ISR. User Manual. All S Series IP Cameras I1-390IPS36 DI-390IPS36 I1-330IPS36 DI-330IPS36. All rights reserved Provision-ISR

Wireless N Day / Night Internet Camera TV-IP551WI (v1.0r)

User Manual. Model: FN3108XE-B4-1T / FN3108XE-B8-2T. Version: V1.2.3

Wanscam. HW series IP Camera PC Web User Manual

VMS-A1 Client Software. User Manual

IVS2000 video monitoring Instruction manual

Table of Contents Introduction... 1 IE Remote Access... 2 Remote Preview... 8 Remote Live Surveillance... 11

IE user manual V IE User manual V1.1.1

Configuring and Managing the IP Camera

SURVEILLANCE KIT USER MANUAL. All in One Series

Instruction Manual FLIR Network Camera Series

F510E BOX IP Camera. Firmware User Manual

HD 30M IR Range Fixed Dome IP Camera

Analog High Definition DVR. Stand alone digital video recorder. User Manual H.264 AHD DVR

DVR USER MANUAL AHD-DVR

Megapixel PoE Day / Night PTZ Internet Camera TV-IP672PI (V1.0R)

F Series Robot Model IP Camera V2.3 User Manual

CMS Video Monitor Platform User Manual. CMS3.0 User Manual 非常感谢您购买我公司的产品, 如果您有什么疑问或需要请随时联系我们

4CH MOBILE DVR OPERATING INSTRUCTIONS

Contents. Introduction Overview Range of Application Product Description Operation Environment...

Day & Night Full HD Dome IR IP Camera

ACTi D/E/B/I series. Firmware Release Notes. Version /07/18

STORM Video Management Software User s Manual

IS-BL800 User's Manual

GRAND IP VIDEO SERVER PRO. User s Manual INDEX

User Manual. HD Wireless PTZ Dome IP Camera. Model: FI9828P V2.2.4

VMS2.0 Client Software. User Manual

Network Video Recorder User Manual

Water-Proof Network Camera

32 CHANNEL SURVEILLANCE SYSTEM MANUAL

Network Camera User Manual

User Manual of P2P IP Cameras

eview Network Video Recorder User s Manual

Software Operations Admiral Line Cameras

User Manual. HD Wireless PTZ Dome IP Camera. (For Windows & Mac OS) Model:FI9828W

Day & Night 1080P HD Auto Focus Dome IP Camera

Siera CMS Panther v3.0

CMS Video Monitor Platform User Manual. bezpeka-shop.com. CMS3.0 User Manual 非常感谢您购买我公司的产品, 如果您有什么疑问或需要请随时联系我们 - 1 -

VIH Series IP Camera. User s Manual V_

Transcription:

Foscam IPCamera CGI User Guide Copyright@ Shenzhen Foscam Intelligent Technology Limited 1

Contents 1. General description...12 2. All Platform CGI...13 AV...13 getimagesetting...13 setbrightness... 13 setcontrast...13 sethue...14 setsaturation...14 setsharpness... 14 setdenoiselevel (not use)...14 resetimagesetting...15 getmirrorandflipsetting... 15 mirrorvideo... 15 flipvideo...16 getratio... 16 setratio...16 geth264frmrefmode... 17 seth264frmrefmode...17 getschedulerecordstreamchn... 17 setschedulerecordstreamchn...18 setpwrfreq...18 getvideostream...18 setvideostream... 19 getsubvideostream... 19 setsubvideostream...20 getmainvideostreamtype...20 getsubvideostreamtype...20 setmainvideostreamtype...21 setsubstreamformat... 21 GetMJStream...21 getosdsetting...22 setosdsetting... 22 getosdmaskarea...23 setosdmaskarea... 23 getosdmask... 24 setosdmask...24 getmotiondetectconfig... 24 setmotiondetectconfig...25 setlocalalarmrecordconfig... 27 getlocalalarmrecordconfig...27 getsnapconfig...28 setsnapconfig... 28 getschedulesnapconfig... 29 Copyright@ Shenzhen Foscam Intelligent Technology Limited 2

setschedulesnapconfig... 29 snappicture... 30 snappicture2... 30 getrecordlist... 30 getrecordlist2... 31 reloadrecordindex... 31 getalarmrecordconfig...32 setalarmrecordconfig... 32 getrecordpath... 32 setrecordpath...33 getschedulerecordconfig... 33 setschedulerecordconfig...34 setioalarmconfig...35 getioalarmconfig... 35 clearioalarmoutput... 36 setaudioalarmconfig...36 getaudioalarmconfig... 37 setpcaudioalarmcfg... 37 getpcaudioalarmcfg...37 getmultidevlist... 38 getmultidevdetailinfo...38 addmultidev...38 delmultidev... 39 setdeframelevel... 39 getdeframelevel...39 User account...40 addaccount...40 delaccount... 40 getpassword...41 changepassword... 41 changeusername... 41 changeusernameandpwdtogether...42 login...42 logout...43 getsessionlist... 43 getuserlist... 43 usrbeatheart...44 PTZ Control...44 ptzmoveup...44 ptzmovedown...44 ptzmoveleft...45 ptzmoveright...45 ptzmovetopleft...45 ptzmovetopright...46 Copyright@ Shenzhen Foscam Intelligent Technology Limited 3

ptzmovebottomleft...46 ptzmovebottomright...46 ptzstoprun...46 ptzreset... 47 getptzspeed... 47 setptzspeed...47 getptzpresetpointlist... 48 ptzaddpresetpoint...48 ptzdeletepresetpoint... 48 ptzgotopresetpoint...49 ptzgetcruisemaplist... 49 ptzgetcruisemapinfo...49 ptzsetcruisemap... 50 ptzdelcruisemap... 50 ptzstartcruise...50 ptzstopcruise... 51 setcruisetime...51 getcruisetime... 51 setcruisetimecustomed... 51 getcruisetimecustomed...52 setcruiseloopcnt...52 getcruiseloopcnt... 52 setcruisectrlmode... 53 getcruisectrlmode...53 setcruiseprepointlingertime...53 getcruiseprepointlingertime...53 zoomin...54 zoomout... 54 zoomstop...54 getzoomspeed...55 setzoomspeed... 55 setptzselftestmode...55 getptzselftestmode... 56 setptzprepointforselftest...56 getptzprepointforselftest... 56 set485info...57 get485info... 57 Network...58 getipinfo...58 setipinfo... 58 refreshwifilist... 59 getwifilist...59 setwifisetting...59 getwificonfig...61 Copyright@ Shenzhen Foscam Intelligent Technology Limited 4

getportinfo...62 setportinfo... 62 getupnpconfig... 62 setupnpconfig...63 getddnsconfig...63 setddnsconfig... 64 setftpconfig...64 getftpconfig...65 testftpserver...65 getsmtpconfig... 65 setsmtpconfig...66 smtptest...67 setp2penable...67 getp2penable... 68 setp2pport... 68 getp2pport...68 getp2pinfo...68 getpppoeconfig...69 setpppoeconfig... 69 Device manage... 69 setsystemtime... 69 getsystemtime...70 openinfraled... 71 closeinfraled...71 getinfraledconfig...72 setinfraledconfig... 72 getscheduleinfraledconfig...72 setscheduleinfraledconfig... 73 getdevstate... 73 getdevname...74 setdevname... 74 getdevinfo...75 getproductmodel... 75 getproductmodelname... 76 getproductlanguage...76 getproductsensortype...76 getproductwifitype... 76 getproductsdflag... 77 getproductoutdoorflag...77 getproductptflag... 77 getproductzoomflag...78 getproductrs485flag... 78 getproductioalarmflag...78 getproductonvifflag...78 Copyright@ Shenzhen Foscam Intelligent Technology Limited 5

getproductp2pflag... 79 getproductwpsflag...79 getproductaudioflag... 79 getproducttalkflag... 80 getproductappver...80 getproductallinfo...80 getgeneratepubkey...81 toolrestoretofactory...81 System... 82 rebootsystem...82 restoretofactorysetting... 82 exportconfig...82 ImportConfig...83 FwUpgrade...83 removepatch...84 MISC... 84 getfirewallconfig... 84 setfirewallconfig...84 getlog...85 3. FosBaby+FosBaby_P1+Fosbaby_Baidu add cgi... 85 getaudiovolume...85 setaudiovolume...85 getwifimode... 86 gettemperaturealarmconfig... 86 settemperaturealarmconfig...87 gettemperaturestate...87 Music...88 setmusicdefaultlistrefresh...88 getmusiclistsname...88 getmusicsnameoflist... 88 addmusiclist...89 delmusiclist...90 setmusicplaymode...91 getmusicplaymode... 91 setmusicplaynext... 91 setmusicplaypre...92 getmusicplaystate...92 setmusicplaystart...93 setmusicplaystop...93 setmusicdormanttime...93 getmusicdormanttime... 94 Cloud... 94 getcloudconfig...94 setcloudconfig... 95 Copyright@ Shenzhen Foscam Intelligent Technology Limited 6

selectcloudserver... 95 getcloudtoken... 95 getcloudquota... 96 testcloudserver...96 getpushconfig... 97 setpushconfig... 97 testpushserver... 97 pushoperate...98 SetOnlineUpgrade...98 4. FosBaby_Baidu CGI(Only)... 99 getbaidurtmp...99 setbaidurtmp...100 GetOnlineUpgradeState... 101 5. FosBaby_P1 CGI(Only)...101 gethumidityalarmconfig... 101 sethumidityalarmconfig...102 gethumiditystate...103 setnightlightstate...103 getnightlightstate... 103 setonekeyalarmconfig...103 getonekeyalarmconfig... 104 gettimingrebootconfig... 104 SetTimingRebootConfig... 105 gethumidityalarmconfig... 错误! 未定义书签 sethumidityalarmconfig... 错误! 未定义书签 gethumiditystate... 错误! 未定义书签 6. 3518E+Fosbaby+Fosbaby_P1+Fosbaby_Baidu...105 getsoftapconfig... 105 setsoftapconfig...106 changenetmode... 106 7. Fosbaby_P1+3518E... 107 setledenablestate...109 getledenablestate...109 8. Amba S2L(Only)...110 gethdrmode...110 sethdrmode...110 getwdrmode...110 setwdrmode... 111 getvideostream...111 setvideostream... 111 getsubvideostream...112 setsubvideostream...112 getmotiondetectconfig1...113 setmotiondetectconfig1... 114 Copyright@ Shenzhen Foscam Intelligent Technology Limited 7

History Ver Auth Edit date Changes 1.0.0 XiaoJinsheng 2012-11-21 V1.0.0 1.0.1 Houzhen 2012-12-09 Add the following CGI command to set PT startup position: 1) setptzselftestmode 2) getptzselftestmode 3) setptzprepointforselftest 4) getptzprepointforselftest 1.0.2 XiaoJinsheng 2013-01-29 1. Add a snap CGI(snapPicture2) which retrun jpeg image data directly but a image url 2. Add MotionJpeg stream support 1.0.3 Houzhen 2013-6-5 Check and Modify CGI command document 1.0.4 Limaike 2013-6-8 CGI command check 1.0.5 Houzhen 2013-9-25 1.Add note for GetMJStream, defects of Firefox; 2.Modify Command: setcontrast mirrorvideo flipvideo login setsnapconfig setptzspeed setinfraledconfig setsubstreamformat setportinfo getportinfo; 3.Add command: getlocalalarmrecordconfig ; setlocalalarmrecordconfig; getp2penable ; setp2penable ; getp2pport ; setp2pport ; setosdmask ; getosdmask ; getschedulesnapconfig ; setschedulesnapconfig; 1.0.6 Houzhen 2013-12-12 1.Add command: -changeusernameandpwdtogether; -getpcaudioalarmcfg; -setpcaudioalarmcfg; -seth264frmrefmode; -geth264frmrefmode; -setcruisetime; -getcruisetime; Copyright@ Shenzhen Foscam Intelligent Technology Limited 8

-setsubvideostream; -getsubvideostream; -setcruisetimecustomed; -getcruisetimecustomed; -setcruiseloopcnt; -getcruiseloopcnt; -setcruisectrlmode; -getcruisectrlmode; -setcruiseprepointlingertime; -getcruiseprepointlingertime; -getschedulerecordstreamchn; -setschedulerecordstreamchn; -getproductmodel; -getproductmodelname; -getproductlanguage; -getproductsensortype; -getproductwifitype; -getproductsdflag; -getproductoutdoorflag; -getproductptflag; -getproductzoomflag; -getproductrs485flag; -getproductioalarmflag; -getproductonvifflag; -getproductp2pflag; -getproductwpsflag; -getproductaudioflag; -getproducttalkflag; -getproductappver; -getproductallinfo; -getgeneratepubkey; -toolresettofactory; -setscheduleinfraledconfig; -getscheduleinfraledconfig; 2.Modify Login error code-5-7; 1.0.7 Houzhen 2013-12-14 Modify Command: 1.The usage of command-setsubstreamformat, getsnapconfig, setsnapconfig. Copyright@ Shenzhen Foscam Intelligent Technology Limited 9

2.The example and description of command-setmotiondetectconfig, setschedulesnapconfig, setioalarmconfig 1.0.8 Houzhen 2014-1-17 1.Add commmad: getrecordlist2,reloadrecordindex 1.0.9 Houzhen 2014-3-15 1.Add command: getratio, setratio 2.Modify command: 1) The example of command: setcruiseprepointlingertime, getcruiseprepointlingertime. 2) The return discription of command: getproductwpsflag. 3)The of command:smtptest. 1.0.10 Houzhen 2014-4-2 1.Add commmad:getpppoeconfig, setpppoeconfig,getrecordpath,getschedulere cordconfig,getp2pinfo; 2.Modify the priviage of command for security: changepassword,changeusername,changeuser NameAndPwdTogether,getSessionList,getUser List,getImageSetting,getMirrorAndFlipSetting, getmotiondetectconfig,getschedulesnapconfi g,getvideostream,getsubvideostreampa ram,getmainvideostreamtype,getsubvideostr eamtype,geth264frmrefmode,getsnapconfig,getosdmaskarea,getosdsetting,getosdmas k,getptzspeed,get485info,getptzpresetpoint List,ptzGetCruiseMapList,ptzGetCruiseMapInf o,getptzselftestmode,getptzprepointforself Test,getCruiseTime,getCruiseTimeCustomed,g etcruiseloopcnt,getcruisectrlmode,getcruise PrePointLingerTime,getZoomSpeed,getSMTP Config,getIPInfo,getPortInfo,getUPnPConfig,g etdevinfo,getdevname,getfirewallconfig,gets ystemtime,getftpconfig,testftpserver,getdd NSConfig,getLog,getRecordList,getRecordList 2,reloadRecordindex,getScheduleRecordStrea mchn,getalarmrecordconfig,getlocalalarmr Copyright@ Shenzhen Foscam Intelligent Technology Limited 10

ecordconfig,getpcaudioalarmcfg,getioalar mconfig,getdevstate,getinfraledconfig,getsc heduleinfraledconfig,getp2penable,getp2ppo rt 1.0.11 Houzhen 2014-6-27 1.Add command: getdeframelevel, setdeframelevel 1.0.12 Houzhen 2014-7-9 1.Modify: 1) The parameter description of command setcontrast. 1.0.13 PengMengjia 2014-11-24 integrate the CGI on all platforms and add new command 1.0.14 LeeJunliang 2015-5-10 1.Del command: 1)setMusicPlayPath,getMusicPlayPath 2.Modify command: 1)getMotionDetectConfig,setMotionDetectCon fig,setioalarmconfig,getioalarmconfig,gette mperaturealarmconfig.settemperaturealarmc onfig,gethumidityalarmconfig,sethumidityal armconfig,addmusiclist,delmusiclist 1.0.15 ZhangWei 2015-6-9 Add command of amba platform: gethdrmode,sethdrmode,getwdrmode,setwdr Mode,getVideoStream,setVideoStreamPa ram,getsubvideostream,setsubstreampa ram,getmotiondetectconfig1,setmotiondetecc onfig1 1.0.16 PengMengjia 2015-10-12 Add command: setfoscamrtmp;getfoscamrtmp;setsnaptoftp FilenameConfig;getSnapToFtpFilenameConfig; getcloudstreamleve;setcloudstreamlevel This document is for latest version.if you use this document for develop, your camera s version must be latest. Copyright@ Shenzhen Foscam Intelligent Technology Limited 11

1. General description Our device can only support authentication by pass user name or password attached at CGI request string currentlly. For example: https://xxxxxx.myfoscam.org:443/cgi-bin/cgiproxy.fcgi&usr=&pwd=123&cmd= ABC We only support GET and POST method. Only importconfig and fwupgrade can support POST method. The cgi request string must be encode in url format. URL encode rule: The following chars will not be encoded: [A~Z] [a~z] [0~9] + @ * / The other chars will be encoded into hex format. For example: https://xxxxxx.myfoscam.org:443/cgi-bin/cgiproxy.fcgi?usr=&pwd=&cmd=getipinfo will be encode to: https://xxxxxx.myfoscam.org:443/cgi-bin/cgiproxy.fcgi?usr%3d%26pwd%3d%26cmd%3dgetipinfo cgi execute result 1) We orgnize the cgi execute result as xml format, for example: <CGI_Result> <result>0</result> <isdhcp>1</isdhcp> <ip>192.168.1.8</ip> <gate>0.0.0.0</gate> <mask>255.255.255.0</mask> <dns1>0.0.0.0</dns1> <dns2>0.0.0.0</dns2> </CGI_Result> <result></result> means the common execute result value mean 0 Success -1 CGI request string format error -2 Username or password error -3 Access deny -4 CGI execute fail -5 Timeout -6 Reserve -7 Unknown error -8 Reserve Copyright@ Shenzhen Foscam Intelligent Technology Limited 12

2. All Platform CGI AV getimagesetting Get color attribute of video /cgi-bin/cgiproxy.fcgi?cmd=getimagesetting brightness 0~100 contrast 0~100 hue 0~100 saturation 0~100 sharpness 0~100 denoiselevel Not use /cgi-bin/cgiproxy.fcgi?cmd=getimagesetting&usr=&pwd= setbrightness Set brightness of video /cgi-bin/cgiproxy.fcgi?cmd=setbrightness brightness 0~100 /cgi-bin/cgiproxy.fcgi?cmd=setbrightness&brightness=50&usr=&pwd= setcontrast Set contrast of video /cgi-bin/cgiproxy.fcgi?cmd=setcontrast constrast 0~100 Copyright@ Shenzhen Foscam Intelligent Technology Limited 13

/cgi-bin/cgiproxy.fcgi?cmd=setcontrast&constrast=50&usr=&pwd= sethue Set hue of video /cgi-bin/cgiproxy.fcgi?cmd=sethue hue 0~100 /cgi-bin/cgiproxy.fcgi?cmd=sethue&hue=50&usr=&pwd= setsaturation Set saturation of video /cgi-bin/cgiproxy.fcgi?cmd=setsaturation saturation 0~100 /cgi-bin/cgiproxy.fcgi?cmd=setsaturation&saturation=50&usr=&pwd= setsharpness Set sharpness of video /cgi-bin/cgiproxy.fcgi?cmd=setsharpness sharpness 0~100 /cgi-bin/cgiproxy.fcgi?cmd=setsharpness&sharpness=50&usr=&pwd= setdenoiselevel (not use) Set DenoiseLevel of video Copyright@ Shenzhen Foscam Intelligent Technology Limited 14

/cgi-bin/cgiproxy.fcgi?cmd=setsharpness DenoiseLevel 0~100 /cgi-bin/cgiproxy.fcgi?cmd=setdenoiselevel&level=50&usr=&pwd= resetimagesetting Reset color parameters to default value /cgi-bin/cgiproxy.fcgi?cmd=resetimagesetting /cgi-bin/cgiproxy.fcgi?cmd=resetimagesetting&usr=&pwd= getmirrorandflipsetting Get mirror and flip attribute of video /cgi-bin/cgiproxy.fcgi?cmd=getmirrorandflipsetting ismirror 0 Not mirred 1 Mirred isflip 0 Not filpped 1 Flipped /cgi-bin/cgiproxy.fcgi?cmd=getmirrorandflipsetting&usr=&pwd= mirrorvideo Mirror video /cgi-bin/cgiproxy.fcgi?cmd=mirrorvideo ismirror 0 Not mirror Copyright@ Shenzhen Foscam Intelligent Technology Limited 15

1 Mirror /cgi-bin/cgiproxy.fcgi?cmd=mirrorvideo&ismirror=1&usr=&pwd= flipvideo Flip video /cgi-bin/cgiproxy.fcgi?cmd=flipvideo isflip 0 Not flip 1 Flip /cgi-bin/cgiproxy.fcgi?cmd=flipvideo&isflip=1&usr=&pwd= getratio Get value for image distortion correction /cgi-bin/cgiproxy.fcgi?cmd=getratio ratio Three ranks for image distortion correction High:150. Middle:210. Low:430. /cgi-bin/cgiproxy.fcgi?cmd=getratio&usr=&pwd= setratio Set value for image distortion correction /cgi-bin/cgiproxy.fcgi?cmd=setratio ratio 1. 0-511,value for image distortion correction. 2. Three ranks, Copyright@ Shenzhen Foscam Intelligent Technology Limited 16

High:0-150. Middle:151-429. Low:430-511. 3. Default, Middle. /cgi-bin/cgiproxy.fcgi?cmd=setratio&ratio=150&usr=&pwd= geth264frmrefmode Get frame shipping reference mode of H264 encode stream /cgi-bin/cgiproxy.fcgi?cmd=geth264frmrefmode mode 0 Normal reference mode 1 Two frames are separated by four skipping frames /cgi-bin/cgiproxy.fcgi?cmd=geth264frmrefmode&usr=&pwd= seth264frmrefmode Set frame shipping reference mode of H264 encode stream /cgi-bin/cgiproxy.fcgi?cmd=seth264frmrefmode mode 0 Normal reference mode 1 Two frames are separated by four skipping frames /cgi-bin/cgiproxy.fcgi?cmd=seth264frmrefmode&mode=0&usr=&pwd= getschedulerecordstreamchn Get stream channel for schedule record Copyright@ Shenzhen Foscam Intelligent Technology Limited 17

/cgi-bin/cgiproxy.fcgi?cmd=getschedulerecordstreamchn chn 0 main stream 1 sub stream /cgi-bin/cgiproxy.fcgi?cmd=getschedulerecordstreamchn&usr=&pwd= setschedulerecordstreamchn Set stream channel for schedule record /cgi-bin/cgiproxy.fcgi?cmd=setschedulerecordstreamchn chn 0 main stream 1 sub stream /cgi-bin/cgiproxy.fcgi?cmd=setschedulerecordstreamchn&chn=0&usr= &pwd= setpwrfreq Set power freq of sensor /cgi-bin/cgiproxy.fcgi?cmd=setpwrfreq freq 0 60HZ 1 50HZ 2 outdoor mode /cgi-bin/cgiproxy.fcgi?cmd=setpwrfreq&freq=0&usr=&pwd= getvideostream Get video stream param /cgi-bin/cgiproxy.fcgi?cmd=getvideostream Copyright@ Shenzhen Foscam Intelligent Technology Limited 18

resolutionn Resolution of stream type N bitraten Bit rate of stream type N (20480~2097152) frameraten GOPN Frame rate of stream type N P frames between I frame of stream type N isvbrn Change bit rate of stream 1-yes N means streamtype [0~3] 0-nosetSubVideoStream /cgi-bin/cgiproxy.fcgi?cmd=getvideostream&usr=&pwd= setvideostream Set the video stream param of stream N /cgi-bin/cgiproxy.fcgi?cmd=setvideostream streamtype 0~3 resolution Resolution of stream type N bitrate Bit rate of stream type N (20480~2097152) framerate GOP isvbr Frame rate of stream type N P frames between I frame of stream type N The suggest value is: X * framerate Change bit rate of stream type 1-Yes 0-No /cgi-bin/cgiproxy.fcgi?cmd=setvideostream&streamtype=0&resolution= 0&bitRate=2097152&frameRate=30&GOP=30&isVBR=0&usr=&pwd= getsubvideostream Get sub video stream param visitor /cgi-bin/cgiproxy.fcgi?cmd=getsubvideostream resolutionn Resolution of stream type N bitraten Bit rate of stream type N (20480~2097152) frameraten GOPN Frame rate of stream type N P frames between I frame of stream type N Copyright@ Shenzhen Foscam Intelligent Technology Limited 19

isvbrn Not in use currentlly N means streamtype [0~3] /cgi-bin/cgiproxy.fcgi?cmd=getsubvideostream&usr=&pwd= setsubvideostream Set the sub video stream param of stream N /cgi-bin/cgiproxy.fcgi?cmd=setsubvideostream streamtype 0~3 resolution Resolution of stream type N bitrate Bit rate of stream type N (20480~2097152) framerate Frame rate of stream type N GOP P frames between I frame of stream type N The suggest value is: X * framerate isvbr Not in use currentlly /cgi-bin/cgiproxy.fcgi?cmd=setsubvideostream&streamtype=0&resoluti on=0&bitrate=2097152&framerate=30&gop=30&isvbr=0&usr=&pwd= getmainvideostreamtype Get the stream type of main stream /cgi-bin/cgiproxy.fcgi?cmd=getmainvideostreamtype streamtype The stream type 0~3 /cgi-bin/cgiproxy.fcgi?cmd=getmainvideostreamtype&usr=&pwd= getsubvideostreamtype Get the stream type of sub stream /cgi-bin/cgiproxy.fcgi?cmd=getsubvideostreamtype Copyright@ Shenzhen Foscam Intelligent Technology Limited 20

streamtype The stream type 0~3 /cgi-bin/cgiproxy.fcgi?cmd=getsubvideostreamtype&usr=&pwd= setmainvideostreamtype Set the stream type of main stream /cgi-bin/cgiproxy.fcgi?cmd=setmainvideostreamtype streamtype The stream type 0~3 /cgi-bin/cgiproxy.fcgi?cmd=setmainvideostreamtype&streamtype=0&usr=ad min&pwd= setsubstreamformat Set the stream format of sub stream /cgi-bin/cgiproxy.fcgi?cmd=setsubstreamformat format 0 H264 1 MotionJpeg Our device can only support 2 streams:main stream for PC access and Sub stream for mobile access, but someone need a MJ stream to embed their camera into a webpage, in this case, we should set sub stream format to Motion Jpeg, and then you can get MJ stream by command: /cgi-bin/cgistream.cgi?cmd=getmjstream, but when you login as a sub stream user, the stream data will be same as main stream. /cgi-bin/cgiproxy.fcgi?cmd=setsubstreamformat&format=0&usr=&pwd= GetMJStream Get motion jpeg stream visitor /cgi-bin/cgistream.cgi?cmd=getmjstream Copyright@ Shenzhen Foscam Intelligent Technology Limited 21

Motion jpeg stream data 1) Motion jpeg stream data is returned from https server by a serverpush mode 2) MJ stream is VGA resolution @ 15fps 3) For some version of Firefox browse, the Firefox will crash when use GetMJStream CGI to get mjstream long time. This problem is due to the browse has some defects, it can not parse data correctly and directly. In order to fix this problem, we should as follows: A. Create a.txt empty document, such as MJ.txt. B.Input the content into you.txt document, as follows: <html> <body> <img src="https://xxxxxx.myfoscam.org:443/cgi-bin/cgistream.cgi?cmd=getmjstream &usr=&pwd="/> </body> </html> : please change the ip\port\usr\pwd to youself; C. Rename your.txt to.html, such as MJ.html. D. Open you r.html by Firefox, and enjoy your MJStream-video; /cgi-bin/cgistream.cgi?cmd=getmjstream&usr=&pwd= getosdsetting Get OSD config /cgi-bin/cgiproxy.fcgi?cmd=getosdsetting isenabletimestamp Time stamp will display on screen or not isenabledevname Camera name will display on screen or not disppos OSD display position, currently can only be 0 isenableosdmask Is OSD mask effective /cgi-bin/cgiproxy.fcgi?cmd=getosdsetting&usr=&pwd= setosdsetting Set OSD config Copyright@ Shenzhen Foscam Intelligent Technology Limited 22

/cgi-bin/cgiproxy.fcgi?cmd=setosdsetting isenabletimestamp Time stamp will display on screen or not isenabledevname Camera name will display on screen or not disppos OSD display position, currently can only be 0 /cgi-bin/cgiproxy.fcgi?cmd=setosdsetting&isenabletimestamp=1&isenabled evname=1&disppos=0&isenableosdmask=0&usr=&pwd= getosdmaskarea Get OSD mask area info /cgi-bin/cgiproxy.fcgi?cmd=getosdmaskarea x1_n The top left X position of mask N y1_n The top left Y position of mask N x2_n The bottom right X position of mask N y2_n The bottom right Y position of mask N Our device can only support 4 mask areas /cgi-bin/cgiproxy.fcgi?cmd=getosdmaskarea&usr=&pwd= setosdmaskarea Set OSD mask area info /cgi-bin/cgiproxy.fcgi?cmd=setosdmaskarea param x1_n The top left X position of mask N y1_n The top left Y position of mask N x2_n The bottom right X position of mask N y2_n The bottom right Y position of mask N Resturn Our device can only support 4 mask areas /cgi-bin/cgiproxy.fcgi?cmd=setosdmaskarea&x1_0=100&y1_0=100&x2_0=20 0&y2_0=200&x1_1=0&y1_1=0&x2_1=0&y2_1=0&x1_2=0&y1_2=0&x2_2=0&y 2_2=0&x1_3=0&y1_3=0&x2_3=0&y2_3=0&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 23

getosdmask Get OSD mask status /cgi-bin/cgiproxy.fcgi?cmd=getosdmask isenabletimestamp Time stamp will display on screen or not isenabledevname Camera name will display on screen or not disppos OSD display position, currently can only be 0 isenableosdmask Is OSD mask effective /cgi-bin/cgiproxy.fcgi?cmd=getosdmask&usr=&pwd= setosdmask Set OSD mask status /cgi-bin/cgiproxy.fcgi?cmd=setosdmask isenableosdmask 0-Disable, 1-Enable /cgi-bin/cgiproxy.fcgi?cmd=setosdmask&isenableosdmask=1&usr=&p wd= getmotiondetectconfig Get motion detect config /cgi-bin/cgiproxy.fcgi?cmd=getmotiondetectconfig isenable Is enable motion detect alarm linkage Motion alarm linkage bit0:ring ( bit3 bit2 bit1 bit0 ) bit1:send mail bit2:snap picture bit3:record snapinterval The interval time to snap picture again sensitivity Motion detect 0 : Low Copyright@ Shenzhen Foscam Intelligent Technology Limited 24

sensitivity 1: Normal 2: High 3: Lower triggerinterval ismovalarmenable ispiralarmenable schedulen arean 4: Lowest The time of which motion detect alaram can trigger again when a motion detection has happened.p.s.the true value of triggerinterval time is the value of the cgi get add 5s. Is enable motion alarm detect Is enable Passive Infrared alarm detect The motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow The area info of row N For detail, see *2 bellow Video region is divided into 10*10 sub areasideo region is divided into 10*10 sub areas The min unit of schedule is half an hour, schedulen value range 2 N -1(N[0-48]).areaN value 2 N -1(N[0-10]) /cgi-bin/cgiproxy.fcgi?cmd=getmotiondetectconfig&usr=&pwd= setmotiondetectconfig Set motion detect config /cgi-bin/cgiproxy.fcgi?cmd=setmotiondetectconfig isenable Is enable motion detect alarm linkage Motion alarm linkage ( bit3 bit2 bit1 bit0 ) bit0:ring bit1:send mail bit2:snap picture snapinterval bit3:record The interval time to snap picture again sensitivity Motion detect sensitivity 0 : Low 1: Normal 2: High 3: Lower 4: Lowest Copyright@ Shenzhen Foscam Intelligent Technology Limited 25

triggerinterval ismovalarmenable 0 Disable The time of which motion detect alaram can trigger again when a motion detection has happened.p.s.the true value of triggerinterval time is the value of the cgi set add 5s. 1 Enable ispiralarmenable 0 Disable schedulen arean 1 Enable The motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow The area info of row N For detail, see *2 bellow Video region is divided into 10*10 sub areasideo region is divided into 10*10 sub areas The min unit of schedule is half an hour, schedulen value range 2 N -1(N[0-48]).areaN value 2 N -1(N[0-10]) /cgi-bin/cgiproxy.fcgi?cmd=setmotiondetectconfig&isenable=1&linkage=16&s napinterval=2&sensitivity=1&triggerinterval=5&ismovalarmenable=1&ispirala rmenable=1&schedule0=1023&schedule1=1023&schedule2=1023&schedule3 =1023&schedule4=1023&schedule5=1023&schedule6=1023&area0=1023&are a1=1023&area2=1023&area3=1023&area4=1023&area5=1023&area6=1023& area7=1023&area7=1023&area8=1023&area9=1023&usr=&pwd= *1 schedule bitmap 0 1 2 3 4 5 6 7 Monday Tuesday Wednesday Thursday Tuesday Wednesday Friday Saturday Sunday Copyright@ Shenzhen Foscam Intelligent Technology Limited 26

40 41 42 43 44 45 46 47 Foscam IPCamera CGI User Guide Each grid of a row presents half of an hour of one day. For example, 40 presents 20:00 ~20:30. The bit 40 set to 1 means the motion detection is effective between 20:00 to 20:30 *2 area bitmap bit0 bit1 bit2 bit3 bit4 bit5 bit6 bit7 bit8 bit9 area0 area1 area2 area3 area4 area5 area6 area7 area8 area9 The video region is divided into 10*10 sub areas, bit0 above present the first area, when this bit is set to 1, it means motion detection is effective on this area. setlocalalarmrecordconfig Set local alarm-record config /cgi-bin/cgiproxy.fcgi?cmd=setlocalalarmrecordconfig isenablelocalalar mrecord localalarmrecords ecs 0 Disable 1 Enable Recording time /cgi-bin/cgiproxy.fcgi?cmd=setlocalalarmrecordconfig&isenablelocalalarmr ecord=1&localalarmrecordsecs=30&usr=&pwd= getlocalalarmrecordconfig Get local alarm-record config /cgi-bin/cgiproxy.fcgi?cmd=getlocalalarmrecordconfig Copyright@ Shenzhen Foscam Intelligent Technology Limited 27

isenablelocalalar mrecord localalarmrecords ecs 0 Disable 1 Enable Recording time /cgi-bin/cgiproxy.fcgi?cmd=getlocalalarmrecordconfig&usr=&pwd= getsnapconfig Get snap config /cgi-bin/cgiproxy.fcgi?cmd=getsnapconfig snappicquality 0 Low quality 1 Normal quality 2 High quality savelocation 0 Save to sd card 1 Not in use now 2 Upload to FTP /cgi-bin/cgiproxy.fcgi?cmd=getsnapconfig&usr=&pwd= setsnapconfig Set snap config /cgi-bin/cgiproxy.fcgi?cmd=setsnapconfig snapquality 0 Low quality 1 Normal quality 2 High quality savelocation 0 Save to sd card 1 Not in use now 2 Upload to FTP /cgi-bin/cgiproxy.fcgi?cmd=setsnapconfig&snapquality=1&savelocation=2& usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 28

getschedulesnapconfig Get schedule snap config /cgi-bin/cgiproxy.fcgi?cmd=getschedulesnapconfig isenable Is enable motion detect alarm snapinterval schedulen The interval time to snap picture again The motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow The min unit of schedule is half an hour, schedulen value range 2 N -1(N[0-48]) /cgi-bin/cgiproxy.fcgi?cmd=getschedulesnapconfig&usr=&pwd= setschedulesnapconfig Set schedule snap config /cgi-bin/cgiproxy.fcgi?cmd=setschedulesnapconfig isenable Is enable snap snapinterval schedulen The interval time to snap picture again The motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow The min unit of schedule is half an hour, schedulen value range 2 N -1(N[0-48]) /cgi-bin/cgiproxy.fcgi?cmd=setschedulesnapconfig&isenable=1&snapinterva l=2&schedule0=1023&schedule1=1023&schedule2=1023&schedule3=1023&sc hedule4=1023&schedule5=1023&schedule6=1023&usr=&pwd= *1 schedule bitmap 0 1 2 3 4 5 6 7 Monday Tuesday Wednesday Thursday Copyright@ Shenzhen Foscam Intelligent Technology Limited 29

40 41 42 43 44 45 46 47 Foscam IPCamera CGI User Guide Tuesday Wednesday Friday Saturday Sunday Each grid of a row presents half of an hour of one day. For example, 40 presents 20:00 ~20:30. The bit 40 set to 1 means the snap is effective between 20:00 to 20:30 snappicture Manual snap picture visitor /cgi-bin/cgiproxy.fcgi?cmd=snappicture We will return a html script directly: <html><body><img src="../snappic/20121121-215939.jpg"/></body></html> Picture resolution is the same as main stream resolutionnappicture /cgi-bin/cgiproxy.fcgi?cmd=snappicture&usr=&pwd= snappicture2 Manual snap picture visitor /cgi-bin/cgiproxy.fcgi?cmd=snappicture2 Jpeg image data This command will return jpeg image data directly /cgi-bin/cgiproxy.fcgi?cmd=snappicture2&usr=&pwd= getrecordlist Get record list /cgi-bin/cgiproxy.fcgi?cmd=getrecordlist recordpath Record path starttime Start time for research Copyright@ Shenzhen Foscam Intelligent Technology Limited 30

endtime End time for research recordtype Recort type startno Start no totalcnt Total record count curcnt Current record count recordn N(0-9), Record information /cgi-bin/cgiproxy.fcgi?cmd=getrecordlist&usr=&pwd= getrecordlist2 Get record list /cgi-bin/cgiproxy.fcgi?cmd=getrecordlist2 recordpath Record path starttime Start time for research endtime End time for research recordtype Recort type startno Start no totalcnt Total record count curcnt Current record count recordn N(0-9), Record information /cgi-bin/cgiproxy.fcgi?cmd=getrecordlist2&usr=&pwd= reloadrecordindex Synchronization of record index for Play /cgi-bin/cgiproxy.fcgi?cmd=reloadrecordindex /cgi-bin/cgiproxy.fcgi?cmd=reloadrecordindex&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 31

getalarmrecordconfig Get alarm record config /cgi-bin/cgiproxy.fcgi?cmd=getalarmrecordconfig isenableprerecord Preview record state prerecordsecs Preview record time alarmrecordsecs Alarm record time /cgi-bin/cgiproxy.fcgi?cmd=getalarmrecordconfig&usr=&pwd= setalarmrecordconfig Set alarm record config /cgi-bin/cgiproxy.fcgi?cmd=setalarmrecordconfig isenableprerecord Preview record state prerecordsecs Preview record time alarmrecordsecs Alarm record time Set result(0-success,-1-error) /cgi-bin/cgiproxy.fcgi?cmd=setalarmrecordconfig&usr=&pwd=&isenabl eprerecord=1&prerecordsecs=5&alarmrecordsecs=30 getrecordpath Get record path for storage /cgi-bin/cgiproxy.fcgi?cmd=getrecordpath path 0-SD card,2-ftp server free The free capacity of storage device total The total capacity of storage device /cgi-bin/cgiproxy.fcgi?cmd=getrecordpath&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 32

setrecordpath Set record path for storage /cgi-bin/cgiproxy.fcgi?cmd=setrecordpath path 0-SD card,2-ftp server 3-SD card and cloud setresult 0 success -1 Sd card is not exist -2 Share direction is not set -3 Not enough space -4 error -5 recording free The free capacity of storage device total The total capacity of storage device /cgi-bin/cgiproxy.fcgi?cmd=setrecordpath&usr=&pwd=&path=2 getschedulerecordconfig Get config for schedule recording /cgi-bin/cgiproxy.fcgi?cmd=getschedulerecordconfig isenable Schedule-Record enable status, 0-disable,1-enable recordlevel spacefullmode isenableaudio schedulen Level for drop frame,0-30/30,1-24/30,2-15/30,3-8/30, 4-4/30,5-1/30; The process method when SD card is full,0-cover the oldest video and continue record,1-stop record Is recording include audio? 0-no,1-yes The motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow The min unit of schedule is half an hour, schedulen value range 2 N -1(N[0-48]) /cgi-bin/cgiproxy.fcgi?cmd=getschedulerecordconfig&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 33

setschedulerecordconfig Set schedule recordconfig /cgi-bin/cgiproxy.fcgi?cmd=setschedulerecordconfig isenable Schedule-Record enable status, 0-disable,1-enable recordlevel spacefullmode isenableaudio schedulen Level for drop frame,0-30/30,1-24/30,2-15/30,3-8/30, 4-4/30,5-1/30; The process method when SD card is full,0-cover the oldest video and continue record,1-stop record Is recording include audio? 0-no,1-yes The motion alaram schedule of one week, N = 0(Monday) ~6(Sunday) For detail, see *1 bellow The min unit of schedule is half an hour, schedulen value range 2 N -1(N[0-48]) /cgi-bin/cgiproxy.fcgi?cmd=setschedulerecordconfig&isenable=1&recordlev el=0&spacefullmode=0&isenableaudio=0&schedule0=1023&schedule1=1023& schedule2=1023&schedule3=1023&schedule4=1023&schedule5=1023&sched ule6=1023&usr=&pwd= *1 schedule bitmap 0 1 2 3 4 5 6 7 40 41 42 43 44 45 46 47 Monday Tuesday Wednesday Thursday Tuesday Wednesday Friday Saturday Sunday Each grid of a row presents half of an hour of one day. For example, 40 presents 20:00 ~20:30. The bit 40 set to 1 means the snap is effective between 20:00 to 20:30 Copyright@ Shenzhen Foscam Intelligent Technology Limited 34

setioalarmconfig Set IO alarm config /cgi-bin/cgiproxy.fcgi?cmd=setioalarmconfig isenable Enable state linkage IO alarm linkage bit0:ring bit1:send mail bit2:snap picture bit3:record alarmlevel Alarm level,0-low,1-high,trigger alarm snapinterval Interval for snap picture triggerinterval Interval for trigger alarm again,p.s.the true value of triggerinterval time is the value of the cgi set add 5s. schedulen N(0-6), alarm schedule Set result(0-success,-1-error) /cgi-bin/cgiproxy.fcgi?cmd=setioalarmconfig&usr=&pwd=&isenable=1 &linkage=16&snapinterval=2&alarmlevel=1&triggerinterval=5&schedule0=102 4&schedule1=1024&schedule2=1024&schedule3=1024&schedule4=1024&sch edule5=1024&schedule6=1024 getioalarmconfig Get IO alarm config /cgi-bin/cgiproxy.fcgi?cmd=getioalarmconfig isenable Enable state linkage IO alarm linkage bit0:ring bit1:send mail bit2:snap picture alarmlevel snapinterval triggerinterval bit3:record Alarm level Interval for snap picture Interval for trigger alarm again, P.s.The true value of triggerinterval time is the value of the cgi get add 5s. Copyright@ Shenzhen Foscam Intelligent Technology Limited 35

schedulen N(0-6), alarm schedule /cgi-bin/cgiproxy.fcgi?cmd=getioalarmconfig&usr=&pwd= clearioalarmoutput Clean IO alarm output /cgi-bin/cgiproxy.fcgi?cmd=clearioalarmoutput /cgi-bin/cgiproxy.fcgi?cmd=clearioalarmoutput&usr=&pwd= setaudioalarmconfig Set Audio alarm config /cgi-bin/cgiproxy.fcgi?cmd=setaudioalarmconfig isenable Enable state linkage Audio alarm linkage bit0:ring bit1:send mail bit2:snap picture bit3:record sensitivity 0=low 1=middle 2=high snapinterval Interval for snap picture triggerinterval Interval for trigger alarm again schedulen N(0-6), alarm schedule Set result(0-success,-1-error) /cgi-bin/cgiproxy.fcgi?cmd=setaudioalarmconfig&usr=&pwd=&isenable =1&linkage=16&snapInterval=2&sensitivity=1&triggerInterval=5&schedule0=1 024&schedule1=1024&schedule2=1024&schedule3=1024&schedule4=1024&s chedule5=1024&schedule6=1024 Copyright@ Shenzhen Foscam Intelligent Technology Limited 36

getaudioalarmconfig Get Audio alarm config /cgi-bin/cgiproxy.fcgi?cmd=getaudioalarmconfig isenable Enable state linkage IO alarm linkage bit0:ring bit1:send mail bit2:snap picture bit3:record sensitivity 0=low 1=middle 2=high snapinterval Interval for snap picture triggerinterval Interval for trigger alarm again schedulen N(0-6), alarm schedule /cgi-bin/cgiproxy.fcgi?cmd=getioalarmconfig&usr=&pwd= setpcaudioalarmcfg Set audio alarm config for PC(web live video) /cgi-bin/cgiproxy.fcgi?cmd=setpcaudioalarmcfg isenablepcaudioal Enable state arm Set result(0-success,-1-error) /cgi-bin/cgiproxy.fcgi?cmd=setpcaudioalarmcfg&usr=&pwd=&isenable PCAudioAlarm=1 getpcaudioalarmcfg Get audio alarm config for PC(web live video) /cgi-bin/cgiproxy.fcgi?cmd=getpcaudioalarmcfg isenablepcaudioal Enable state Copyright@ Shenzhen Foscam Intelligent Technology Limited 37

arm /cgi-bin/cgiproxy.fcgi?cmd=getpcaudioalarmcfg&usr=&pwd= getmultidevlist Get multi device list /cgi-bin/cgiproxy.fcgi?cmd=getmultidevlist devn N(0-8), device information /cgi-bin/cgiproxy.fcgi?cmd=getmultidevlist&usr=&pwd= getmultidevdetailinfo Get multi device information /cgi-bin/cgiproxy.fcgi?cmd=getmultidevdetailinfo chnnl Channel no producttype Device type ip Device IP port Web port mediaport Media port username User name password Password devname Device name /cgi-bin/cgiproxy.fcgi?cmd=getmultidevdetailinfo&usr=&pwd= addmultidev Add multiy device /cgi-bin/cgiproxy.fcgi?cmd=addmultidev chnnl Channel no producttype Device type Copyright@ Shenzhen Foscam Intelligent Technology Limited 38

ip Device Ip port Web port mediaport Media port username User name password Password devname Device name Add result(0-success,-1-error) /cgi-bin/cgiproxy.fcgi?cmd=addmultidev&usr=&pwd=&chnnl=2&product Type=H264&ip=192.168.1.3&port=88&mediaPort=88&userName=&pass Word=&devName=FI9805W delmultidev Delete multiy device /cgi-bin/cgiproxy.fcgi?cmd=delmultidev chnnl Channel no Delete result(0-success,-1-error) /cgi-bin/cgiproxy.fcgi?cmd=delmultidev&usr=&pwd=&chnnl=2 setdeframelevel Set status to enhance night vision definition /cgi-bin/cgiproxy.fcgi?cmd=setdeframelevel level 0 -Disable the status of enhance 1 -Enable the status of enhance /cgi-bin/cgiproxy.fcgi?cmd=setdeframelevel&level=0&usr=&pwd= getdeframelevel Get status of enhance the night vision definition Copyright@ Shenzhen Foscam Intelligent Technology Limited 39

/cgi-bin/cgiproxy.fcgi?cmd=getdeframelevel level 0 -Disable the status of enhance 1 -Enable the status of enhance /cgi-bin/cgiproxy.fcgi?cmd=getdeframelevel&usr=&pwd= User account addaccount Add user account /cgi-bin/cgiproxy.fcgi?cmd=addaccount usrname user name usrpwd user password 0 Visitor 1 Operator 2 Administrator /cgi-bin/cgiproxy.fcgi?cmd=addaccount&usrname=test&usrpwd=test&privileg e=0& usr=&pwd= delaccount Delete user account /cgi-bin/cgiproxy.fcgi?cmd=delaccount usrname user name /cgi-bin/cgiproxy.fcgi?cmd=delaccount&usrname=test&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 40

getpassword Get user password /cgi-bin/cgiproxy.fcgi?cmd=getpassword usrname user name /cgi-bin/cgiproxy.fcgi?cmd=getpassword&usrname=test&usr=&pwd= changepassword Change password /cgi-bin/cgiproxy.fcgi?cmd=changepassword usrname The user you want to change password oldpwd newpwd old password new password Admin can change every user s password, visitor and operator can only change their own password /cgi-bin/cgiproxy.fcgi?cmd=changepassword&usrname=&oldpwd=&ne wpwd=test&usr=&pwd= changeusername Change user name /cgi-bin/cgiproxy.fcgi?cmd=changeusername usrname The user you want to change name newusrname The new user name Admin can change every user s name, visitor and operator can only change their own name /cgi-bin/cgiproxy.fcgi?cmd=changeusername&usrname=& Copyright@ Shenzhen Foscam Intelligent Technology Limited 41

newusrname=newname&usr=&pwd= changeusernameandpwdtogether Change user name and password together /cgi-bin/cgiproxy.fcgi?cmd=changeusernameandpwdtogether usrname The user you want to change name newusrname oldpwd newpwd New user name old password new password Admin can change every user s name, visitor and operator can only change their own name /cgi-bin/cgiproxy.fcgi?cmd=changeusernameandpwdtogether&usrname=ad min&newusrname=newname&oldpwd=&newpwd=newpwd&usr=&pwd= login User log in to camera visitor /cgi-bin/cgiproxy.fcgi?cmd= login usrname User name remoteip Access IP groupid An id use to distinguish different users,can be set to current cpu tick pwd password loginresult 0 Login success -1 eter check error -2 Exceed max user -3 User not exist -4 User not found -5 Password error -6 IP repetition -7 Access deny -8 Already login Copyright@ Shenzhen Foscam Intelligent Technology Limited 42

0 Visitor 1 Operator 2 Administrator /cgi-bin/cgiproxy.fcgi?cmd=login&usrname=&remoteip=192.168.1.12& groupid=673982479&pwd=&usr=&pwd= logout User log out to camera visitor /cgi-bin/cgiproxy.fcgi?cmd=logout usrname User name ip groupid logoutresult Access IP An id use to distinguish different users,can be set to current cpu tick /cgi-bin/cgiproxy.fcgi?cmd=logout&usrname=&ip=192.168.1.12&groupi d=673982479&usr=&pwd= getsessionlist Get current session list of the camera /cgi-bin/cgiproxy.fcgi?cmd=getsessionlist usrcnt session count usrn User name of session N /cgi-bin/cgiproxy.fcgi?cmd=getsessionlist&usr=&pwd= getuserlist Get user account list of the camera Copyright@ Shenzhen Foscam Intelligent Technology Limited 43

/cgi-bin/cgiproxy.fcgi?cmd=getuserlist usrcnt User count usrn User name of accnount N /cgi-bin/cgiproxy.fcgi?cmd=getuserlist&usr=&pwd= usrbeatheart user checks connection with camera visitor /cgi-bin/cgiproxy.fcgi?cmd=usrbeatheart usrname User name remoteip Access IP groupid An id use to distinguish different users,can be set to current cpu tick checkresult(0-success,-1-error) /cgi-bin/cgiproxy.fcgi?cmd=usrbeatheart&usrname=&ip=192.168.1.13 &groupid=673982479&usr=&pwd= PTZ Control ptzmoveup Move up operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmoveup /cgi-bin/cgiproxy.fcgi?cmd=ptzmoveup&usr=&pwd= ptzmovedown Move down Copyright@ Shenzhen Foscam Intelligent Technology Limited 44

operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmovedown /cgi-bin/cgiproxy.fcgi?cmd=ptzmovedown&usr=&pwd= ptzmoveleft Move to left operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmoveleft /cgi-bin/cgiproxy.fcgi?cmd=ptzmoveleft&usr=&pwd= ptzmoveright Move to right operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmoveright /cgi-bin/cgiproxy.fcgi?cmd=ptzmoveright&usr=&pwd= ptzmovetopleft Move to top left operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmovetopleft /cgi-bin/cgiproxy.fcgi?cmd=ptzmovetopleft&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 45

ptzmovetopright Move to top right operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmovetopright /cgi-bin/cgiproxy.fcgi?cmd=ptzmovetopright&usr=&pwd= ptzmovebottomleft Move to bottom left operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmovebottomleft /cgi-bin/cgiproxy.fcgi?cmd=ptzmovebottomleft&usr=&pwd= ptzmovebottomright Move to bottom right operator /cgi-bin/cgiproxy.fcgi?cmd=ptzmovebottomright /cgi-bin/cgiproxy.fcgi?cmd=ptzmovebottomright&usr=&pwd= ptzstoprun Stop run PT operator /cgi-bin/cgiproxy.fcgi?cmd=ptzstoprun Copyright@ Shenzhen Foscam Intelligent Technology Limited 46

/cgi-bin/cgiproxy.fcgi?cmd=ptzstoprun&usr=&pwd= ptzreset Reset PT to default position operator /cgi-bin/cgiproxy.fcgi?cmd=ptzreset /cgi-bin/cgiproxy.fcgi?cmd=ptzreset&usr=&pwd= getptzspeed Get the speed of PT operator /cgi-bin/cgiproxy.fcgi?cmd=getptzspeed speed 0 Very slow 1 Slow 2 Normal speed 3 Fast 4 Very fast /cgi-bin/cgiproxy.fcgi?cmd=getptzspeed&usr=&pwd= setptzspeed Set the speed of PT operator /cgi-bin/cgiproxy.fcgi?cmd=setptzspeed speed 0 Very slow 1 Slow 2 Normal speed 3 Fast Copyright@ Shenzhen Foscam Intelligent Technology Limited 47

4 Very fast /cgi-bin/cgiproxy.fcgi?cmd=setptzspeed&speed=2&usr=&pwd= getptzpresetpointlist Get all preset point operator /cgi-bin/cgiproxy.fcgi?cmd=getptzpresetpointlist cnt Current preset point count pointn The name of point N Our device can support at most 16 preset point We have 4 point default:leftmost\rightmost\topmost\bottommost /cgi-bin/cgiproxy.fcgi?cmd=getptzpresetpointlist&usr=&pwd= ptzaddpresetpoint Add preset point /cgi-bin/cgiproxy.fcgi?cmd=ptzaddpresetpoint name Preset point name The preset point position is current PT position /cgi-bin/cgiproxy.fcgi?cmd=ptzaddpresetpoint&name=test&usr=&pwd = ptzdeletepresetpoint Delete preset point by name /cgi-bin/cgiproxy.fcgi?cmd=ptzdeletepresetpoint name Preset point name /cgi-bin/cgiproxy.fcgi?cmd=ptzdeletepresetpoint&name=test&usr=&p Copyright@ Shenzhen Foscam Intelligent Technology Limited 48

wd= ptzgotopresetpoint Goto preset position operator /cgi-bin/cgiproxy.fcgi?cmd=ptzgotopresetpoint name Preset point name /cgi-bin/cgiproxy.fcgi?cmd=ptzgotopresetpoint&name=test&usr=&pwd = ptzgetcruisemaplist Get all cruise map list operator /cgi-bin/cgiproxy.fcgi?cmd=ptzgetcruisemaplist cnt Current cruise map point count mapn The name of map N Our device can support at most 8 cruise map We have 2 maps default:horizental/vertical /cgi-bin/cgiproxy.fcgi?cmd=ptzgetcruisemaplist&usr=&pwd= ptzgetcruisemapinfo Get the detail info of a cruise map by name operator /cgi-bin/cgiproxy.fcgi?cmd=ptzgetcruisemapinfo name Name of the cruise map getresult 0 Success pointn -1 Fail The preset point name of this cruise map Our device can support at most 8 preset point one cruise map /cgi-bin/cgiproxy.fcgi?cmd=ptzgetcruisemapinfo&name=horizental&usr=ad Copyright@ Shenzhen Foscam Intelligent Technology Limited 49

min&pwd= ptzsetcruisemap Add a cruise map /cgi-bin/cgiproxy.fcgi?cmd=ptzsetcruisemap name Name of the cruise map pointn The name of preset point N Our device can support at most 8 preset point one cruise map /cgi-bin/cgiproxy.fcgi?cmd=ptzsetcruisemap&name=test&point0=test0&point 1=test1&point2=test2&point3=test3&point4=test4&point5=test5&point6=&poin t7=&usr=&pwd= ptzdelcruisemap Delete a cruise map /cgi-bin/cgiproxy.fcgi?cmd=ptzdelcruisemap name Name of the cruise map /cgi-bin/cgiproxy.fcgi?cmd=ptzdelcruisemap&name=test&usr=&pwd= ptzstartcruise Start a specificate cruise operator /cgi-bin/cgiproxy.fcgi?cmd=ptzstartcruise mapname Name of the cruise map /cgi-bin/cgiproxy.fcgi?cmd=ptzstartcruise&mapname=test&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 50

ptzstopcruise Start current cruise operator /cgi-bin/cgiproxy.fcgi?cmd=ptzstopcruise /cgi-bin/cgiproxy.fcgi?cmd=ptzstopcruise&usr=&pwd= setcruisetime Set time for continue cruise operator /cgi-bin/cgiproxy.fcgi?cmd=setcruisetime time Time for continue cruise /cgi-bin/cgiproxy.fcgi?cmd=setcruisetime&time=5&usr=&pwd= getcruisetime Set time for continue cruise operator /cgi-bin/cgiproxy.fcgi?cmd=getcurisetime time Time for continue cruise /cgi-bin/cgiproxy.fcgi?cmd=getcurisetime&usr=&pwd= setcruisetimecustomed Set time for continue cruise by costomer operator /cgi-bin/cgiproxy.fcgi?cmd=setcruisetimecustomed time Customed time for continue cruise Copyright@ Shenzhen Foscam Intelligent Technology Limited 51

customed Customed enable state-0-no,1-yes /cgi-bin/cgiproxy.fcgi?cmd=setcruisetimecustomed&time=5&customed=1&u sr=&pwd= getcruisetimecustomed Set time for continue cruise by costomer operator /cgi-bin/cgiproxy.fcgi?cmd=getcruisetimecustomed time Customed time for continue cruise customed Customed enable state-0-no,1-yes /cgi-bin/cgiproxy.fcgi?cmd=getcruisetimecustomed&usr=&pwd= setcruiseloopcnt Set counts for continue cruise operator /cgi-bin/cgiproxy.fcgi?cmd=setcruiseloopcnt count Counts for continue cruise /cgi-bin/cgiproxy.fcgi?cmd=setcruiseloopcnt&count=5&usr=&pwd= getcruiseloopcnt Set counts for continue cruise operator /cgi-bin/cgiproxy.fcgi?cmd=getcruiseloopcnt count Counts for continue cruise /cgi-bin/cgiproxy.fcgi?cmd=getcruiseloopcnt&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 52

setcruisectrlmode Set control mode for continue cruise, by time or count operator /cgi-bin/cgiproxy.fcgi?cmd=setcruisectrlmode mode Control mode-0:by time,1:by loop count /cgi-bin/cgiproxy.fcgi?cmd=setcruisectrlmode&mode=0&usr=&pwd= getcruisectrlmode Get control mode for continue cruise, by time or count operator /cgi-bin/cgiproxy.fcgi?cmd=getcruisectrlmode mode Control mode-0:by time,1:by loop count /cgi-bin/cgiproxy.fcgi?cmd=getcruisectrlmode&usr=&pwd= setcruiseprepointlingertime Set linger time for cruise,when pt arrive prepoint operator /cgi-bin/cgiproxy.fcgi?cmd=setcruiseprepointlingertime name Cruise map name timen Time for each prepoint N:[0-7],max number of prepoints in cruise /cgi-bin/cgiproxy.fcgi?cmd=setcruiseprepointlingertime&name=123&time0= 0&time1=1&time2=2&time3=3&time4=4&time5=5&time6=6&time7=7&usr=ad min&pwd= getcruiseprepointlingertime Set linger time for cruise,when pt arrive prepoint operator Copyright@ Shenzhen Foscam Intelligent Technology Limited 53

/cgi-bin/cgiproxy.fcgi?cmd=getcruiseprepointlingertime name Cruise map name timen Time for each prepoint N:[0-7],max number of prepoints in cruise /cgi-bin/cgiproxy.fcgi?cmd=getcruiseprepointlingertime&name=123&usr=a dmin&pwd= zoomin Zoom in operator /cgi-bin/cgiproxy.fcgi?cmd=zoomin Only supported by the device has zoom lens /cgi-bin/cgiproxy.fcgi?cmd=zoomin&usr=&pwd= zoomout Zoom out operator /cgi-bin/cgiproxy.fcgi?cmd=zoomout Only supported by the device has zoom lens /cgi-bin/cgiproxy.fcgi?cmd=zoomout&usr=&pwd= zoomstop Stop zoom run operator /cgi-bin/cgiproxy.fcgi?cmd=zoomstop Only supported by the device has zoom lens /cgi-bin/cgiproxy.fcgi?cmd=zoomstop&usr=&pwd= Copyright@ Shenzhen Foscam Intelligent Technology Limited 54

getzoomspeed Get the speed of Zoom operator /cgi-bin/cgiproxy.fcgi?cmd=getzoomspeed speed 0 Slow 1 Normal 2 Fast Only supported by the device has zoom lens /cgi-bin/cgiproxy.fcgi?cmd=getzoomspeed&usr=&pwd= setzoomspeed Set the speed of PTZ operator /cgi-bin/cgiproxy.fcgi?cmd=setzoomspeed speed 0 Slow 1 Normal 2 Fast Only supported by the device has zoom lens /cgi-bin/cgiproxy.fcgi?cmd=setzoomspeed&usr=&pwd=&speed=1 setptzselftestmode Set the selftest mode of PTZ operator /cgi-bin/cgiproxy.fcgi?cmd= setptzselftestmode mode 0 No selftest 1 Normal selftest 2 After normal selftest, then goto presetpoint-appointed Only supported by ipc that can enable ptz-selftest /cgi-bin/cgiproxy.fcgi?usr=&pwd=&cmd=setptzselftestmode&mod e=2 Copyright@ Shenzhen Foscam Intelligent Technology Limited 55

getptzselftestmode Get the selftest mode of PTZ operator /cgi-bin/cgiproxy.fcgi?cmd= getptzselftestmode mode 0 No selftest 1 Normal selftest 2 After normal selftest, then goto presetpoint-appointed Only supported by ipc that can enable ptz-selftest /cgi-bin/cgiproxy.fcgi?usr=&pwd=&cmd=getptzselftestmode setptzprepointforselftest Set presetpoint for selftest of PTZ operator /cgi-bin/cgiproxy.fcgi?cmd= setptzprepointforselftest name Preset point name Only supported by ipc that can enable ptz-selftest-2 /cgi-bin/cgiproxy.fcgi?usr=&pwd=&cmd=setptzprepointforselftes t&name=topmost getptzprepointforselftest Get the presetpoint for selftest of PTZ operator /cgi-bin/cgiproxy.fcgi?cmd= getptzprepointforselftest name Preset point name Only supported by ipc that can enable ptz-selftest /cgi-bin/cgiproxy.fcgi?usr=&pwd=&cmd=getptzprepointforselftes t Copyright@ Shenzhen Foscam Intelligent Technology Limited 56