key agent for bluez cli only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody,

I am looking for a solution to sent a key when a device is requesting
this. I hope somebody can help me out, I have attached a log file, that
also include some found issues.

pin_code_request (sba=00:1B:DC:00:32:71, dba=00:0D:FD:18:6E:3C)
connect(): Permission denied (13)
discovery failed

ps. attachment include

Best regards,

Jelle


Sep 22 22:38:57 debian-eeepc hidd[1908]: Exit
Sep 22 22:38:57 debian-eeepc hcid[1899]: Unregister path: /org/bluez/hci0
Sep 22 22:38:57 debian-eeepc hcid[1899]: Unregistered manager path
Sep 22 22:38:57 debian-eeepc hcid[1899]: Stopping SDP server
Sep 22 22:38:57 debian-eeepc hcid[1899]: Exit
Sep 22 22:38:58 debian-eeepc hcid[2432]: Bluetooth HCI daemon
Sep 22 22:38:58 debian-eeepc hcid[2432]: Parsing /etc/bluetooth/main.conf failed: No such file or directory
Sep 22 22:38:58 debian-eeepc hcid[2432]: Starting SDP server
Sep 22 22:38:58 debian-eeepc hcid[2432]: Unix socket created: 11
Sep 22 22:38:58 debian-eeepc hidd[2434]: Bluetooth HID daemon
Sep 22 22:38:58 debian-eeepc hcid[2432]: Registered manager path:/org/bluez/audio
Sep 22 22:38:58 debian-eeepc hcid[2432]: Loading device 00:0D:FD:18:6E:3C (headset sink control )
Sep 22 22:38:58 debian-eeepc hcid[2432]: Loading device 00:0C:55:D1:C9:78 (sink control )
Sep 22 22:38:58 debian-eeepc hcid[2432]: Setting 00:0C:55:D1:C9:78 as default device
Sep 22 22:38:58 debian-eeepc hcid[2432]: HCI dev 0 registered
Sep 22 22:38:58 debian-eeepc hcid[2432]: HCI dev 0 already up
Sep 22 22:38:58 debian-eeepc hcid[2432]: Device hci0 has been added
Sep 22 22:38:58 debian-eeepc hcid[2432]: Starting security manager 0
Sep 22 22:38:58 debian-eeepc hcid[2432]: Device hci0 has been activated
Sep 22 22:39:34 debian-eeepc hcid[2432]: Audio API: received BT_GETCAPABILITIES_REQ
Sep 22 22:39:38 debian-eeepc hcid[2432]: pin_code_request (sba=00:1B:DC:00:32:71, dba=00:0D:FD:18:6E:3C)
Sep 22 22:39:38 debian-eeepc hcid[2432]: connect(): Permission denied (13)
Sep 22 22:39:38 debian-eeepc hcid[2432]: discovery failed
Sep 22 22:39:38 debian-eeepc hcid[2432]: Audio API: sending BT_GETCAPABILITIES_RSP
Sep 22 22:39:39 debian-eeepc hcid[2432]: Audio API: received BT_GETCAPABILITIES_REQ
Sep 22 22:39:43 debian-eeepc hcid[2432]: pin_code_request (sba=00:1B:DC:00:32:71, dba=00:0D:FD:18:6E:3C)
Sep 22 22:39:43 debian-eeepc hcid[2432]: connect(): Permission denied (13)
Sep 22 22:39:43 debian-eeepc hcid[2432]: discovery failed
Sep 22 22:39:43 debian-eeepc hcid[2432]: Audio API: sending BT_GETCAPABILITIES_RSP
Sep 22 22:39:50 debian-eeepc hcid[2432]: Audio API: received BT_GETCAPABILITIES_REQ
Sep 22 22:39:53 debian-eeepc hcid[2432]: pin_code_request (sba=00:1B:DC:00:32:71, dba=00:0D:FD:18:6E:3C)
Sep 22 22:39:53 debian-eeepc hcid[2432]: connect(): Permission denied (13)
Sep 22 22:39:53 debian-eeepc hcid[2432]: discovery failed

sudo python /home/user/.simple-agent.py
ERROR:dbus.connection:Unable to set arguments ('/test/agent',) according to signature u'os': <type 'exceptions.TypeError'>: More items found in D-Bus signature than in Python arguments
Traceback (most recent call last):
  File "/home/jelle/.simple-agent.py", line 54, in <module>
    adapter.RegisterAgent(path)
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 612, in call_blocking
    message.append(signature=signature, *args)
TypeError: More items found in D-Bus signature than in Python arguments

sudo /usr/share/doc/bluez-utils/examples/passkey-agent 0000 00:0D:FD:18:6E:3C
Can't register passkey agent
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Sep 22 22:42:07 debian-eeepc hcid[2432]: register_passkey_agent called without any adapter info!
Sep 22 22:42:38 debian-eeepc last message repeated 242381 times
Sep 22 22:43:39 debian-eeepc last message repeated 459396 times
Sep 22 22:44:40 debian-eeepc last message repeated 477043 times

ps aux | grep hcid (high cpu load need to sudo killall -9 hcid)
root      2432 18.8  0.3   3452  1640 ?        Rs   22:38   0:57 /usr/sbin/hcid -x -s
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Index of Archives]     [Linux Bluetooth Devel]     [Linux USB Devel]     [Network Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux