From owner-freebsd-bluetooth@FreeBSD.ORG Sun Oct 4 14:39:43 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A9AA1065676 for ; Sun, 4 Oct 2009 14:39:43 +0000 (UTC) (envelope-from masoom.shaikh@gmail.com) Received: from mail-vw0-f171.google.com (mail-vw0-f171.google.com [209.85.212.171]) by mx1.freebsd.org (Postfix) with ESMTP id 4D2D68FC0C for ; Sun, 4 Oct 2009 14:39:43 +0000 (UTC) Received: by vws1 with SMTP id 1so1483794vws.27 for ; Sun, 04 Oct 2009 07:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Q7l/rbSd8C9oYx0t1mEsqxhwk9VniZN4kt0b9FLpNAQ=; b=PpSaFYlKtgJWq8sLgZmrM1iy2VB3iKkenQNC34f1cM3AY/UFqUttoJ/g7OZAGw82Ry S5mcxMUa6N5R+weY0vkaYYd9PJm/v8qrMC1oLVC8Arh+7p8tOBIhsazjtIjd4XAZN2iQ 4jQwDuePBYu4mWoFBT9sz1oUehgDpduQlBA/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wq67sFsyQcI5xSmE06UykNnQMLcLIv6SQnny42thUF0P7C5rhoM4oas8E9OS/AaqO/ +PVMVNSLTE6u9d4/JzUn/nc3wH/Gvogi/SMWDy+QzB0eptyPsXmnrzT8UXs71zM/czZr 84axJf/AVt3+Te+tPZtc4CIUbY1COeccbr18M= MIME-Version: 1.0 Received: by 10.220.15.68 with SMTP id j4mr8283707vca.18.1254667182683; Sun, 04 Oct 2009 07:39:42 -0700 (PDT) In-Reply-To: <1254643032.101648.162.nullmailer@galant.ukfsn.org> References: <1254600808.002635.1652.nullmailer@galant.ukfsn.org> <1254643032.101648.162.nullmailer@galant.ukfsn.org> Date: Sun, 4 Oct 2009 14:39:42 +0000 Message-ID: From: Masoom Shaikh To: Iain Hibbert Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-bluetooth@freebsd.org Subject: Re: remote_name_request, using libbluetooth X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 14:39:43 -0000 On Sun, Oct 4, 2009 at 7:57 AM, Iain Hibbert wrote: > On Sun, 4 Oct 2009, Masoom Shaikh wrote: > > > > On Sat, 3 Oct 2009, Masoom Shaikh wrote: > > > > > > > int status = bt_devreq( s, &request, 0); > > > > yes, i did forgot to say where it failed, devices are inquired properly > no > > issues there > > but bt_devreq() fails with status == -1 > > ah, I see.. you should put a non-zero timeout value there (waiting for 0 > seconds will not leave enough time for the response :) > > if you use eg > > if (status == -1) > err(1, "bt_devreq (RemoteNameRequest)") > > then you would see an "Operation timed out" message.. I should think 5 > seconds would be reasonable.. > > regards, > iain > > > u got the bug by neck, and i would have slit its neck by the time this mail is in your inbox ;-) that was the exact error, timeout value of 5 didn't work for me, thus am using 60, and it works thanks Iain