简体   繁体   English

Python中的蓝牙连接

[英]Bluetooth connectivity in Python

如何使用Python和蓝牙适配器找到附近的蓝牙设备?

You could use either of the following libraries: 您可以使用以下两个库之一:

BlueSoleil stack isn't compatible with PyBluez. BlueSoleil堆栈与PyBluez不兼容。 I ended up uninstalling BlueSoleil, restarted the machine (as per the post-uninstall prompt), and then configured my USB BT adapter for using the Microsoft BT Stack. 我最终卸载了BlueSoleil,重新启动了计算机(按照卸载后的提示),然后将USB BT适配器配置为使用Microsoft BT Stack。 After that, I didn't have any issues with the "Adapter not found" error message. 在那之后,“找不到适配器”错误消息没有任何问题。

Note that figuring out how to get your BT dongle to use the Microsoft stack was a pain in the rear end :) Some googling around brought me to this page - http://www.shootingsoftware.com/Widcomm.htm 请注意,弄清楚如何让您的BT加密狗使用Microsoft堆栈在后端​​很麻烦:)进行一些谷歌搜索使我进入了此页面-http: //www.shootingsoftware.com/Widcomm.htm

The author discusses a patch for a ".inf" file, but you might want to explore other options before you try this ... keep this method as your last resort. 作者讨论了一个用于“ .inf”文件的补丁,但是您可能想在尝试此方法之前先探索其他选项……将此方法作为最后的选择。

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

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