2007-03-08 21:48:06

by Wolfgang Wershofen

[permalink] [raw]
Subject: [Bluez-users] headsetd(plugz) vs. btsco - My experiences with BT telephony

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I'm using a bluetooth headset for telephony since about one month now
and like to share my experiences with those interested.

As I said, I use the headset purely for telephony and I managed to
completely replace my "normal" phone with my PC but it has been a long way.

I'm running on 64-bit OpenSuSE 10.2 with kernel 2.6.18. bluez-libs and
bluez-utils is at 3.7, alsa at 1.0.13.
I got bluetooth-alsa from CVS on Feb, 6th and installed it as described.
My Dongle is a Level-One MDU-0005 (CSR chipset) and the headset is a
JABRA BT-200. I also previously used a B-Speech Vitac Headset/Dongle
bundle and a Belkin dongle but none of them was working 100% with bluez.
So it seems still to be true, that one should look out for CSR-chipset
equiped hardware to run bluetooth under Linux.

My telephony setup is based on Asterisk running on the same machine
connected via a Fritzcard ISDN PCI card to the public network and I'm
using twinkle as softphone. This setup works perfect when using cabled
earphones and micro on the interal (Intel) soundcard, but I'd like to
keep my desktop free from cables - the mess on it is yet enough without
them ;-)

The first few days after I managed to get bluetooth basically working, I
decided to use the headsetd daemon instead of btsco because I
experienced serious delays with the latter.

With headsetd, I was able to hear and speak without problems on most
phone calls, but I also received complaints about a deafening loud white
noise on the far end of the line after the call was established. I
managed to reproduce this once or twice with another phone in my house,
but I have no clue what is causing this noise. It's absolutely
unpredictable and occurs randomly. Has anyone encountered this problem,
too? If so, I'd like to know about it and what may be done to prevent
this. Any idea?

As I didn't want to bother my colleagues and friends with loud white
noise, I soon switched to btsco and the kernel module snd_bt_sco. With
this, you have two options to choose from: Either use the OSS device
/dev/dsp1 or the corresponding ALSA device (in my case: plughw:1,0 BT
headset (BT SCO PCM))
With both of them, there are issues with access rights at least with
opensuse. To use /dev/dsp1, I have to chmod it to 666, but then I still
can't run btsco as normal user. To achieve this, I also have to 666 the
newly created devices in /dev/snd after loading snd_bt_sco.

As mentioned earlier, I encountered delays when using btsco. When I
receive a call, then my voice is heard noticably later than I talk and
this leads to some confusion. The effect is unbearable when using
/dev/dsp1 (delay well over one second) and almost gone when using the
ALSA-device. On outgoing calls, I never had any delay - one this I still
don't understand...

So, using the kernel module snd_bt_sco with btsco and the corresponding
ALSA device for me is the configuration, that works. I never encountered
that loud white noise anymore since I switched to btsco and the delay
with the ALSA-device is absolutely tolerable. In addition, btsco allows
me to use the headset buttons to receive and end a call.

I still have to write some startup scripts to get everything working
without manual intervention, but basically all is working well. Maybe a
wrapper script for btsco would be neccessary to check, if btsco is up
and running and restart it, if not. Sometimes, btsco looses the channel
and then silently dies. twinkle doesn't recognize a missing connection
to the headset and I then get a connected phone call without being able
to hear or talk to the other end. :-(

So far for my experiences. I hope this will be helpful for others. I'd
be glad to receive some feedback and/or hints for improvements. Thx for
your time.


cu
Wolfgang



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF8ISWgUafbxFH+p8RAmlbAJ4mDnQXpI7cbsRgLxBOL9im9EI1mQCdFHHm
B4wjHgFXX4jdAjdwpoZyXt4=
=Xdlf
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2007-03-10 12:24:24

by Wolfgang Wershofen

[permalink] [raw]
Subject: Re: [Bluez-users] headsetd(plugz) vs. btsco - My experiences with BT telephony

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad Midgley schrieb:
> Wolfgang
>
> Did you patch your kernel with the flowcontrol patch (plugz/patches)? It
> might help the loud noise. Are you trying a recent version of plugz?

Yes, I patched the kernel - otherwise headsetd won't run.
I got plugz from cvs on Feb 6th. Just checked the CVS - no changes for
headsetd available since then, only a2dpd seems to have changed.

>
> It sounds like you may have an audio server introducing latency with
> btsco. It's more likely to happen with btsco accidentally since it shows
> up as a "real" alsa kernel device.

What audio server could that be? I can't say, if the delay is always
there or only from time to time. But I'm sure, the delay only occurs
when I answer a call and not when I initiate the call.

Thx for your suggestions anyway.
Wolfgang
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF8qN4gUafbxFH+p8RAvtmAKCNbSoO8VzhG6uLSWnHVhvh0o7NbwCgjo8d
8jqQ51cHXsf2rZtiRnVeD3c=
=mtoT
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-03-09 18:08:13

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-users] headsetd(plugz) vs. btsco - My experiences with BT telephony

Wolfgang

Did you patch your kernel with the flowcontrol patch (plugz/patches)? It
might help the loud noise. Are you trying a recent version of plugz?

It sounds like you may have an audio server introducing latency with
btsco. It's more likely to happen with btsco accidentally since it shows
up as a "real" alsa kernel device.

Brad

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users