From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 14 23:09:52 2011 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 14ACF106567F for ; Mon, 14 Mar 2011 23:09:52 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C0DED8FC0A for ; Mon, 14 Mar 2011 23:09:51 +0000 (UTC) Received: by iyj12 with SMTP id 12so32231iyj.13 for ; Mon, 14 Mar 2011 16:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=iMkPoMGqzjyCvBYBTcPrkBXmCJiFSZ89iQKUh/fm9ks=; b=Xp3cAMn8BM3rhFMhnHh6JLx2cfzS+igDzP8+0tkfdsFpwQNNwSkhlc3mQYdV17GK20 YUJtsTC63QCpTkVhKOiA3B21/v9BD4BFfllRuI6WC+y8KA3ORkDxDGhWlx+7c2hS+0zv 7H1m1Ao8KiPOh3Hxa4czTAK9Cq5Lspo+whXDU= 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=Q+BtYQ7zaL96rGZMjR2XysGQu2TMyQMFdVxviaTWg88a8EJffjBZreVgo0JNgUD7jI 1/7lwGz2AVOp5+ERGR/OtIt6HuC0AvE4mfUIO6MHauZuJWoLq3x6qnSJ84xiN43ORtQc fe4f+rpNxzo7/UQ34QOVvtge8Qxi7XAJ9rPpY= MIME-Version: 1.0 Received: by 10.42.215.19 with SMTP id hc19mr124844icb.238.1300144191132; Mon, 14 Mar 2011 16:09:51 -0700 (PDT) Received: by 10.43.60.201 with HTTP; Mon, 14 Mar 2011 16:09:51 -0700 (PDT) In-Reply-To: <4D7E7DBE.7080601@gmail.com> References: <4D36ED39.7070807@gmail.com> <4D7E7DBE.7080601@gmail.com> Date: Mon, 14 Mar 2011 16:09:51 -0700 Message-ID: From: Maksim Yevmenkin To: David Demelier Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth mouse does not connect after reboot 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, 14 Mar 2011 23:09:52 -0000 David, > Sorry to talk about this again, but If it's possible I found a solution: > > Can we set a fake mac address for the bluetooth nic? For example, if I use > the same mac address on my laptop and my desktop it will try to pair it so I > just need to connect my mouse to it :) > > But I don't know how to change the mac address... well, technically, there is no "standard" way to change bluetooth bd_addr (mac) address. i'm sure there are vendor specific hci commands that would allow you to change bd_addr, but, like i said, those are vendor specific commands and would be, well, specific, to each particular bluetooth chip. another problem is that having the same bd_addr on two different devices is problematic. especially if those devices are in the rf proximity and active. finally, its not just bd_addr, its actually the link key. not only you have to ensure the same bd_addr but also the same link key. and, yes, the same pair of devices will produce different link key every time you pair them. one possible solution is to pair mouse to a specific detachable bluetooth dongle. after paring is complete, obtain link key and program it directly into the dongle using hci write_stored_link_key command. after that, just move the detachable bluetooth dongle with the mouse, i.e. connect the dongle to the computer you want to use mouse with. thanks, max