You are not logged in.
Hi
I am trying to pair to a bluetooth headset. I think I'm almost there, but at the last step I get an exception.
This is what i did so far:
1) launch dbus
rc.d start dbus
2) launch bluetooth
rc.d start bluetooth
3) check if my device is UP
# hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 58:B0:35:63:4A:9F ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:2095 acl:0 sco:0 events:59 errors:0
TX bytes:730 acl:0 sco:0 commands:53 errors:0
4) scan for the headset (which is discouverable)
# hcitool scan
Scanning ...
00:23:78:5C:00:A8 Bluetooth headset
5) try to pair (FAILS)
# bluez-simple-agent 00:23:78:5C:00:A8
Traceback (most recent call last):
File "/usr/bin/bluez-simple-agent", line 102, in <module>
path = manager.FindAdapter(args[0])
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.NoSuchAdapter: No such adapter
I searched in the forums but could not find a solution. Has anyone an idea?
Thanks in advance,
Keen
Last edited by keen90 (2012-05-18 13:50:37)
Offline
# bluez-simple-agent 00:23:78:5C:00:A8
I got the same error when I just tried that myself... but if I add the bluetooth adapter parameter it goes further:
# bluez-simple-agent hci0 00:23:78:5C:00:A8
Because my headphones were already paired at the time, I think that's why I then got a "Creating device failed: org.bluez.Error.AlreadyExists: Already Exists"... but it may work for your unpaired device.
Offline
Splendid! That works!
Offline