New issue 87 by abc6587: Can not read RSSI with Widcomm, failing to get
connection info, common.cpp:166
http://code.google.com/p/bluecove/issues/detail?id=87
What steps will reproduce the problem?
1. Discover a 220Plantronics headset with Widcomm (though I expect the
problem to be more broad than that).
2. Try either
LocalDevice.getProperty("bluecove.nativeFunction:getRemoteDeviceRSSI:" +
btDevice.getBluetoothAddress());
or (under 2.1.1 shapshot)
int i = RemoteDeviceHelper.readRSSI(btDevice);
What is the expected output? What do you see instead?
Expected an int. Instead, throws an IOException:
00:24:41.353 will throw exception java/io/IOException(Fail to get
connection info)
common.cpp:166
java.io.IOException: Fail to get connection info
at com.intel.bluetooth.BluetoothStackWIDCOMM.getRemoteDeviceRSSI(Native
Method)
at
com.intel.bluetooth.BluetoothStackWIDCOMM.readRemoteDeviceRSSI(BluetoothStackWIDCOMM.java:316)
at
com.intel.bluetooth.RemoteDeviceHelper.readRSSI(RemoteDeviceHelper.java:568)
at
my.bluetooth.MyRemoteDeviceDiscovery$1.deviceDiscovered(MyRemoteDeviceDiscovery.java:43)
at
com.intel.bluetooth.BluetoothStackWIDCOMM$1.deviceDiscoveredCallback(BluetoothStackWIDCOMM.java:437)
at com.intel.bluetooth.BluetoothStackWIDCOMM.runDeviceInquiryImpl(Native
Method)
at
com.intel.bluetooth.BluetoothStackWIDCOMM.access$000(BluetoothStackWIDCOMM.java:43)
at
com.intel.bluetooth.BluetoothStackWIDCOMM$1.runDeviceInquiry(BluetoothStackWIDCOMM.java:376)
at
com.intel.bluetooth.DeviceInquiryThread.run(DeviceInquiryThread.java:103)
What BlueCove version are you using (include build number for SNAPSHOT)?
Both 2.1.0 and 2.1.1 snapshot.
On what operating system and jvm? Is this 64-bit or 32-bit OS and jvm?
1.6.0_16; Java HotSpot(TM) Client VM; Sun Microsystems Inc.
Vista 32 bit
Please provide any additional information below.
Am running a RemoteDeviceDiscovery.java from your examples, with the two
lines above added to deviceDiscovered().
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Correction. On version 2.1.0,
LocalDevice.getProperty("bluecove.nativeFunction:getRemoteDeviceRSSI:" +
btDevice.getBluetoothAddress());
does not throw an exception, but returns -1, always.