return empty when I enter “”instrhwinfo('Bluetooth','Hphone')“”
Ältere Kommentare anzeigen
>> a = instrhwinfo('Bluetooth')
a =
RemoteNames: {'Hphone'}
RemoteIDs: {'btspp://087A4C001CFC'}
BluecoveVersion: 'BlueCove-2.1.1-SNAPSHOT'
JarFileVersion: 'Version 3.2'
>> instrhwinfo('Bluetooth','Hphone')
ans =
RemoteName: []
RemoteID: []
ObjectConstructorName: []
Channels: []
Antworten (2)
Vinod
am 23 Nov. 2015
0 Stimmen
In this case this was because the phone did not support Bluetooth Serial Port Profile.
Note that this may also have to do with the device going into a power save mode and not being discoverable. If you are sure the device supports Bluetooth SPP, try power cycling your device and then executing
>>instrhwinfo('bluetooth','_myDevice_')
Note that the information returned is frequently usable even if the device is in power save mode, so you only potentially need this information once.
Kategorien
Mehr zu Bluetooth Communication finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!