Is it possible to interact with a Wii Remote through a bluetooth connection using Instrument Control Toolbox 3.0 (R2011b)?

4 views (last 30 days)
I would like to utilize the accelerometers within the Wii Remote using the Instrument Control Toolbox bluetooth capability. My machine and MATLAB INSTRHWINFO can discover the device, but when I try to open the channel to the Wii Remote using FOPEN, I get the following error:
Error using icinterface/fopen (line 83)
Unsuccessful open: Cannot connect to the device. Possible reasons are
another application is
connected
or the device is not available.
Why am I getting this error? Is it possible to connect the Wii Remote using bluetooth to Instrument Control Toolbox?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 3 Jan 2012
The Instrument Control Toolbox cannot directly interact with the Wii Remote. The reason is that the Wii Remote uses the Bluetooth HID profile (Human Interface Device), while the Instrument Control Toolbox 3.0 (R2011b) only supports the Bluetooth SPP profile (Serial Port Profile) at this time.
There may be a couple of alternative options that could be feasible:
1. Write your own DLL or Java library that works with the bluetooth stack data and interfaces with MATLAB through the MATLAB external interfaces capability.
2. Use a third party developed library to have the Wii Remote interface with MATLAB.
Please remember that MathWorks does not support custom libraries or third party libraries and cannot guarantee their functionality.

More Answers (0)

Categories

Find more on Test and Measurement in Help Center and File Exchange

Products


Release

R2011b

Community Treasure Hunt

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

Start Hunting!