Return-Path: From: jp-www@dcs.gla.ac.uk To: Max Krasnyansky cc: bluez-devel@lists.sourceforge.net Subject: Re: [Bluez-devel] Re: Re: Bluetooth headset with Bluetooth usb dongle status. In-Reply-To: <5.1.0.14.2.20030721172151.094589f0@unixmail.qualcomm.com> Message-ID: References: <3F1752C5.5020701@dsto.defence.gov.au> <3F17E4EF.5060401@superbug.demon.co.uk> <1058533496.25379.237.camel@pegasus> <3F17FD1A.9050003@superbug.demon.co.uk> <5.1.0.14.2.20030721172151.094589f0@unixmail.qualcomm.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Date: Tue, 22 Jul 2003 14:35:27 +0100 (BST) On Mon, 21 Jul 2003 5:23pm -0700, Max Krasnyansky wrote: > At 07:33 AM 7/20/2003, Jonathan Paisley wrote: > >I have managed to get playback and recording (with the PC acting as a > >headset for my phone) to work well. I've made the following changes which > >are included in the patch at the end: > > > > (1) submit two rx urbs (same as your proposed patch, but done at caller) > > (2) allow two pending isoc urbs instead of one > > (3) only use the 9 byte (single voice channel) isoc endpoint > I buy #1 and #2, although I'm surprised that it's supported by HCD. > But 9 bytes packets ? I must admit that I don't fully understand what's going on... The SCO socket reports mtu 64 bytes. The read() on the socket returns 24 bytes at a time. Thus, I'm also sending 24 bytes with send() -- sending more results in no audio on the remote device. There's some question about how this data relates to the timings described in the example in the specification. How does this 24 byte message correspond to the 9 byte endpoint? I see that the SCO packets have a handle and length header (3 bytes): typedef struct { __u16 handle; __u8 dlen; } __attribute__ ((packed)) hci_sco_hdr; so I suppose the 24 byte message becomes 27 bytes with the header, which gets divided into 3 x 9 byte packets. I'm using an ohci interface, but will try things on a uhci interface in another computer to see how it copes with (1) and (2) from my original message. ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel