Communicate with Bluetooth Low Energy (BLE) with Matlab
Show older comments
Hi everybody !
I am wondering if it is possible to "communicate" with BLE devices with Matlab (moreover with the Instrument Control Toolbox).
In facts, I would like to get raw data from sensors such as wireless heart rate sensor (typically Polar H7), IMU, accelerometers, temperature sensors ... which often includes filters or fusion algorithm.
Oh and I use R2012b !
Thanks in advance,
Jeanne
Answers (2)
Walter Roberson
on 20 Oct 2016
0 votes
No, it was not supported in that release. See http://www.mathworks.com/matlabcentral/answers/239864-is-bluetooth-low-energy-ble-supported-in-instrument-control-toolbox-how-to-read-broadcasts-withou
4 Comments
Jeanne P
on 20 Oct 2016
Edited: Walter Roberson
on 20 Oct 2016
Walter Roberson
on 20 Oct 2016
The comments in https://www.mathworks.com/matlabcentral/fileexchange/52481-sphero-connectivity-package imply that Bluetooth Low Energy is still not supported in R2016b.
I do not know for sure if the Bluefruit LE Friend will work, but it looks plausible.
Xiaoxuan Hu
on 12 Jun 2017
could you please tell me how you connect Windows 10 computers to the BLE device? I'm current working on this problem, but not succeed.Thanks in advance.
Walter Roberson
on 19 Sep 2019
These days I see https://www.mathworks.com/help/comm/examples/bluetooth-low-energy-receiver.html but that appears to be for analyzing at the signal level ! https://www.mathworks.com/help/comm/bluetooth.html?s_tid=CRUX_lftnav
On the other hand, as of R2019b:
Joris Brouwer
on 19 Sep 2019
0 votes
Hi, I have been struggling with similar questions as well. My general solution nowadays is to find a hardware developer kit for Bluetooth chips with integrated antennas that support the right Bluetooth profiles and the use of AT commands over a serial USB connections. This way I have found A2DP and GATT suppporting dev kits (different kit for each profile though). Not sure about the performance of this solution speed wise, but with the GATT profile I have been able to connect to typical sportswear gadgets on my Windows 10 PC using U-Blox dev kits and do a bit of back and forth communicating. Do certify that the dev kit has support for the AT commands, only a few dev kits have this feature.
2 Comments
Walter Roberson
on 19 Sep 2019
Joris Brouwer
on 19 Sep 2019
I literally found that out an hour later, seems to work like a charm. Tested it with a dongel I had laying around and got it working directly, nice job.
Categories
Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!