Re: [Bluez-users] bluez-utils 3.5 and pairing

Paulo Wollny
2006-09-26T21:07:58Z

Hi Marcel,
the output of the log/messages for the transaction was:

Sep 26 17:28:24 hirschberg hcid[25949]: name_listener_add(:1.358)
Sep 26 17:28:24 hirschberg hcid[25949]: Adding match rule
"interface=org.freedesktop.DBus,member=NameOwnerChanged,arg0=:1.358"
failed: Unknown key "arg0" in match rule
Sep 26 17:28:24 hirschberg hcid[25949]: Default passkey agent (:1.358,
/org/bluez/passkey_agent_30629) registered
Sep 26 17:29:07 hirschberg sudo: paulo : TTY=pts/1 ; PWD=/home/paulo
; USER=root ; COMMAND=/usr/sbin/hcidump -X -V
Sep 26 17:30:03 hirschberg hcid[25949]: pin_code_request
(sba=00:0C:55:F9:7D:6D, dba=00:05:16:5B:17:2C)
Sep 26 17:30:53 hirschberg syslog-ng[5024]: STATS: dropped 0
Sep 26 17:36:21 hirschberg hcid[25949]: name_listener_remove(:1.358)
Sep 26 17:36:21 hirschberg hcid[25949]: remove_name_listener: no
listener for :1.358
Sep 26 17:36:21 hirschberg hcid[25949]: Default passkey agent (:1.358,
/org/bluez/passkey_agent_30629) unregistered

As seen, the passkey-agent was registered....

Regards,
Paulo

Marcel Holtmann schrieb:
> Hi Paulo,
>
>
>> the output states as follow:
>>
>> HCI sniffer - Bluetooth packet analyzer ver 1.32
>> device: hci0 snap_len: 1028 filter: 0xffffffff
>>
>>> HCI Event: Connect Request (0x04) plen 10
>>>
>> bdaddr 00:05:16:5B:17:2C class 0x120110 type ACL
>> < HCI Command: Accept Connection Request (0x01|0x0009) plen 7
>> bdaddr 00:05:16:5B:17:2C role 0x01
>> Role: Slave
>>
>>> HCI Event: Command Status (0x0f) plen 4
>>>
>> Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
>>
>>> HCI Event: PIN Code Request (0x16) plen 6
>>>
>> bdaddr 00:05:16:5B:17:2C
>> < HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
>> bdaddr 00:05:16:5B:17:2C len 5 pin 'BlueZ'
>>
>>> HCI Event: Command Complete (0x0e) plen 10
>>>
>> PIN Code Request Reply (0x01|0x000d) ncmd 1
>> status 0x00 bdaddr 00:05:16:5B:17:2C
>>
>>> HCI Event: Connect Complete (0x03) plen 11
>>>
>> status 0x05 handle 41 bdaddr 00:05:16:5B:17:2C type ACL encrypt 0x00
>> Error: Authentication Failure
>>
>
> for some reason, it is using the PIN code for incoming connections from
> the hcid.conf and not the passkey-agent. Check you syslog files if the
> passkey agent got really registered or if it failed.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users