Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <474BF69A.3030008@infitsrl.com> References: <5E13F596-B867-4C0D-9795-97D93507474C@infitsrl.com> <1196151954.17196.15.camel@aeonflux> <474BF69A.3030008@infitsrl.com> Date: Tue, 27 Nov 2007 12:06:27 +0100 Message-Id: <1196161587.17196.37.camel@aeonflux> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Scan and push images Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Fabrizio, > Ok for the subject, excuse me. and please inline response. Otherwise it is hard to follow. > I can't undertand "You are simply blocking the baseband with your random > attempts", where are the random attemps? > One thread is dedicated to make inquiry, it bind on a specific local > adapter and make an infinite loop of inquiry (with a parametric sleep on > every iteration). > > On the other side for every device discovered it's lauched a thread for > these operations: > 1) sdp query for OPUSH service (serialized with a mutex) > 2) connection to eventually discovered RFCOMM channel of the object push > service > 3) push of the content (with my own working obex implementation) as long as you only have one adapter attached to your system, you have attempts to run inquiry and paging at the same time. This is not working out. You can only do one thing at a time. > I'd like to accept Your suggests but: > - If I use periodic inquiry I need obligatory dbus to receive callback > events? You can do it by hand on a raw socket, but why would you? D-Bus gives it to you nicely. > - How can I perform pre-filter on remote devices that support object > transfer if I've not discovered their servies? Check the Bluetooth specification. Every inquiry result contains a 3 byte class of device value. Regards Marcel ------------------------------------------------------------------------- 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/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel