| FAQ

ChangeResolution.cgi
/ChangeResolution.cgi?ResType=value[&RedirectUrl=s Url]
0 - {176, 144}
1 - {352, 288}
2 - {320, 240}
3 - {640, 480}

ChangeCompressRatio.cgi
/ChangeCompressRatio.cgi?Ratio=value[&RedirectUrl= sUrl]
Ratio:
0 - common quality
1 - high quality

ChangeBrightness.cgi
/ChangeBrightness.cgi?Brightness=value[&RedirectUr l=sUrl]
supports 256 level of brightness, and the corresponding value of Brightness is from 0 to 255. To set default value, set Brightness to -1.

ChangeContrast.cgi
/ChangeContrast.cgi?Contrast=value[&RedirectUrl=sU rl]
supports 5 level of contrast, and the value of Contrast is from 0 to 255, which is mapped linearly to 5 level. To set default value, set Contrast to -1.

/Cmd.cgi?Cmd=sCommandName1 [&ParamName1=sParamValue1] [&ParamName2=sParamValue2][...] [Cmd=sCommandName2 [&ParamName1=sParamValue1] [&ParamName2=sParamValue2][...]] [Cmd=sCommandName3...] [JsVar=variable[&OnJs=function]] [&RedirectUrl=sUrl]
Some commands may use the same parameters name, so the parameters position should be in correct order. If you place parameters of sCommandName1 after sCommandName2, the behaviour of IP Camera is unexpectable.
If there are sub-commands that get information from IP Camera, (such as GetUser.cgi, PPPoE.cgi?Action=GetInfo), RedirectUrl should not be specified, otherwise the browser will be redirected to the address specified by RedirectUrl, and certainly not what you want.

ChangeSaturation.cgi
/ChangeSaturation.cgi?Saturation=value[&RedirectUr l=sUrl]
supports 11 level of saturation, and the value of Saturation is from 0 to 255, which is mapped linearly to 11 level. To set default value, set Saturation to -1.

ChangeHue.cgi
/ChangeHue.cgi?Hue=value[&RedirectUrl=sUrl]
supports 11 level of hue, and the value of Hue is from 0 to 255, which is mapped linearly to 11 level. To set default value, set Hue to -1.

ChangeSharpness.cgi
/ChangeSharpness.cgi?Sharpness=value[&RedirectUrl= sUrl]
supports 5 level of sharpness, and the value of Sharpness is from 0 to 255, which is mapped linearly to 5 level. To set default value, set Sharpness to -1.

SetMotionDetect.cgi
/SetMotionDetect.cgi?[Enable=truefalse][&Sensib ility=highmiddlelow][&RedirectUrl=sUrl]
Enable - true, enable motion-detect images, false, disable motion-detect;
Sensibility - motion-detect sensibility; Number value is also supported: 0 - high, 1 - middle, 2 - low.
In the text that GetStatus.cgi returns, bytes 60 ~ 65 (total 6 bytes) shows the defferent images found by motion-detect program. Check these bytes, and compare with the previous value, and if thest bytes have changed, motion detected. When system bootup, the initial value is 999999, and after motion detected, the value increases from 0 to 800000. If it is up to 800000, returns to 0.
Bytes 72 of the text returned by GetStatus.cgi shows current motion-detect state.
Visit /GetMotionDetect.cgi to get the current setting.

SetMonitorRect.cgi
/SetMonitorRect.cgi?Rect=left,top,right,bottom[&Re directUrl=sUrl]
left, top, right, bottom are all in the range: =0 && 10000.
The actual resolution of images should be mapped to (0, 10000).
eg: To set the 1/4 of the total visual rectangle on the top-left, user should call request as:
/SetMonitorRect.cgi?Rect=0,0,5000,5000
To cancel this feature, call /SetMonitorRect.cgi?Rect=0,0,0,0
In the text returned by GetStatus.cgi, bytes 40 ~ 55 shows the monitor rectangle.

MoveCamera.cgi
/MoveCamera.cgi?Dir=LeftRightUpDownLeftUpLef tDownRightUpRightDownHomeStop[Speed=iSpeed][& RedirectUrl=sUrl]
Parameters:
Dir - moving direction;
Home - move to the original position;
Stop - stop moving;
Speed - the moving speed.

GetMyself.cgi
/GetMyself.cgi[?ShowPrivilege=truefalse][&JsVar =variable[&OnJs=function]]
IP Camera can work in authrozation mode or non-authrozation mode (SetUserCheck.cgi). In non-authrozation mode, everyone is supposed as administrator and administrator is returned by GetMyself.cgi.
If ShowPrivilege=true, GetMyselft.cgi returns:
0 - super user;
1 - common user.

SetUser.cgi
/SetUser.cgi?User=sUserName&Pass=sPassword [&RedirectUrl=sUrl]

DelUser.cgi
/DelUser.cgi?User=sUserName[&RedirectUrl=sUrl]

GetUser.cgi
/GetUser.cgi[?ShowPrivilege=truefalse][&JsVar=v ariable[&OnJs=function]]
Format of returned text:
If ShowPrivilege=false, Each line represent a user name.
Otherwise, Every two lines represent a user, and first line is user name, the second is privilege.

SetUserCheck.cgi
/SetUserCheck.cgi?Check=truefalse[&RedirectUrl= sUrl]

SetMail.cgi
/SetMail.cgi?Enable=truefalse[&MailServer=sServ er][&Sender=sSenderName][&Receiver=sReceiverAddres s][&Subject=sSubject][&User=sUserName][&PassWord=s Password][&CheckFlag=CHECK][&RedirectUrl=sUrl]
Parameters:
Enable - true, send motion-detected images, false, do not send motion-detected images;
MailServer - mail server address;
Sender - senders email address;
Receiver - receivers email address, multi-receivers seperated by ;;
Subject - subject of email;
User - user name for loginging MailServer;
PassWord - password for logining MailServer;
CheckFlag - CHECK, the MailServer need check password;

GetMail.cgi
/GetMail.cgi[?JsVar=variable[&OnJs=function]]
Each line represent an item, and every item is in the format as Name = Value.
(Refer to SetMail.cgi)

SetFtp.cgi
/SetFtp.cgi?Enable=truefalse[&FtpServer=sServer ][&User=sUserName][&Pass=sPassword][&Account=sAcco unt][&UploadPath=sPathName][&RedirectUrl=sUrl]
Parameters:
Enable - true, upload motion-detected images, false, do not upload motion-detected images;
FtpServer - ftp server address;
User - user name on ftp server;
Pass - password for logining FtpServer;
Account - account for logining FtpServer (few ftp servers require this infomation);
UploadPath - path in which images saved on FtpServer;

GetFtp.cgi
/GetFtp.cgi[?JsVar=variable[&OnJs=function]]
Each line represent an item, and every item is in the format as Name = Value.
(Refer to SetFtp.cgi)

SetTime.cgi
/SetTime.cgi?Sec1970=value1&TimeZone=value2[&Redir ectUrl=sUrl]
Parameters:
Sec1970 - seconds since 00:00:00 1/1/1970;
TimeZone - time zone in minutes, eg: for Beijing(GMT+08:00), this parameters should be -480.

GetTime.cgi
/GetTime.cgi[?JsVar=variable[&OnJs=function]]
Each line represent an item, and every item is in the format as Name = Value.
(Refer to SetTime.cgi)

SetIP.cgi
/SetIP.cgi?IPWay=manuallydhcp[&CameraName=sName ][&IP=sIP][&Netmask=sNetmask][&Gateway=sGateway][& DNS0=sDNS0][&DNS1=sDNS1][&DNS2=sDNS2][&RedirectUrl =sUrl]
If IPWay=manually, IP, Netmask, Gateway, DNS0 ( DNS1, DNS2 ) should also be specified.
Visit /GetIP.cgi to get the current setting.

GetIP.cgi
/GetIP.cgi[?JsVar=variable[&OnJs=function]]
Each line represent an item, and every item is in the format as Name = Value.
(Refer to SetIP.cgi)

PPPoE.cgi
/PPPoE.cgi?Action=Set[&ConnectOnBoot=truefalse] [&User=sUserName][&Pass=sPassword][&Mail=truefal se[&MailServer=sServer][&Sender=sSenderName][&Rec eiver=sReceiverAddress][&MailUser=sUserName][&Mail PassWord=sPassword][&CheckFlag=CHECK]][&RedirectUr l=sUrl]
/PPPoE.cgi?Action=Connect[&ConnectOnBoot=truefal se][&User=sUserName][&Pass=sPassword][&Mail=true false[&MailServer=sServer][&Sender=sSenderName][ &Receiver=sReceiverAddress][&MailUser=sUserName][& MailPassWord=sPassword][&CheckFlag=CHECK]][&Redire ctUrl=sUrl]
/PPPoE.cgi?Action=GetSetting[?JsVar=variable[&OnJs =function]]
/PPPoE.cgi?Action=GetInfo[?JsVar=variable[&OnJs=fu nction]]
/PPPoE.cgi?Action=Disconnect
Parameters:
Action - Set, save settings; Connect, connect to net; GetSetting, get current settings; GetInfo, get current PPPoE state; Disconnect, disconnect PPPoE;
ConnectOnBoot - true, connect on booting, false, not connect;
User - user name for connect;
Pass - password for User;
Mail - true, send mail to inform users that PPPoE was connected, false, do not send mail to inform users that PPPoE was connected.
MailServer - mail server address;
Sender - senders email address;
Receiver - receivers email address, multi-receivers seperated by ;;
Subject - subject of email;
MailUser - user name for loginging MailServer;
MailPassWord - password for logining MailServer;
CheckFlag - CHECK, the MailServer need check password;

SetHttp.cgi
/SetHttp.cgi?Port=iPort[&RedirectUrl=sUrl]
/SetHttp.cgi?Port0=iPort0&Port1=iPort1[&RedirectUr l=sUrl]
Parameters:
Port, Port0, Port1 - the listening port of http server.

GetHttp.cgi
/GetHttp.cgi[?JsVar=variable[&OnJs=function]]
Each line represent an item, and every item is in the format as Name = Value.
(Refer to SetHttp.cgi)

SetName.cgi
/SetName.cgi?CameraName=sName[&RedirectUrl=sUrl]
SetIP.cgi can also change cameras name.
Visit /GetName.cgi to get the current setting.

GetName.cgi
/GetName.cgi[?JsVar=variable[&OnJs=function]]
Each line represent an item, and every item is in the format as Name = Value.
(Refer to SetName.cgi)

GetLog.cgi
/GetLog.cgi[?JsVar=variable[&OnJs=function]]
Administrator and common user may receive different system logs information.
Refer to Log

GetVer.cgi
/GetVer.cgi[?JsVar=variable[&OnJs=function]]

Reboot.cgi
/Reboot.cgi

Example
1. Add user abc(password 123), and delete user cba:
/Cmd.cgi?Cmd=SetUser.cgi&User=abc&Pass=123&Cmd=Del User.cgi&User=cba
2. get the settings of ftp and email:
/Cmd.cgi?Cmd=GetFtp.cgi&Cmd=GetMail.cgi

| FAQ