bluez-utils 3.5 and pairing
Hi,
i'm using Bluez Utils 3.5 and am having problems when trying to pair my PDA.
I did fire passkey-agent --default XXXX and the PDA is not being able to pair.
Any hint?
Regards,
Paulo
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Paulo,
Quoted 4 lines
i'm using Bluez Utils 3.5 and am having problems when trying to pair my PDA.
I did fire passkey-agent --default XXXX and the PDA is not being able to pair.
show us the output of "hcidump -X -V" for this transaction.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Marcel,
the output states as follow:
HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0 snap_len: 1028 filter: 0xffffffff
Quoted 1 line
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: SlaveQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
Quoted 1 line
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'Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10
PIN Code Request Reply (0x01|0x000d) ncmd 1
status 0x00 bdaddr 00:05:16:5B:17:2CQuoted 1 line
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
Regards,
Paulo
Quoted 17 lines · Marcel Holtmann
Hi Paulo,
Quoted 5 lines
i'm using Bluez Utils 3.5 and am having problems when trying to pair my PDA.
I did fire passkey-agent --default XXXX and the PDA is not being able to pair.show us the output of "hcidump -X -V" for this transaction.
Regards
Marcel
Quoted 12 lines
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Paulo,
Quoted 15 lines
the output states as follow:
HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0snap_len: 1028 filter:0xffffffffQuoted 1 line
HCI Event: Connect Request (
0x04) plen 10bdaddr 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: SlaveQuoted 1 line
HCI Event: Command Status (
0x0f) plen 4Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1Quoted 1 line
HCI Event: PIN Code Request (
0x16) plen 6bdaddr 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'
Quoted 6 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10PIN Code Request Reply (0x01|0x000d) ncmd 1 status 0x00 bdaddr 00:05:16:5B:17:2CQuoted 1 line
HCI Event: Connect Complete (
0x03) plen 11status
0x05handle 41 bdaddr 00:05:16:5B:17:2C type ACL encrypt0x00
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
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
Quoted 46 lines · Marcel Holtmann
Hi Paulo,
Quoted 24 lines
the output states as follow:
HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0snap_len: 1028 filter:0xffffffffQuoted 2 lines
HCI Event: Connect Request (
0x04) plen 10bdaddr 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: SlaveQuoted 2 lines
HCI Event: Command Status (
0x0f) plen 4Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1Quoted 2 lines
HCI Event: PIN Code Request (
0x16) plen 6bdaddr 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'Quoted 2 lines
HCI Event: Command Complete (
0x0e) plen 10Quoted 8 lines
PIN Code Request Reply (0x01|0x000d) ncmd 1 status 0x00 bdaddr 00:05:16:5B:17:2CQuoted 2 lines
HCI Event: Connect Complete (
0x03) plen 11status
0x05handle 41 bdaddr 00:05:16:5B:17:2C type ACL encrypt0x00
Error: Authentication Failurefor 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
Quoted 12 lines
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Paulo,
Quoted 17 lines
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,
Quoted 3 lines
/org/bluez/passkey_agent_30629) unregistered
As seen, the passkey-agent was registered....
I overlooked that in the first place. Since this is an incoming security mode 3 connection you need to set "security user" in hcid.conf to make it use the passkey agent. I assumed that was default, but actually it was not. Which is fixed now.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Marcel,
ok, but i do have the entry security auto; in the hcid.conf file. Regards,
Paulo
Quoted 36 lines · Marcel Holtmann
Hi Paulo,
Quoted 17 lines
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,Quoted 4 lines
/org/bluez/passkey_agent_30629) unregistered
As seen, the passkey-agent was registered....
I overlooked that in the first place. Since this is an incoming security mode 3 connection you need to set "security user" in hcid.conf to make it use the passkey agent. I assumed that was default, but actually it was not. Which is fixed now.
Regards
Marcel
Quoted 12 lines
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Paulo,
Quoted 1 line
ok, but i do have the entry security auto; in the hcid.conf file.
set it to "user" and restart hcid. After that everything should be fine.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users