[Pkg-bluetooth-maintainers] Bug#400016: bluez-utils: connection failed because hci Device disconnects and reconnects when try to pair a phone

Sandro Frenzel sandro.frenzel at gmx.de
Thu Nov 23 14:59:19 CET 2006


Package: bluez-utils
Severity: important



Hello,

I try to pair my mobile phone with a USB bluetooth dongle.

I start the passkey-agent this way:

passkey-agent --default /usr/bin/pin

The pin file looks like that:

skummy:/home/sandro# cat /usr/bin/pin
#!/bin/bash
echo -n "PIN:0000"


When a tool (for example kmobiletools) wants to make a pairing with my phone, I have to enter the pin
on my phone.

I enter the pin and after a while the hci0 device goes down and gets up again. 

The logfiles show it:

Nov 23 14:03:32 localhost hcid[5618]: pin_code_request (sba=00:0A:3A:67:48:EB, dba=08:00:1F:18:93:F7)
Nov 23 14:03:32 localhost hcid[5618]: Calling PasskeyAgent.Request: name=:1.4, path=/org/bluez/passkey_agent_5743


Nov 23 14:03:37 localhost kernel: usb 1-1: USB disconnect, address 4
Nov 23 14:03:37 localhost hcid[5618]: HCI dev 0 down
Nov 23 14:03:37 localhost hcid[5618]: Stopping security manager 0
Nov 23 14:03:37 localhost hcid[5618]: Device hci0 has been disabled
Nov 23 14:03:38 localhost hcid[5618]: HCI dev 0 unregistered
Nov 23 14:03:38 localhost hcid[5618]: Unregister path:/org/bluez/hci0
Nov 23 14:03:38 localhost hcid[5618]: Device hci0 has been removed

==> /var/log/messages <==
Nov 23 14:03:37 localhost kernel: usb 1-1: USB disconnect, address 4

==> /var/log/syslog <==
Nov 23 14:03:38 localhost kernel: usb 1-1: new full speed USB device using uhci_hcd and address 5
Nov 23 14:03:39 localhost kernel: usb 1-1: configuration #1 chosen from 1 choice
Nov 23 14:03:39 localhost hcid[5618]: HCI dev 0 registered
Nov 23 14:03:39 localhost hcid[5618]: Register path:/org/bluez/hci0 fallback:0
Nov 23 14:03:39 localhost hcid[5618]: HCI dev 0 up
Nov 23 14:03:39 localhost hcid[5618]: Device hci0 has been added
Nov 23 14:03:39 localhost hcid[5618]: Starting security manager 0
Nov 23 14:03:39 localhost hcid[5618]: Device hci0 has been activated

==> /var/log/messages <==
Nov 23 14:03:38 localhost kernel: usb 1-1: new full speed USB device using uhci_hcd and address 5
Nov 23 14:03:39 localhost kernel: usb 1-1: configuration #1 chosen from 1 choice



Because of this reconnect the pairing failed. 


I have applied the patch from http://www.kmobiletools.org/node/228 but it did not help.


So, what is wrong? I think something shut down the hci0 device, but why?
 



Thank you!

Bye,
Sandro




-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)




More information about the Pkg-bluetooth-maintainers mailing list