Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <4885C0C9.7000308@idlum.be> References: <4885C0C9.7000308@idlum.be> Date: Tue, 22 Jul 2008 15:20:34 +0200 Message-Id: <1216732834.31819.31.camel@californication> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Unexpected error / chronology trying to extract sdp handles 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 Pierre-Yves, > I'm running v3.34. I know it's not the latest. But I've observed what I > describe below on virtually any previous 3.x version. > > Somewhere in my code, I perform a call to > Adapter.GetRemoteServiceHandles(btAddress, match). This call blocks as > expected. A few seconds later, I get a RemoteDeviceConnected signal. > Great, looking good. But about 30s after the first call, > GetRemoteServiceHandles finally returns, by throwing a > ConnectionAttemptFailed. The RemoteDeviceDisconnected event arrives at > the same time than the expection. > > How can I get I get a ConnectionAttempFailed while I have received a > "Connected" signal previously? Is it to be expected? How should such > apparent non-sense be dealt with? Or perhaps I'm mislead by the > (apparently obvious) "ConnectionAttemptFailed" name? the SDP connection establishment might fail. This is different from from any low-level ACL link that you see. Run hcidump -X -V and see what actually does happen. Regards Marcel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel