BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-22-2010, 07:09 AM   #1 (permalink)
New Member
 
Join Date: Feb 2010
Model: 8110
PIN: N/A
Carrier: T-mobile
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post Bluetooth Connection error

Please Login to Remove!

Hi all,

Testing a Java App we created on a BlackBerry 8110 I get a "Unable to connect" Exception.

The app works fine in other brands. I tried different ways of constructing the URL and none worked.

Code:
				
try{
System.out.println(">>>>>> Connecting to: " + bluetoothURL);
rawStreamConnection = (StreamConnection) Connector.open(bluetoothURL);	
System.out.println(">>>>>> Connection Created");
        		
} catch (Exception e1) {
System.out.println(">>>>>> Could not connect. Exception = " +      e1.getMessage());          		
             		
    try{
          System.out.println(">>>>>> Searching the 'BlackBerry Way'");
          BluetoothSerialPortInfo[] info = BluetoothSerialPort.getSerialPortInfo();    
          
          System.out.println(">>>>>> Connecting the 'BlackBerry Way' to: " + info[0].toString());
          rawStreamConnection = (StreamConnection) Connector.open(info[0].toString(), Connector.READ_WRITE);
	  System.out.println(">>>>>> Connection Created the 'BlackBerry Way'");
                       	
          } catch (Exception e2) {
		System.out.println(">>>>>> Could not connect the 'BlackBerry Way'. Exception = " + e2.getMessage())");
          }   
 }

I get the following debug info:

>>>>>> Connecting to: btspp://000BCE03FFFD:1;authenticate=true;encrypt=true

CMM: DigidownBlue(1324) no sig from 0x33
BT: allocSerialPort a0c59f20
JVM: bklt @48344: timer
JVM: bklt @48344: idle 3
JVM: bklt @48344: setTimer 12
JVM: bklt @49878: timer
JVM: bklt @49878: idle 15
JVM: bklt @49878: setTimer 15
VM:IGCSc=0
VM:IGCSc=0
JVM: bklt @51792: timer
JVM: bklt @51792: idle 15
JVM: bklt @54115: setTimer 15

>>>>>> Could not connect. Exception = Unable to connect.

>>>>>> Searching the 'BlackBerry Way'

BT: freeSerialPort a0c59f20
BT: BTEVENT_LINK_DISCONNECT
net.rim.bluetooth: DD16

>>>>>> Connecting the 'BlackBerry Way' to: btspp://0021D1F2D162:1

CMM: DigidownBlue(1324) no sig from 0x33
BT: allocSerialPort a0c5a078
BT: BTEVENT_LINK_CONNECT
net.rim.bluetooth: DC04
JVM: bklt @56008: timer
JVM: bklt @56008: idle 15
JVM: bklt @56008: setTimer 15
JVM: bklt @57928: timer
JVM: bklt @57928: idle 15
BT: freeSerialPort a0c5a078

>>>>>> Could not connect the 'BlackBerry Way'. Exception = Unable to connect.




Any suggestions will be more than appreciated.

Thanks in advance,

Juan Pison
Offline  
Old 04-09-2010, 04:41 AM   #2 (permalink)
New Member
 
Join Date: Apr 2010
Model: 9700
PIN: N/A
Carrier: Airtel
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Did u get the solution for this problem. Even I'm facing the same problem. Please help me

Regards,
Nanditha
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.