简体   繁体   English

如何在Windows 8桌面中扫描蓝牙低功耗设备?

[英]How to scan for Bluetooth Low Energy devices in Windows 8 Desktop?

How to scan for Bluetooth Low Energy devices in Windows-8 Desktop? 如何在Windows-8桌面中扫描蓝牙低功耗设备?

I've tried to use WinSock APIs but all I'm get is Bluetooth Classic devices. 我试过使用WinSock API,但我得到的只是蓝牙经典设备。

I've also tried to use Bluetooth APIs but all I'm get is Bluetooth Classic devices. 我也试过使用蓝牙API,但我得到的只是蓝牙经典设备。

I know that it is possible, since windows is doing that. 我知道这是可能的,因为Windows正在这样做。 For example, I can run C:\\Windows\\System32\\DevicePairingWizard.exe and it will display the list of all devices, Classic & Low Energy. 例如,我可以运行C:\\ Windows \\ System32 \\ DevicePairingWizard.exe ,它将显示所有设备的列表,Classic和Low Energy。

In case other people are looking for an answer. 如果其他人正在寻找答案。

In Windows 8 (Desktop & Metro App) there are NO APIs for BLE device discovery and pairing. 在Windows 8(桌面和Metro应用程序)中,没有用于BLE设备发现和配对的API。

This is not lack of implementation, it is by design. 这不是缺乏实施,而是设计。 Windows folks want us to use "inbox experience" to search & pair BLE devices. Windows用户希望我们使用“收件箱体验”来搜索和配对BLE设备。

For more details, see this MSDN forum thread . 有关更多详细信息,请参阅此MSDN论坛主题

Good luck! 祝好运!

You could use BLE hardware module that you can control via a serial interface. 您可以使用可通过串行接口控制的BLE硬件模块。 Depending on your use case this may not be what you want as it does not make use of Windows 8's internal BLE stack! 根据您的使用情况,这可能不是您想要的,因为它没有使用Windows 8的内部BLE堆栈! Basically this solution is for tinkering/development. 基本上这个解决方案是用于修补/开发。

I know these two devices that can do this and have APIs for BLE discovery: 我知道这两个设备可以执行此操作并具有用于BLE发现的API:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM