2007-05-04 07:18:58

by John Frankish

[permalink] [raw]
Subject: [Bluez-devel] Fwd: Fwd: Re: Fwd: Re: Unable to set number of SCO buffers : please upgrade your Kernel !

After realising that make install did not copy the bluez-utils 3.9
passkey-agent to the operating system, I made some more progress with
connecting to my bluetooth headset:

window 1
-------------
# passkey-agent --default 0000
[next line appears after hcitool cc/auth in window 2]
Passkey request for device 00:12:EE:A6:1D:F4

window 2
-------------
# hcitool cc 00:12:EE:A6:1D:F4
# hcitool auth 00:12:EE:A6:1D:F4


window 3
-------------
# hcid -n
hcid[2785]: Bluetooth HCI daemon
hcid[2785]: HCI dev 0 registered
hcid[2785]: HCI dev 0 already up
hcid[2785]: Device hci0 has been added
hcid[2785]: Starting security manager 0
hcid[2785]: Device hci0 has been activated
[next line appears after passkey-agent command in window 1]
hcid[2785]: Default passkey agent (:1.2,
/org/bluez/passkey_agent_2867) registered
[next lines appear after hcitool cc/auth in window 2]
hcid[2785]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
hcid[2785]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
hcid[2785]: link_key_notify (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)

After the "link_key_notify" line from hcid my headset switches from
pairing mode to standby, so I presume it is paired, but...

# mplayer -ao alsa:device=headset /.../music.mp3
alsa-init: 1 soundcard found, using: headset
ALSA lib pcm_sco.c:561:(_snd_pcm_sco_open) Socket connection returned
Connection refused
alsa-init: playback open error: Connection refused
Could not open/initialize audio device -> no sound.

Since the headset is paired, I don't understand why the plugz
connection is refused - does anybody have any ideas?

Regards
John

>Date: Sun, 29 Apr 2007 18:07:48 +0400
>From: John Frankish <[email protected]>
>Subject: [Bluez-devel] Fwd: Re: Fwd: Re: Unable to set number of SCO
>buffers :
> please upgrade your Kernel !
>Sender: [email protected]
>To: BlueZ development <[email protected]>
>Reply-to: BlueZ development <[email protected]>
>Message-id: <[email protected]>
>Content-type: text/plain; charset=us-ascii
>Content-transfer-encoding: 7bit
>List-Post: <mailto:[email protected]>
>List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> <mailto:[email protected]?subject=subscribe>
>List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> <mailto:[email protected]?subject=unsubscribe>
>List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=bluez-devel>
>List-Help: <mailto:[email protected]?subject=help>
>List-Id: BlueZ development <bluez-devel.lists.sourceforge.net>
>Original-recipient: rfc822;[email protected]
>
>Reiner,
>
>Thanks for the "xhost +" suggestion - unfortunately it didn't help...
>
>I pasted some details below in case it helps somebody suggest where I
>might be going wrong.
>
>Regards
>John
>
>Case 1 - hcid.conf/security = user: Whether I use my phone or bt
>headset, with bluez-utils 3.9, hcid just sits there waiting for a pin
>pop-up that doesn't happen. I had this problem with bluez-utils 2.15
>but at least I could set a pin-helper to fashion a work-around.
>
># hcid -n [security=user - pin request via hcitool cc/auth
>00:0A:D9:E8:4A:65, xhost +]
>hcid[2745]: Bluetooth HCI daemon
>hcid[2745]: HCI dev 0 registered
>hcid[2745]: HCI dev 0 already up
>hcid[2745]: Device hci0 has been added
>hcid[2745]: Starting security manager 0
>hcid[2745]: Device hci0 has been activated
>hcid[2745]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
>hcid[2745]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
>[then nothing]
>
>Case 2 - hcid.conf/security = auto: I can initiate a connection with
>my phone and pair my machine using the local pin in hcid.conf. Maybe
>I'm missing the logic here, but when my bt headset is put into
>pairing mode, shouldn't hcid recognise this and use the local pin in
>hcid? In practise, hcid sits there waiting for me to enter a pin on
>the bt headset which of course is not possible.
>
># hcid -n [security=auto, connection from phone]
>hcid[2776]: Bluetooth HCI daemon
>hcid[2776]: HCI dev 0 registered
>hcid[2776]: HCI dev 0 already up
>hcid[2776]: Device hci0 has been added
>hcid[2776]: Starting security manager 0
>hcid[2776]: Device hci0 has been activated
>hcid[2776]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
>hcid[2776]: link_key_notify (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
>[paired OK]
>
># hcid -n [security=auto, headset in pairing mode]
>hcid[7423]: Bluetooth HCI daemon
>hcid[7423]: HCI dev 0 registered
>hcid[7423]: HCI dev 0 already up
>hcid[7423]: Device hci0 has been added
>hcid[7423]: Starting security manager 0
>hcid[7423]: Device hci0 has been activated
>
>nothing happens, so then
>
># hcitool cc 00:12:EE:A6:1D:F4
># hcitool auth 00:12:EE:A6:1D:F4
>HCI authentication request failed: Input/output error
>
>hcid[7423]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
>hcid[7423]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
>
>
>One thing I noticed with plugz and bluez-utils 2.15 is that when I
>try to play music to the headset, it automatically pairs (via the
>pin-helper I presume) but no music appears due to the sco buffers problem.
>
># mplayer -ao alsa:device=headset /.../music.mp3
>...
>alsa-init: 1 soundcard found, using: headset
>ALSA lib pcm_sco.c:273:(sco_headset_hw_params) Unable to set number
>of SCO buffers : please upgrade your Kernel !
>alsa-init: unable to set hw-parameters: Invalid argument
>alsa-init: pcm prepare error: Input/output error
>alsa: 8000 Hz/1 channels/2 bpf/768 bytes buffer/Signed 16 bit Little Endian
>AO: [alsa] 8000Hz 1ch s16le (2 bytes per sample)
>Building audio filter chain for 44100Hz/2ch/s16le -> 8000Hz/1ch/s16le...
>Video: no video
>Starting playback...[but no sound]
>
>
>When I try this with plugz and bluez-utils 3.9, the initial
>connection is rejected but this is not echoed by hcid...
>
># mplayer -ao alsa:device=headset /.../music.mp3
>...
>Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
>alsa-init: 1 soundcard found, using: headset
>ALSA lib pcm_sco.c:561:(_snd_pcm_sco_open) Socket connection returned
>Connection refused
>alsa-init: playback open error: Connection refused
>Could not open/initialize audio device -> no sound.
>Audio: no sound
>Video: no video
>
># hcid -n [security=auto, headset in pairing mode]
>hcid[2776]: Bluetooth HCI daemon
>hcid[2776]: HCI dev 0 registered
>hcid[2776]: HCI dev 0 already up
>hcid[2776]: Device hci0 has been added
>hcid[2776]: Starting security manager 0
>hcid[2776]: Device hci0 has been activated
>[but no link_key/pin_code_request??]
>
>------------------------
>
> >Date: Sun, 29 Apr 2007 10:23:48 +0200
> >From: Reiner Klenk <[email protected]>
> >Subject: Re: [Bluez-devel] Fwd: Re: Unable to set number of SCO buffers :
> > please upgrade your Kernel !
> >Sender: [email protected]
> >To: BlueZ development <[email protected]>
> >Reply-to: BlueZ development <[email protected]>
> >Message-id: <1177835028.16681.8.camel@grappa>
> >Content-type: text/plain; charset=us-ascii
> >Content-transfer-encoding: 7bit
> >List-Post: <mailto:[email protected]>
> >List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > <mailto:[email protected]?subject=subscribe>
> >List-Unsubscribe:
> <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > <mailto:[email protected]?subject=unsubscribe>
> >List-Archive:
> <http://sourceforge.net/mailarchive/forum.php?forum=bluez-devel>
> >List-Help: <mailto:[email protected]?subject=help>
> >List-Id: BlueZ development <bluez-devel.lists.sourceforge.net>
> >Original-recipient: rfc822;[email protected]
> >
> >On Sun, 2007-04-29 at 09:08 +0400, John Frankish wrote:
> >
> > > 2. I compiled bluez-libs/bluez-utils 3.9 to see if plugz would work
> > > better with this - I ran into the same pin problem as before in that
> > > I don't get a pin pop-up on my machine. If I set security to auto in
> > > hcid.conf then I can pair with my cell phone since I can enter a pin
> > > on the phone but this does not work with a bluetooth headset since I
> > > cannot enter a pin and hcid just sits there waiting...
> >I have seen something like this, where the problem appeared to be that
> >the pin helper could not pop up its window due to authorization failure.
> >If this is the case, it helps to "xhost +".
> >
> >Hth,
> >Reiner
> >--
> >debb1046 (gmail, gtalk, jabber.org, ekiga.net, last.fm, skype)
> >
> >
> >-------------------------------------------------------------------------
> >This SF.net email is sponsored by DB2 Express
> >Download DB2 Express C - the FREE version of DB2 express and take
> >control of your XML. No limits. Just data. Click to get it now.
> >http://sourceforge.net/powerbar/db2/
> >_______________________________________________
> >Bluez-devel mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Bluez-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2007-05-16 05:35:21

by John Frankish

[permalink] [raw]
Subject: Re: [Bluez-devel] Fwd: Fwd: Re: Fwd: Re: Unable to set number of SCO buffers : please upgrade your Kernel !

I made some progress with bluez-utils 3.9 after realising that
headsetd had not auto-started - judging by the result, I'll just have
to accept that this ain't ever going to work with my "somewhat"
patched 2.6.12 kernel?

window 1
2. # passkey-agent --default 0000
[next line after hcitool cc/auth in window 2]
Passkey request for device 00:12:EE:A6:1D:F4

window 2
3. # hcitool cc 00:12:EE:A6:1D:F4
4. # hcitool auth 00:12:EE:A6:1D:F4

window 3
1. # hcid -n
hcid[2785]: Bluetooth HCI daemon
hcid[2785]: HCI dev 0 registered
hcid[2785]: HCI dev 0 already up
hcid[2785]: Device hci0 has been added
hcid[2785]: Starting security manager 0
hcid[2785]: Device hci0 has been activated
hcid[2785]: Default passkey agent (:1.2,
/org/bluez/passkey_agent_2867) registered
[next lines after hcitool cc/auth in window 2]
hcid[2785]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
hcid[2785]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
hcid[2785]: link_key_notify (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)

window 4
5. # headsetd -n
headsetd[7214]: Bluetooth headset daemon version 0.5
headsetd[7214]: Configuration phase ended: target bdaddr is
00:12:EE:A6:1D:F4, timeout is 12000 ms
[next lines after mplayer in window 5]
headsetd[7214]: Changing state: Idle-->Paging
headsetd[7214]: Changing state: Paging-->Connecting
headsetd[7214]: Changing state: Connecting-->Ready
headsetd[7214]: Changing state: Ready-->Opening
headsetd[7214]: SCO channel opened handle=0x0032 mtu=64
headsetd[7214]: Changing state: Opening-->Streaming
[<ctrl-c in mplayer window]
headsetd[7214]: Appli closed socket
headsetd[7214]: Changing state: Streaming-->Zombie
headsetd[7214]: Nobody uses SCO channel anymore, closing it.
headsetd[7214]: Changing state: Zombie-->Connected

Window 5
6. # mplayer -ao alsa:device=headset /.../music.mp3
MPlayer dev-CVS--3.3.5 (C) 2000-2005 MPlayer Team
...
Playing /.../music.mp3.
Audio file file format detected.
...
ALSA lib pcm_sco.c:273:(sco_headset_hw_params) Unable to set number
of SCO buffers : please upgrade your Kernel !
alsa-init: unable to set hw-parameters: Invalid argument
alsa-init: pcm prepare error: Input/output error
alsa: 8000 Hz/1 channels/2 bpf/768 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 8000Hz 1ch s16le (2 bytes per sample)
Building audio filter chain for 44100Hz/2ch/s16le -> 8000Hz/1ch/s16le...
Video: no video
Starting playback...
<ctrl-c>
MPlayer interrupted by signal 2 in module: play_audio
alsa-uninit: pcm drop error: Input/output error

John

At 07:56 08-05-07, you wrote:
>Sorry if this is repeated but it looks like it did not make it on the
>first attempt.
>
>At 11:18 04-05-07, you wrote:
> >After realising that make install did not copy the bluez-utils 3.9
> >passkey-agent to the operating system, I made some more progress with
> >connecting to my bluetooth headset, but plugz seems to refuse the
> >connection...
> >
> >window 1
> >-------------
> ># passkey-agent --default 0000
> >[next line appears after hcitool cc/auth in window 2]
> >Passkey request for device 00:12:EE:A6:1D:F4
> >
> >window 2
> >-------------
> ># hcitool cc 00:12:EE:A6:1D:F4
> ># hcitool auth 00:12:EE:A6:1D:F4
> >
> >
> >window 3
> >-------------
> ># hcid -n
> >hcid[2785]: Bluetooth HCI daemon
> >hcid[2785]: HCI dev 0 registered
> >hcid[2785]: HCI dev 0 already up
> >hcid[2785]: Device hci0 has been added
> >hcid[2785]: Starting security manager 0
> >hcid[2785]: Device hci0 has been activated
> >[next line appears after passkey-agent command in window 1]
> >hcid[2785]: Default passkey agent (:1.2,
> >/org/bluez/passkey_agent_2867) registered
> >[next lines appear after hcitool cc/auth in window 2]
> >hcid[2785]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
> >hcid[2785]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
> >hcid[2785]: link_key_notify (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
> >
> >After the "link_key_notify" line from hcid my headset switches from
> >pairing mode to standby, so I presume it is paired, but...
> >
> ># mplayer -ao alsa:device=headset /.../music.mp3
> >alsa-init: 1 soundcard found, using: headset
> >ALSA lib pcm_sco.c:561:(_snd_pcm_sco_open) Socket connection returned
> >Connection refused
> >alsa-init: playback open error: Connection refused
> >Could not open/initialize audio device -> no sound.
> >
> >Since the headset is paired, I don't understand why the plugz
> >connection is refused - does anybody have any ideas?
> >
> >Regards
> >John
> >
> > >Date: Sun, 29 Apr 2007 18:07:48 +0400
> > >From: John Frankish <[email protected]>
> > >Subject: [Bluez-devel] Fwd: Re: Fwd: Re: Unable to set number of SCO
> > >buffers :
> > > please upgrade your Kernel !
> > >Sender: [email protected]
> > >To: BlueZ development <[email protected]>
> > >Reply-to: BlueZ development <[email protected]>
> > >Message-id: <[email protected]>
> > >Content-type: text/plain; charset=us-ascii
> > >Content-transfer-encoding: 7bit
> > >List-Post: <mailto:[email protected]>
> > >List-Subscribe:
> <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > > <mailto:[email protected]?subject=subscribe>
> > >List-Unsubscribe:
> > <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > > <mailto:[email protected]?subject=unsubscribe>
> > >List-Archive:
> > <http://sourceforge.net/mailarchive/forum.php?forum=bluez-devel>
> > >List-Help: <mailto:[email protected]?subject=help>
> > >List-Id: BlueZ development <bluez-devel.lists.sourceforge.net>
> > >Original-recipient: rfc822;[email protected]
> > >
> > >Reiner,
> > >
> > >Thanks for the "xhost +" suggestion - unfortunately it didn't help...
> > >
> > >I pasted some details below in case it helps somebody suggest where I
> > >might be going wrong.
> > >
> > >Regards
> > >John
> > >
> > >Case 1 - hcid.conf/security = user: Whether I use my phone or bt
> > >headset, with bluez-utils 3.9, hcid just sits there waiting for a pin
> > >pop-up that doesn't happen. I had this problem with bluez-utils 2.15
> > >but at least I could set a pin-helper to fashion a work-around.
> > >
> > ># hcid -n [security=user - pin request via hcitool cc/auth
> > >00:0A:D9:E8:4A:65, xhost +]
> > >hcid[2745]: Bluetooth HCI daemon
> > >hcid[2745]: HCI dev 0 registered
> > >hcid[2745]: HCI dev 0 already up
> > >hcid[2745]: Device hci0 has been added
> > >hcid[2745]: Starting security manager 0
> > >hcid[2745]: Device hci0 has been activated
> > >hcid[2745]: link_key_request (sba=00:10:C6:56:F4:9F,
> dba=00:0A:D9:E8:4A:65)
> > >hcid[2745]: pin_code_request (sba=00:10:C6:56:F4:9F,
> dba=00:0A:D9:E8:4A:65)
> > >[then nothing]
> > >
> > >Case 2 - hcid.conf/security = auto: I can initiate a connection with
> > >my phone and pair my machine using the local pin in hcid.conf. Maybe
> > >I'm missing the logic here, but when my bt headset is put into
> > >pairing mode, shouldn't hcid recognise this and use the local pin in
> > >hcid? In practise, hcid sits there waiting for me to enter a pin on
> > >the bt headset which of course is not possible.
> > >
> > ># hcid -n [security=auto, connection from phone]
> > >hcid[2776]: Bluetooth HCI daemon
> > >hcid[2776]: HCI dev 0 registered
> > >hcid[2776]: HCI dev 0 already up
> > >hcid[2776]: Device hci0 has been added
> > >hcid[2776]: Starting security manager 0
> > >hcid[2776]: Device hci0 has been activated
> > >hcid[2776]: pin_code_request (sba=00:10:C6:56:F4:9F,
> dba=00:0A:D9:E8:4A:65)
> > >hcid[2776]: link_key_notify (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
> > >[paired OK]
> > >
> > ># hcid -n [security=auto, headset in pairing mode]
> > >hcid[7423]: Bluetooth HCI daemon
> > >hcid[7423]: HCI dev 0 registered
> > >hcid[7423]: HCI dev 0 already up
> > >hcid[7423]: Device hci0 has been added
> > >hcid[7423]: Starting security manager 0
> > >hcid[7423]: Device hci0 has been activated
> > >
> > >nothing happens, so then
> > >
> > ># hcitool cc 00:12:EE:A6:1D:F4
> > ># hcitool auth 00:12:EE:A6:1D:F4
> > >HCI authentication request failed: Input/output error
> > >
> > >hcid[7423]: link_key_request (sba=00:10:C6:56:F4:9F,
> dba=00:12:EE:A6:1D:F4)
> > >hcid[7423]: pin_code_request (sba=00:10:C6:56:F4:9F,
> dba=00:12:EE:A6:1D:F4)
> > >
> > >
> > >One thing I noticed with plugz and bluez-utils 2.15 is that when I
> > >try to play music to the headset, it automatically pairs (via the
> > >pin-helper I presume) but no music appears due to the sco buffers problem.
> > >
> > ># mplayer -ao alsa:device=headset /.../music.mp3
> > >...
> > >alsa-init: 1 soundcard found, using: headset
> > >ALSA lib pcm_sco.c:273:(sco_headset_hw_params) Unable to set number
> > >of SCO buffers : please upgrade your Kernel !
> > >alsa-init: unable to set hw-parameters: Invalid argument
> > >alsa-init: pcm prepare error: Input/output error
> > >alsa: 8000 Hz/1 channels/2 bpf/768 bytes buffer/Signed 16 bit
> Little Endian
> > >AO: [alsa] 8000Hz 1ch s16le (2 bytes per sample)
> > >Building audio filter chain for 44100Hz/2ch/s16le -> 8000Hz/1ch/s16le...
> > >Video: no video
> > >Starting playback...[but no sound]
> > >
> > >
> > >When I try this with plugz and bluez-utils 3.9, the initial
> > >connection is rejected but this is not echoed by hcid...
> > >
> > ># mplayer -ao alsa:device=headset /.../music.mp3
> > >...
> > >Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
> > >alsa-init: 1 soundcard found, using: headset
> > >ALSA lib pcm_sco.c:561:(_snd_pcm_sco_open) Socket connection returned
> > >Connection refused
> > >alsa-init: playback open error: Connection refused
> > >Could not open/initialize audio device -> no sound.
> > >Audio: no sound
> > >Video: no video
> > >
> > ># hcid -n [security=auto, headset in pairing mode]
> > >hcid[2776]: Bluetooth HCI daemon
> > >hcid[2776]: HCI dev 0 registered
> > >hcid[2776]: HCI dev 0 already up
> > >hcid[2776]: Device hci0 has been added
> > >hcid[2776]: Starting security manager 0
> > >hcid[2776]: Device hci0 has been activated
> > >[but no link_key/pin_code_request??]
> > >
> > >------------------------
> > >
> > > >Date: Sun, 29 Apr 2007 10:23:48 +0200
> > > >From: Reiner Klenk <[email protected]>
> > > >Subject: Re: [Bluez-devel] Fwd: Re: Unable to set number of
> SCO buffers :
> > > > please upgrade your Kernel !
> > > >Sender: [email protected]
> > > >To: BlueZ development <[email protected]>
> > > >Reply-to: BlueZ development <[email protected]>
> > > >Message-id: <1177835028.16681.8.camel@grappa>
> > > >Content-type: text/plain; charset=us-ascii
> > > >Content-transfer-encoding: 7bit
> > > >List-Post: <mailto:[email protected]>
> > > >List-Subscribe:
> > <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > > > <mailto:[email protected]?subject=subscribe>
> > > >List-Unsubscribe:
> > > <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > > > <mailto:[email protected]?subject=unsubscribe>
> > > >List-Archive:
> > > <http://sourceforge.net/mailarchive/forum.php?forum=bluez-devel>
> > > >List-Help:
> <mailto:[email protected]?subject=help>
> > > >List-Id: BlueZ development <bluez-devel.lists.sourceforge.net>
> > > >Original-recipient: rfc822;[email protected]
> > > >
> > > >On Sun, 2007-04-29 at 09:08 +0400, John Frankish wrote:
> > > >
> > > > > 2. I compiled bluez-libs/bluez-utils 3.9 to see if plugz would work
> > > > > better with this - I ran into the same pin problem as before in that
> > > > > I don't get a pin pop-up on my machine. If I set security to auto in
> > > > > hcid.conf then I can pair with my cell phone since I can enter a pin
> > > > > on the phone but this does not work with a bluetooth headset since I
> > > > > cannot enter a pin and hcid just sits there waiting...
> > > >I have seen something like this, where the problem appeared to be that
> > > >the pin helper could not pop up its window due to authorization failure.
> > > >If this is the case, it helps to "xhost +".
> > > >
> > > >Hth,
> > > >Reiner
> > > >--
> > > >debb1046 (gmail, gtalk, jabber.org, ekiga.net, last.fm, skype)
> > > >
> > > >
> > > >---------------------------------------------------------------
> ----------
> > > >This SF.net email is sponsored by DB2 Express
> > > >Download DB2 Express C - the FREE version of DB2 express and take
> > > >control of your XML. No limits. Just data. Click to get it now.
> > > >http://sourceforge.net/powerbar/db2/
> > > >_______________________________________________
> > > >Bluez-devel mailing list
> > > >[email protected]
> > > >https://lists.sourceforge.net/lists/listinfo/bluez-devel
> > >
> > >
> > >-------------------------------------------------------------------------
> > >This SF.net email is sponsored by DB2 Express
> > >Download DB2 Express C - the FREE version of DB2 express and take
> > >control of your XML. No limits. Just data. Click to get it now.
> > >http://sourceforge.net/powerbar/db2/
> > >_______________________________________________
> > >Bluez-devel mailing list
> > >[email protected]
> > >https://lists.sourceforge.net/lists/listinfo/bluez-devel
> >
> >
> >-------------------------------------------------------------------------
> >This SF.net email is sponsored by DB2 Express
> >Download DB2 Express C - the FREE version of DB2 express and take
> >control of your XML. No limits. Just data. Click to get it now.
> >http://sourceforge.net/powerbar/db2/
> >_______________________________________________
> >Bluez-devel mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Bluez-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2007-05-08 03:56:22

by John Frankish

[permalink] [raw]
Subject: Re: [Bluez-devel] Fwd: Fwd: Re: Fwd: Re: Unable to set number of SCO buffers : please upgrade your Kernel !

Sorry if this is repeated but it looks like it did not make it on the
first attempt.

At 11:18 04-05-07, you wrote:
>After realising that make install did not copy the bluez-utils 3.9
>passkey-agent to the operating system, I made some more progress with
>connecting to my bluetooth headset, but plugz seems to refuse the
>connection...
>
>window 1
>-------------
># passkey-agent --default 0000
>[next line appears after hcitool cc/auth in window 2]
>Passkey request for device 00:12:EE:A6:1D:F4
>
>window 2
>-------------
># hcitool cc 00:12:EE:A6:1D:F4
># hcitool auth 00:12:EE:A6:1D:F4
>
>
>window 3
>-------------
># hcid -n
>hcid[2785]: Bluetooth HCI daemon
>hcid[2785]: HCI dev 0 registered
>hcid[2785]: HCI dev 0 already up
>hcid[2785]: Device hci0 has been added
>hcid[2785]: Starting security manager 0
>hcid[2785]: Device hci0 has been activated
>[next line appears after passkey-agent command in window 1]
>hcid[2785]: Default passkey agent (:1.2,
>/org/bluez/passkey_agent_2867) registered
>[next lines appear after hcitool cc/auth in window 2]
>hcid[2785]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
>hcid[2785]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
>hcid[2785]: link_key_notify (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
>
>After the "link_key_notify" line from hcid my headset switches from
>pairing mode to standby, so I presume it is paired, but...
>
># mplayer -ao alsa:device=headset /.../music.mp3
>alsa-init: 1 soundcard found, using: headset
>ALSA lib pcm_sco.c:561:(_snd_pcm_sco_open) Socket connection returned
>Connection refused
>alsa-init: playback open error: Connection refused
>Could not open/initialize audio device -> no sound.
>
>Since the headset is paired, I don't understand why the plugz
>connection is refused - does anybody have any ideas?
>
>Regards
>John
>
> >Date: Sun, 29 Apr 2007 18:07:48 +0400
> >From: John Frankish <[email protected]>
> >Subject: [Bluez-devel] Fwd: Re: Fwd: Re: Unable to set number of SCO
> >buffers :
> > please upgrade your Kernel !
> >Sender: [email protected]
> >To: BlueZ development <[email protected]>
> >Reply-to: BlueZ development <[email protected]>
> >Message-id: <[email protected]>
> >Content-type: text/plain; charset=us-ascii
> >Content-transfer-encoding: 7bit
> >List-Post: <mailto:[email protected]>
> >List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > <mailto:[email protected]?subject=subscribe>
> >List-Unsubscribe:
> <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > <mailto:[email protected]?subject=unsubscribe>
> >List-Archive:
> <http://sourceforge.net/mailarchive/forum.php?forum=bluez-devel>
> >List-Help: <mailto:[email protected]?subject=help>
> >List-Id: BlueZ development <bluez-devel.lists.sourceforge.net>
> >Original-recipient: rfc822;[email protected]
> >
> >Reiner,
> >
> >Thanks for the "xhost +" suggestion - unfortunately it didn't help...
> >
> >I pasted some details below in case it helps somebody suggest where I
> >might be going wrong.
> >
> >Regards
> >John
> >
> >Case 1 - hcid.conf/security = user: Whether I use my phone or bt
> >headset, with bluez-utils 3.9, hcid just sits there waiting for a pin
> >pop-up that doesn't happen. I had this problem with bluez-utils 2.15
> >but at least I could set a pin-helper to fashion a work-around.
> >
> ># hcid -n [security=user - pin request via hcitool cc/auth
> >00:0A:D9:E8:4A:65, xhost +]
> >hcid[2745]: Bluetooth HCI daemon
> >hcid[2745]: HCI dev 0 registered
> >hcid[2745]: HCI dev 0 already up
> >hcid[2745]: Device hci0 has been added
> >hcid[2745]: Starting security manager 0
> >hcid[2745]: Device hci0 has been activated
> >hcid[2745]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
> >hcid[2745]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
> >[then nothing]
> >
> >Case 2 - hcid.conf/security = auto: I can initiate a connection with
> >my phone and pair my machine using the local pin in hcid.conf. Maybe
> >I'm missing the logic here, but when my bt headset is put into
> >pairing mode, shouldn't hcid recognise this and use the local pin in
> >hcid? In practise, hcid sits there waiting for me to enter a pin on
> >the bt headset which of course is not possible.
> >
> ># hcid -n [security=auto, connection from phone]
> >hcid[2776]: Bluetooth HCI daemon
> >hcid[2776]: HCI dev 0 registered
> >hcid[2776]: HCI dev 0 already up
> >hcid[2776]: Device hci0 has been added
> >hcid[2776]: Starting security manager 0
> >hcid[2776]: Device hci0 has been activated
> >hcid[2776]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
> >hcid[2776]: link_key_notify (sba=00:10:C6:56:F4:9F, dba=00:0A:D9:E8:4A:65)
> >[paired OK]
> >
> ># hcid -n [security=auto, headset in pairing mode]
> >hcid[7423]: Bluetooth HCI daemon
> >hcid[7423]: HCI dev 0 registered
> >hcid[7423]: HCI dev 0 already up
> >hcid[7423]: Device hci0 has been added
> >hcid[7423]: Starting security manager 0
> >hcid[7423]: Device hci0 has been activated
> >
> >nothing happens, so then
> >
> ># hcitool cc 00:12:EE:A6:1D:F4
> ># hcitool auth 00:12:EE:A6:1D:F4
> >HCI authentication request failed: Input/output error
> >
> >hcid[7423]: link_key_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
> >hcid[7423]: pin_code_request (sba=00:10:C6:56:F4:9F, dba=00:12:EE:A6:1D:F4)
> >
> >
> >One thing I noticed with plugz and bluez-utils 2.15 is that when I
> >try to play music to the headset, it automatically pairs (via the
> >pin-helper I presume) but no music appears due to the sco buffers problem.
> >
> ># mplayer -ao alsa:device=headset /.../music.mp3
> >...
> >alsa-init: 1 soundcard found, using: headset
> >ALSA lib pcm_sco.c:273:(sco_headset_hw_params) Unable to set number
> >of SCO buffers : please upgrade your Kernel !
> >alsa-init: unable to set hw-parameters: Invalid argument
> >alsa-init: pcm prepare error: Input/output error
> >alsa: 8000 Hz/1 channels/2 bpf/768 bytes buffer/Signed 16 bit Little Endian
> >AO: [alsa] 8000Hz 1ch s16le (2 bytes per sample)
> >Building audio filter chain for 44100Hz/2ch/s16le -> 8000Hz/1ch/s16le...
> >Video: no video
> >Starting playback...[but no sound]
> >
> >
> >When I try this with plugz and bluez-utils 3.9, the initial
> >connection is rejected but this is not echoed by hcid...
> >
> ># mplayer -ao alsa:device=headset /.../music.mp3
> >...
> >Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
> >alsa-init: 1 soundcard found, using: headset
> >ALSA lib pcm_sco.c:561:(_snd_pcm_sco_open) Socket connection returned
> >Connection refused
> >alsa-init: playback open error: Connection refused
> >Could not open/initialize audio device -> no sound.
> >Audio: no sound
> >Video: no video
> >
> ># hcid -n [security=auto, headset in pairing mode]
> >hcid[2776]: Bluetooth HCI daemon
> >hcid[2776]: HCI dev 0 registered
> >hcid[2776]: HCI dev 0 already up
> >hcid[2776]: Device hci0 has been added
> >hcid[2776]: Starting security manager 0
> >hcid[2776]: Device hci0 has been activated
> >[but no link_key/pin_code_request??]
> >
> >------------------------
> >
> > >Date: Sun, 29 Apr 2007 10:23:48 +0200
> > >From: Reiner Klenk <[email protected]>
> > >Subject: Re: [Bluez-devel] Fwd: Re: Unable to set number of SCO buffers :
> > > please upgrade your Kernel !
> > >Sender: [email protected]
> > >To: BlueZ development <[email protected]>
> > >Reply-to: BlueZ development <[email protected]>
> > >Message-id: <1177835028.16681.8.camel@grappa>
> > >Content-type: text/plain; charset=us-ascii
> > >Content-transfer-encoding: 7bit
> > >List-Post: <mailto:[email protected]>
> > >List-Subscribe:
> <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > > <mailto:[email protected]?subject=subscribe>
> > >List-Unsubscribe:
> > <https://lists.sourceforge.net/lists/listinfo/bluez-devel>,
> > > <mailto:[email protected]?subject=unsubscribe>
> > >List-Archive:
> > <http://sourceforge.net/mailarchive/forum.php?forum=bluez-devel>
> > >List-Help: <mailto:[email protected]?subject=help>
> > >List-Id: BlueZ development <bluez-devel.lists.sourceforge.net>
> > >Original-recipient: rfc822;[email protected]
> > >
> > >On Sun, 2007-04-29 at 09:08 +0400, John Frankish wrote:
> > >
> > > > 2. I compiled bluez-libs/bluez-utils 3.9 to see if plugz would work
> > > > better with this - I ran into the same pin problem as before in that
> > > > I don't get a pin pop-up on my machine. If I set security to auto in
> > > > hcid.conf then I can pair with my cell phone since I can enter a pin
> > > > on the phone but this does not work with a bluetooth headset since I
> > > > cannot enter a pin and hcid just sits there waiting...
> > >I have seen something like this, where the problem appeared to be that
> > >the pin helper could not pop up its window due to authorization failure.
> > >If this is the case, it helps to "xhost +".
> > >
> > >Hth,
> > >Reiner
> > >--
> > >debb1046 (gmail, gtalk, jabber.org, ekiga.net, last.fm, skype)
> > >
> > >
> > >-------------------------------------------------------------------------
> > >This SF.net email is sponsored by DB2 Express
> > >Download DB2 Express C - the FREE version of DB2 express and take
> > >control of your XML. No limits. Just data. Click to get it now.
> > >http://sourceforge.net/powerbar/db2/
> > >_______________________________________________
> > >Bluez-devel mailing list
> > >[email protected]
> > >https://lists.sourceforge.net/lists/listinfo/bluez-devel
> >
> >
> >-------------------------------------------------------------------------
> >This SF.net email is sponsored by DB2 Express
> >Download DB2 Express C - the FREE version of DB2 express and take
> >control of your XML. No limits. Just data. Click to get it now.
> >http://sourceforge.net/powerbar/db2/
> >_______________________________________________
> >Bluez-devel mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Bluez-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel