From owner-freebsd-bluetooth@FreeBSD.ORG Wed Oct 8 15:00:39 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 8CFC910656A5 for ; Wed, 8 Oct 2008 15:00:39 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id D08278FC16 for ; Wed, 8 Oct 2008 15:00:37 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m98F0Y9X004620 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Oct 2008 19:00:35 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KnaWg-000O86-EO; Wed, 08 Oct 2008 19:00:34 +0400 From: Vladimir Grebenschikov To: Maksim Yevmenkin In-Reply-To: References: <3a386af20809261420j535680e8pf44453dbf6f84b20@mail.gmail.com> <1223034512.1842.111.camel@localhost> <1223106788.4832.25.camel@localhost> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Wed, 08 Oct 2008 19:00:34 +0400 Message-Id: <1223478034.1864.65.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth audio (once again) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 15:00:39 -0000 On Tue, 2008-10-07 at 09:13 -0700, Maksim Yevmenkin wrote: > > > ok.be warned, you will need to write some code for that. its > > > relatively simple. basically open an rfcomm socket and then open a sco > > > socket. i can provide examples if you want me to. > > > > Please, send me an example if you have. > > attached Thank you, I've played a bit with it. So far I was able to establish connection to channel 1 or 2 of my headset (Headset and advanced audio). Both connections (rfcomm and sco) are opened, headset sends zeros through sco connection and does some AT-chat on rfcomm. Looks like I need to implement chat to make headset to work. Then I dig a bit into bluez sources, and found two things - first, looks like we will need to use/re-implement big part of bluez/audio sub-directory to get full-functional audio to work under freebsd. Second, I've found that bluez uses almost same structures and calls to interact with kernel. Probably it worth to try port bluez (or part of bluez related to sound) to freebsd instead of re-writing whole beast ? What do you think ? PS. I spend only about half an our to make whole bluez to compile under freebsd (except network bridging and alsa). but not even tried to start it, though. > thanks, > max -- Vladimir B. Grebenschikov vova@fbsd.ru