Hi all,
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'm trying to create a custom enumerator utility for my GPS RBT-2300, but this utility requires the serial port to be registere.
I found this information... http://www.alanjmcf.me.uk/comms/bluetooth/32feet.NET%20--%20User%20Guide.html
----------------------------------------------------------------------------------------------------------------
Bluetooth Serial Ports
By far the easiest and best way to use a serial port
connection is to use BluetoothClient with service class BluetoothService.SerialPort,
i.e. using code very much like shown above. Both BluetoothClient and virtual
serial ports use the RFCOMM protocol so the two are equivalent. 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.
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. Two methods for creating a Bluetooth virtual
serial port exist in the library, the first is class BluetoothSerialPort, 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. The
second is BluetoothDeviceInfo.SetServiceState
passing in service class SerialPort, this configures the necessary
Registry settings and is reliable but requires a reboot before the port becomes
available. A difficulty, as with the same method on desktop Windows, is that
the name of the COM port created is not returned.
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.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Clearly says that the class BluetoothSerialPort and available for desktop windows. Even unreliable as it says it would be nice to experiment with it.
Thanks in advance for any comment on this matter.
Eduardo