If you encounter an error message indicating an issue with the FTP connection between your host and target, follow these recommended troubleshooting steps to resolve the problem.
Step 1: Establish an FTP Connection from MATLAB
Use MATLAB's built-in FTP function to establish a connection to the target. By default, the username and password are both "slrt". If you have changed the password, use the new password instead. Replace the IP address with your target's IP address. For example:
>> ftpobj = ftp('192.168.7.5','slrt','slrt');
Step 2: Establish an FTP Connection Using a Third-Party Application
Download and install a third-party FTP client, such as FileZilla Client. Try to establish an FTP connection to the target using the third-party application. Check if the connection works and note any error messages. Try uploading and downloading files from the target's /tmp/ folder via drag-and-drop.
Note: If Step 1 fails but Step 2 works, the issue may be specific to MATLAB. If both steps fail, it could be a global network or firewall issue blocking all FTP connections.
Step 3: Ensure MATLAB Can Communicate with the Speedgoat Target
Follow all the instructions in the MATLAB Answers posts below to make sure MATLAB is allowed to communicate with the Speedgoat target using all required protocols on all required ports (especially FTP ports 20-23). This is particularly important if you are using a new MATLAB installation:
.
Step 4: Upgrade to the Latest MATLAB Release
Upgrade to the latest MATLAB release if possible. If upgrading is not possible, install the latest update for your current MATLAB release.
Step 5: Use the UseActiveFTP Option
Run the following command in MATLAB to see if it resolves the issue:
>> set(slrealtime('TargetPC1'),'UseActiveFTP',true)
Step 6: Disable Proxy in MATLAB
If there is a proxy configured in MATLAB, try to disable it. Follow the instructions in the MATLAB documentation.
Step 7: Check FTP Proxy Configuration in Windows
Open the Windows command prompt. Run the command set to list all Windows environment variables. Check if the environment variable FTP_PROXY is defined. If it is, it indicates that an FTP proxy is configured on Windows. Work with your IT department to relax the FTP proxy settings if necessary.
Further Assistance
By following these steps, you should be able to identify and resolve the FTP connection issue between your host and target. If you continue to experience problems, consider reaching out to your IT department or MathWorks support for further assistance: