macOS bluetoothlist command hangs up "Busy"

5 views (last 30 days)
John Whalen
John Whalen on 4 Dec 2022
Commented: John Whalen on 10 Jan 2023
I have Matlab 2022b and an M1 Macbook Pro running Ventura.
I can type "blelist" and get a list of the bluetooth low energy devices. If I type "bluetoothlist" the status bar states, "Busy" and the ">>" never shows up. Also tried the variant of the bluetoothlist command by adding a timeout but to no avail. Each time I need to force quit Matlab to get out of the hang up.
I do have Matlab 2022b as an approved application in the Bluetooth panel of the macOS system settings.
Any thougths to why the bluetoothlist command doesn't work would be appreciated.
TIA
  3 Comments
Kannan
Kannan on 8 Dec 2022
Hi John,
The issue you are experiencing has already been identified as a bug with MATLAB. The development team is currently in the process of creating a fix for it for future releases of MATLAB, but unfortunately does not have any workarounds at this time.
John Whalen
John Whalen on 10 Jan 2023
So "blelist" will work on the 2022b maci64 version of Matlab until I call it from a Matlab GUI "app" (*.mlapp) that I created. Once I press a button on my GUI to run blelist, blelist returns, "Warning: No nearby Bluetooth Low Energy peripheral devices detected. Try a larger 'timeout' value." in the command window even though it was working before I ran the GUI app that I built. The blelist command won't work again until I quit Matlab, reopen, then type it in the command window. So there seems to be something about running a Matlab GUI app.
Also, wanted to point out that blelist in the 2022b maca64 beta doesn't work at all. After typing "blelist" in the command window I get, "Failed to detect nearby Bluetooth Low Energy peripheral devices. Contact Technical Support if issue persists." The command "bluetoothlist" returns, "Unrecognized function or variable 'discoverDevices'."
Will these issues be fixed in 2023a version of Matlab for MacOS and if so, what is the expected release date?

Sign in to comment.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!