From owner-freebsd-bluetooth@FreeBSD.ORG Wed Feb 4 01:13:11 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 DDD28106564A for ; Wed, 4 Feb 2009 01:13:11 +0000 (UTC) (envelope-from mav@mavhome.dp.ua) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 5D0648FC08 for ; Wed, 4 Feb 2009 01:13:11 +0000 (UTC) (envelope-from mav@mavhome.dp.ua) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 233439045; Wed, 04 Feb 2009 03:13:10 +0200 Message-ID: <4988EBAC.3080202@mavhome.dp.ua> Date: Wed, 04 Feb 2009 03:13:16 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.19 (X11/20090118) MIME-Version: 1.0 To: Maksim Yevmenkin References: <1233365217.00068654.1233354838@10.7.7.3> <4988DCCC.80201@mavhome.dp.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: pan profile support in freebsd 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: Wed, 04 Feb 2009 01:13:12 -0000 Maksim Yevmenkin wrote: >> The only newbie problem I had is what to specify in -d argument. NetBSD >> examples specifying adapter name there, while FreeBSD does not accepts this. >> I have spent some time looking for my adapter BDADDR. > > well, it kinda does. you can edit /etc/bluetooth/hosts file and add > your adapter's bd_addr there, i.e. > > 00:11:22:33:44:55 mydevice > > and then use -d mydevice with btpand(8). I have done exactly the same, it just was not intuitive and differs from NetBSD as I understood it. It was probably the first time when I needed to know my adapter BDADDR. >> PS: I have one small indirectly related, annoying problem. After some time >> of being unused Qtek goes to some kind of sleep, which makes it not >> responding on BT requests (both rfcomm and btpand), reporting "No route to >> host". After several retries or just by running l2ping and waiting for 3-5 >> seconds it successfully wakes up and working, but it makes using it a bit >> annoying. Is there any known workaround for it? > > it depends. i'm guessing qtek device is probably putting idle > connection into 'sniff' or 'hold' (or even 'park') mode to conserve > battery life. you should be able to see what is going by running > hcidump. in any case, it should be possible to add something that > 'tickles' connection once in a short while to prevent it from going > completely idle. it will drain the battery faster though. It does not happens when connection is alive, only when connection establishes. So may be there some kind of timeout can be tuned, or device can be forcefully woken up in some other way? One more minor fact. Unlike rfcomm_pppd I haven't found an option to run btpand in foreground to track connection status. -- Alexander Motin