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协议层的实现.
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值