Bitalino device not detected by Bitalino support package

조회 수: 17 (최근 30일)
Von Duesenberg
Von Duesenberg 2016년 12월 23일
댓글: Von Duesenberg 2017년 1월 12일
I've installed the Bitalino support package and I'm trying to acquire data from a BITalino (r)evolution Plugged Kit BT. I'm running Matlab R2016b on a 64 bit Windows 8.1 PC.
So far I've managed to acquire data seamlessly with OpenSignals, and also with the Matlab API from the Bitalino website.
But when I try using the support package by the MathWorks Instrument Control Toolbox Team; it doesn't work:
b = Bitalino
returns the following error:
Unsuccessful open: Cannot connect to the device. Possible reasons are another application is connected or the device is not available.
Yet it seems that the Instrument Control Toolbox somewhat detects it:
myInstr = instrhwinfo('Bluetooth');
myInstr.RemoteNames{3}
ans =
BITalino-17-24
myInstr.RemoteIDs{3}
ans =
btspp://201607181724
I'm really stuck, here. Could anyone please point me to the right direction?
Thanks very much.
  댓글 수: 2
Hugo Silva
Hugo Silva 2016년 12월 24일
편집: Hugo Silva 2016년 12월 24일
Hi there,
I think you'll need to pass the Bluetooth Serial Port address of your device as an input argument to the statement b=Bitalino
From the information you have listed above, please try b=Bitalino("btspp://201607181724",1)
At least based on the comments found on the API file, this should work: https://www.mathworks.com/matlabcentral/fileexchange/53983-bitalino-support-from-matlab/content/Bitalino.m
Best regards,
Hugo Silva
Von Duesenberg
Von Duesenberg 2016년 12월 24일
Thanks very much, Hugo, it works perfectly well (btw: just replace the double quotes by single quotes).
It's still a mystery why neither the bitalinoApp in Matlab, nor the "official" Instrument Control App were able to make the connection.
All the best!

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

채택된 답변

Vinod
Vinod 2016년 12월 27일
Have you changed the bitalino's friendly name from 'bitalino' to something else? The default constructor assumes that the Bitalino's Bluetooth friendly name is 'bitalino'. As Hugo says, it takes an optional input parameter for the cases where you have renamed it.
If you have not renamed it, remember to pair the Bitalino with your PC before trying to use it in MATLAB. This should get it to show up in the app as well.
  댓글 수: 6
Vinod
Vinod 2017년 1월 12일
I suspect you will find that the BITalino is going into some kind of low power mode where it becomes non-discoverable after a while of no Bluetooth activity.
If you try to use the app, but each time you use it you power cycle the BITalino, the app will work consistently.
Could you try and let me know?
Von Duesenberg
Von Duesenberg 2017년 1월 12일
Thanks Vinod, but, no, turning the BITalino on and off repeatedly does not seem to solve the problem. And even when the app doesn't work, the command line solution always works.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by