From owner-freebsd-bluetooth@FreeBSD.ORG Mon Apr 7 17:05:46 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 9DDE9106564A for ; Mon, 7 Apr 2008 17:05:46 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 267778FC1B for ; Mon, 7 Apr 2008 17:05:45 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1683675fgg.35 for ; Mon, 07 Apr 2008 10:05:44 -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=MScQjqaZux+RdVNJKNmmS9uVZucEUDecH42PwJYk1tI=; b=EVa9esDWIF7SIXgVQtzEEtZQovPhy6owfJYxolzrlFSpeqU4DBqbuSHzod32pZ8hBYKloH+AkkcNSvzmC+v7KwD7k8w3A0iBeTBenRDNeGogyCCW95uKUrlAQ7jiMHiHXeG6SlgRW88dTe81t3bFinn1d+Kn3bBNvtVT3KuxrXE= 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=Bo9LnXoQQfLwDOYycJmGvt3t3gi4CUn7WYmNNS5LvJeWHpzbTOW+Tm+WIqhXR8FoQiFN6rSjs83kIi0ryMN7v+HMHnTBYj6uYS/jGxXT1Lx7YrWsWCy5jbUSQlSO2tmF37xS6ch0NMznz1lW2zda/8tYoyn17hG9PKR19Kv6iQQ= Received: by 10.82.166.9 with SMTP id o9mr1280834bue.55.1207587944615; Mon, 07 Apr 2008 10:05:44 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Mon, 7 Apr 2008 10:05:44 -0700 (PDT) Message-ID: Date: Mon, 7 Apr 2008 09:05:44 -0800 From: "Maksim Yevmenkin" To: mato In-Reply-To: <47F68B4F.4080706@users.sf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ED9AC5.4050505@users.sf.net> <47EF668D.1080003@users.sf.net> <1206904241.480342.891.nullmailer@galant.ukfsn.org> <47F13BAD.9060808@users.sf.net> <1207142908.576787.1033.nullmailer@galant.ukfsn.org> <47F68B4F.4080706@users.sf.net> Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Logitech V470 Bluetooth Mouse on FreeBSD ? 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, 07 Apr 2008 17:05:46 -0000 [...] > > i have a wired usb apple mighty mouse here and horizontal scrolling > > does not work for me at all. quick look at ums(4) showed that it does > > not export w data (it tries to locate both wheel and z axis, however > > it does not look for ac_pan axis). > > > > so, it appears that we need to teach moused(8), sysmouse(4) and mice > > drivers about second wheel. it appears to be a somewhat bigger chunk > > of work. > > The current situation seems to me not ideal and rather complicated. You > said bthidd injects messages directly to kernel. I don't know what the > consequences are but I noticed the following ... When I run moused my BT > mouse works in console (except double clicks etc.). Unfortunately, because > I wanted extra functionality from my Synaptics touchpad I installed > x11-drivers/synaptics port which required disabling moused which handled the > touchpad as ps/2 mouse. Now synaptics works great in X11 but it doesn't > work in console at all and my BT mouse doesn't work in console either. But > if I plug in a USB mouse devd runs moused and suddenly my BT mouse works in > console too. Funny but very inconvenient, I can tell you. Fortunately I > don't work in console that much anymore. freebsd offers something called sysmouse(4). it allows the console and the user process (such as xorg) to share the mouse. if you use sysmouse(4) in xorg - the mouse will be shared between both console and xorg. if you use specific mouse driver (such as ums(4)) you will need to put /dev/ums0 in your xorg.conf and use appropriate xorg mouse driver. in the later case, the mouse will not be shared and will not work in the console. bthidd(8) uses console ioctl's to feed bluetooth mouse events into the kernel (i.e. feed events to sysmouse(4)). this way we automatically share bluetooth mouse between console and xorg. however, because sysmouse(4) protocol lacks knowledge about all the fancy buttons and wheels we can not pass this data to xorg. basically we are limited to whatever sysmouse(4) protocol knows about. currently, it is not possible to use bluetooth mouse directly from xorg/whatever, because there is no device node for it. in other words, there is no /dev/btmsX device node that feeds data in some protocol to consumers. i guess, it would be possible to write virtual mouse vms(4) driver (similar to virtual keyboard driver vkbd(4)) that would simply be used to pass through mouse data in, say, microsoft protocol or something like that. however, i think it would be better to add another level of operation to sysmouse(4) and change protocol so it can accommodate future extensions. thanks, max > > With regards, > > Martin > From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 8 20:52: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 905E8106564A for ; Tue, 8 Apr 2008 20:52:18 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9288FC21 for ; Tue, 8 Apr 2008 20:52:17 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2278761fgg.35 for ; Tue, 08 Apr 2008 13:52:16 -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=dnqPqSybTcNv4wUq9w0wmgY9ZngNOUde1R+dNE2kv8w=; b=Dp0mrvUxSax1JTrofxfyZYUbzHVyF2TXGNsIJNzg44IQm3YEHN7hYL6X7EhF00q4s6JGXx3PmBpQ9jXQSr25CpLVrvU+wlnvP8RFtwhu6TrFvFQSxt7eBeHvHEqfRmVfrhA4IgfrNfEQurp1mm6jQtkI2Joj7I7zRqP3CaJKtPw= 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=mgzp2nkRGMhtFoIVs8bs/AQoJnvgkTQxxnFSX/41GnYCzhvWIuzrrtt+MuLtEvZ50StwnrZOoik31RRzldnxzjloidUcwCcWDQZUMp0gVnyhbQeNl8In+6f+5GGvnwVpaI9m0/noRZT9H6rkXzuKVTblaJDWqPNRWOs5jM0AcP0= Received: by 10.86.59.2 with SMTP id h2mr5408441fga.63.1207687936701; Tue, 08 Apr 2008 13:52:16 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Tue, 8 Apr 2008 13:52:16 -0700 (PDT) Message-ID: Date: Tue, 8 Apr 2008 13:52:16 -0700 From: "Maksim Yevmenkin" To: mato In-Reply-To: <47F67B95.4060402@users.sf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47DBE7A4.3060006@users.sf.net> <47F67B95.4060402@users.sf.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues 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, 08 Apr 2008 20:52:18 -0000 On 4/4/08, mato wrote: > Maksim Yevmenkin wrote: > > Hi Max, > > Thanks for the script but I would need it expanded a bit. The thing is > that because I connect both FreeBSD and Windows as clients I had to create 2 > slightly different ppp.conf labels (it didn't work for me with one label > only). Therefore I created 2 simple scripts, each starting rfcomm_pppd with > different label on different channel. Then I run them manually or > automatically from cron at startup. > Do you think it would be possible to cover situations like mine within your > script ? Something like specifying for instance > rfcomm_pppd_server_channel="1,2" .. ? why do you need 2 different labels? having multiple instances of a rfcomm_pppd started would be possible, however i will need some time to think about it. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 10 17:35:31 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 1C16B1065679 for ; Thu, 10 Apr 2008 17:35:31 +0000 (UTC) (envelope-from jonmoldenhauer@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.183]) by mx1.freebsd.org (Postfix) with ESMTP id CB3E58FC1F for ; Thu, 10 Apr 2008 17:35:30 +0000 (UTC) (envelope-from jonmoldenhauer@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so95840ele.12 for ; Thu, 10 Apr 2008 10:35:30 -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:mime-version:content-type; bh=bJ/g4KVAVnv/d22Tguf64ybKqVzI5LKvDpSjA6Uw9mo=; b=gKCSRJff15fCfe5uduBoD4ECh0xqKxwD6+zZ+lg6oN9vT8s7RvzrqdMUE7G4XD6Ie0xB9W5mhhSSQY4P6bJlZRyvnxCf7RE7pRwLE4POBEwOUBIGEkiJLRPSNM3ipkVUDFjeXT1pJ8xGZu0zZ9jjDfqRUc2ZzL19AiEMh8lEgMY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=PvdAxc0mcGa09U/40ZboCp2tr/GBr+hJs5zKFTznkOfrSchMWUU4gLM6NgdkmcTiIuisYw0R59XZ1KUkwd2hhaMlaGsOALit7YUkALdTmoRQcD2R0Hgyiff6Q1KEg5+KiAnBUJqSm82dh0SGNl1PnBte4npwTdZUTh/xtikb1sM= Received: by 10.141.20.7 with SMTP id x7mr902399rvi.255.1207847428793; Thu, 10 Apr 2008 10:10:28 -0700 (PDT) Received: by 10.141.71.5 with HTTP; Thu, 10 Apr 2008 10:10:28 -0700 (PDT) Message-ID: <92abd3ae0804101010m1535c06bm89ba9002a662f26@mail.gmail.com> Date: Thu, 10 Apr 2008 10:10:28 -0700 From: "Jonathon Moldenhauer" To: freebsd-bluetooth@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: headset support 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 Apr 2008 17:35:31 -0000 Hi, I have searched back through the archives here and there is discussion about FreeBSD and headset/handsfree profile support. I have seen several comments that "the code is about the be committed" so I am wondering what the status really is. If any help is needed I would be willing to test and/or work on code so that this feature can be brought to the FreeBSD platform. Thanks, Jon Moldenhauer From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 10 17:49:11 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 605FF106566C for ; Thu, 10 Apr 2008 17:49:11 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id E06CA8FC28 for ; Thu, 10 Apr 2008 17:49:10 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so72520fgg.35 for ; Thu, 10 Apr 2008 10:49:09 -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=R7zI1s8vbUQqc8oVZCCQfrbnMIA+mdq57nInaqP1bZc=; b=isUHoNfLvYaPWXnaBrHoptJ03gPdMk4LOJvGNIJqoZAXlWcsa0rQ221f1hwQz2YgUxFbR8hFLspHpy8IM9r6PO0xULG4iadVjWG2Q325LumXHFcYdRKr5j4sr/RSSfoWgbQnyddy2SBs+VtfxpL/0F4dim0iifsqeouq5qWPpAw= 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=KsiJ6TSMoX7rGczbnXsIoGbwmJPndJobm200l32sB2k07+Ot2vbzXILFuxxTKFgtFLApOtqYlej25+wCED80n8t+lZ7qeOKX5g4MzS9zQVzEOiuwD5Ggm/mI8b8DOoh7ImpI2IsnzEUJ5XpIMdMigwQi5M8lrYaqi3Wt3zfR258= Received: by 10.86.61.13 with SMTP id j13mr3556361fga.26.1207849749470; Thu, 10 Apr 2008 10:49:09 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Thu, 10 Apr 2008 10:49:09 -0700 (PDT) Message-ID: Date: Thu, 10 Apr 2008 10:49:09 -0700 From: "Maksim Yevmenkin" To: "Jonathon Moldenhauer" In-Reply-To: <92abd3ae0804101010m1535c06bm89ba9002a662f26@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <92abd3ae0804101010m1535c06bm89ba9002a662f26@mail.gmail.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: headset support 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 Apr 2008 17:49:11 -0000 Jon, > I have searched back through the archives here and there is discussion about > FreeBSD and headset/handsfree profile support. I have seen several comments > that "the code is about the be committed" so I am wondering what the status > really is. If any help is needed I would be willing to test and/or work on > code so that this feature can be brought to the FreeBSD platform. first of all what exactly do you need to support? do you have any specific usage scenario in mind? i have had code to support isoc transfers in ng_ubt(4) (a must to support bluetooth audio) and bluetooth sco sockets for quite a while. i was planning to commit it, but then i changed my mind. with the code i have, i can transfer raw audio data, but what to do with the raw data is the next big question. do we need to somehow plug into sound subsystem? something else? thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 10 18:17:50 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 D417B106564A for ; Thu, 10 Apr 2008 18:17:50 +0000 (UTC) (envelope-from jonmoldenhauer@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1DD8FC15 for ; Thu, 10 Apr 2008 18:17:50 +0000 (UTC) (envelope-from jonmoldenhauer@gmail.com) Received: by wr-out-0506.google.com with SMTP id 50so114598wra.13 for ; Thu, 10 Apr 2008 11:17:49 -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=Y5DT52msSjzwCFbmnEb9rIyuDamJ4zmwerE+2hRfe+4=; b=vUlc1NXs0A09yZW5CZ6AwCAC28WgyqmIKlWCtqnUJuS42LagXzMBVCMpzPxxORq6ptM7OZhSq20YTOjXMM+YUdqIoPY1XroeH1NpWQJ8Uil7GlcM7vwZ1+mXGK5OIheZtyfp6QllFxL3QDZANTEH3SUAarvtzwtKV9Ae7QFNz+k= 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=gmJh76vsSkBk8cmJzv6FtSp2JdIBI3bDdD3EsKt0bNL4u7N2thtDS5hO8GIM+4HERFt7QVPhEHhmkgJtAM33bEfMz28nxtOpE0ygOCyAHlkQqvJoalpJGiMMPiKegP//SW6/S4990dmLSnUN9+r/DxfIT+g05gyCkgtRXiqsTu8= Received: by 10.140.139.3 with SMTP id m3mr960829rvd.165.1207851468825; Thu, 10 Apr 2008 11:17:48 -0700 (PDT) Received: by 10.141.71.5 with HTTP; Thu, 10 Apr 2008 11:17:48 -0700 (PDT) Message-ID: <92abd3ae0804101117r3f98ec37r67dcdc0398346cdc@mail.gmail.com> Date: Thu, 10 Apr 2008 11:17:48 -0700 From: "Jonathon Moldenhauer" To: "Maksim Yevmenkin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <92abd3ae0804101010m1535c06bm89ba9002a662f26@mail.gmail.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: headset support 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 Apr 2008 18:17:51 -0000 On Thu, Apr 10, 2008 at 10:49 AM, Maksim Yevmenkin wrote: > Jon, > > > I have searched back through the archives here and there is discussion about > > FreeBSD and headset/handsfree profile support. I have seen several comments > > that "the code is about the be committed" so I am wondering what the status > > really is. If any help is needed I would be willing to test and/or work on > > code so that this feature can be brought to the FreeBSD platform. > > first of all what exactly do you need to support? do you have any > specific usage scenario in mind? i have had code to support isoc > transfers in ng_ubt(4) (a must to support bluetooth audio) and > bluetooth sco sockets for quite a while. i was planning to commit it, > but then i changed my mind. with the code i have, i can transfer raw > audio data, but what to do with the raw data is the next big question. > do we need to somehow plug into sound subsystem? something else? I have a couple different scenarios in mind but the primary one I want is compatibility with asterisk's chan_mobile. Asterisk's chan_mobile talks directly to the SCO channel without using any audio resources. It uses the socket api to create a socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO) and then bind's and connect's to the src/dst bluetooth addresses. All communication is then done simply with read/write calls. Asterisk's chan_mobile also uses rfcomm to talk to the headset/handsfree profile of the device that it wants to transfer audio with and I have been able to confirm manually that I can connect using rfcomm_sppd on FreeBSD to the headset and handsfree profiles of my phone and issue AT commands and get responses back. Having the bluetooth capability in the audio system might be nice but I think just getting the data to userland would enable applications to be developed that accomplish this. It would also enable other usage scenarios, such as chan_mobile. If you already have code that does the SCO part in both the driver and the socket API, what do I need to do to test it out and see if it accomplishes compatibility with Asterisk? Thanks, Jonathon > > thanks, > max > From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 10 21:16: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 C0FC6106566C for ; Thu, 10 Apr 2008 21:16:20 +0000 (UTC) (envelope-from mwm-dated-1208724515.a87144@mired.org) Received: from mired.org (student.mired.org [66.92.153.77]) by mx1.freebsd.org (Postfix) with ESMTP id 66C3B8FC18 for ; Thu, 10 Apr 2008 21:16:20 +0000 (UTC) (envelope-from mwm-dated-1208724515.a87144@mired.org) Received: (qmail 9360 invoked by uid 1001); 10 Apr 2008 16:48:35 -0400 Received: from bhuda.mired.org (192.168.195.1) by bhuda.mired.org (tmda-ofmipd) with ESMTP; Thu, 10 Apr 2008 16:48:34 -0400 Date: Thu, 10 Apr 2008 16:48:06 -0400 To: "Maksim Yevmenkin" Message-ID: <20080410164806.0bef7f75@bhuda.mired.org> In-Reply-To: References: <92abd3ae0804101010m1535c06bm89ba9002a662f26@mail.gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-bluetooth@freebsd.org Subject: Re: headset support 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 Apr 2008 21:16:20 -0000 On Thu, 10 Apr 2008 10:49:09 -0700 "Maksim Yevmenkin" wrote: > Jon, > > > I have searched back through the archives here and there is discussion about > > FreeBSD and headset/handsfree profile support. I have seen several comments > > that "the code is about the be committed" so I am wondering what the status > > really is. If any help is needed I would be willing to test and/or work on > > code so that this feature can be brought to the FreeBSD platform. > > first of all what exactly do you need to support? do you have any > specific usage scenario in mind? i have had code to support isoc > transfers in ng_ubt(4) (a must to support bluetooth audio) and > bluetooth sco sockets for quite a while. i was planning to commit it, > but then i changed my mind. with the code i have, i can transfer raw > audio data, but what to do with the raw data is the next big question. > do we need to somehow plug into sound subsystem? something else? Well, I'm not the OP, but I've been trying to free time to work on this. So my answer is... I want to use my FreeBSD box'es audio system as a BT headset. The headset protocol should do the trick, but handsfree might be fun to play with. The BT code doesn't need to hook into the sound system, but the UI will need to let the user pick audio devices to hook to the streams from BT. Another - less firm - thing would be playing "BT audio switchbox". Simple devices can only pair with one other device, including some I'd like to be able to use it with more than one device. Having a box that could pair with all of those and route audio between them might be useful. But that's just brainstorming. Thanks, http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 10 22:36:00 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 4755C1065674 for ; Thu, 10 Apr 2008 22:36:00 +0000 (UTC) (envelope-from saamii@gmail.com) Received: from av12-1-sn2.hy.skanova.net (av12-1-sn2.hy.skanova.net [81.228.8.185]) by mx1.freebsd.org (Postfix) with ESMTP id 069228FC24 for ; Thu, 10 Apr 2008 22:36:00 +0000 (UTC) (envelope-from saamii@gmail.com) Received: by av12-1-sn2.hy.skanova.net (Postfix, from userid 502) id E9F8E38606; Fri, 11 Apr 2008 00:06:52 +0200 (CEST) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av12-1-sn2.hy.skanova.net (Postfix) with ESMTP id AD71238500 for ; Fri, 11 Apr 2008 00:06:52 +0200 (CEST) Received: from kattx (90-229-220-224-no153.tbcn.telia.com [90.229.220.224]) by smtp4-1-sn2.hy.skanova.net (Postfix) with SMTP id 4563937E42 for ; Fri, 11 Apr 2008 00:06:51 +0200 (CEST) Date: Thu, 10 Apr 2008 23:05:21 +0000 From: Sami M'Barek To: freebsd-bluetooth@freebsd.org Message-Id: <20080410230521.027b3b78.saamii@gmail.com> X-Mailer: Sylpheed 2.5.0beta1 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Bluetooth application 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 Apr 2008 22:36:00 -0000 Hi, I'm just wondering. I just searched around on google and FreeBSD ports. I saw that there was an ongoing gSoC project for porting NetworkManager which is great. How ever, is there any nice working application for OBEX push and pull files between my phone and computer? Gnome-bluetooth wont compile and i can't find anything on google. I marley have the time to set up a FUSE for this cause. Is there any port going on for this or is there an ready to use application already? -- Sami M'Barek From owner-freebsd-bluetooth@FreeBSD.ORG Thu Apr 10 22:58:43 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 529441065676 for ; Thu, 10 Apr 2008 22:58:43 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by mx1.freebsd.org (Postfix) with ESMTP id AD61F8FC29 for ; Thu, 10 Apr 2008 22:58:42 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so227840wxd.7 for ; Thu, 10 Apr 2008 15:58:42 -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=ig3PI5ULKhvFJi9Dpx31xn4CLiinG4RBCJz3tb7+j0U=; b=ThN8P9RxSsvlTcr+oWvf0Mmmbq8xRT1RsAnQCfETcd4T3jCRS6fEUSBdounHuouv4Hd5UXyfSis63GtzOwN+mOZeLd2OAD0H57pWJvlMoItrxrZ1oGTjePlIGDyJFUJTaHsj5Z+IYQooke5orfHKxAntC2mxfM04tB8esEXPnLE= 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=EXMgFKis+T0xP+uIw3O6ZjLN9jv2hxsXmPytSBvKe3PFRwuRcCElHkpnhi/At/vppA58lBy5KBRyc3K3QSr3n5GakPtvmSdSm8GyAcFGgDzDXfuRZoGEM404ovFaEgZvwXmUDBKBzzcYogtSbqh5jGlg9hIHX1hO6LHESIjQlG4= Received: by 10.140.140.3 with SMTP id n3mr1096396rvd.299.1207868321151; Thu, 10 Apr 2008 15:58:41 -0700 (PDT) Received: by 10.141.197.13 with HTTP; Thu, 10 Apr 2008 15:58:41 -0700 (PDT) Message-ID: Date: Thu, 10 Apr 2008 15:58:41 -0700 From: "Maksim Yevmenkin" To: "Sami M'Barek" In-Reply-To: <20080410230521.027b3b78.saamii@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080410230521.027b3b78.saamii@gmail.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth application 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 Apr 2008 22:58:43 -0000 On Thu, Apr 10, 2008 at 4:05 PM, Sami M'Barek wrote: > Hi, > > I'm just wondering. I just searched around on google and FreeBSD ports. > I saw that there was an ongoing gSoC project for porting NetworkManager which is great. > How ever, is there any nice working application for OBEX push and pull files between my phone and computer? > Gnome-bluetooth wont compile and i can't find anything on google. > I marley have the time to set up a FUSE for this cause. > > Is there any port going on for this or is there an ready to use application already? take a look at comms/obexapp. it is a command line client/server that is able to do obex push and obex file transfer. few people using it to transfer files between phone and pc. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Fri Apr 11 23:39:05 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 426C9106564A for ; Fri, 11 Apr 2008 23:39:05 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id CE8D28FC1A for ; Fri, 11 Apr 2008 23:39:04 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so596375fgg.35 for ; Fri, 11 Apr 2008 16:39:03 -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=+53B6hTbw1GXqmDz1UUeEpCg4mxWphu93h/awLkaSZQ=; b=B7wOFAS7c1w176Ulevg7SDSdna/nD4RK0A3eBUNpKalB7t9RQ7tFOBfuqHBOogAT4iZRsQop60E+wX9Zvl5UfUFNdpbxdNGq726ZBW9O6+mRAL6nkoL9nLQ+NJ4qA4XqB6H+46orHBFBdn8xg6mi+jJihCjJeamrZ3zBlqpJp0o= 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=wM1jeFLiiEoCAPjse7d3ayptgZjDL76T+AZCrs/BelbURJVaN/iA+m5v8uXrm3t6cXU5Nq77gahSW+E9199YEqxIIONrntt3rb7oMeQ9y+3omHxeIut8jH4/mdwJS8fkPvPQQ+xpEvKrI5zrS2d4D7tO/vUjSiPyzWTvNjNTkpk= Received: by 10.86.95.20 with SMTP id s20mr6861543fgb.6.1207957143532; Fri, 11 Apr 2008 16:39:03 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Fri, 11 Apr 2008 16:39:03 -0700 (PDT) Message-ID: Date: Fri, 11 Apr 2008 16:39:03 -0700 From: "Maksim Yevmenkin" To: mato In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47DBE7A4.3060006@users.sf.net> <47F67B95.4060402@users.sf.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT issues 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: Fri, 11 Apr 2008 23:39:05 -0000 > > Thanks for the script but I would need it expanded a bit. The thing is > > that because I connect both FreeBSD and Windows as clients I had to create 2 > > slightly different ppp.conf labels (it didn't work for me with one label > > only). Therefore I created 2 simple scripts, each starting rfcomm_pppd with > > different label on different channel. Then I run them manually or > > automatically from cron at startup. > > Do you think it would be possible to cover situations like mine within your > > script ? Something like specifying for instance > > rfcomm_pppd_server_channel="1,2" .. ? > > why do you need 2 different labels? having multiple instances of a > rfcomm_pppd started would be possible, however i will need some time > to think about it. i have committed to -current newer version of the rfcomm_pppd_server script === http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/rfcomm_pppd_server Add rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server mode at boot time. Multiple profiles can be started at the same time. The whole idea is very similar to the ppp rc script. === it provides support for multiple rfcomm_pppd profiles running on multiple rfcomm channels. still not sure why you need to support this, but it was relatively painless to add such support, so i did it. give it a try and let me know if you have any problems and/or suggestions. i will mfc it in a week or so. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Sat Apr 12 07:12:01 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 9A164106564A for ; Sat, 12 Apr 2008 07:12:01 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from lists.martenvijn.nl (vijn.xs4all.nl [194.109.254.102]) by mx1.freebsd.org (Postfix) with ESMTP id 392AF8FC1A for ; Sat, 12 Apr 2008 07:12:01 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from [192.168.1.6] (workstation.martenvijn.nl [192.168.1.6]) by lists.martenvijn.nl (Postfix) with ESMTP id 5F4E75C93; Sat, 12 Apr 2008 08:53:45 +0200 (CEST) From: Marten Vijn To: Sami M'Barek In-Reply-To: <20080410230521.027b3b78.saamii@gmail.com> References: <20080410230521.027b3b78.saamii@gmail.com> Content-Type: text/plain Date: Sat, 12 Apr 2008 08:52:34 +0200 Message-Id: <1207983154.1102.3.camel@workstation.martenvijn.nl> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on martenvijn.nl Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth application 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, 12 Apr 2008 07:12:01 -0000 On Thu, 2008-04-10 at 23:05 +0000, Sami M'Barek wrote: > Hi, > > I'm just wondering. I just searched around on google and FreeBSD ports. > I saw that there was an ongoing gSoC project for porting NetworkManager which is great. > How ever, is there any nice working application for OBEX push and pull files between my phone and computer? > Gnome-bluetooth wont compile and i can't find anything on google. > I marley have the time to set up a FUSE for this cause. > > Is there any port going on for this or is there an ready to use application already? > Here is script that combines bt wifi (mesh and ap). http://bluespot.wifisoft.org/svn/trunk/bt_discover.sh You can kick 90% out to make what you want. I 've never used used any graphical interfaces on bt. kind regards, Marten -- Marten Vijn http://martenvijn.nl http://wifisoft.org http://opencommunitycamp.org From owner-freebsd-bluetooth@FreeBSD.ORG Sat Apr 12 17:03:54 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 A8FBF106564A for ; Sat, 12 Apr 2008 17:03:54 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 249D38FC1F for ; Sat, 12 Apr 2008 17:03:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so930600fgg.35 for ; Sat, 12 Apr 2008 10:03:52 -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=V9tJGBnqn5osfWSg7CoNhuvHlHmb7fezf9QrYZ7IxCE=; b=ZbIu5Fy+GFFFMX3mcAqwEde1GBJgTlAQSrH/A/tgsgCHI4+dgZ3j7momqzK7gBoYL/BP9bT5MnRr9x0KQNx50oFTIgGvoBLly8bOrmaGiYMkv78iDAvGq51h5xiTny/a8X1HovtyYLhIX+zefnjwe7lChDVVp2ZbnoEngpfOpMU= 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=TEmm56pXe6/ra976W5VpDe6SA/uzBCpFMrZWUnPmWrhrC3w+Kd4qL7RdKi05T7R6YhUcVMtdZt6zazM9OQOFC3wpP1Fb9wlnsjzPTpeC9I9zxX9ApJK294zndXWb4XIgMR93+508Vv7bEMfMZEIXdc2tSj6NaHO1YafTJTQeF7Q= Received: by 10.86.25.17 with SMTP id 17mr1378035fgy.41.1208019832544; Sat, 12 Apr 2008 10:03:52 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Sat, 12 Apr 2008 10:03:52 -0700 (PDT) Message-ID: Date: Sat, 12 Apr 2008 10:03:52 -0700 From: "Maksim Yevmenkin" To: "Sami M'Barek" In-Reply-To: <20080412022834.4b36e8c0.saamii@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080410230521.027b3b78.saamii@gmail.com> <20080412022834.4b36e8c0.saamii@gmail.com> Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: Bluetooth application 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, 12 Apr 2008 17:03:54 -0000 On Fri, Apr 11, 2008 at 7:28 PM, Sami M'Barek wrote: > That is what i'v been using all along but what i want is an "easy" to use client. > Preferably GTK. what is not "easy" about obexapp? are there any particular features that you are missing? as far as gnome/kde/etc. bluetooth apps goes, pretty much of them are linux (bluez) specific.while it is somewhat trivial to port linux bluez code to freebsd, no one seems do be willing to do so. if someone is willing to do a complete survey of current gnome/kde bluetooth code and tell me what api's are missing, i will work with such a person to get missing api's into the base system. thanks, max p.s. please keep freebsd-bluetooth@ in the cc From owner-freebsd-bluetooth@FreeBSD.ORG Sat Apr 12 18:26:38 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 67E66106566C for ; Sat, 12 Apr 2008 18:26:38 +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 E4ADD8FC18 for ; Sat, 12 Apr 2008 18:26:37 +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 1JkkQq-0002Zv-RW; Sat, 12 Apr 2008 19:26:32 +0100 Received: from localhost.localdomain ([127.0.0.1]) by localhost (smtpbeckt01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09764-05; Sat, 12 Apr 2008 19:26:32 +0100 (BST) Received: from [10.32.78.154] (helo=rya-online.net) by localhost.localdomain with smtp (Exim 4.50) id 1JkkQo-0002Zo-0u; Sat, 12 Apr 2008 19:26:32 +0100 Received: (nullmailer pid 1072 invoked by uid 1000); Sat, 12 Apr 2008 18:26:13 -0000 Date: Sat, 12 Apr 2008 19:26:12 +0100 (BST) To: Maksim Yevmenkin In-Reply-To: References: <20080410230521.027b3b78.saamii@gmail.com> <20080412022834.4b36e8c0.saamii@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1208024773.051889.1001.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 application 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, 12 Apr 2008 18:26:38 -0000 On Sat, 12 Apr 2008, Maksim Yevmenkin wrote: > what is not "easy" about obexapp? are there any particular features > that you are missing? One thing that I have been meaning to add but haven't found the time, is that when obexapp runs in server mode, it would be good to run different services (OPUSH/FTRN) on different channels as currently they run on the same channel. The reason I want this is so I can require authorisation for FTRN but allow OPUSH to anybody. The context methodology that obexapp uses should be fairly easily extendable for this, though I found the openobex API to be complex and it might be simpler to make each service run as a separate instance. If you are planning to work on bluetooth infrastructure (what, child grown up already!? :) then even though I don't use FreeBSD, I suggest: + "Link Mode" enable AUTH and ENCRYPT flags for individual L2CAP or RFCOMM channels (eg for above). I also did SECURE (ENCRYPT plus refresh link key) and worked on MASTER but had limited success so thats on hold for now. + removal of ng_ and NG_ prefixes from public API (HCI and L2CAP IIRC) will make porting programs much easier.. I would recommend that you can take the hci.h and l2cap.h defs from NetBSD files so that the spelling is constant throughout the BSD family at least. (also, I added HCI 2.1 already) + commit the SCO code you mentioned the other day you said you didn't know how it could be used, but until it is public then of course nobody else can work on that :) regards, iain