Return-Path: Message-ID: Date: Sun, 3 Dec 2006 20:22:48 +0100 From: "Mikael Lindqvist" To: "BlueZ users" In-Reply-To: <1165171236.19590.65.camel@localhost> MIME-Version: 1.0 References: <1165171236.19590.65.camel@localhost> Subject: Re: [Bluez-users] Timeout for connections Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net On 12/3/06, Marcel Holtmann wrote: > Hi Mikael, > > > I would like to be able to set a timeout for service discoveries (and > > eventually for rfcomm connections as well, but so far I've been > > experimenting with service discoveries). For this I use non blocking > > sockets by passing SDP_NON_BLOCKING to sdp_connect. Then I use select > > with a timeout on the socket, and if it times out I call sdp_close. > > > > The problem is that after I have done this I can't use the bluetooth > > chip for other connections for some time. Dumping the traffic with > > hcidump, I saw that this is because even though the l2cap socket is > > closed, the bluetooth chip is still doing the connection in the > > background. For this connection to actually get canceled the chip > > needs to be sent a HCI_Create_Connection_Cancel command, but it is not > > sent when the socket is closed. > > use a 2.6.19 kernel and this command will be sent. > Oh ok... Haven't had to build my own kernel before but I guess there is a first time for everything... I'm using ubuntu and they say it won't be available until next version in april... Problem is that there are people who I can't tell "build the latest kernel" who relies on the software I'm developing... what to do... Is there another way I can set a timeout for connections? -- Mikael ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users