필터 지우기
필터 지우기

return empty when I enter “”instrhwi​nfo('Bluet​ooth','Hph​one')“”

조회 수: 1 (최근 30일)
HDying
HDying 2014년 2월 8일
답변: Vinod 2015년 11월 23일
>> 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: []

답변 (2개)

HDying
HDying 2014년 2월 8일
편집: HDying 2014년 2월 8일
thx everybody, I think I find the reason. that is the device is cellphone. the key is it can't run the SPP profile. Look this for details. : http://www.mathworks.com/matlabcentral/answers/98837

Vinod
Vinod 2015년 11월 23일
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.

카테고리

Help CenterFile Exchange에서 Test and Measurement에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by