![Bluetooth serial port driver Bluetooth serial port driver](/uploads/1/2/6/4/126498981/692507922.gif)
B
= Bluetooth(RemoteName
,Channel
)
creates a Bluetooth® object associated with the RemoteName
and Channel
. RemoteName
is a friendly way to identify the RemoteID
. If not specified, the default channel is 0
.![Bluetooth Serial Port Matlab Bluetooth Serial Port Matlab](/uploads/1/2/6/4/126498981/922823155.gif)
Bluetooth Communication using MATLAB Command Window. This is the simple method to setup Bluetooth communication between Arduino and MATLAB. Here, the MATLAB uses the laptop’s bluetooth to connect HC-05 connected with Arduino. First we have to code the Arduino to read the serial incoming data coming from the MATLAB (using Laptop’s Bluetooth).
The Instrument Control Toolbox™ Bluetooth interface lets you connect to devices over the Bluetooth interface, and to transmit and receive ASCII and binary data. Instrument Control Toolbox supports the Bluetooth Serial Port Profile (SPP). You can identify any SPP Bluetooth device and establish a two-way connection with that device.
B
= Bluetooth(RemoteID
,Channel
)
creates a Bluetooth object directly from the RemoteID
and Channel
.To connect with the Bluetooth device, use the
fopen
function. When the Bluetooth object is created, its status
property is closed
. When the object is connected to the remote device with the fopen
function, the status
property is set to open
.B
= Bluetooth(___,Name,Value
)
creates a Bluetooth object using the specified property values. If an invalid property name or property value is specified the object is not created.For information on other functions that can be used with
Bluetooth
, a full example using the Bluetooth interface, events and callbacks, and usage guidelines see Bluetooth Interface Overview.