2009-04-26 09:54:24

by John Frankish

[permalink] [raw]
Subject: FW: Upgrade bluez-4.17 to 4.36 - headset no longer works

No feedback? Something basic must be wrong if a bt headset won't work...

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of John Frankish
Sent: 19 April, 2009 09:13
To: [email protected]
Subject: Upgrade bluez-4.17 to 4.36 - headset no longer works

Hi,

I recently upgraded from bluez-4.17 to bluez-4.36 and now my se hbh-610 headset no longer works.

Any pointers would be gratefully received.

Thanks, John
------------

This ~/.asoundrc used to work:

Quote
pcm.bluetooth {
type bluetooth
device "00:12:EE:A6:1D:F4"
profile "auto"
}

ctl.bluetooth {
type bluetooth
}
Unquote

..with the following:
$ aplay -Dbluetooth -f S16_LE /usr/local/share/sounds/alsa/Noise.wav

..but with bluez-4.36, there is no sound and "bluetoothd -n" reports:

bluetoothd[7621]: link_key_request (sba=00:21:86:E4:4D:67, dba=00:12:EE:A6:1D:F4)
bluetoothd[7621]: Badly formated or unrecognized command: AT*SEAUDIO=4,4014
bluetoothd[7621]: Badly formated or unrecognized command: AT+CSCS="UTF-8"
bluetoothd[7621]: Badly formated or unrecognized command: AT*SEAM="HBH-610",13
bluetoothd[7621]: Badly formated or unrecognized command: AT+CLAN?

I tried the .asoundrc suggested in /etc/alsa/bluetooth.conf:

Quote
pcm.rawbluetooth {
@args [ 00:12:EE:A6:1D:F4 ]
@args.00:12:EE:A6:1D:F4 {
type string
}
type bluetooth
device "00:12:EE:A6:1D:F4"
}

pcm.bluetooth {
@args [ 00:12:EE:A6:1D:F4 ]
@args.00:12:EE:A6:1D:F4 {
type string
}
type plug
slave {
pcm {
type bluetooth
device "00:12:EE:A6:1D:F4"
}
}
}
UnQuote

..but I got:

$ aplay -Dplug:bluetooth -f S16_LE /usr/local/share/sounds/alsa/Noise.wav

Playing WAVE '/usr/local/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
ALSA lib pcm_bluetooth.c:1607:(audioservice_expect) BT_START_STREAM failed : Success(0)
ALSA lib pcm_bluetooth.c:1566:(audioservice_recv) Too short (1 bytes) IPC packet from bluetoothd
aplay: set_params:1015: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 12000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: 0


2009-04-29 13:57:03

by John Frankish

[permalink] [raw]
Subject: RE: FW: Upgrade bluez-4.17 to 4.36 - headset no longer works


-----Original Message-----
From: Luiz Augusto von Dentz [mailto:[email protected]]
Sent: 26 April, 2009 18:30
To: John Frankish
Cc: [email protected]
Subject: Re: FW: Upgrade bluez-4.17 to 4.36 - headset no longer works

Hi,

On Sun, Apr 26, 2009 at 6:54 AM, John Frankish <[email protected]> wrote:

> Playing WAVE '/usr/local/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
> ALSA lib pcm_bluetooth.c:1607:(audioservice_expect) BT_START_STREAM failed : Success(0)
> ALSA lib pcm_bluetooth.c:1566:(audioservice_recv) Too short (1 bytes) IPC packet from bluetoothd

This normally indicates a mismatch version of ipc, iirc any failing
code will be EIO. You should make sure both audio plugin and alsa
plugin are compiled and installed with the same ipc.h, in the future
we can probably add a version check for ipc to really indicate what is
the real problem.

--
Luiz Augusto von Dentz
Engenheiro de Computa??o

------
Thanks for the reply, but I'm not sure I fully understand...

If the audio plugin and the alsa plugin are compiled at the same time, why wouldn't they use the same version of ipc.h ??

2009-04-26 16:37:07

by Balaji Palaniswami

[permalink] [raw]
Subject: Re: Upgrade bluez-4.17 to 4.36 - headset no longer works


Hi John ,

I got same problem when updated to 4.36.
I got error
ALSA lib pcm_bluetooth.c:(audioservice_expect) .....
ALSA lib pcm_bluetooth..c:(audioservice_recv) Bogus message ....

I could not remember exact error message.but it is similar your message.

In bluetooth daemon log ,
i got BT REQUEST < BT GET CAPABILTIES
Invalid message length

In code , i checked message header length is zero.hence it terminated client socket.
Then i assumed that problem is with alsa , so i reinstalled bluez-* packages and rebooted.

i tried aplay to play a song it started , immediately i aplay pcm write error mesage.so i concluded that its problem with aplay . i tried rythem music box in Ubuntu 8.10 .Finally , I heard song in Motorola 850 Headset.

Thanks,
Balaji.P



----- Original Message ----
From: John Frankish <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Sunday, 26 April, 2009 3:24:24 PM
Subject: FW: Upgrade bluez-4.17 to 4.36 - headset no longer works

No feedback? Something basic must be wrong if a bt headset won't work...

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of John Frankish
Sent: 19 April, 2009 09:13
To: [email protected]
Subject: Upgrade bluez-4.17 to 4.36 - headset no longer works

Hi,

I recently upgraded from bluez-4.17 to bluez-4.36 and now my se hbh-610 headset no longer works.

Any pointers would be gratefully received.

Thanks, John
------------

This ~/.asoundrc used to work:

Quote
pcm.bluetooth {
type bluetooth
device "00:12:EE:A6:1D:F4"
profile "auto"
}

ctl.bluetooth {
type bluetooth
}
Unquote

..with the following:
$ aplay -Dbluetooth -f S16_LE /usr/local/share/sounds/alsa/Noise.wav

..but with bluez-4.36, there is no sound and "bluetoothd -n" reports:

bluetoothd[7621]: link_key_request (sba=00:21:86:E4:4D:67, dba=00:12:EE:A6:1D:F4)
bluetoothd[7621]: Badly formated or unrecognized command: AT*SEAUDIO=4,4014
bluetoothd[7621]: Badly formated or unrecognized command: AT+CSCS="UTF-8"
bluetoothd[7621]: Badly formated or unrecognized command: AT*SEAM="HBH-610",13
bluetoothd[7621]: Badly formated or unrecognized command: AT+CLAN?

I tried the .asoundrc suggested in /etc/alsa/bluetooth.conf:

Quote
pcm.rawbluetooth {
@args [ 00:12:EE:A6:1D:F4 ]
@args.00:12:EE:A6:1D:F4 {
type string
}
type bluetooth
device "00:12:EE:A6:1D:F4"
}

pcm.bluetooth {
@args [ 00:12:EE:A6:1D:F4 ]
@args.00:12:EE:A6:1D:F4 {
type string
}
type plug
slave {
pcm {
type bluetooth
device "00:12:EE:A6:1D:F4"
}
}
}
UnQuote

..but I got:

$ aplay -Dplug:bluetooth -f S16_LE /usr/local/share/sounds/alsa/Noise.wav

Playing WAVE '/usr/local/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
ALSA lib pcm_bluetooth.c:1607:(audioservice_expect) BT_START_STREAM failed : Success(0)
ALSA lib pcm_bluetooth.c:1566:(audioservice_recv) Too short (1 bytes) IPC packet from bluetoothd
aplay: set_params:1015: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 12000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: 0

2009-04-26 14:30:02

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: FW: Upgrade bluez-4.17 to 4.36 - headset no longer works

Hi,

On Sun, Apr 26, 2009 at 6:54 AM, John Frankish <[email protected]> wrote:

> Playing WAVE '/usr/local/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
> ALSA lib pcm_bluetooth.c:1607:(audioservice_expect) BT_START_STREAM failed : Success(0)
> ALSA lib pcm_bluetooth.c:1566:(audioservice_recv) Too short (1 bytes) IPC packet from bluetoothd

This normally indicates a mismatch version of ipc, iirc any failing
code will be EIO. You should make sure both audio plugin and alsa
plugin are compiled and installed with the same ipc.h, in the future
we can probably add a version check for ipc to really indicate what is
the real problem.

--
Luiz Augusto von Dentz
Engenheiro de Computa??o