wince下建立bluetooth串連的方法

來源:互聯網
上載者: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, 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協議層的實現.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.