This issue could be due to a change in firewall settings on your computer which is now blocking FTP. To check if this is the case, connect the drone to your computer (either by Bluetooth or USB). After the LEDs have stabilized to RED and GREEN, run one of the following commands in the MATLAB command window, based on your specific set-up.
- Rolling Spider drone is connected to computer through Bluetooth:
>> cd (matlabshared.supportpkg.getSupportPackageRoot)
>> cd toolbox\target\supportpackages\parrot\lib\EDUfirmwareFILES
>> f = ftp('192.168.3.5');
>> mput(f,'SpiderFlight.sh')
- Mambo drone is connected to computer through Bluetooth:
>> cd (matlabshared.supportpkg.getSupportPackageRoot)
>> cd toolbox\target\supportpackages\parrot\lib\EDUfirmwareFILES
>> f = ftp('192.168.3.1');
>> mput(f,'MamboFlight.sh')
- Either drone is connected to computer through USB:
>> cd (matlabshared.supportpkg.getSupportPackageRoot)
>> cd toolbox\target\supportpackages\parrot\lib\EDUfirmwareFILES
>> f = ftp('192.168.2.1');
>> mput(f,'SpiderFlight.sh')
If the 3rd or 4th command throws an error, this issue is likely due to your firewall settings - especially if you have a local firewall running. Most firewalls will block inbound connections for which there is not a specific rule. To work around this issue, an exception will have to be made in the firewall for the interface IP addresses "192.168.3.2" and "192.168.2.2"'. How exactly this exception is made will be dependent on your specific antivirus software. For example, if you are using Windows Firewall, you could add these exceptions with the following steps:
1) Open the control panel. Navigate to "System and Security" > "Windows Firewall" > "Advanced settings". This will open a new window for making changes to the windows firewall settings.
2) Click on "outbound rules" on the left-hand panel.
3) Click on "new rule" on the right-hand panel.
4) In the dialog, choose to create a custom rule. Click next until reaching the "scope" panel, and add the IP addresses. Click next until reaching the "action" panel, and choose to allow the connection. Click next until reaching the "name" panel, and create a name for this rule. Click "Finish".
5) Click on "inbound rules" on the left-hand panel.
6) Repeat steps 3 and 4.
Best Answer