From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 31 19:48:01 2008 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 12C9B1065672 for ; Mon, 31 Mar 2008 19:48:01 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 7607E8FC1D for ; Mon, 31 Mar 2008 19:48:00 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 45686 invoked by uid 0); 31 Mar 2008 19:47:55 -0000 Received: from r5j117.net.upc.cz (HELO ?86.49.9.117?) (86.49.9.117) by smtp.dkm.cz with SMTP; 31 Mar 2008 19:47:55 -0000 Message-ID: <47F13FEB.10503@users.sf.net> Date: Mon, 31 Mar 2008 21:47:55 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Maksim Yevmenkin References: <47DBE7A4.3060006@users.sf.net> <47EF6AA5.60403@users.sf.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues 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: Mon, 31 Mar 2008 19:48:01 -0000 Maksim Yevmenkin wrote: > >> 2) What am I trying to do ? Well, I set up internet sharing on my home >> laptop via BT and I can use it from my other laptop. Now, it works when my >> other (work) laptop runs FreeBSD. When I boot the other laptop in to >> Windows it asks me for PIN and then it works OK. But when I boot in to >> FreeBSD again I cannot connect and I have to reinitialise as explained in my >> original email. So to me it seems connecting from Windows somehow changes >> stored key which is unusable for subsequent FreeBSD uses. >> If this explanation is not enough, I can try to capture and provide hcidump >> for you. >> > > 1) what is in your /etc/bluetooth/hcsecd.conf (on both freebsd machines)? > > 2) can you create (with hcidump -w trace) and send to me hcidump trace > that shows the problem after you boot from windows back to freebsd? > > also, as i explained to you, using the same device under two different > operating systems is a bit of a challenge. os is in charge of > initiating "pairing" process and storing link keys. just because you > pairing the same two devices does not mean that you will get the same > link key every time. as i explained to you, the best way to make it > work is to make sure link key is shared between both oses. > > thanks, > max > 1) my home computer (the one with the internet connection) has: device { bdaddr 00:09:dd:50:0f:0a; name "Mato Edimax"; key nokey; pin "1234"; } my work computer has: device { bdaddr 00:16:41:12:09:53; name "Mato D820"; key nokey; pin "1234"; } Well, actually I've got the same hcsecd.conf with all the entries in both computers. 2) Just to be sure -- on which computer to run hcidump ? I do not know how to share link keys between FreeBSD and Windows. Also, as explained in my previous email, there are situations when sharing a link key is not a choice. However, Windows can manage this as it asks for PIN key when connection initiation fails. While I don't expect FreeBSD asking for a PIN, it might be quite useful if it could automatically (upon a connection establishing failure) throw away its stored link key and recreate it from PIN as Windows does. This would definitely help as it is basically what I have to do manually after each Windows run (that is to say .. stop hcsecd, rm hcsecd.keys, start hcsecd). With regards, Martin