<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://inthehand.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Bluetooth</title><link>http://inthehand.com/forums/37.aspx</link><description>For discussion about BluetoothClient, BluetoothListener and all other Bluetooth functionality in the library

Please use the CodePlex site for all future discussions:-
http://32feet.codeplex.com/discussions</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13946.aspx</link><pubDate>Wed, 04 Jan 2012 06:18:46 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13946</guid><dc:creator>ramesh.shivakumar</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13946.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13946</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Alan,&lt;/p&gt;&lt;p&gt;Thanks for the replay,Reaily i failed to rectify the issue.&lt;/p&gt;&lt;p&gt;i tried calling connect method 2nd time without calling &lt;/p&gt;&lt;p&gt;&amp;nbsp; oBluetoothWin32Authentication&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = new BluetoothWin32Authentication(Win32AuthCallbackHandler);&lt;/p&gt;&lt;p&gt;but still same result. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;please provide the code to Resolve this issue.&lt;/p&gt;&lt;p&gt;My current code is like this&lt;/p&gt;&lt;p&gt;Tell me where exactly i need to add the code &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;bool IsAlreadyPaired; &lt;/p&gt;&lt;p&gt;&amp;nbsp;public bool Open()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (m_oBTConnector == null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_oBTConnector = new BletoothClient();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Guid spguid = BluetoothService.SerialPort;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_oBTAddress = BluetoothAddress.Parse(sDeviceAddress);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_oEndPoint = new BluetoothEndPoint(m_oBTAddress, BluetoothService.SerialPort&amp;nbsp; );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BluetoothWin32Authentication oBluetoothWin32Authentication = null; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (BluetoothRadio.PrimaryRadio.HciVersion == HciVersion.v3_0wHS)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!IsAlreadyPaired) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oBluetoothWin32Authentication&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = new BluetoothWin32Authentication(Win32AuthCallbackHandler);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_oBTConnector.Connect(m_oBTAddress, BluetoothService.SerialPort);&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;public void Win32AuthCallbackHandler(object sender, InTheHand.Net.Bluetooth.BluetoothWin32AuthenticationEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Confirm = true;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsAlreadyPaired =true;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13945.aspx</link><pubDate>Tue, 03 Jan 2012 16:24:55 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13945</guid><dc:creator>alanjmcf</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13945.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13945</wfw:commentRss><description>&lt;p&gt;If the two devices are already paired/bonded they don&amp;#39;t need to re-pair so there&amp;#39;s no security callback required.&amp;nbsp; BTW I would completely remove the call to PairRequest.&amp;nbsp; Just&amp;nbsp;always call connect.&amp;nbsp; Then&amp;nbsp;let the callback handler handle *both* the SSP (v2.1) and &amp;#39;traditional pairing&amp;#39; schemes -- add code to the callback handler to handle the Legacy case and return the same PIN as used in PairRequest i.e. &amp;quot;0000&amp;quot; and it should work the same.&amp;nbsp;&lt;/p&gt;&lt;p&gt;((Also you are using **both** &lt;strong&gt;BluetoothClient.Connect &lt;/strong&gt;and &lt;strong&gt;BluetoothDeviceInfo.SetServiceState(SerialPort)&lt;/strong&gt;.&amp;nbsp; Why?&amp;nbsp; Do you want to use a COM port (which I really recommend against) or do you wish to use a &lt;strong&gt;NetworkStream&lt;/strong&gt;/&lt;strong&gt;Socket &lt;/strong&gt;connection in your program.&amp;nbsp; RFCOMM/SPP only allows one connection from a remote device to each 
service. See e.g. &lt;a href="http://32feet.codeplex.com/documentation"&gt;http://32feet.codeplex.com/documentation&lt;/a&gt;&amp;nbsp; &lt;a href="http://32feet.codeplex.com/wikipage?title=General%20Bluetooth%20Data%20Connections"&gt;http://32feet.codeplex.com/wikipage?title=General%20Bluetooth%20Data%20Connections&lt;/a&gt;&amp;nbsp; &lt;a href="http://32feet.codeplex.com/wikipage?title=Bluetooth%20Serial%20Ports"&gt;http://32feet.codeplex.com/wikipage?title=Bluetooth%20Serial%20Ports&lt;/a&gt;))&lt;/p&gt;</description></item><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13942.aspx</link><pubDate>Fri, 30 Dec 2011 06:06:09 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13942</guid><dc:creator>ramesh.shivakumar</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13942.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13942</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Alan,&lt;/p&gt;&lt;p&gt;I read that thread completly i agree it may work with obex with BT 2.1 . my environment is SPP with BT 3.0 with Window7.&lt;/p&gt;&lt;p&gt;your solution works fines if the device is not paired for first time by hangling&amp;nbsp;&lt;/p&gt;&lt;p&gt;oBluetoothWin32Authentication&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = new BluetoothWin32Authentication(Win32AuthCallbackHandler); &lt;/p&gt;&lt;p&gt;&amp;nbsp; public void Win32AuthCallbackHandler(object sender, InTheHand.Net.Bluetooth.BluetoothWin32AuthenticationEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Confirm = true;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;but if i stop the application and restart the application i will find the all paired devices in the list if i select the one device and tried to connect &lt;/p&gt;&lt;p&gt;it will not call&amp;nbsp; event&amp;nbsp; Win32AuthCallbackHandler .&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;i dint know what the reason for the same.&lt;/p&gt;&lt;p&gt;please provide the solution. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Happy Week End with HAPPY NEW YEAR. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13939.aspx</link><pubDate>Thu, 29 Dec 2011 12:23:44 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13939</guid><dc:creator>alanjmcf</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13939.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13939</wfw:commentRss><description>&lt;p&gt;Have a read of the thread &lt;a href="http://inthehand.com/forums/t/5204.aspx"&gt;http://inthehand.com/forums/t/5204.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Note also the line &amp;quot;If you simply want to allow the pairing to go ahead when to SSP devices are 
connecting then handling the callback and setting &lt;b&gt;e.Confirm=True&lt;/b&gt; will be 
enough -- but that is a little insecure...&amp;quot; at &lt;a href="http://32feet.codeplex.com/wikipage?title=BluetoothWin32Authentication&amp;amp;referringTitle=Bluetooth%20Security"&gt;http://32feet.codeplex.com/wikipage?title=BluetoothWin32Authentication&amp;amp;referringTitle=Bluetooth%20Security&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13938.aspx</link><pubDate>Thu, 29 Dec 2011 07:21:59 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13938</guid><dc:creator>ramesh.shivakumar</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13938.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13938</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Alan,&lt;/p&gt;&lt;p&gt;I tried the code which you suggested .its woking fine for unpaired devices.&lt;/p&gt;&lt;p&gt;for paired devices the&amp;nbsp; application will&amp;nbsp; not call the call back event (Win32AuthCallbackHandler ) raises the exception&lt;/p&gt;&lt;p&gt;m_oBTConnector.Connect(m_oEndPoint);&amp;nbsp; //here i will get a exception&amp;nbsp;&amp;nbsp; &amp;quot;A
 socket operation was attempted to an unreachable network&amp;quot; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;.i noticed that if i remove the device from remembered&amp;nbsp;&lt;/p&gt;&lt;p&gt;device list manullay , then if i try freshly application will discover and paires and connects.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please suggest me better way to over come this problem&lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13936.aspx</link><pubDate>Wed, 28 Dec 2011 11:24:27 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13936</guid><dc:creator>ramesh.shivakumar</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13936.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13936</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Alan,&lt;/p&gt;&lt;p&gt;Thanks for your replay,i tried that method for first time it will call call back event second time it will will not&amp;nbsp; call the call back event.&lt;/p&gt;&lt;p&gt;if my Bluetooth version of the Pc with windows 7/xp&amp;nbsp; is 3.0 means i need to bypass the paring and i want connect direct from Pc to Remote device.&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;Please find the sample below&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Connect(string sDeviceAddress&amp;nbsp; )&lt;/p&gt;&lt;p&gt;{ &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Bluetoothclient&amp;nbsp; m_oBTConnector = new Bluetoothclient ();&lt;/p&gt;&lt;p&gt;&amp;nbsp;Guid spguid = BluetoothService.SerialPort;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; m_oBTAddress&amp;nbsp; = BluetoothAddress.Parse ( sDeviceAddress&amp;nbsp; );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; m_oEndPoint = new BluetoothEndPoint ( m_oBTAddress, spguid ); &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;BluetoothWin32Authentication &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; oBluetoothWin32Authentication&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = new BluetoothWin32Authentication(Win32AuthCallbackHandler); &lt;/p&gt;&lt;p&gt;&amp;nbsp; m_oBTConnector.Connect(m_oEndPoint);&amp;nbsp; //here i will get a exception&amp;nbsp;&amp;nbsp; &amp;quot;A socket operation was attempted to an unreachable network&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp; public void Win32AuthCallbackHandler(object sender, InTheHand.Net.Bluetooth.BluetoothWin32AuthenticationEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Note we assume here that &amp;#39;Legacy&amp;#39; pairing is being used,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // and thus we only set the Pin property!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string address = e.Device.DeviceAddress.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&amp;quot;Received an authentication request from address &amp;quot; + address);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // compare the first 8 hex numbers, this is just a special case because in the&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // used scenario the model of the devices can be identified by the first 8 hex&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // numbers, the last 4 numbers being the device specific part.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (address.Substring(0, 8).Equals(&amp;quot;098678j&amp;quot;) || address.Substring(0, 8).Equals(&amp;quot;0099880E&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // send authentication response&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Pin = &amp;quot;0000&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if ((address.Substring(0, 8).Equals(&amp;quot;00997788&amp;quot;)))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // send authentication response&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Pin = &amp;quot;0000&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards &lt;/p&gt;&lt;p&gt;Happy new Year in Advance &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13935.aspx</link><pubDate>Wed, 28 Dec 2011 09:23:33 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13935</guid><dc:creator>alanjmcf</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13935.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13935</wfw:commentRss><description>&lt;p&gt;So you need to use BluetoothWin32Authentication in its &amp;#39;callback/event&amp;#39;mode.&amp;nbsp; So use code like shown at http://32feet.codeplex.com/wikipage?title=BluetoothWin32Authentication&amp;nbsp; For Bluetooth v2.1 SSP, in the callback-handler you&amp;#39;d need to return &amp;quot;e.Confirm=true&amp;quot; at least.&amp;nbsp; Presumably you get e.AuthenticationMethod as NumericComparison?&lt;/p&gt;&lt;p&gt;Ohh yeh, you must set that up *before* you try to connect / set-up services with the remote device.&lt;/p&gt;</description></item><item><title>Re: Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13932.aspx</link><pubDate>Fri, 23 Dec 2011 11:21:53 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13932</guid><dc:creator>ramesh.shivakumar</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13932.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13932</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Alan,&lt;/p&gt;&lt;p&gt;my laptop having msft 3.0 and windows 7 i am trying to connect the devices it is not connecting.&lt;/p&gt;&lt;p&gt;i tryied with first pairing and connecting next still its not working .&lt;/p&gt;&lt;p&gt;scenerio is that if the bt version is greater than&amp;nbsp; 2.0 the passkey must me bypassed.&lt;/p&gt;&lt;p&gt;but i doint know how to connect the remote device with out paring / need to pair intrnally.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;code&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;public bool&amp;nbsp; Open()&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(m_oBTConnector == null)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m_oBTConnector = new BluetoothClient ( );&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Guid spguid = BluetoothService.SerialPort;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m_oBTAddress&amp;nbsp; = BluetoothAddress.Parse ( sDeviceAddress&amp;nbsp; );&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m_oEndPoint = new BluetoothEndPoint ( m_oBTAddress, spguid );&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;BluetoothDeviceInfo oBluetoothDeviceInfo = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;BluetoothWin32Authentication oBluetoothWin32Authentication = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;try&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ReceivingStatus = &amp;quot;[status(&amp;quot; + DateTime.Now.ToString ( ) + &amp;quot;)/connect] try to connect: &amp;quot; + sDeviceAddress + &amp;quot;&amp;lt;&amp;quot; + System.Net.Dns.GetHostEntry ( System.Net.Dns.GetHostName ( ) ).AddressList[0].ToString ( ) + &amp;quot;&amp;gt;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oBluetoothDeviceInfo = new BluetoothDeviceInfo ( m_oBTAddress );&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Guid Guid = BluetoothService.SerialPort;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oBluetoothDeviceInfo.SetServiceState ( BluetoothService.SerialPort, true );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oBluetoothWin32Authentication&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = new BluetoothWin32Authentication(m_oBTAddress, &amp;quot;0000&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (BluetoothSecurity.PairRequest(m_oBTAddress, &amp;quot;0000&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_oBTConnector.Connect(m_oEndPoint);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ReceivingStatus = &amp;quot;[status(&amp;quot; + DateTime.Now.ToString ( ) + &amp;quot;)/connect] OK &amp;quot; + sDeviceAddress + &amp;quot;&amp;lt;&amp;quot; + System.Net.Dns.GetHostEntry ( System.Net.Dns.GetHostName ( ) ).AddressList[0].ToString ( ) + &amp;quot;&amp;gt;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;catch(System.Exception e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ReceivingStatus = &amp;quot;[status(&amp;quot; + DateTime.Now.ToString ( ) + &amp;quot;)/connect] FAILED &amp;quot; + sDeviceAddress + &amp;quot;&amp;lt;&amp;quot; + System.Net.Dns.GetHostEntry ( System.Net.Dns.GetHostName ( ) ).AddressList[0].ToString ( ) + &amp;quot;&amp;gt;&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//m_oExceptionLog.LogException ( &amp;quot;ConnectDevice&amp;quot;, &amp;quot;CheckConnection&amp;quot;, e.Message );&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;finally&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m_oBTAddress = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m_oEndPoint = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oBluetoothDeviceInfo = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oBluetoothWin32Authentication = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in Advance&lt;/p&gt;&lt;p&gt;Happy Christmas &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Bluetooth 3.0 version with windows 7</title><link>http://inthehand.com/forums/thread/13929.aspx</link><pubDate>Thu, 22 Dec 2011 14:07:20 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:13929</guid><dc:creator>ramesh.shivakumar</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/13929.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=13929</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Alan,&lt;/p&gt;&lt;p&gt;i am facing problem in connecting the device for 2nd time.&lt;/p&gt;&lt;p&gt;initially i when the device is newly conncted it will connectes (Paring &amp;amp; Connect).&lt;/p&gt;&lt;p&gt;for the 2nd time when i try to connect the same device it will through an error&lt;/p&gt;&lt;p&gt;A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;i am using inhand 3.3 vr .net 3.5 windows 7 &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>