MATLAB Answers

0

How do I resolve this error regarding Java and FTP connection when trying to deploy models to my Parrot Minidrone?

When trying to deploy a model to my PARROT rolling spider minidrone, I am seeing this hardware setup error:
I have already written the firmware and deployed a model to the drone successfully in the past, but now I cannot deploy models without seeing this error.  How can I resolve the error?
 

1 Answer

Answer by MathWorks Support Team on 2 Mar 2018
Edited by MathWorks Support Team on 2 Mar 2018
 Accepted Answer

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') % For Mambo: mput(f,'MamboFlight.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. 
If the command does not throw an error, see this MATLAB answers post for additional workarounds. 

  0 Comments

Sign in to comment.