[prev in list] [next in list] [prev in thread] [next in thread]
List: kvm-interest
Subject: Bluetooth Question
From: Chris Rotberg <crotberg () HOTMAIL ! COM>
Date: 2008-10-27 2:01:27
Message-ID: BLU107-DAV423FC7637DBC570EC4C50D7240 () phx ! gbl
[Download RAW message or body]
I am writing a Bluetooth driver, if I use
result = disAgent.startInquiry(0x9e8b33, this);
and get the list of Bluetooth devices from InquiryComplete and then select a
device and Connect it works fine. When I try to open a Bluetooth directly
with the address I get a
Exception Open Client Channel Failed
try {
streamConn = (StreamConnection)Connector.open("btspp://" + address +
";authenticate=false;encrypt=false;master=false");
} catch(IOException e){
Is there something that startInquiry is doing that opens the channel that
opening it directly does not?
Thanks
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008>I am writing a
Bluetooth driver, if I use </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008>result =
disAgent.startInquiry(0x9e8b33, this);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008>and get the list of
Bluetooth devices from InquiryComplete and then select a device and Connect it
works fine. When I try to open a Bluetooth directly with the address I get a
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008>Exception Open
Client Channel Failed</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008><SPAN
class=544425201-27102008>try {</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008>streamConn =
(StreamConnection)Connector.open("btspp://" + address +
";authenticate=false;encrypt=false;master=false");</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008>} catch(IOException
e){</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=544425201-27102008>Is there something
that startInquiry is doing that opens the channel that opening it directly does
not?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<STYLE>
<!--
A.psl {
TEXT-DECORATION:none; COLOR: #4e81c4
}
A:hover {
TEXT-DECORATION: underline
}
A.psl:hover {
COLOR: #999999
}
noro {
FONT-SIZE: 8pt; COLOR: #4e81c4; FONT-FAMILY: Verdana,Arial,fixed
}
tiny {
FONT-SIZE: 1pt
}
logotext {
TEXT-DECORATION: none; FONT-SIZE: 10pt; FONT-FAMILY: Verdana,Arial,fixed
}
A.brand {
FONT-SIZE: 7pt; COLOR: #ffffff; FONT-FAMILY: Verdana,Arial,fixed; TEXT-DECORATION: underline
}
-->
</STYLE>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic