BLE:执行bluez测试“test-proximity”

时间:2014-04-09 13:18:38

标签: bluetooth bluetooth-lowenergy dbus bluez

嘿,我在运行./test-proximity时遇到了一些麻烦。我使用的是bluez-5.16和dbus-1.8.0。

在文件夹test /是PXP配置文件的BLE文本。

要打电话给我写道:./ test-proximity -i 0 -b 88:33:14:E5:EE:A1 LinkLossAlertLevel温和

错误:

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文件有问题。但我无法找到它们。

提前致谢

0 个答案:

没有答案