Bluetooth C# DLLs

B

Bobby J.

Are there C# DLLs in VS05/08 to communicate with Bluetooth devices? If so,
will they work with both PC and Mobile (CF) applications?
 
B

Bobby J.

Thanks. This is what I was looking for. I was able to find device that I
want to communicate with. Another question... I have a hardware device with
a class I created that passes in the serial port to use with the
communication. Is it possible to use the InTheHand.Net DLLs to determine
what serial port the Bluetooth device is so I can pass that port into my
class for communication? Thanks again.
 
P

Peter Foot

You can manually create a virtual COM port for a device using the
InTheHand.Net,Ports.BluetoothSerialPort class. The port name must not
already be in use. At the moment the library doesn't interact with the COM
port settings found in the Control Panel on Windows Mobile 5.0 and above.
This will be in a future version and part of this work is in the latest
source code (http://codeplex.com/32feet/)

Peter
 
B

Bobby J.

I found the BluetoothSerialPort under the CE assembly. Why does the assembly
for XP not include this? Will there be one assembly released that will work
 
P

Peter Foot

The architecture of the Bluetooth stacks is quite different between the
desktop and device versions of Windows. On the desktop you can use the
BluetothDeviceInfo.SetServiceState to enable a COM port for a device (but
the method will not return the COM port name), once you can find the port
name yourself you can use regular SerialPort code. The library attempts to
abstract the differences between the stacks where possible but sometimes the
differences are too big.

Peter
 
B

Bobby J.

Thanks, you have been a big help. One last question...Are people allowed to
use these Bluetooth assemblies in their applications for selling commercial
products?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top