linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with bluez and a bluetooth headset
@ 2008-11-11 22:06 XazZ XazZ
  2008-11-16  4:35 ` Brian Rogers
  0 siblings, 1 reply; 5+ messages in thread
From: XazZ XazZ @ 2008-11-11 22:06 UTC (permalink / raw)
  To: linux-bluetooth

good evening everyone

Few days ago I got a new, beautiful bluetooth headset.
It's a Nokia BH-503
My PC got an "ID 1131:1001 Integrated System Solution Corp. KY-BT100
Bluetooth Adapter"
For the usb dongle part from lsusb -vv check the link at the bottom (lsusb)

Sadly I'm having some trouble getting my headset to work with my PC.
Neither I can play music over my headset nor can I record something over it.

When I'm trying to record sound via `arecord -D plug:bluetooth -f
S16_LE test.wav` I get the following output:
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 8000 Hz,
Mono
ALSA lib pcm_bluetooth.c:464:(bluetooth_hsp_hw_params)
BT_SETCONFIGURATION failed : Input/output error(5)
arecord: set_params:1022: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 2000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 8000
TICK_TIME: 0

skype tells me:
ALSA lib pcm_bluetooth.c:1619:(bluetooth_init) BT_GETCAPABILITIES
failed : Input/output error(5)

I've added a link to bluetoothd's logfile when trying to record via arecord
(link name is bluetoothd.log)
I also added bluetoothd's logfile when trying to do the sound
test in skype (link name is bluetoothd.log.0)

The bluez version I'm running: 4.17

I also tried to get my headset working with bluez 3.32
with 3.32 I could play music over my headset - but I could NOT record sound.
I googled and some people came up with the fact that pulseaudio might
break bluetooth sound: I do not have pulseaudio installed or running

I also tried changing the bluetooth section in my ~/.asoundrc
I changed profile to: "voice" then to "hifi" and then to "auto" -> it
never worked

In my dmesg I get "hci_scodata_packet: hci0 SCO packet for unknown
connection handle 2" and "hci_scodata_packet: hci0 SCO packet for
unknown connection handle 65398"
according to jhe from IRC: <jhe> that error sounds like its sending
SCO packets without having informed the host (bluez) that there's a
SCO connection
NOTE: its == my bluetooth dongle

Earlier I also got some stack traces - but I couldn't reproduce those
on a non-tainted system yet:
http://nopaste.ch/3992403666920ab.html

As soon as I'm able to reproduce on a non-tainted kernel I'll post an update

If you need more information please feel free to ask - I'll post it as
soon as I can.

Thanks in advance
XazZ

dmesg.log: http://nopaste.ch/25dd0e4b29d440a.html
bluetoothd.log: http://nopaste.ch/e395401980f8100.html
bluetoothd.log.1: http://nopaste.ch/fe11fe7cbe6a598.html
lsusb: http://nopaste.ch/408c541369cfd9f.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with bluez and a bluetooth headset
       [not found] <5a14e9b50811111229l2addf4aega6e1107320a83026@mail.gmail.com>
@ 2008-11-16  2:41 ` XazZ XazZ
  2008-11-16 22:16   ` XazZ XazZ
       [not found]   ` <1226940114.10178.3.camel@localhost>
  0 siblings, 2 replies; 5+ messages in thread
From: XazZ XazZ @ 2008-11-16  2:41 UTC (permalink / raw)
  To: linux-bluetooth

good evening again

I got one step further after deleting my whole bluetooth-configuration
and setting everything bluetooth-related up from scratch :)

I got audio output on my headset working.
Audio input (recording) is sadly still not possible

bluetootd says the following when trying to record audio:
a2dp_source_cfg: no available SEP found
config failed

skype and arecord say the following as soon as I try to record audio:
ALSA lib pcm_bluetooth.c:712:(bluetooth_a2dp_hw_params)
BT_SETCONFIGURATION failed : Input/output error(5)

You can get the full bluetoothd log here: http://nopaste.ch/64aa1a77e7813e4.html

I also noticed that I can neither play nor record something when I set
profile "voice" in ~/.asoundrc
When I set it to profile "hifi" audio playback works fine.

Thanks for any help in advance

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with bluez and a bluetooth headset
  2008-11-11 22:06 Problem with bluez and a bluetooth headset XazZ XazZ
@ 2008-11-16  4:35 ` Brian Rogers
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Rogers @ 2008-11-16  4:35 UTC (permalink / raw)
  To: XazZ XazZ; +Cc: linux-bluetooth

XazZ XazZ wrote:
> good evening everyone
>
> Few days ago I got a new, beautiful bluetooth headset.
> It's a Nokia BH-503
> My PC got an "ID 1131:1001 Integrated System Solution Corp. KY-BT100
> Bluetooth Adapter"
>   
I've got that same exact dongle on my desktop. It can't talk to my 
headset either, or my phone, or my laptop, or a Wiimote. I suspect it 
has issues with the new btusb in 2.6.27. I can list devices, but when I 
try to pair, it just waits until eventually the following appears in dmesg:
hci_cmd_task: hci0 command tx timeout

I had that dongle working in an earlier kernel version. On 2.6.27, my 
laptop's Bluetooth is working fine.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with bluez and a bluetooth headset
  2008-11-16  2:41 ` XazZ XazZ
@ 2008-11-16 22:16   ` XazZ XazZ
       [not found]   ` <1226940114.10178.3.camel@localhost>
  1 sibling, 0 replies; 5+ messages in thread
From: XazZ XazZ @ 2008-11-16 22:16 UTC (permalink / raw)
  To: linux-bluetooth

Hi

> So BlueZ is trying to connect to A2DP. No wonder recording doesn't work (you
> need HSP/HFP for that). You can force HSP/HFP by adding a "profile voice"
> line to your .asoundrc entry.

Okay, I tried this again.
As soon as I change "profile hifi" to "profile voice" sound playback
stops working

[XazZ@darklight ~]$ hciconfig hci0
hci0:   Type: USB
       BD Address: 00:11:67:8F:29:0E ACL MTU: 1021:8 SCO MTU: 48:10
       UP RUNNING PSCAN
       RX bytes:2487 acl:33 sco:0 events:110 errors:0
       TX bytes:2126 acl:36 sco:0 commands:65 errors:0

That suggests that no sco packets have been sent (although there
should have been one)
I also get two hci_cmd_task: hci0 command tx timeout in my dmesg as
Brian Rogers said

Again the output of bluetoothd -nd:
http://nopaste.ch/502c8ee33709a6d.html (I hope it helps)
Maybe my device needs some quirk?

Oh, and I'm using the btusb driver which comes with 2.6.28 rc3 (Brian
Rogers uses the same driver)

XazZ

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with bluez and a bluetooth headset
       [not found]   ` <1226940114.10178.3.camel@localhost>
@ 2008-11-17 18:25     ` XazZ XazZ
  0 siblings, 0 replies; 5+ messages in thread
From: XazZ XazZ @ 2008-11-17 18:25 UTC (permalink / raw)
  To: linux-bluetooth

good evening

> I'd recommend you to try kernel 2.6.27 or later.
> A fix concerning eSCO fallback is in it.
> The bug is triggered by using a bluetooth 2 dongle and bluetooth 1
> headset, for instance.

I'm already running a kernel which is newer than 2.6.27 (I'm currently
running 2.6.28 rc3)
But something else must be wrong then:
my USB dongle is a 2.0 one and my headset is also a 2.0 device

[XazZ@darklight ~]$ hciconfig hci0 version | grep HCI
        HCI Ver: 2.0 (0x3) HCI Rev: 0x2c6 LMP Ver: 2.0 (0x3) LMP Subver: 0x2c6

that's what my hciconfig says about my dongle

>Bluetooth version
>    * Bluetooth version: 2.0 with EDR
That is directly taken from my headsets manufacturers website (Nokia)

Thanks in advance
XazZ

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-17 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 22:06 Problem with bluez and a bluetooth headset XazZ XazZ
2008-11-16  4:35 ` Brian Rogers
     [not found] <5a14e9b50811111229l2addf4aega6e1107320a83026@mail.gmail.com>
2008-11-16  2:41 ` XazZ XazZ
2008-11-16 22:16   ` XazZ XazZ
     [not found]   ` <1226940114.10178.3.camel@localhost>
2008-11-17 18:25     ` XazZ XazZ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).