public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Losing SCO connection
Date: Thu, 15 May 2008 11:50:32 +0200	[thread overview]
Message-ID: <1210845032.7025.44.camel@violet.holtmann.net> (raw)
In-Reply-To: <320370.69822.qm@web81301.mail.mud.yahoo.com>

Hi Michael,

> I wrote a little app that tries to support the hands-free (HF) profile but I am having trouble keeping the SCO connection alive.  Using an RFCOMM connection, I am able to establish the HF Service Level Connection per HF Profile specification and then create an SCO connection to a mobile phone.  But SCO seems to get disconnected by the phone after about 40-50msec of bidirectional voice data.  I can reconnect SCO but the phone disconnects it again.  Once in a while, this problem doesn't occur and SCO stays alive.  When this happens, I can tear down and bring up the HF setup repeatedly without any problem unless I power cycle the phone or the linux machine.  I would like to make it work on consistent basis.
> Please note that I am using the bluez lib only. I am not relying on the "services" utilities in the bluez-util package (I turned them all off).  Also, my SDP setup code seems to operate okay (i.e. output of "sdptool browse local" looks fine)
> Setup:
>     - Fedora 8 with
>         kernel 2.6.24.4
>         bluez-lib 3.20
>         L2CAP v2.9
>         RFCOMM v1.8
>         SCO v0.5
>     - Bluetooth dongle: Targus with Broadcom 2045    - phone: Nokia 6085
> I have tried another phone and another BT dongle and the problem is still there so I am leaning it's either my code or bluez...

did you try a CSR based dongle? It looks like the remote side is
disconnecting. Maybe it has something to do with your HFP control
channel handling. Can't really tell.

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2008-05-15  9:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13 22:30 [Bluez-users] Losing SCO connection Michael Oh
2008-05-15  9:50 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-05-16 23:08 Michael Oh
2008-05-17  7:18 ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1210845032.7025.44.camel@violet.holtmann.net \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox