Skip to contentSkip to conversation

Can't get headset to pair

Bluez-users TD 4 participants 6 messages Mar 6, 2008 – Mar 7, 2008 Bluetooth drivers

lore
Share & tools
lore

TD

author
#0 lore raw

Trying to get a bluetooth headset (http://www.ebuyer.com/product/123000) to work with bluez, so that I can access it from alsa. Running Debian lenny (2.6.22 kernel), bluez 3.24.

With the headset in pairing mode:

laptop:~# hcitool scan
Scanning ...
	00:02:5B:02:64:9D	VBH-006
laptop:~# hcitool cc 00:02:5B:02:64:9D
laptop:~#

System log reports:

Mar  6 00:44:19 laptop NetworkManager: <debug> [1204764259.628237]
nm_hal_device_added(): New device added (hal udi is
'/org/freedesktop/Hal/devices/bluetooth_acl_25b02649d'). 
Mar  6 00:44:22 laptop NetworkManager: <debug> [1204764262.493448]

nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/bluetooth_acl_25b02649d').

The light on the hands-free doesn't start to flash, indicating that pairing didn't take place. My /etc/bluetooth/hcid.conf contains:
pin_helper /etc/bluetooth/feed-pin.sh;

and /etc/bluetooth/feed-pin.sh contains:
#!/bin/sh
echo "PIN:0000"

which runs fine as a shell script.

My normal user .asoundrc contains:
pcm.bluetooth {
type bluetooth
device 00:02:5B:02:64:9D
}

Have I missed something? Do I need to pair the device before it will work?

TD

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

The only way I could find to initiate pairing with my headphones was by following the instructions in http://wiki.bluez.org/wiki/HOWTO/Bonding in the "dbus-send" section.

I'd be interested in hearing if there's another way (that doesn't involve writing a program).

Also, make sure that there's a passkey/auth agent running (such as bluetooth-applet of bluez-gnome)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

[Bluez-users] How to change the Hci packet size?

In reply to TD

Hi, what it the largest packet size for the Hci?
Is it a configuration in the BlueZ or is it a configuration in the adapter? thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#3 lore raw

Re: [Bluez-users] How to change the Hci packet size?

Hi,

Quoted 3 lines

Hi, what it the largest packet size for the Hci?
Is it a configuration in the BlueZ or is it a configuration in the adapter?

don't bother in trying. The firmware inside the Bluetooth chip is responsible for doing this job. It will pick the packet type that is best suitable.

Regards

Marcel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Re: [Bluez-users] How to change the Hci packet size?

Thanks.. but I remember something in the Bluetooth standard like 'continue' flag in each HCI packet.. Who is responsible to fill this? Thanks again marcel..

--------------------------------------------------
From: "Marcel Holtmann" <[email protected]>
Sent: Thursday, March 06, 2008 5:53 PM
To: "BlueZ users" <[email protected]>
Subject: Re: [Bluez-users] How to change the Hci packet size?

Quoted 15 lines

Hi,

Quoted 3 lines

Hi, what it the largest packet size for the Hci?
Is it a configuration in the BlueZ or is it a configuration in the adapter?

don't bother in trying. The firmware inside the Bluetooth chip is responsible for doing this job. It will pick the packet type that is best suitable.

Regards

Marcel

Quoted 8 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#5 lore raw

Re: [Bluez-users] How to change the Hci packet size?

Hi,

Quoted 3 lines

Thanks.. but I remember something in the Bluetooth standard like 'continue'
flag in each HCI packet.. Who is responsible to fill this?

the L2CAP layer will fill this in.

Regards

Marcel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users