Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

FTP

Description

This command exists to configure the internal FTP server. FTP requires six arguments in the following order:

1. Protocol Port
This is the port number that an FTP client must use to connect to this server. Usually port 21.

2. Data Port
This is the port number used for data transfers of this FTP server.

3. User Name
Login name to use this FTP service.

4. Password
Password needed to use this FTP service.

5. Enabled
Use one of the words ON or OFF. ON enables the server, OFF disables it.

6. Timeout
A value in seconds while the server keeps the connection open event if it is inactive.

Return Value

ERR_LENGTH (5) if username or password is too long.
ERR_ARGUMENT (4) if other arguments do not match.
ERR_OK (0) if command was accepted. 

Example

FTP 21 12345 mama roach ON 120 

This enables the FTP server on port 21, using 12345 as data port. Users must logon using mama/roach and the server automatically cancels connections after 2 minutes of inactivity

Remarks

FTP is only possible on devices that have some kind of network interface (Ethernet or WLAN). Per default (factory settings), the FTP server is disabled.

 


 

FTP?

Description

With the FTP? command one can query the actual settings of the FTP server. The output is a single line containing all settings. It might look like this:

21 4457 admin hello ON 60

The output always consists of six entries. Their meaning is, from left to right:

The protocol port (here: 21)

The data port (here: 4457)

The user name (here: admin)

The user's password (here: hello)

State of the server (here: ON == server is active)

The inactivity time-out value (here: 60 seconds)