From: John Feig <feig@nnytech.net>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] RE : Frequent headset disconnects
Date: Tue, 22 May 2007 13:51:03 -0400 [thread overview]
Message-ID: <46532D87.6000400@nnytech.net> (raw)
In-Reply-To: <4652FEAE.1000602@nnytech.net>
John Feig wrote:
> Frederic Dalleau wrote:
>> Hi,
>> I did some recent changes and there are things to solve.
>> I don't have access to a linux computer right now. In your case,
>> enclosing the write call in a while loop may help.
>>
>> do {
>> if ((written = write(a2dp->sk, a2dp->buf, a2dp->len)) !=
>> a2dp->len) {
>> // Return the error
>> result = written;
>> }
>> } while(written<0 && errno==EAGAIN);
>>
>> Remove the DBG call.
>>
>> However, it may burn cpu time if you don't wait a little before
>> retrying.
>>
>>
>> The best solution would be to find why the packet must be resent.
>> Let us know if you get something.
>>
>> Frederic.
>>
> Ok, I plugged that loop into the code and it seemed to be better at
> first, but the disconnects continue. See attachment. (Attachment
> contains output during failure, loops many times, probably only the
> first couple are of importance).
>
> As you can see from the line (errno=112:Host is down), the headphones
> are disconnected at this point, and I actually have to turn my
> headphones back on.
>
> I should mention that I also use my bluetooth connection,
> simultaneously, with my phone for internet access, and the a2dpd seems
> to get upset whenever I try to grab data from the net. I figured that
> my bluetooth chip should be able to handle this, as I thought that the
> point of bluetooth was to be able to connect up to 7 devices to a
> single chip, and the one I have (integrated into my laptop) says that
> it is v2.0+EDR, which I figured would be plenty of bandwidth. I gave
> the ppp connection a baud rate of 115200, and set the bitpool at 53
> (had to hardcode, but that's another topic of discussion) which is i
> think a baud rate of 763200. Now, when I had the bitpool set at 33, or
> 475200 baud, the behavior was the same, and the headphones would get
> kicked off frequently.
>
> So, I wonder, based on Brad's comment, if the "transfer=-1" is what
> causes the shutoff of my headphones. And, if that's the case, where
> should I go to change the value being written, and what should that
> value be? If I change the "-1" to some junk data, will that collect on
> the client side, and cause issues there, or could the headphone
> crashes be because of collected junk data?
>
> Let me know what you guys think. And thanks for the help so far.
> -John
Sorry for the repeat message, but I still get disconnects while the
bluetooth internet connection is not active, and I'm touching anything
else either. So, basically, it's just a2dpd and amarok that are doing
anything at all.
-John
-------------------------------------------------------------------------
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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-05-22 17:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-17 0:07 [Bluez-devel] headsetd has problems serving two applications at a time Robert Huitl
2007-05-17 3:42 ` Brad Midgley
2007-05-17 7:51 ` Tim Chick
2007-05-17 13:21 ` Robert Huitl
2007-05-17 15:34 ` [Bluez-devel] Frequent headset disconnects John Feig
2007-05-18 13:13 ` Brad Midgley
2007-05-18 15:56 ` John Feig
2007-05-18 19:17 ` [Bluez-devel] RE : " Frederic Dalleau
2007-05-22 14:31 ` John Feig
2007-05-22 17:51 ` John Feig [this message]
2007-05-24 13:24 ` [Bluez-devel] headsetd has problems serving two applications at a time Brad Midgley
2007-05-24 16:28 ` Marc-André Lureau
2007-05-24 18:45 ` Robert Huitl
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=46532D87.6000400@nnytech.net \
--to=feig@nnytech.net \
--cc=bluez-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.