Return-Path: Date: Mon, 1 Oct 2007 15:40:23 +0200 From: Andreas Gaufer To: BlueZ development Message-ID: <20071001154023.53e57c49@localhost.localdomain> In-Reply-To: References: <2EB6297382462046A9427D7324788A480217D35A@MCLNEXVS06.resource.ds.bah.com> <8de6c3e20708231340j439ca230i487e816693149441@mail.gmail.com> <1187964393.5121.10.camel@matthias.BEYONDSOFT.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=Multipart_Mon__1_Oct_2007_15_40_23_+0200_zwD2TIEQhBtLbL1a Subject: [Bluez-devel] [PATCH]Re: multithreaded name resolution Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --Multipart_Mon__1_Oct_2007_15_40_23_+0200_zwD2TIEQhBtLbL1a Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, 24 Aug 2007 14:14:53 +0200 (CEST) Peter Wippich wrote: > > Hi Matthias, > > On Fri, 24 Aug 2007, Matthias Becker wrote: > > > Hi, > > > > I tried to read the name of different devices parallel using multi > > threading, but without success. If there is one bluetooth device I works > > (as there is no real multi threading). If there are who devices, the > > same name is reported for both devices. In another test with 6 devices > > hci_read_remote_name returned something <0 so I did not get any name at > > all. > > this won't work. Asking for the name of a device is some sort of > connection setup, and most (all ?) Bt chips do not allow / can not handle > parallel connection setups (even though parallel connections are > possible). > > So don't try further, the problem is outside your code (and even BlueZ). > That's not true, the reported behavior is produced by bluez-libs. I already sent a patch to fix it and will attach that patch again to this mail. Please let me know if that Patch fixes your problem Matthias. Greetings Andy See also: http://thread.gmane.org/gmane.linux.bluez.devel/12491 --Multipart_Mon__1_Oct_2007_15_40_23_+0200_zwD2TIEQhBtLbL1a Content-Type: application/octet-stream; name=bluez-libs-3.19-EVT_REMOTE_NAME_REQ_COMPLETE.patch Content-Transfer-Encoding: base64 Content-Dis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hkci0+ZXZ0ICE9IHItPmV2ZW50KQogCQkJCWJyZWFrOwo= --Multipart_Mon__1_Oct_2007_15_40_23_+0200_zwD2TIEQhBtLbL1a Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --Multipart_Mon__1_Oct_2007_15_40_23_+0200_zwD2TIEQhBtLbL1a Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --Multipart_Mon__1_Oct_2007_15_40_23_+0200_zwD2TIEQhBtLbL1a--