MATLAB: PARROT Minidrone Error on Mac: Unable to establish TCP connection to the minidrone

minidronesparrotparrot minidronessimulink

Why do I receive the following error when trying to run the 'startDroneFlight' command?
>> rs.startDroneFlight
Terminating the currently executing shared object (if any) ….
Initiating execution of shared object …
Execution of shared object initiated successfully.
Error using codertarget.parrot.internal.parrotminidrone/startDroneFlight (line 70)
Unable to establish a TCP connection to the minidrone. Ensure that the generated code is deployed inside minidrone.
I am able to ping the drone via 192.168.1.1, but can not execute the 'startDroneFlight' command. I have also tried to reflash, but was unable to because no drone was detected even though it showed as connected in the Bluetooth devices of the laptop.
Running through the steps in this MATLAB Answers post did not solve the issue, nor did turning the WiFi off.

Best Answer

The issue is most likely due to the Mac's Bluetooth trying to connect to other devices around.
To resolve this issue, please follow the steps listed below:
1) Open the Bluetooth configuration window
2) Click on Advanced…:
3) Uncheck all of the following options:
    Open Bluetooth Setup Assistant at startup if no keyboard is detected
    Open Bluetooth Setup Assistant at startup if no mouse or trackpad is detected
    Allow Bluetooth devices to wake this computer
 
This should prevent the Mac from trying to detect other devices and from dropping the connection to the minidrone.