python bluetooth discover不显示所有设备

时间:2017-04-01 21:48:40

标签: python bluetooth

我的蓝牙智能秤存在问题。 我可以在我的Android手机上发现它。 但是当我运行这段代码时(在python2和python3中):

import bluetooth
bluetooth.discover_devices()

然后它返回空列表[]

当我运行这些命令时:

bluetoothctl
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:15:83:4F:32:56 Discovering: yes
[CHG] Device F0:C7:7F:2A:8D:CA RSSI: -83
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Key: 0x0000
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0xf0
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0xc7
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0x7f
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0x2a
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0x8d
[CHG] Device F0:C7:7F:2A:8D:CA ManufacturerData Value: 0xca

发现了规模。 有没有人知道,为什么pybluez无法发现这个设备?

谢谢!

0 个答案:

没有答案