running ble freezing MATLAB software after update

11 views (last 30 days)
When I run the command,
ble("deviceName")
(with device name being the device that shows up in blelist)
the matlab software become unresponsive and I am unable to enter any commands. Ctrl + C does not work and I have to hard stop MATLAB.
Even if I shut off the bluetooth connection on the computer, MATLAB still says busy and any commands I CAN type are not evaluated when I hit enter.
Previously, I had no issues connecting to any BLE device or with using this command. The only recent changes to my system are:
  • I updated from Matlab 2020b to 2021b
  • Updated Windows 10 to Windows 11.
What I've tried:
  • I uninstalled Matlab 2021b and reinstalled Matlab 2020b
Can anyone provide any thoughts or advice on what else to try?

Accepted Answer

Karson Bader
Karson Bader on 19 Nov 2021
I found a solution to the above problem.
Solution: Restore Windows 11 back to Windows 10.
I am still unsure what the main problem is, but the above step worked for me.
Full explanation of the problem:
ble("deviceName")
would normally report back:
b =
ble with properties:
Name: "device name
Address: "address"
Connected: 1
..........
Show services and characteristics
and you could then use the MATLAB command prompt to do more work.
Since I updated to Windows 11, the arduino I would connect to would blink but I never had access to the command prompty after running the first line of code above. Restoring back to Windows 10 completely solved this.
  1 Comment
Star Strider
Star Strider on 19 Nov 2021
... and one reason I’ve not installed Win 11, even though Micro$oft sent it to me several days ago.
I’ll wait until MATLAB supports it.
.

Sign in to comment.

More Answers (1)

Cris LaPierre
Cris LaPierre on 19 Nov 2021
Did reverting back to R2020b fix the issue, or does it still happen?
Either way, please contact support to report this.
  1 Comment
Karson Bader
Karson Bader on 19 Nov 2021
The issue still happens. Contacting support. I'll update when resolved.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!