Bluetooth connect is failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bluetooth connect is failed

1,566 Views
youyong
Contributor I

RTL8723bs bluetooth,when i enter /usr/lib/bluez/test foldr,and run the command,the result is as follows:

root@imx6dlsabresd:/usr/lib/bluez/test# ./test-discovery
Traceback (most recent call last):
File "./test-discovery", line 125, in <module>
adapter = bluezutils.find_adapter(options.dev_id)
File "/usr/lib/bluez/test/bluezutils.py", line 14, in find_adapter
return find_adapter_in_objects(get_managed_objects(), pattern)
File "/usr/lib/bluez/test/bluezutils.py", line 9, in get_managed_objects
manager = dbus.Interface(bus.get_object("org.bluez", "/"),
File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/site-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

Labels (2)
0 Kudos
1 Reply

1,293 Views
igorpadykov
NXP Employee
NXP Employee

Hi  you yong

error : "dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files" may occur when bluetooth device is not present and/or the bluetooth service module hasn't started and registered with the dbus service. Please check solutions on:
https://github.com/projecthamster/hamster/issues/68
https://stackoverflow.com/questions/24612373/linux-and-bluetooth-why-does-bluez-doesnt-like-dbus

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos