Skip to content
English
  • There are no suggestions because the search field is empty.

How to Automatically Transfer Data Logger Files to an FTP Server

Learn how to automatically transfer measurement and data logger files from Gantner Q.series controllers to an FTP server using GI.bench.

The most common protocols used for file transfer today are FTP, FTPS, and SFTP. Q.series controllers support FTP and SFTP, but FTPS is not supported.

Controller configuration

  1. Open an existing GI.bench project or read the current controller configuration into a new project. Then, double-click the controller to open the controller settings.

  2. Navigate to the FTP Clients section, set the connection count to 1, and press Enter.

  3. Modify the connection settings to match the FTP server configuration:

    1. Address: The IP address or hostname of the FTP server.
      Note: When using a hostname instead of an IP address, ensure that a DNS address (e.g., 8.8.8.8) is configured in the controller’s network settings.

    2. Port: The FTP server's listening port (typically 21; vary depending on server settings)

    3. Username: The user account configured on the FTP server

    4. Password: The password for the user account

    5. Type: Set to Unknown (other options include Unix, MS-DOS, SFTP)

    6. Directory: Specify the target directory on the server, or leave blank to use the root directory

  4. On the controller, open the data logger and go to the Send FTP section. Check the Enabled box and select the appropriate FTP connection.

  5. Write the updated configuration to the controller to enable FTP functionality.

How to setup an FTP server on a PC

In this example of how to set up an FTP server, the FileZilla Server for Windows is used.

  1. Download and install the FileZilla Server for Windows.
  2. Add FileZilla as an exception to Windows Firewall or turn the Firewall off
    1. Open Control Panel
    2. Navigate to System and Security > Windows Firewall
    3. On the left-hand menu, select Allow a program or feature through Windows Firewall
    4. From the list, select FileZilla Server and FileZilla Server Interface or select
      Allow another program if the programs aren’t already listed.
      1. If not on the list select Allow another program
      2. In the next window scroll and find the 2 programs
      3. If not listed there select Browse and navigate to the installation directory: C:\Program Files\FileZilla Server
      1. Select one program and click Open, repeat for the second program
      2. Select one program and click Add, repeat for the second program
      3. For each program click the check the boxes then click OK.
  1. Run the FTP Server. Use the default settings and click OK. It will prompt you to create an admin password.
    1. Server Address: 127.0.0.1
    2. Port: 14148
  2. Go to Server > Configure
    1. In the server settings window, navigate to the Administration section. The listening port and password previously defined will be shown
    2. Navigate to the Groups section. Add a new group. Define the virtual and native paths.
      2
  3. Navigate to the Users section
    1. Click Add to create a new user and give them a name
    2. Make sure the box for User is enabled is checked. Change the credentials option to require a password. Enter the desired password.
    3. Enter virtual and native paths. Make sure the access mode is set to Read + Write
    4. Click OK to save settings.

Common FTP errors

FTP Error: 550 SSL/TLS required on the control channel

This error indicates that the FTP server requires an encrypted connection (SSL or TLS), commonly known as FTPS, which is not supported by Q.series controllers. For secure file transfer, it is recommended to use SFTP instead.

SendFTP: Failed to open connection <failed to do name resolution of hostname>

This indicates that a hostname has been configured in the FTP client settings, but either no DNS server address is configured in the controller's network settings or the configured DNS server is not reachable. As a result, the controller cannot resolve the hostname to an IP address and is unable to establish a connection to the FTP server.

SendFTP: Failed to send file <could not open file for writing> 

This indicates that the FTP client successfully connected to the server, but the server was unable to create or write the file due to issues such as a missing directory, insufficient permissions or storage space, a read-only location, an invalid filename, a file lock, or path length restrictions.

SendFTP: Failed to get file state <>

This indicates that the FTP client attempted to retrieve the status of a file on the FTP server but was unable to obtain valid information. Possible causes include the file not yet existing on the server, insufficient permissions to access the file or directory, limited support for FTP commands such as SIZE, MDTM, or LIST, or firewall/NAT restrictions preventing directory listings or file status queries.