MATLAB Answers

Why doesn't the Hardware Setup detect my PARROT Rolling Spider on Windows?

2 views (last 30 days)
I am trying to use a Parrot Rolling Spider minidrone with MATLAB, but the setup application does not seem to detect it. I think the problem is occurring because MATLAB is unable to find my drone as a mount point. Although the command "usbDevices.getAttachedDevices" shows that the drone is connected, the following commands return an empty cell array:
usbDevices = matlab.hwmgr.internal.hwconnection.USBDeviceEnumerator;
The issue occurs only while using Windows. It works out fine on a Linux machine.
I have even tried to manually make a mount point for the drone in Windows (i.e. C:\MountPoints\RS), but to no avail. How do I resolve this issue?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Oct 2017
This issue occurs on some Windows 10 installations. There are two possible reasons for this issue:
1. The timeout period (typically 60 seconds) might have expired for the Rolling Spider minidrone and hence it would get disconnected from the PC automatically. In this case, you should perform the following steps:
a. Connect the drone back to the host PC.
b. Wait for the LEDs to stabilize to one GREEN and one RED and then search for the minidrone in the setup application. You need to ensure that a drive named ‘Parrot_RS’ is appearing in their drive list. 
2. If you can see a drive, but the drone is still not being detected by the setup, it indicates that the MATLAB USB enumerator APIs are returning NULL values. This might be due to the missing .NET application in the Windows 10 installation. To resolve this issue, please perform the following steps:
a. Navigate to support package root by executing the following commands in the MATLAB command window:
cd toolbox\target\supportpackages\parrot\+codertarget\+parrot\+setup;
b. Replace the "selectDroneFromList.m" and "flashDrone.m" files with the attached files.
c. Delete the "selectDroneFromList.p" and "flashDrone.p" files.
d. Execute the following commands in the MATLAB command window:
clear classses; clear pcode; rehash toolboxcache;
Maitreyee Mordekar
Maitreyee Mordekar on 1 Feb 2018
Hi Shixian,
There does not seem to be an issue with the above output that you receive.
Could you tell me if you have completed the hardware setup screens? If you get any error, please share the snapshot here.

Sign in to comment.

More Answers (1)

Nevzat Can Samur
Nevzat Can Samur on 1 Mar 2021
I have a same problem. I can see Parrot rolling spider device on Bluetooth but Simulink package doesn't detect. I did what you said but problem is still continuing. What should I do to solve this problem?




Community Treasure Hunt

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

Start Hunting!

Translated by