wince下建立bluetooth連接的方法

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, see the Bluetooth Core Specification at 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只實現了藍牙協議中的rfcomm部分,好像只能創建基於rfcomm的連接.
本段闡述了在wince下建立藍牙連接的兩種方式.一種是通過winsock建立socket連接,另一個方式是用藍牙虛擬的串口建立com口的連接,其實兩種方法都是基於rfcomm協議層的實現.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章