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

4 Ansichten (letzte 30 Tage)
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?
 

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 2 Mär. 2018
Bearbeitet: MathWorks Support Team am 2 Mär. 2018
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. 

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Support Package for Parrot Drones finden Sie in Help Center und File Exchange

Produkte


Version

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by