BLE: выполнение теста bluez "test-near"

Эй, у меня возникли проблемы с запуском./test-proximity. Я использую bluez-5.16 и dbus-1.8.0.

В папке test/ находится текст BLE для профиля PXP.

Чтобы назвать это, я написал: ./test-proximity -i 0 -b 88:33:14:E5:EE:A1 LinkLossAlertLevel mild

Ошибка:

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 ответов

Другие вопросы по тегам