Bluetooth BLE:执行bluez测试“测试接近度”
嘿,我在运行测试时遇到了一些麻烦。我正在使用bluez-5.16和dbus-1.8.0 文件夹test/中是PXP配置文件的可编辑文本 我写道:./testapproxity-i0-b88:33:14:E5:EE:a1linklossalertlevel 错误:Bluetooth BLE:执行bluez测试“测试接近度”,bluetooth,bluetooth-lowenergy,dbus,bluez,Bluetooth,Bluetooth Lowenergy,Dbus,Bluez,嘿,我在运行测试时遇到了一些麻烦。我正在使用bluez-5.16和dbus-1.8.0 文件夹test/中是PXP配置文件的可编辑文本 我写道:./testapproxity-i0-b88:33:14:E5:EE:a1linklossalertlevel 错误: Traceback (most recent call last): File "./test-proximity", line 52, in <module> device = bluezutils.find_
Traceback (most recent call last):
File "./test-proximity", line 52, in <module>
device = bluezutils.find_device(options.address, options.dev_id)
File "/home/pi/bluez-5.16/test/bluezutils.py", line 29, in find_device
return find_device_in_objects(get_managed_objects(), device_address,
File "/home/pi/bluez-5.16/test/bluezutils.py", line 9, in get_managed_objects
manager = dbus.Interface(bus.get_object("org.bluez", "/"),
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
.service文件似乎有问题。但是我找不到他们
提前感谢bluetooth是否在您的设备中运行是的,我用nexus 4、华硕Bt400和hm-10对其进行了测试:尝试在/etc/pulse/default.pait中注释掉蓝牙模块将无法解决问题,因为链接表明此人没有使用bluez,因此pulseaudio软件包给出了该错误,@RobAnderson:你是说你用nexus4测试了bluez5?Bluez是在linux机器上运行的。但我希望在使用nexus4和一个可扩展的应用程序时看到这些服务。这表明问题出在bluez配置上。