[Pkg-bluetooth-maintainers] Bug#378446: bluez-utils: pairing does not work

Josep Ma Antolin jaz_e at terra.es
Mon Sep 18 18:57:11 UTC 2006


This is still broken (at least the debian testing package,  3.1-3.1) I
will try to give as much details as i can:

> Please see /usr/share/doc/bluez-utils/README.Debian, it is documented there how
> register-passkeys and add-passkeys are supposed to work.

debian:/etc/bluetooth# cat /usr/share/doc/bluez-utils/README.Debian.gz |grep passkeys
debian:/etc/bluetooth#

(yes, nothing)

I tried to use /usr/lib/bluetooth/add-passkey --default , and typing a value.. but
shouldn't it end when i type enter? (not even Ctrl+D worked. i have to terminate it everytime)
(ok, now i've realized that one just has to execute register-passkeys, but that doesn't solve
the problem)

i have no "passkey-agent" anywhere in my HD, I assume that it is replaced by
"add-passkey" and "register-passkey". Is that right? should i have it?

debian:/etc/bluetooth# locate passkey-agent
/usr/share/man/man1/passkey-agent.1.gz
debian:/etc/bluetooth#

(isn't that ironic?)


if i use the push protocol, i can send an image to the phone with no problems:

debian:/var/lib/bluetooth# ussp-push 00:13:FD:8B:1C:5B at 9 ~/image000.jpg image999.jpg
name=/root/image000.jpg, size=62658
Local device 00:0E:A1:02:1E:BC
Remote device 00:13:FD:8B:1C:5B (9)
Connection established
debian:/var/lib/bluetooth#

But i can't make obexftp to work.
when I press enter,the phone asks me for a pin, I enter the number in
/etc/bluetooth/passkeys/default (which is the same than in /etc/bluetooth/pin and
/etc/bluetooth/hcid.conf), and as soon as I accept in the mobile, the program writes
"failed: connect" and tries connecting again. The mobile just keeps trying connect for
some seconds and gives a failed connection message.

debian:/var/lib/bluetooth#obexftp -b 00:13:FD:8B:1C:5B -B 10 -l
Browsing 00:13:FD:8B:1C:5B ...
Channel: 10
Connecting...failed: connect
Still trying to connect
Connecting...



Finally, since it was mentioned in this thread, i went to download the
source, compiled it, (this generated the hcid/passkey-agent file) and I
copied it to /usr/bin.
Then i did a /etc/init.d/bluetooth restart and tried to connect again.
Nothing.
Finally, i executed manually passkey-agent and THEN i could connect, but
only while I keep it executing.

Now i can get the file i wanted from my phone, but this isn't how it is
supposed to work.. is it?

PS: in "hcid/Makefile"  : noinst_PROGRAMS = passkey-agent$(EXEEXT)






More information about the Pkg-bluetooth-maintainers mailing list