Linux bluetooth development
 help / color / mirror / Atom feed
From: Gareth Bradley <gareth.bradley.nz@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] SCO syncronization taking down USB dongle
Date: Tue, 14 Feb 2006 15:48:21 -1200	[thread overview]
Message-ID: <bd72c4b0602141948w3bacbf30q49f933551f56b40a@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]

Hello. I am currently writing code for voice connections using a Motorla
HS850 headset and the BlueZ stack on a Intrinsyc Cerf 255PXA board (a small
form mobile PC). I can currently make successful SCO connections to the
headset, but they sometimes crash, and take the whole USB dongle with it.
(Running 'hciconfig hci0 up' fixes it).

Here is the crash printout:
usb.c: USB disconnect on device 2
Receive failed: Broken pipe
hub.c: USB new device connect on bus1/2, assigned device number 3

I have a stream of incoming voice (from a Windows PDA) which is buffered. I
read from the SCO connection stream (and consistently get 48 byte packets),
and write in an amount from the receive buffer into the headset. This coice
connection works fine.

I've tried using FD_ZERO, FD_SET and FD_ISSET before all read and writes,
but still to no avail. I am able to get it to crash within a minute if I
deliberately write data chunks slightly out with the amount read from the
device (read 48, then write 47, or 46, or 49...).

I notice that flow (and error) control appear on the Todo list, but is there
some way to guard against the whole dongle being taken down?

[-- Attachment #2: Type: text/html, Size: 1232 bytes --]

             reply	other threads:[~2006-02-15  3:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-15  3:48 Gareth Bradley [this message]
2006-02-15  8:35 ` [Bluez-users] SCO syncronization taking down USB dongle Marcel Holtmann
2006-02-15 23:40   ` Gareth Bradley

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=bd72c4b0602141948w3bacbf30q49f933551f56b40a@mail.gmail.com \
    --to=gareth.bradley.nz@gmail.com \
    --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