Return-Path: Subject: Re: [Bluez-users] SCO question From: Marcel Holtmann To: Thor Egil Skaug Cc: BlueZ Mailing List In-Reply-To: <003c01c3fdab$7e4f5870$9349edc7@thores> References: <003c01c3fdab$7e4f5870$9349edc7@thores> Content-Type: text/plain Message-Id: <1077973909.2843.80.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sat, 28 Feb 2004 14:11:49 +0100 Hi Thor, > When opening an SCO connection between two clients using Bluez, there is > a continous > stream of incoming data on both ends, even without issuing any sends on > either side. > The stream ends when the SCO connection is terminated. > > I have done some tests, and this happens in both of the following cases: > > 1. With scotest, by blocking for some time right before the send(...) > call in scotest.c:send_mode. > By using hcidump, it is clear that both devices receive streams of > data without sending anything. > > 2. I wrote an application that used hci_sock w/ hci_usb (raw data and > hci_raw bit set) to manually > setup an acl and then sco connection. Same result. > > This was tested on machines running Linux 2.4.25 (usb-uhci), with Belkin > USB (CSR) devices. The SCO connection > in case 2 was setup to use HV2 packets. > > I have tested this with different voice settings, but pretty much with > the same results (although the data changes). > Most of the data is SCO packets of length 0x30 and the data contents are > either garbage or 0x00. > > Is this generated by the BT-devices to maintain a ~ 64kb/s synchronous > stream of data, is it generated > by the Bluez modules, or is there something wrong in the hci_usb driver > isoc. interface rx implementation that makes it > deliver garbage to the socket? it is all fine. You get the audio stream from the other side, even if you don't input anything. Regards Marcel ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users