All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] SCO syncronization taking down USB dongle
@ 2006-02-15  3:48 Gareth Bradley
  2006-02-15  8:35 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Gareth Bradley @ 2006-02-15  3:48 UTC (permalink / raw)
  To: bluez-users

[-- 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 --]

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

end of thread, other threads:[~2006-02-15 23:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-15  3:48 [Bluez-users] SCO syncronization taking down USB dongle Gareth Bradley
2006-02-15  8:35 ` Marcel Holtmann
2006-02-15 23:40   ` Gareth Bradley

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.