How to Establish a Bluetooth connection under WinCE

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.