简体   繁体   English

使用 Qt 在 Windows 桌面上使用蓝牙 LE

[英]Bluetooth LE on Windows Desktop using Qt

I am working on an application using Qt Quick 2.0 for a Windows Desktop environment.我正在使用 Qt Quick 2.0 为 Windows 桌面环境开发一个应用程序。 I need to communicate with a sensor using Bluetooth LE, for this I have a bluetooth 4.0 usb dongle for my computer.我需要使用蓝牙 LE 与传感器通信,为此,我的计算机有一个蓝牙 4.0 USB 加密狗。

Since Qt does not support bluetooth on Windows Desktop I'm looking for another API to do this.由于 Qt 在 Windows 桌面上不支持蓝牙,我正在寻找另一个 API 来执行此操作。 I've ran into different API's such as 32feet but these kind of API's seem outdated and mostly dont support BLE.我遇到过不同的 API,例如 32feet,但这些 API 似乎已经过时,而且大多不支持 BLE。

I'm running windows 8.1, so using the Windows bluetooth stack seems like a no-brainer, but I am not sure if it's possible to use this in Qt.我正在运行 Windows 8.1,因此使用 Windows 蓝牙堆栈似乎很简单,但我不确定是否可以在 Qt 中使用它。

I hope you have an solution or can point me in a direction.我希望您有解决方案或可以为我指明方向。

Some more info about my platform:关于我的平台的更多信息:

  • Windows 8.1视窗 8.1
  • BLE usb dongle with Broadcom BCM20702 chip带 Broadcom BCM20702 芯片的 BLE USB 加密狗
  • Qt Quick 2.0, C++ Qt 快速 2.0,C++

Thanks in advance!提前致谢!

For my Windows 8/10 app, I used the native Windows BLE API.对于我的 Windows 8/10 应用程序,我使用了本机 Windows BLE API。 There's nothing that prevents it from being used in Qt, but there's nothing that particularly helps, either.没有什么可以阻止它在 Qt 中使用,但也没有什么特别有帮助的。

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

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