From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 8 09:53:45 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 DC619106567E for ; Mon, 8 Dec 2008 09:53:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 613BE8FC0C for ; Mon, 8 Dec 2008 09:53:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id mB89rh0U042426; Mon, 8 Dec 2008 10:53:43 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id mB89rh7i042425; Mon, 8 Dec 2008 10:53:43 +0100 (CET) (envelope-from olli) Date: Mon, 8 Dec 2008 10:53:43 +0100 (CET) Message-Id: <200812080953.mB89rh7i042425@lurza.secnetix.de> From: Oliver Fromme To: freebsd-bluetooth@FreeBSD.ORG X-Newsgroups: list.freebsd-bluetooth User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 08 Dec 2008 10:53:43 +0100 (CET) Cc: Subject: 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 09:53:45 -0000 Hello, I'm new to bluetooth (read: I know almost nothing about it), so I have a few questions. First, is there a recommended bluetooth USB dongle that's guaranteed to work with FreeBSD (7-stable) and that's not too expensive? I've seen a lot of really cheap and small dongles recently at online shops, but I assume not all of them work fine, right? Second, I would like to use this software (perl script): http://lukas.internet-freaks.net/nxtmanager.php (Sorry, the page is in German, but the .tar.gz download at the bottom of the page contains an English README.) 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? Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd (On the statement print "42 monkeys" + "1 snake":) By the way, both perl and Python get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when the answer is clearly "41 monkeys and 1 fat snake". -- Jim Fulton From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 8 12:37:20 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 703A41065677 for ; Mon, 8 Dec 2008 12:37:20 +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 331C98FC13 for ; Mon, 8 Dec 2008 12:37:20 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by smtpbarns01 with esmtp (Exim 4.50) id 1L9fMR-0003tm-8R; Mon, 08 Dec 2008 12:37:15 +0000 Received: from smtpbarns01 ([127.0.0.1]) by localhost (smtpbarns01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14828-07; Mon, 8 Dec 2008 12:37:14 +0000 (GMT) Received: from [10.34.218.65] (helo=rya-online.net) by smtpbarns01 with smtp (Exim 4.50) id 1L9fMP-0003ti-3d; Mon, 08 Dec 2008 12:37:14 +0000 Received: (nullmailer pid 574 invoked by uid 1000); Mon, 08 Dec 2008 12:35:41 -0000 Date: Mon, 8 Dec 2008 12:35:41 +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: <1228739741.755294.775.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: bluetooth USB dongles 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 12:37:20 -0000 On Mon, 8 Dec 2008, Oliver Fromme wrote: > First, is there a recommended bluetooth USB dongle that's > guaranteed to work with FreeBSD (7-stable) and that's > not too expensive? I've seen a lot of really cheap and > small dongles recently at online shops, but I assume not > all of them work fine, right? the vast majority of USB dongles will work just fine if you are buying something, there are different selling points that can be confusing. Class 1 - 100m range Class 2 - 10m range Class 3 - 1m range I've never seen a class 3 device, and although I do have a class 1 controller it doesn't seem to make much difference as to signal quality at close range (I guess its just more powerful radio). Then there is Bluetooth version, so you might see v1.0b v1.2 v2.0 + EDR v2.1 + EDR If you see a v1.x device for sale then don't be tempted. v2.x devices are vastly better at making and maintaining connections, and the 'Enhanced Data Rate' gives much faster transfers. I've not seen a v2.1 dongle in the real world though they may exist (ditto for v2.2 as spec is availabe) I have seen (recently!) a v1.0b device advertised as "BLUETOOTH CLASS 2" with the v1.0b in really small writing on the case, I guess that these are old stock dressed up to sell rather than new manufactures but its good to be aware :) iain 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 From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 8 20:58:25 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 74302106564A for ; Mon, 8 Dec 2008 20:58:25 +0000 (UTC) (envelope-from vbotka@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.186]) by mx1.freebsd.org (Postfix) with ESMTP id F3A068FC14 for ; Mon, 8 Dec 2008 20:58:24 +0000 (UTC) (envelope-from vbotka@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so257885gve.39 for ; Mon, 08 Dec 2008 12:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:organization:x-mailer :mime-version:content-type:content-transfer-encoding; bh=F/o4RkaOKfxSIkaSNa1nDWSsCsDBCGKqwtciPviJHXY=; b=m8VThrS4AVhnbpb47s76DodjNzB5b5jfW+K+VD0XkDkTsXQ4tkcZfM+M6coCJAjEgC /qGKgbnXV7PTGKWrEiZQnItSKJFTytgoyiy8EgEeAFCu4z+Dd0MMcOPETbOaAd/Ew/yR MlaPDUWidYMz8JnKHhzEZ9KiNkkYTSSsWp25U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; b=LqgN+itByaM67vG/Z1KidVYk/eP6xSMwC5q2RrpwCE/LAQF9bsGhy4CMZq0Sf+qy49 FAPVBWW7lV5KCTgUW5ra2MUktgT8Buh871tl6o0ebBzsn/UuVT/BELZafV6H3Qk2iKyQ lvy6eadXEeTkgoVMSRyuhqtpA/psG9alv6+S8= Received: by 10.103.212.2 with SMTP id o2mr1371683muq.131.1228767944861; Mon, 08 Dec 2008 12:25:44 -0800 (PST) Received: from vlado.netng.org (styx.suse.cz [82.119.242.94]) by mx.google.com with ESMTPS id j2sm16492776mue.5.2008.12.08.12.25.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Dec 2008 12:25:43 -0800 (PST) Date: Mon, 8 Dec 2008 21:25:41 +0100 From: Vladimir Botka To: freebsd-bluetooth@freebsd.org Message-ID: <20081208212541.5736d3e9@vlado.netng.org> In-Reply-To: <1228739741.755294.775.nullmailer@galant.ukfsn.org> References: <200812080953.mB89rh7i042425@lurza.secnetix.de> <1228739741.755294.775.nullmailer@galant.ukfsn.org> Organization: netng.org X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.9; i586-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: bluetooth USB dongles 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 20:58:25 -0000 On Mon, 8 Dec 2008 12:35:41 +0000 (GMT) Iain Hibbert wrote: > On Mon, 8 Dec 2008, Oliver Fromme wrote: > > > First, is there a recommended bluetooth USB dongle that's > > guaranteed to work with FreeBSD (7-stable) and that's > > not too expensive? I've seen a lot of really cheap and > > small dongles recently at online shops, but I assume not > > all of them work fine, right? > > the vast majority of USB dongles will work just fine > > if you are buying something, there are different selling points that > can be confusing. > > Class 1 - 100m range > Class 2 - 10m range > Class 3 - 1m range > > I've never seen a class 3 device, and although I do have a class 1 > controller it doesn't seem to make much difference as to signal > quality at close range (I guess its just more powerful radio). Then > there is Bluetooth version, so you might see > > v1.0b > v1.2 > v2.0 + EDR > v2.1 + EDR > > If you see a v1.x device for sale then don't be tempted. v2.x devices > are vastly better at making and maintaining connections, and the > 'Enhanced Data Rate' gives much faster transfers. I've not seen a > v2.1 dongle in the real world though they may exist (ditto for v2.2 > as spec is availabe) > > I have seen (recently!) a v1.0b device advertised as "BLUETOOTH CLASS > 2" with the v1.0b in really small writing on the case, I guess that > these are old stock dressed up to sell rather than new manufactures > but its good to be aware :) > > iain > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to > "freebsd-bluetooth-unsubscribe@freebsd.org" > I can recommend "cambridge silicon radio". The best choice up till now. -- -vlado Vladimir Botka From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 9 13:54:59 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 60A7C1065672 for ; Tue, 9 Dec 2008 13:54:59 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id BAE088FC19 for ; Tue, 9 Dec 2008 13:54:58 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id mB9DstOM019271; Tue, 9 Dec 2008 14:54:55 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id mB9DstLs019270; Tue, 9 Dec 2008 14:54:55 +0100 (CET) (envelope-from olli) Date: Tue, 9 Dec 2008 14:54:55 +0100 (CET) Message-Id: <200812091354.mB9DstLs019270@lurza.secnetix.de> From: Oliver Fromme To: freebsd-bluetooth@FreeBSD.ORG In-Reply-To: <20081208212541.5736d3e9@vlado.netng.org> X-Newsgroups: list.freebsd-bluetooth User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 09 Dec 2008 14:54:56 +0100 (CET) Cc: Subject: Re: bluetooth USB dongles 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: Tue, 09 Dec 2008 13:54:59 -0000 Vladimir Botka wrote: > Iain Hibbert wrote: > > the vast majority of USB dongles will work just fine > > > > if you are buying something, there are different selling points that > > can be confusing. > > > > Class 1 - 100m range > > Class 2 - 10m range > > Class 3 - 1m range > > > > I've never seen a class 3 device, and although I do have a class 1 > > controller it doesn't seem to make much difference as to signal > > quality at close range (I guess its just more powerful radio). The device I'm going to use is class 2, so I guess it's sufficient to buy a class 2 controller. In order to be able to support the 100m range, both device _and_ controller have to be class 1, I assume. (Please correct me if I'm wrong.) > > Then there is Bluetooth version, so you might see > > > > v1.0b > > v1.2 > > v2.0 + EDR > > v2.1 + EDR > > > > If you see a v1.x device for sale then don't be tempted. v2.x devices > > are vastly better at making and maintaining connections, and the > > 'Enhanced Data Rate' gives much faster transfers. I've not seen a > > v2.1 dongle in the real world though they may exist (ditto for v2.2 > > as spec is availabe) > > > > I have seen (recently!) a v1.0b device advertised as "BLUETOOTH CLASS > > 2" with the v1.0b in really small writing on the case, I guess that > > these are old stock dressed up to sell rather than new manufactures > > but its good to be aware :) Thanks Iain for the explanations. That's very helpful. Indeed I noticed there are still 1.x dongles offered for sale. Good thing you warned me. > I can recommend "cambridge silicon radio". The best choice up till now. Thanks Vladimir for the suggestion. Unfortunately it is difficult to find a product by chipset name. Most online shops don't list such technical details, and even the manufacturers' web sites don't mention it. After some searching, I finally ordered a "LogiLink Ultra Mini Bluetooth 2.0 USB Adapter BT0007". According to the manufacturer's web page it is Bluetooth V2.0 with 20m range (so I assume it's class 2, even though they don't mention this), and they even say that the chipset is "CSR" (which I assume means cambridge silicon radio). Surprisingly this little fella is so small it seems to almost completely disappear inside the USB slot. Amazing. What's even better, it costs only 6 Euros. Thanks everybody for your suggestions! Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Python tricks" is a tough one, cuz the language is so clean. E.g., C makes an art of confusing pointers with arrays and strings, which leads to lotsa neat pointer tricks; APL mistakes everything for an array, leading to neat one-liners; and Perl confuses everything period, making each line a joyous adventure . -- Tim Peters