On-line: гостей 0. Всего: 0 [подробнее..]
АвторСообщение



ссылка на сообщение  Отправлено: 23.03.05 18:21. Заголовок: о командах управления сервером и камерой


можно ли управлять камерой и сервером при помощи самостоятельный командных посылок, минуя active-x?
если можно, то где взять список таких команд? какие есть существующие практики по этому поводу?

Спасибо: 0 
Цитата Ответить
Ответов - 1 [только новые]





ссылка на сообщение  Отправлено: 23.03.05 19:18. Заголовок:


Можно. См. список:

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 parameter’s name, so the parameter’s 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=‹true¦false›][&Sensib ility=‹high¦middle¦low›][&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=‹Left¦Right¦Up¦Down¦LeftUp¦Lef tDown¦RightUp¦RightDown¦Home¦Stop›[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=‹true¦false›][&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=‹true¦false›][&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=‹true¦false›[&RedirectUrl= sUrl]

SetMail.cgi
/SetMail.cgi?Enable=‹true¦false›[&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 - sender’s email address;
Receiver - receiver’s 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=‹true¦false›[&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=‹manually¦dhcp›[&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=‹true¦false›] [&User=sUserName][&Pass=sPassword][&Mail=‹true¦fal se›[&MailServer=sServer][&Sender=sSenderName][&Rec eiver=sReceiverAddress][&MailUser=sUserName][&Mail PassWord=sPassword][&CheckFlag=CHECK]][&RedirectUr l=sUrl]
/PPPoE.cgi?Action=Connect[&ConnectOnBoot=‹true¦fal 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 - sender’s email address;
Receiver - receiver’s 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 camera’s 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


Спасибо: 0 
Цитата Ответить
Ответ:
1 2 3 4 5 6 7 8 9
большой шрифт малый шрифт надстрочный подстрочный заголовок большой заголовок видео с youtube.com картинка из интернета картинка с компьютера ссылка файл с компьютера русская клавиатура транслитератор  цитата  кавычки моноширинный шрифт моноширинный шрифт горизонтальная линия отступ точка LI бегущая строка оффтопик свернутый текст

показывать это сообщение только модераторам
не делать ссылки активными
Имя, пароль:      зарегистрироваться    
Тему читают:
- участник сейчас на форуме
- участник вне форума
Все даты в формате GMT  3 час. Хитов сегодня: 5
Права: смайлы да, картинки да, шрифты да, голосования нет
аватары да, автозамена ссылок вкл, премодерация откл, правка нет