FTP_SERVER

 

Description

Get or Set the FTP server configurations.

Because login account name and password are in FTP server configurations, the user level account could not access this URL. The error message, ERROR: not authorized, will be returned if the user account uses this URL.

Input Argument

server,name,password,port,mode,timer
where
  server : the FTP server address. The maximum length is 64 including '\0'.
  name : the user name to login the FTP server. The maximum length is 32 including '\0'.
  password : the user password to login the FTP server. The maximum length is 32 including '\0'.
  port : the FTP service port number from 1 ~ 65535. The default number is 21.
  mode : the FTP mode. Fixed to 0 (passive mode).
Because the default firewall function blocks the FTP data session request form FTP server when camera wants to upload data to FTP server in active FTP mode, the data upload will be not functional. To consider the camera security, we do not support the active mode in FTP. No error message is returned when the value of this mode is not 0.
  timer : the maximum time in msec to establish a FTP connection. It could be from 0 ~60000.
If it is 0, the connection timer is disable. The device will attempt to connect the FTP server unless something wrong during the connection.
The error message will be returned if the length of any input argument is longer than the maximum length.

Attribute

Return of Message

FTP_SERVER='myftp.server.com,myname,mypwd,port,0,10000'

OK: FTP_SERVER='myftp.server.com,myname,mypwd,port,0,10000'
or
ERROR: FTP_SERVER='myftp.server.com,myname,mypwd,port,0,10000'

Applicability

Status

Valid

See Also

EVENT_RSPIMGn

Example

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&FTP_SERVER
or
http://ip:port/cgi-bin/cmd/encoder?FTP_SERVER

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&FTP_SERVER=myftp.server.com,myname,mypwd,21,0,10000
or
http://ip:port/cgi-bin/cmd/encoder?FTP_SERVER=myftp.server.com,myname,mypwd,21,0,10000

Back to

HOME, ENCODER CGI