From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jul 15 12:00:35 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B45216A4E0 for ; Sat, 15 Jul 2006 12:00:35 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D93843D55 for ; Sat, 15 Jul 2006 12:00:35 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.21.160.49]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J2G00MDS1CQF5WI@vms040.mailsrvcs.net> for freebsd-bluetooth@freebsd.org; Sat, 15 Jul 2006 07:00:27 -0500 (CDT) Date: Sat, 15 Jul 2006 07:59:34 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <44B86410.3030108@centtech.com> To: Eric Anderson Message-id: <1152964774.758.20.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-type: text/plain; charset=iso-8859-5 Content-transfer-encoding: 8BIT References: <44B86410.3030108@centtech.com> Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: Serial Port Profile 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, 15 Jul 2006 12:00:35 -0000 On Fri, 2006-07-14 at 22:42 -0500, Eric Anderson wrote: > I have the need to set up an RFCOMM serial port profile over bluetooth. > I see the rfcomm_sppd tool, but that connects to another remote > bluetooth device's serial port profile. What I need, is to offer a > serial port profile to bluetooth clients, and have a /dev/tty* entry to > talk with. > > Is it implemented already? If it is, please point me in the right > direction (man pages?) If it isn't how much work is it, and would it be > complicated for a novice to do? > > Thanks, > Eric >From what limited knowledge I have, your quickest path seems to be to hack /usr/src/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.c somewhere inside 384:exec_ppp(int s, char *unit, char *label) to start whatever is that you want talking to your clients instead of 'pppd'. -- Alexandre Kovalenko (Олександр Коваленко)