Bluetooth Communications error on Matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
b = Bluetooth('A4933F4074D4',1);
>> fopen(b)
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.
The device was paired before starting Matlab, i was able to create the b variable but cannot seem to open the connection
b
Bluetooth Object : Bluetooth-A4933F4074D4:1
Communication Settings
RemoteName: a4933f4074d4
RemoteID: btspp://
Channel: 1
Terminator: 'LF'
Communication State
Status: closed
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
Does anyone know how to solve this?
>>
0 Kommentare
Antworten (1)
Samatha Aleti
am 3 Mai 2020
Hi,
Get the “object constructor” which includes the correct “channel ID” by running the following command:
btInfo = instrhwinfo('Bluetooth',RemoteName);
Create the object accordingly using the “object constructor”.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!