Bluetooth Question
Chris Rotberg <[email protected]> Sun, 26 Oct 2008 19:01:27 -0700
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
------=_NextPart_000_000F_01C9379D.3F9062B0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
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 [email protected] and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".
------=_NextPart_000_000F_01C9379D.3F9062B0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3429" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D544425201-27102008>I am =
writing a=20
Bluetooth driver, if I use </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D544425201-27102008>result =
=3D=20
disAgent.startInquiry(0x9e8b33, this);</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D544425201-27102008>and =
get the list of=20
Bluetooth devices from InquiryComplete and then select a device and =
Connect it=20
works fine. When I try to open a Bluetooth directly with the address I =
get a=20
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D544425201-27102008>Exception Open=20
Client Channel Failed</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D544425201-27102008><SPAN=20
class=3D544425201-27102008>try {</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D544425201-27102008>streamConn =3D=20
(StreamConnection)Connector.open("btspp://" + address +=20
";authenticate=3Dfalse;encrypt=3Dfalse;master=3Dfalse");</SPAN></FONT></D=
IV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D544425201-27102008>} =
catch(IOException=20
e){</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D544425201-27102008>Is =
there something=20
that startInquiry is doing that opens the channel that opening it =
directly does=20
not?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D544425201-27102008></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></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=3DArial size=3D2></FONT> </DIV></BODY></HTML>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".
------=_NextPart_000_000F_01C9379D.3F9062B0--