From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jul 15 03:42:02 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 C0E0916A4DD for ; Sat, 15 Jul 2006 03:42:02 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63BB543D58 for ; Sat, 15 Jul 2006 03:42:02 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.24] (andersonbox4.centtech.com [192.168.42.24]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k6F3g1b0061660 for ; Fri, 14 Jul 2006 22:42:01 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44B86410.3030108@centtech.com> Date: Fri, 14 Jul 2006 22:42:08 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: "freebsd-bluetooth@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1599/Fri Jul 14 00:35:31 2006 on mh1.centtech.com X-Virus-Status: Clean Subject: 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 03:42:02 -0000 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 -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ 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 (Олександр Коваленко) From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jul 15 16:16:52 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 A956016A4DD for ; Sat, 15 Jul 2006 16:16:52 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C5C543D45 for ; Sat, 15 Jul 2006 16:16:49 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.236] (really [70.32.199.60]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060715161649.KDQV10992.mta13.adelphia.net@[192.168.1.236]>; Sat, 15 Jul 2006 12:16:49 -0400 Message-ID: <44B914EE.9030900@savvis.net> Date: Sat, 15 Jul 2006 09:16:46 -0700 From: maksim yevmenkin User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Eric Anderson References: <44B86410.3030108@centtech.com> <1152964774.758.20.camel@RabbitsDen> In-Reply-To: <1152964774.758.20.camel@RabbitsDen> Content-Type: text/plain; charset=ISO-8859-5; format=flowed Content-Transfer-Encoding: 7bit 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 16:16:52 -0000 Alexandre "Sunny" Kovalenko wrote: > 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? no, offering serial port service is not implemented yet. no, it is not much work to implement it. you can use rfcomm_pppd (server mode) as an example of how to offer a services. you will need to register serial port service with sdpd(8) after you open rfcomm socket (you will be advertising rfcomm channel with sdpd(8)). >>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'. actually, there is no need to execute any external program. there are two options: 1) use pty(4) 2) use nmdm(4) thanks, max