From owner-freebsd-bluetooth@FreeBSD.ORG Sun Sep 9 16:09:21 2012 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F296106566C for ; Sun, 9 Sep 2012 16:09:21 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id DE3BF8FC12 for ; Sun, 9 Sep 2012 16:09:18 +0000 (UTC) Received: from mr16.lnh.mail.rcn.net ([207.172.157.36]) by smtp02.lnh.mail.rcn.net with ESMTP; 09 Sep 2012 12:09:12 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr16.lnh.mail.rcn.net (MOS 4.3.4-GA) with ESMTP id BYO64975; Sun, 9 Sep 2012 12:09:12 -0400 X-Auth-ID: anat Received: from pool-173-63-112-200.nwrknj.fios.verizon.net (HELO [192.168.1.8]) ([173.63.112.200]) by smtp01.lnh.mail.rcn.net with ESMTP; 09 Sep 2012 12:09:12 -0400 Message-ID: <504CBF27.5030500@aldan.algebra.com> Date: Sun, 09 Sep 2012 12:09:11 -0400 From: "Mikhail T." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120820 Thunderbird/14.0 MIME-Version: 1.0 To: bluetooth@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Monitoring Bluetooth devices 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, 09 Sep 2012 16:09:21 -0000 Hello! I'd like to keep a log of Bluetooth-devices appearing within "earshot" of my computer at home. I don't need to "pair" with them or do anything else actively -- just log the facts like these: 2012-09-11 11:47:50 00:11:22:33:44:55 appeared 2012-09-11 11:47:53 00:11:22:33:44:55 disappeared Where would I start? Thanks! Yours, -mi From owner-freebsd-bluetooth@FreeBSD.ORG Sun Sep 9 17:14:46 2012 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39CBE106566B for ; Sun, 9 Sep 2012 17:14:46 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id A9A568FC12 for ; Sun, 9 Sep 2012 17:14:45 +0000 (UTC) Received: by lbbgg13 with SMTP id gg13so1149106lbb.13 for ; Sun, 09 Sep 2012 10:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=7r5vDAwii6bAyi6RmlO1L1/NI18uEz7rAHeVkjnJih0=; b=dFTFwxtN8im4Ea8SdYwqzZ92MmKKfWpTlR6p17ORXXhe6332Qu+I4lRoZf4J/0vD0n N8oF+RsnuokZqvA2qMmvAFVeLwtC7LNyoJnZM+Dzgg0QXdKmXE2+0URDUlmHJiCUCVcX PjcPGs6pxEMxqQeKf/1jx/c9WtYs7pkPiD9GvBMBOQ3UaiIB27BjG8HQrVFt04DmF6RA VFHIb9Xdqb3y4GyOP5Sd1ZZ0YvnrRqpHA1kLZd1y7R+bytD2Fn2GwkFGv1uDpc9rqF/3 gpjJ4XECN9a8Urodj8SHrDYQ8V+mI/u8hSkemrsKIW8dgHMKBlbOrwTEyeShTUgcqHQ2 FNUw== Received: by 10.112.51.206 with SMTP id m14mr4143841lbo.10.1347210884049; Sun, 09 Sep 2012 10:14:44 -0700 (PDT) Received: from [10.228.125.52] ([85.26.184.137]) by mx.google.com with ESMTPS id ly17sm11517904lab.2.2012.09.09.10.14.38 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Sep 2012 10:14:42 -0700 (PDT) References: <504CBF27.5030500@aldan.algebra.com> In-Reply-To: <504CBF27.5030500@aldan.algebra.com> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <2BAAD0E7-A2A0-4433-BC61-AFF2779F0795@gmail.com> X-Mailer: iPhone Mail (9B206) From: maksim yevmenkin Date: Sun, 9 Sep 2012 21:12:47 +0400 To: "Mikhail T." Cc: "bluetooth@FreeBSD.org" Subject: Re: Monitoring Bluetooth devices 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, 09 Sep 2012 17:14:46 -0000 On Sep 9, 2012, at 8:09 PM, "Mikhail T." wrote: > Hello! >=20 > I'd like to keep a log of Bluetooth-devices appearing within "earshot" of m= y computer at home. I don't need to "pair" with them or do anything else act= ively -- just log the facts like these: >=20 > 2012-09-11 11:47:50 00:11:22:33:44:55 appeared > 2012-09-11 11:47:53 00:11:22:33:44:55 disappeared >=20 > Where would I start? Thanks! Yours, I think you might be looking for periodic inquiry.=20 Thanks, Max From owner-freebsd-bluetooth@FreeBSD.ORG Sun Sep 9 17:40:20 2012 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47F141065680 for ; Sun, 9 Sep 2012 17:40:20 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtpout.wanadoo.co.uk (smtpout2.wanadoo.co.uk [80.12.242.42]) by mx1.freebsd.org (Postfix) with ESMTP id D99058FC0A for ; Sun, 9 Sep 2012 17:40:18 +0000 (UTC) Received: from galant.ukfsn.org ([109.249.211.131]) by mwinf5d25 with ME id x5Ye1j0012qfP7R035YfUq; Sun, 09 Sep 2012 19:32:42 +0200 Received: by galant.ukfsn.org (Postfix, from userid 1000) id 8278E2600A0; Sun, 9 Sep 2012 18:32:50 +0100 (BST) Date: Sun, 9 Sep 2012 18:32:50 +0100 (BST) From: Iain Hibbert To: "Mikhail T." In-Reply-To: <504CBF27.5030500@aldan.algebra.com> Message-ID: References: <504CBF27.5030500@aldan.algebra.com> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: bluetooth@FreeBSD.org Subject: Re: Monitoring Bluetooth devices 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, 09 Sep 2012 17:40:20 -0000 On Sun, 9 Sep 2012, Mikhail T. wrote: > I'd like to keep a log of Bluetooth-devices appearing within "earshot" of my > computer at home. I don't need to "pair" with them or do anything else > actively -- just log the facts like these: > > 2012-09-11 11:47:50 00:11:22:33:44:55 appeared > 2012-09-11 11:47:53 00:11:22:33:44:55 disappeared > > Where would I start? Thanks! Yours, You could arrange to call bt_devinquiry(3) once per minute, and tabulate the results from that. Or, I don't know how much it interferes with general operation (perhaps less, than the above) you could look into placing the device into "periodic inquiry" mode, rather than performing a "general inquiry" constantly. That way, I think you just get inquiry results as devices respond.. There is not really a way to say that a device has moved away, since in a busy environment it could just have missed the inquiry scan (or you, its response), but you could delist devices which hadn't been seen for a few iterations, or after a specific time had lapsed.. I have found it very noticeable, since the advent of Android smartphones (which seem to not have a permanent 'discoverable' mode) that Bluetooth devices are not so easy to see in public spaces. regards, iain