08-14-2008 08:29 PM
I don't have a solution for you, but I'd just like to say that I have no problems doing what you are trying to do on an 8100 & 9000 using JDE4.2.1.
The URL we use is similar...
and the Connector.open() call is the same.
The only difference is that we retrieved the btmac using discovery javax.bluetooth.DiscoveryAgent & RemoteDevice.getBluetoothAddress().
Can you confirm the same code works to the same device from another type of handset?
08-14-2008 09:00 PM
08-15-2008 05:28 PM
I have not yet been able to fix this.
Our working example program that uses RIM's BluetoothSerialPort class instead of the connector.open works, and shows:
Pedometer service name: COM1
Pedometer BluetoothSerialPortInfo.tostring: btspp://1000E86CEABE:1
In the actual application:
Searching for devices, finds Pedometer .
Do a service search on it, receive response "DiscoveryListener.SERVICE_SEARCH_DEVICE_NOT_REACH
Connection URL is btspp://1000E86CEABE:1
Connector.open(connectionURL, Connector.READ_WRITE) throws exception : "java.io.IOException: Unable to connect"
Tried bluetoothserialport in the main program, received:
[com.ww.mobile.BTConnector][DEBUG]: Device name is Pedometer
[com.ww.mobile.BTConnector][DEBUG]: Device server id is 1
[com.ww.mobile.BTConnector][DEBUG]: Device service name is COM1
[com.ww.mobile.BTConnector][DEBUG]: Device toString: btspp://1000E86CEABE:1
BT: allocSerialPort 10f6252c
[com.ww.mobile.BTConnector][DEBUG]: Serial port opened
BT: SppWrite-1 failed: 1
[com.ww.mobile.BTConnector][DEBUG]: Exception while transferring BT data: java.io.IOException: BtSppWrite failed
08-18-2008 10:09 AM
Have you tried using your Bluetooth implementation to connect to another device, such as a PC with Bluetooth support and simulate some of the data that your Bluetooth device would return?
This test would separate any issue with your application versus an issue on the device itself.
08-21-2008 10:42 AM
To update, this is fixed and working now.
There were a few issues I was having:
07-03-2009 07:52 AM
I am stuck in the same issue,
connectionURL = services[i].getConnectionURL(
ClientSession conn = (ClientSession) Connector.open(connectionURL,
Here I am getting proper value of connectionURL, But when Connector.open is called it hangs up for few 30~40 seconds and eventually I get "IOException: Unable to connect".
Also note that when connector.open is called receiving device gets popup saying "Receive data from BB 8310". But eventually there no data been exchanged.
Let me know if I have to do any additional settings in device or my code.
04-30-2010 02:49 PM
Acowart's solution is helpful, and I have addtional ones here:
I faced the same problem, and got it solved. Hope my thread would help.