From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jul 9 20:10:57 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 43C7E1065672 for ; Wed, 9 Jul 2008 20:10:57 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from hosting.lissyara.su (hosting.lissyara.su [77.221.149.162]) by mx1.freebsd.org (Postfix) with ESMTP id EBC668FC1D for ; Wed, 9 Jul 2008 20:10:56 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from [89.178.161.98] (port=14468 helo=acer.lissyara.int.otradno.ru) by hosting.lissyara.su with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KGfQ3-000CuS-EZ for freebsd-bluetooth@freebsd.org; Wed, 09 Jul 2008 23:33:39 +0400 Message-ID: <48751292.7080902@lissyara.su> Date: Wed, 09 Jul 2008 23:33:38 +0400 From: Alex Keda User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: hosting.lissyara.su Subject: bluetooth stack ported from NetBSD 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: Wed, 09 Jul 2008 20:10:57 -0000 Subj. http://forum.lissyara.su/viewtopic.php?t=9100&st=0&sk=t&sd=a&start=50#p79571 may be very useful - simply and think than realized in FreeBSв From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jul 9 20:57:18 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 21B4C1065671 for ; Wed, 9 Jul 2008 20:57:18 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id C927A8FC1D for ; Wed, 9 Jul 2008 20:57:17 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1621972pyb.10 for ; Wed, 09 Jul 2008 13:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=nvWTa7dOrH89wlbv/VUBeCpfj9umevI4wONO3RJ5dm8=; b=UlEY3SCsmt+AAejc6UBbWqMF0Bm0oZ5R0oAM5B7j18GnfMMGNfVHzn2Ju+tkE6XHY3 Zgu+RrBrTzjy7R8fDluKsEIRDU6AWgggq8Jitv1dj3TsDNTQzRYkDhXB4QBbOX8qx8uu xyLbMjLk2E2a+51Oq9KC5UaBEG1FGjJ5ngAXI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=uYE+45gVIblpZ9luMJWNlQYSaKGW+V8KxMpLycRHFDUCFpFyaY+hZHO0aejd/8A/lE m1QfEBLZnCJzg42pFQ7Ac7j+bi/Zh2tJiXiIKJACmg/o1wYstmIOXDz7ga5I94lAx5Qt h5ExsLRosx1e4tVky8YtkCPCDp6h/SJmArdWM= Received: by 10.141.133.14 with SMTP id k14mr4287460rvn.127.1215637036809; Wed, 09 Jul 2008 13:57:16 -0700 (PDT) Received: by 10.141.197.13 with HTTP; Wed, 9 Jul 2008 13:57:16 -0700 (PDT) Message-ID: Date: Wed, 9 Jul 2008 13:57:16 -0700 From: "Maksim Yevmenkin" To: "Alex Keda" In-Reply-To: <48751292.7080902@lissyara.su> MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: base64 Content-Disposition: inline References: <48751292.7080902@lissyara.su> Cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth stack ported from NetBSD 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: Wed, 09 Jul 2008 20:57:18 -0000 PiBTdWJqLgo+IGh0dHA6Ly9mb3J1bS5saXNzeWFyYS5zdS92aWV3dG9waWMucGhwP3Q9OTEwMCZz dD0wJnNrPXQmc2Q9YSZzdGFydD01MCNwNzk1NzEKPiBtYXkgYmUgdmVyeSB1c2VmdWwgLSBzaW1w bHkgYW5kIHRoaW5rIHRoYW4gcmVhbGl6ZWQgaW4gRnJlZUJT1woKaW50ZXJlc3RpbmcuIGknbSBh Y3R1YWxseSBraW5kYSB3b3JraW5nIGluIHRoZSBkaXJlY3Rpb24gb2YKY29udmVyZ2VuY2UgbmV0 YnNkIGFuZCBmcmVlYnNkIGJsdWV0b290aCBzdGFja3MuIHVzZXIgc3BhY2UgbW9zdGx5LgppJ20g Y3VyaW91cyB3aGF0IGlzICJoYXJkIiBpbiBmcmVlYnNkIGJsdWV0b290aCBzdGFjayBhbmQgd2h5 IG5ldGJzZApzdGFjayBpcyAibW9yZSBzaW1wbGUiPwoKdGhhbmtzLAptYXgK From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jul 9 21:17:52 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 63B201065676 for ; Wed, 9 Jul 2008 21:17:52 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id 2D08F8FC1A for ; Wed, 9 Jul 2008 21:17:52 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3900163rvf.43 for ; Wed, 09 Jul 2008 14:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=MbeBUQpFLBeiQt7lD8UqZv3iCKBTQCnRx6CVoA8Dl4E=; b=S7Np1kHaoOxoQTh6rHbAlLN2dVGe+i7xXQ1x5bc1rIJiFDNV/rksA6vyhLxZ2j8mu8 6vHl9J3hTOCh9euKOezfo87qMV+sovqxTcv3ZGZ32dEqwngl/dYKAnlMzNAtBr3uPo5G k7P3K2sVgaTmbL/q5+mdJ50f4ENgNuML5YH1E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FEiYKgoHlSPSKl+1mqJAUffQZOFgrD0sjViUlfCvkE9Dg7iuGQM0TnyPEqHLjrJJYF QAlbUlVJ7xPxSmK8hG6CK06Q3KIuhcKwb4RdVcPeBax43eQdxqpITGfpLf417z1aO6bg d2nmCjMwBXaH8WGyAyaT11Bd1OKA/kn6WRr58= Received: by 10.141.204.16 with SMTP id g16mr4291735rvq.275.1215638271512; Wed, 09 Jul 2008 14:17:51 -0700 (PDT) Received: by 10.141.197.13 with HTTP; Wed, 9 Jul 2008 14:17:51 -0700 (PDT) Message-ID: Date: Wed, 9 Jul 2008 14:17:51 -0700 From: "Maksim Yevmenkin" To: "Alex Keda" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: base64 Content-Disposition: inline References: <48751292.7080902@lissyara.su> Cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth stack ported from NetBSD 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: Wed, 09 Jul 2008 21:17:52 -0000 MjAwOC83LzkgTWFrc2ltIFlldm1lbmtpbiA8bWFrc2ltLnlldm1lbmtpbkBnbWFpbC5jb20+Ogo+ PiBTdWJqLgo+PiBodHRwOi8vZm9ydW0ubGlzc3lhcmEuc3Uvdmlld3RvcGljLnBocD90PTkxMDAm c3Q9MCZzaz10JnNkPWEmc3RhcnQ9NTAjcDc5NTcxCj4+IG1heSBiZSB2ZXJ5IHVzZWZ1bCAtIHNp bXBseSBhbmQgdGhpbmsgdGhhbiByZWFsaXplZCBpbiBGcmVlQlPXCj4KPiBpbnRlcmVzdGluZy4g aSdtIGFjdHVhbGx5IGtpbmRhIHdvcmtpbmcgaW4gdGhlIGRpcmVjdGlvbiBvZgo+IGNvbnZlcmdl bmNlIG5ldGJzZCBhbmQgZnJlZWJzZCBibHVldG9vdGggc3RhY2tzLiB1c2VyIHNwYWNlIG1vc3Rs eS4KPiBpJ20gY3VyaW91cyB3aGF0IGlzICJoYXJkIiBpbiBmcmVlYnNkIGJsdWV0b290aCBzdGFj ayBhbmQgd2h5IG5ldGJzZAo+IHN0YWNrIGlzICJtb3JlIHNpbXBsZSI/CgppIHRvb2sgdmVyeSBx dWljayBsb29rIC0gZ29vZCBlZmZvcnQgOikgdGhlcmUgYXJlIGhvd2V2ZXIsIGZldyBsb2NraW5n Cmlzc3VlcywgYW5kLCBzb21lIHV0aWxpdGllcyBhcmUgbWlzc2luZy4KCmFsc28sIG9yaWdpbmFs IHRocmVhZCBzZWVtcyB0byBiZSBhYm91dCBzb21lIGJsdWV0b290aCBncHMgZGV2aWNlLgpibHVl dG9vdGggZ3BzIHNob3VsZCB3b3JrIGp1c3QgZmluZSB3aXRoIGZyZWVic2QuIGkgaGF2ZSBvbmUg bXlzZWxmCmFuZCBpdCB3b3JrcyB3aXRob3V0IGFueSBwcm9ibGVtcy4gbW9zdCAoYWxsPykgYmx1 ZW9vdGggZ3BzIGRldmljZXMKc2ltcGx5IHVzZSBzZXJpYWwgcG9ydCBwcm9maWxlLCBzbyByZmNv bW1fc3BwZCB3aWxsIHdvcmsganVzdCBmaW5lIGZvcgp0aGlzLgoKdGhhbmtzLAptYXgK From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jul 9 21:58:28 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 B322F106564A for ; Wed, 9 Jul 2008 21:58:28 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from hosting.lissyara.su (hosting.lissyara.su [77.221.149.162]) by mx1.freebsd.org (Postfix) with ESMTP id 631EC8FC1D for ; Wed, 9 Jul 2008 21:58:28 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from [89.178.161.98] (port=10744 helo=acer.lissyara.int.otradno.ru) by hosting.lissyara.su with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KGhfx-000A5p-PV for freebsd-bluetooth@freebsd.org; Thu, 10 Jul 2008 01:58:13 +0400 Message-ID: <48753475.5040402@lissyara.su> Date: Thu, 10 Jul 2008 01:58:13 +0400 From: Alex Keda User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org References: <48751292.7080902@lissyara.su> In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: hosting.lissyara.su Subject: Re: bluetooth stack ported from NetBSD 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: Wed, 09 Jul 2008 21:58:28 -0000 >i took very quick look - good effort :) there are however, few locking >issues, and, some utilities are missing. hmm, what issues ? >also, original thread seems to be about some bluetooth gps device. the thread about ported netbt stack to freebsd not gps ;) why netbt ? becouse native stack freebsd not support SCO audio rfcomm_sppd i's first step >bluetooth gps should work just fine with freebsd. i have one myself >and it works without any problems. most (all?) blueooth gps devices >simply use serial port profile, so rfcomm_sppd will work just fine for >this. From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jul 9 22:26:42 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 A40CF1065677 for ; Wed, 9 Jul 2008 22:26:42 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 4C93F8FC0A for ; Wed, 9 Jul 2008 22:26:42 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1640872pyb.10 for ; Wed, 09 Jul 2008 15:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Emgui3Djw77xkl7GV3Tpag0jyriyEuq04cCgocPp6zo=; b=msCZan4xCMfLgSoexQlXrybHFdJ+hvjzDKTV/xQIzZW8jqPSuYDHacWBhgUBolF0Qs 0E85U8mvuxONAY0uwTRZxzAAJFytDwncsFHa0XIU/N70/agGFDn6Sp491KjNtf+cw4fD 4yZzqyF+r/pF8fAeOHj379OXpjEQ28KQHqKRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XaZ01Bei+Y+W/3r+FImy96/KIIUMM51/LtQqaBHO2oxlgbsSEmwnESJySNHXlVif6g hcH/suI1WpjwfgNu6TT+pVDVNHoT4JNFC0XbRzGyZEk4AQBNV1L1eUUCnmOS7/ZPYPi4 N5Ha7HwVZ8KQ7Bk87kISIBcjGRU/Nv9tUJ02M= Received: by 10.140.188.10 with SMTP id l10mr4340736rvf.6.1215642401322; Wed, 09 Jul 2008 15:26:41 -0700 (PDT) Received: by 10.141.197.13 with HTTP; Wed, 9 Jul 2008 15:26:41 -0700 (PDT) Message-ID: Date: Wed, 9 Jul 2008 15:26:41 -0700 From: "Maksim Yevmenkin" To: "Alex Keda" In-Reply-To: <48753475.5040402@lissyara.su> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48751292.7080902@lissyara.su> <48753475.5040402@lissyara.su> Cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth stack ported from NetBSD 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: Wed, 09 Jul 2008 22:26:42 -0000 On Wed, Jul 9, 2008 at 2:58 PM, Alex Keda wrote: >>i took very quick look - good effort :) there are however, few locking >>issues, and, some utilities are missing. > hmm, what issues ? for one - socket's layer is not properly locked. i also suspect (but not yet 100% sure) there is something fishy might be going on when packets cross boundary between usb and netbt. usb is giant locked, and there is very little locking in netbt. i saw the author simply replaced few splxxx/splx calles with mtx_xxx calls in few places, but i'm pretty sure this is not all of it. >>also, original thread seems to be about some bluetooth gps device. > > the thread about ported netbt stack to freebsd > not gps ;) > why netbt ? > becouse native stack freebsd not support SCO audio 1) i'm willing to give out the code that i have to anyone who has the desire to work on this; 2) i'm willing to help with the code and commit all the produced patches; 3) all the credit will go the person how will do the work; > rfcomm_sppd > i's first step that's fine. furthermore, i want to go on the record here and say that if netgraph (due to its complexity, etc.) is a big problem here, and, prevents people from working on bluetooth in freebsd, i'm prepared to seriously consider netbt stack as alternative. the userspace part of both stacks has a lot of shared code. also it would be beneficial for all bsd-family operating systems. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jul 10 08:40:24 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 3350710656BE for ; Thu, 10 Jul 2008 08:40:24 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp02.one2one.net (smtp02.one2one.net [149.254.192.174]) by mx1.freebsd.org (Postfix) with ESMTP id C4DE18FC14 for ; Thu, 10 Jul 2008 08:40:23 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by localhost.localdomain with esmtp (Exim 4.50) id 1KGrhL-0003uV-FX; Thu, 10 Jul 2008 09:40:19 +0100 Received: from localhost.localdomain ([127.0.0.1]) by localhost (smtpbeckt01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14921-06; Thu, 10 Jul 2008 09:40:19 +0100 (BST) Received: from [10.33.156.64] (helo=rya-online.net) by localhost.localdomain with smtp (Exim 4.50) id 1KGrhH-0003tz-Ry; Thu, 10 Jul 2008 09:40:18 +0100 Received: (nullmailer pid 1203 invoked by uid 1000); Thu, 10 Jul 2008 08:39:46 -0000 Date: Thu, 10 Jul 2008 09:39:46 +0100 (BST) To: Maksim Yevmenkin In-Reply-To: References: <48751292.7080902@lissyara.su> <48753475.5040402@lissyara.su> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1215679186.775945.722.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 localhost.localdomain); SAEximRunCond expanded to false Cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth stack ported from NetBSD 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: Thu, 10 Jul 2008 08:40:24 -0000 On Wed, 9 Jul 2008, Maksim Yevmenkin wrote: > furthermore, i want to go on the record here and say that if netgraph > (due to its complexity, etc.) is a big problem here, and, prevents > people from working on bluetooth in freebsd, i'm prepared to seriously > consider netbt stack as alternative. netgraph I considered too much work to look at and was no interest to have it in NetBSD or OpenBSD. Then I think after some years nobody had stepped up to make it work in DragonflyBSD so they have imported the netbt stack also. personally, I think that diversity is always good. The vast majority of applications use L2CAP or RFCOMM and the API for these are almost exactly similar across the whole range of open OS's (BlueZ included). I think even that there are some things in NetBSD that are still wrong (I think that using a raw socket for HCI is not correct, we should address devices directly -- but that is not going to change) or incomplete (SCO support is not great though it does work on some platforms) and nobody else picked up on libprop(3) so that has meant some rewriting down the line (there are bthcid/btkey implementations in OpenBSD without libprop) The way that the OS handles devices is always going to be different and that will make more rewriting, so I would think that FreeBSD importing the netbt stack "to gain SCO support" would not in the end necessarily make anything simpler. iain