Sending Data Logger Files from the Controller to an FTP Server

Procedure for configuring a controller to automatically send data logger files to a remote FTP server.

The most common protocols used in file transfer today are FTP, FTPS, and SFTP. The Q.series controllers support FTP and SFTP. 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>

A hostname has been specified in the FTP client settings, but no DNS address is configured in the controller’s network settings. As a result, the hostname cannot be resolved to an IP address the controller can use.