From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 8 13:00:26 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 2F4781065670 for ; Mon, 8 Dec 2008 13:00:26 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp01.one2one.net (smtp01.one2one.net [149.254.200.196]) by mx1.freebsd.org (Postfix) with ESMTP id E62778FC12 for ; Mon, 8 Dec 2008 13:00:25 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by smtpbarns01 with esmtp (Exim 4.50) id 1L9fin-0004MI-Oo; Mon, 08 Dec 2008 13:00:21 +0000 Received: from smtpbarns01 ([127.0.0.1]) by localhost (smtpbarns01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16687-01; Mon, 8 Dec 2008 13:00:21 +0000 (GMT) Received: from [10.34.218.65] (helo=rya-online.net) by smtpbarns01 with smtp (Exim 4.50) id 1L9fil-0004MC-Qq; Mon, 08 Dec 2008 13:00:21 +0000 Received: (nullmailer pid 715 invoked by uid 1000); Mon, 08 Dec 2008 12:58:48 -0000 Date: Mon, 8 Dec 2008 12:58:48 +0000 (GMT) To: Oliver Fromme In-Reply-To: <200812080953.mB89rh7i042425@lurza.secnetix.de> References: <200812080953.mB89rh7i042425@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1228741128.874448.728.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on smtpbarns01); SAEximRunCond expanded to false Cc: freebsd-bluetooth@FreeBSD.ORG Subject: Re: libbluetooth2 and Net::Bluetooth 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, 08 Dec 2008 13:00:26 -0000 On Mon, 8 Dec 2008, Oliver Fromme wrote: > Second, I would like to use this software (perl script): > > http://lukas.internet-freaks.net/nxtmanager.php > > As far as I can tell, the software requires libbluetooth2 > and the CPAN module Net::Bluetooth. I searched the ports, > but they're not there. I assume those don't work with > FreeBSD, right? Any idea whether porting them would be > feasible? The problem with this libbluetooth2 is that it forms the interface to the linux kernel for the BlueZ system and as such, large parts of it are not relevant to any other operating system. The way that this Lego Mindstorms NXT module speaks through bluetooth is using RFCOMM with the SerialPortProfile, so of course it is possible to talk to that from FreeBSD using an RFCOMM socket directly, or by using rfcomm_sppd(1) to open a pty with a connection to the NXT and using stdio. I don't know what this perl script needs to use the libbluetooth2 for, probably the module just lumps all bluetooth together. If you know how to make bindings then perhaps you can make a RFCOMM sockets module that will fulfil the requirements? iain