To enable communication between two bluetooth devices, you can create a connection by creating client and server sockets. the Bluetooth server socket must be configured to listen for incoming connection and accept a client socket. the Bluetooth client socket must know the address of the bluetooth device to connect to, before it sends a connection request.
Microsoft Windows CE Implementation of Bluetooth allows you to create a piconet. As per the Bluetooth specification, a master device can connect with seven active slave devices. For more information about piconet, seeBluetooth Core SpecificationAt this Official Bluetooth wireless info web site.
You can also create a connection by using the COM port emulator facility that ships with Microsoft Windows CE. for more information about using this facility to create connections, see creating a connection to a remote device using a virtual COM port.
Wince only implements the RFCOMM part of the Bluetooth protocol. It seems that only RFCOMM-based connections can be created.
This section describes two methods for establishing a Bluetooth connection under wince. one is to establish a socket connection through Winsock, and the other is to establish a comport connection through a Bluetooth virtual serial port. In fact, both methods are implemented based on the RFCOMM protocol layer.