From owner-freebsd-bluetooth@FreeBSD.ORG Wed May 16 08:37:22 2007 Return-Path: X-Original-To: bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC5C716A401 for ; Wed, 16 May 2007 08:37:22 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.freebsd.org (Postfix) with ESMTP id 6354813C447 for ; Wed, 16 May 2007 08:37:22 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1HoF0a-000NBt-Id; Wed, 16 May 2007 12:37:20 +0400 From: Vladimir Grebenschikov To: Eric Anderson In-Reply-To: <464A8EFC.7060308@freebsd.org> References: <1179237283.1397.25.camel@localhost> <464A8EFC.7060308@freebsd.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Wed, 16 May 2007 12:37:20 +0400 Message-Id: <1179304640.45992.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: bluetooth Subject: Re: Bluetooth Proximity Monitor on 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, 16 May 2007 08:37:22 -0000 =F7 =D7=D4, 15/05/2007 =D7 23:56 -0500, Eric Anderson =D0=C9=DB=C5=D4: > On 05/15/07 08:54, Vladimir Grebenschikov wrote: > > Hi > >=20 > > Does anybody plays with scrips like that: > > http://gentoo-wiki.com/TIP_Bluetooth_Proximity_Monitor > >=20 > > I guess it should be easy to patch it for FreeBSD, but probably somebod= y > > already did it ? > >=20 >=20 >=20 > Like this: >=20 > http://www.googlebit.com/doku.php?id=3Dbt_proximity >=20 > Didn't take too long to do it up for FreeBSD, and works great!! Requires a bit modification to work for me and finally works very unstable: # /usr/sbin/hccontrol -n ubt0hci create_connection e60 BD_ADDR: e60 Connection handle: 11 Encryption mode: Disabled [0] # /usr/sbin/hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State e60 11 ACL 0 MAST NONE 0 0 OPEN # /usr/sbin/hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State e60 11 ACL 0 MAST NONE 0 0 OPEN # /usr/sbin/hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State e60 11 ACL 0 MAST NONE 0 0 OPEN # /usr/sbin/hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State e60 11 ACL 0 MAST NONE 0 0 OPEN # /usr/sbin/hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State # dmesg | tail -n 1 ng_l2cap_lp_discon_ind: ubt0l2cap - unexpected LP_DisconnectInd event. Conn= ection does not exist, con_handle=3D11 # Connection expires somehow in ~5 secs after creation. Probably there is some way to do keep-alive connection ? My device is Nokia E60. PPP over telephone Bluetooth works more or less stable. Of course, I can just use l2ping or 'hccontrol Inquiry' to check device presence, but how to read signal quality in that case ? > Thanks for the nudge.. >=20 > Eric >=20 --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com