running ble freezing MATLAB software after update

조회 수: 1 (최근 30일)
Karson Bader
Karson Bader 2021년 11월 19일
댓글: Karson Bader 2023년 8월 18일
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?

채택된 답변

Karson Bader
Karson Bader 2021년 11월 19일
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.
  댓글 수: 3
Menfin
Menfin 2022년 1월 26일
Hi. I have the same issue afger upgrading Windows 10 to 11, with the "ble" function from Matlab, trying to connect Nordic Thingy 52 multi-sensor module. It does recognize the name and address with "blelist" function, but matlab software is unresponsive when lanching "ble("Thingy")" though the Bluetooth Low Energy connection is working (Thingy 52 module is blinking gerre indicating effective connection).
Is there any other way than downgrading Windows 11 to Windows 10 to make it work?
Karson Bader
Karson Bader 2022년 1월 26일
Menfin,
I was contacted when a patch was sent out but I never tried it. I stayed with Windows 10 and it works perfectly. Sorry I can't be of more help right now.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 11월 19일
Did reverting back to R2020b fix the issue, or does it still happen?
Either way, please contact support to report this.
  댓글 수: 5
Cris LaPierre
Cris LaPierre 2023년 8월 9일
Support for Windows 11 was added starting in MATLAB R2021b Update 1. You must at least be on that version if you are using Windows 11.
Karson Bader
Karson Bader 2023년 8월 18일
I put the laptop system back in Windows 10. Since I mostly use matlab on Linux (desktop), I didn't spend any more time playing with the Windows setup

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by