From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 13 19:35:04 2005 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 E86B616A41F for ; Tue, 13 Dec 2005 19:35:04 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8534143D46 for ; Tue, 13 Dec 2005 19:35:04 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jBDJWVI21104; Tue, 13 Dec 2005 14:32:33 -0500 Message-ID: <439F21CD.8040902@savvis.net> Date: Tue, 13 Dec 2005 11:32:29 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dmitry Dyomin References: <20051213171917.N10381@home.old.com.ua> <439F0DCC.7090009@savvis.net> <20051213210626.W12029@home.old.com.ua> In-Reply-To: <20051213210626.W12029@home.old.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: BT LAN connection with Symbian phones 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, 13 Dec 2005 19:35:05 -0000 Dmitry Dyomin wrote: > On Tue, 13 Dec 2005, Maksim Yevmenkin wrote: > >> i'm going to assume that you would like to make your freebsd machine >> act as a server, i.e. bluetooth access point. if this is the case then >> you have to run rfcomm_pppd(8) in _server_ mode, i.e. you need to add >> '-s' (lower case s) to the rfcomm_pppd(8) command like. the '-S' >> (upper case s) makes rfcomm_pppd(8) to register SP (Serial Port) >> service in _server_ mode. > > Oh, I thought it's the same as -s, just opens additional service. not exactly. rfcomm_pppd(8) can register SP service (in addition to LAN service) to implement so called 'mrouter mode'. you can use it if you do not want to install gnubox application on your phone. in this scenario, you still need to run rfcomm_pppd(8) in _server_ mode, but in order to make the phone to open LAN connection you need to "jump start" it by connecting to the phone SP service. what happens next is that the phone closes the connection and then it "dials" back, looks for SP service on freebsd and connects. at this point rfcomm_pppd(8) start ppp(8) and phone connects. you also need to change your dns server settings to make sure phone can resolve 'wsockhost.mrouter' name (at least nokia 3650 kills ppp connection if it can resolve it). this whole mess can be avoided by just using gnubox. gnubox modifies communication database settings on some symbian phones so it is possible to create access point which will use bluetooth instead of gprs/gsm data. >> i'm also going to assume that you are using gnubox application on your >> p900 phone to dial out. you need to use 2box direct mode. keep in mind >> that rfcomm_pppd(8) in server mode will not dial out. it will wait for >> the client to dial in. in other words you have to initiate connection >> from your phone. > > Oops, I was not even aware of gnubox :) And tried to somehow initiate > connection from FreeBSD box before :) it is possible if you use 'mrouter' mode, which is a big mess, imo. thanks, max