From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 3 16:07:55 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C62A216A41F for ; Sat, 3 Dec 2005 16:07:55 +0000 (GMT) (envelope-from shackan@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5221D43D58 for ; Sat, 3 Dec 2005 16:07:55 +0000 (GMT) (envelope-from shackan@gmail.com) Received: by wproxy.gmail.com with SMTP id i12so871436wra for ; Sat, 03 Dec 2005 08:07:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iS54YgasY+KXZKkjoj4PSm9LOCsU21lfwIciPbO2DcHCXS8Bpiol0tF8yYEJGpPM2VgCQR27v21zZoLpbRqMtAEZurWJj3Tssr7Db9ufKWRJ0V1bfWPDMG+1tvG7GK8aHrbFMwa2g4tlvz6oNLTfzAZoez9YFu1VF8Kg6D0xU68= Received: by 10.65.126.16 with SMTP id d16mr1486892qbn; Sat, 03 Dec 2005 08:07:54 -0800 (PST) Received: by 10.65.196.7 with HTTP; Sat, 3 Dec 2005 08:07:54 -0800 (PST) Message-ID: <9307f5f20512030807x6eadc73cq9d9acc9dd5503a5b@mail.gmail.com> Date: Sat, 3 Dec 2005 08:07:54 -0800 From: "P. Durante" To: freebsd-bluetooth@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Automatic bluetooth device initialization 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: Sat, 03 Dec 2005 16:07:55 -0000 Hi, I'm writing a daemon which takes advantage of dbus to manage bluetooth devices, until now I focused development mainly on linux but I'm keeping all the bluez-specific bits in a layer on its own and I'm investigating the possibility of a freebsd layer as well. From the source code of hccontrol and sdpcontrol it seems that the programming paradigm is not very different from the one used for linux (although your bt stack has nothing or little in common with bluez), but there's a substantial difference I've stumbled upon today: in bluez it is possible to open a "control connection" with the bt stack and use this socket to asynchronously read stack internal events (like device added/removed), I used those events to trigger my daemon to send dbus signals and initialize some internal data structures which expose a bluetooth device over dbus, I'd like to know if something similar is available in the freebsd stack as well. regards, Paul