From owner-freebsd-bluetooth@FreeBSD.ORG Fri Oct 28 09:39:50 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 5FE7C16A41F for ; Fri, 28 Oct 2005 09:39:50 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: from mail.interbgc.com (mx01.interbgc.com [217.9.224.225]) by mx1.FreeBSD.org (Postfix) with SMTP id 9CED843D46 for ; Fri, 28 Oct 2005 09:39:49 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 85822 invoked from network); 28 Oct 2005 09:39:47 -0000 Received: from nike_d@cytexbg.com by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(-2.6/8.0):. Processed in 2.202697 secs); 28 Oct 2005 09:39:47 -0000 X-Spam-Status: No, hits=-2.6 required=8.0 Received: from 213-240-205-57.1697748.ddns.cablebg.net (HELO tormentor.totalterror.net) (213.240.205.57) by mx01.interbgc.com with SMTP; 28 Oct 2005 09:39:45 -0000 Received: (qmail 20678 invoked from network); 28 Oct 2005 09:39:44 -0000 Received: from qmail by qscan (mail filter); 28 Oct 2005 09:39:44 +0000 Received: from unknown (HELO ?10.0.0.3?) (10.0.0.3) by tormentor.totalterror.net with SMTP; 28 Oct 2005 09:39:44 -0000 Message-ID: <4361F20C.5010308@cytexbg.com> Date: Fri, 28 Oct 2005 12:40:28 +0300 From: Niki Denev User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Maksim Yevmenkin References: <200510271844.52361.nike_d@cytexbg.com> <43610BBE.4070406@savvis.net> <200510272032.26480.nike_d@cytexbg.com> <43614C53.7020207@savvis.net> <436179B0.5080206@cytexbg.com> <436198B4.4020808@savvis.net> In-Reply-To: <436198B4.4020808@savvis.net> X-Enigmail-Version: 0.92.1.0 OpenPGP: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: rfcomm problems 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, 28 Oct 2005 09:39:50 -0000 Maksim Yevmenkin wrote: > i'm pretty sure 'bt-grps' label is incomplete. at the very least you > need 'enable force-scripts' otherwise ppp(8) will not execute chat script. > > btw, there is a working example in rfcomm_pppd(8) man page > > > > rfcomm-dialup: > # This is IMPORTANT option > enable force-scripts sorry my bad.. i never noticed that the chat script is not started... now with force-scripts everything works! > # You might want to change these > set authname > set authkey > set phone "*99***1#" i set authname and key on the phone, so i can use 2 different phones with two different operators without any changes on my laptop. and the phone "*99#" is what i got from the mobile operators (it works via usb2serial cable) > > # You might want to adjust dial string as well > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ > \"\" AT OK-AT-OK ATE1Q0 OK \\dATD\\T TIMEOUT 40 CONNECT" > set login > set timeout 30 > enable dns > resolv rewrite > I adjusted some parts which were not right :) I have setup this file and dial string so long ago that i can't even remember :) I use 'resolv readonly' on purpose, because i set my resolv.conf with nameserver 127.0.0.1 and also run dnscache (from djbdns) on that ip. everytime i connect the linkup script adds the DNS servers to the dnscache config, and this greatly helps the high latency gprs link :) (the setup similar for dhclient, using /etc/dhclient-exit-hooks) > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > add default HISADDR > > > > also some folks prefers to configure access point name, etc. in 'set > dial', but i assume you have configured it on the phone. > yes, i prefer having it on the phone >> (i think i can use only one label, because as far as i remember ppp(8) >> ignores 'set device' in -direct mode, but i made two just to be sure) > > > i'm not sure about this. also you have 'set speed' in every label. > having it only in 'default' should be enough. > i left 'speed' only in 'default' now >> So maybe ppp in -direct mode is not setting properly the line in raw >> mode? > > > no, i'm pretty sure ppp(8) does the right thing. in fact 'set device > !rfcomm_sppd' worked even before my patch. > > thanks, > max Yes, you are absolutely right! And again, thank You very much for your help! cheers, --niki