<?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</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: Why Ports class is no available under Desktop Windows Library?</title><link>http://inthehand.com/forums/thread/7843.aspx</link><pubDate>Sun, 21 Jun 2009 05:27:33 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:7843</guid><dc:creator>enocturno</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/7843.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=7843</wfw:commentRss><description>&lt;p&gt;WoW nice, that makes things a lot easier. I solved the name problem comparing the created ports before the creation and 10 sec after. Then you will get the last port created. Not the best solution but for now very useful.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards, &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why Ports class is no available under Desktop Windows Library?</title><link>http://inthehand.com/forums/thread/7841.aspx</link><pubDate>Sat, 20 Jun 2009 11:09:54 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:7841</guid><dc:creator>alanjmcf</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/7841.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=7841</wfw:commentRss><description>&lt;p&gt;If you use BluetoothClient **no** virtual serial port is required.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you want to programmatically createa virtual serial port do:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Dim device As BluetoothDeviceInfo = ... from discovery / or: New BluetoothDeviceInfo(addr) / etc&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ret As Boolean = device.SetServiceState(BluetoothService.SerialPort, true)&lt;/p&gt;&lt;p&gt;A virtual serial port will be created. :-)&amp;nbsp; It doesn&amp;#39;t tell the name (e.g. COM23) however. :-(&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why Ports class is no available under Desktop Windows Library?</title><link>http://inthehand.com/forums/thread/7839.aspx</link><pubDate>Sat, 20 Jun 2009 03:11:45 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:7839</guid><dc:creator>enocturno</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/7839.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=7839</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for your quick answer Alan, now i will try to find a quick way to create the virtual serial port and link it to this channel.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Why Ports class is no available under Desktop Windows Library?</title><link>http://inthehand.com/forums/thread/7838.aspx</link><pubDate>Fri, 19 Jun 2009 11:08:48 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:7838</guid><dc:creator>alanjmcf</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/7838.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=7838</wfw:commentRss><description>&lt;p&gt;&lt;b&gt;SetServiceState &lt;/b&gt;is supported on both platforms.&amp;nbsp; &lt;b&gt;BluetoothSerialPort &lt;/b&gt;uses an API that exist *only* on CE/WM.&lt;/p&gt;&lt;p&gt;If you want *your* application to connect to the device, just use&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; BluetoothAddress addr = ...&lt;br /&gt;&amp;nbsp;&amp;nbsp; BluetoothClient cli = new BluetoothClient();&lt;br /&gt;&amp;nbsp;&amp;nbsp; cli.Connect(addr, &lt;b&gt;BluetoothService.SerialPort&lt;/b&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; ... as shown in the user guide...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If you want another application then you&amp;#39;ll need the virtual serial port to be created for it to use.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Why Ports class is no available under Desktop Windows Library?</title><link>http://inthehand.com/forums/thread/7837.aspx</link><pubDate>Thu, 18 Jun 2009 23:47:15 GMT</pubDate><guid isPermaLink="false">a6c76ee1-0bb1-45d9-a8c3-660105c16730:7837</guid><dc:creator>enocturno</dc:creator><slash:comments>0</slash:comments><comments>http://inthehand.com/forums/thread/7837.aspx</comments><wfw:commentRss>http://inthehand.com/forums/commentrss.aspx?SectionID=37&amp;PostID=7837</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; I just wonder why ports class is no available under desktop windows library? I am experimenting with this amazing library, but i have this problem now, i&amp;#39;m trying to create a custom enumerator utility for my GPS RBT-2300, but this utility requires the serial port to be registere.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I found this information... http://www.alanjmcf.me.uk/comms/bluetooth/32feet.NET%20--%20User%20Guide.html&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;----------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;h2&gt;&lt;a class="" name="_Toc196646202"&gt;&lt;/a&gt;Bluetooth Serial Ports&lt;/h2&gt;

&lt;p class="MsoBodyText"&gt;By far the easiest and best way to use a serial port
connection is to use &lt;span class="Codeinline"&gt;&lt;span style="font-size:8pt;"&gt;BluetoothClient&lt;/span&gt;&lt;/span&gt; with service class &lt;span class="Codeinline"&gt;&lt;span style="font-size:8pt;"&gt;BluetoothService.SerialPort&lt;/span&gt;&lt;/span&gt;,
i.e. using code very much like shown above.&amp;nbsp; Both &lt;span class="Codeinline"&gt;&lt;span style="font-size:8pt;"&gt;BluetoothClient&lt;/span&gt;&lt;/span&gt; and virtual
serial ports use the RFCOMM protocol so the two are equivalent.&amp;nbsp; This method is
much easier to set-up that a virtual serial port, there is no global state to
configure etc; and is also more robust, for instance if the peer device is
taken out of range or turned-off one learns this directly soon after, whereas
with a serial port one has to use timeouts and retries to detect it.&lt;/p&gt;

&lt;p class="MsoBodyText"&gt;However there are cases where a virtual serial port is
required, for instance where another program needs to access the connection — a
common case is where your program is configuring a connection that will be used
by a printer driver utility.&amp;nbsp; Two methods for creating a Bluetooth virtual
serial port exist in the library, the first is class &lt;span class="Codeinline"&gt;&lt;span style="font-size:8pt;"&gt;BluetoothSerialPort&lt;/span&gt;&lt;/span&gt;, this
creates a connection immediately but the underlying API it uses is rather
unreliable, and it seems not to work at all on various device types.&amp;nbsp; The
second is &lt;span class="Codeinline"&gt;&lt;span style="font-size:8pt;"&gt;BluetoothDeviceInfo.SetServiceState&lt;/span&gt;&lt;/span&gt;
passing in service class &lt;span class="Codeinline"&gt;&lt;span style="font-size:8pt;"&gt;SerialPort&lt;/span&gt;&lt;/span&gt;, this configures the necessary
Registry settings and is reliable but requires a reboot before the port becomes
available.&amp;nbsp; A difficulty, as with the same method on desktop Windows, is that
the name of the COM port created is not returned.&lt;/p&gt;

&lt;p class="MsoBodyText"&gt;On the Microsoft stack on CE/WM both methods are
supported, on the Microsoft stack on desktop Windows we support only
SetServiceState, and on Widcomm on both platforms we currently support neither.&lt;/p&gt;&lt;p class="MsoBodyText"&gt;&amp;nbsp;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p class="MsoBodyText"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoBodyText"&gt;Clearly says that the class &lt;span class="Codeinline"&gt;&lt;span style="font-size:8pt;"&gt;BluetoothSerialPort&lt;/span&gt;&lt;/span&gt; and available for desktop windows.&amp;nbsp; Even unreliable as it says it would be nice to experiment with it.&lt;/p&gt;&lt;p class="MsoBodyText"&gt;Thanks in advance for any comment on this matter.&lt;/p&gt;&lt;p class="MsoBodyText"&gt;&amp;nbsp;Eduardo&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>