From owner-freebsd-current@FreeBSD.ORG Thu Oct 27 17:17:56 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4863216A41F; Thu, 27 Oct 2005 17:17:56 +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 D7EEF43D48; Thu, 27 Oct 2005 17:17:55 +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 j9RHHrJ19614; Thu, 27 Oct 2005 13:17:54 -0400 Message-ID: <43610BBE.4070406@savvis.net> Date: Thu, 27 Oct 2005 10:17:50 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Niki Denev References: <200510271844.52361.nike_d@cytexbg.com> In-Reply-To: <200510271844.52361.nike_d@cytexbg.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-current@freebsd.org Subject: Re: rfcomm problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 17:17:56 -0000 Niki, > i'm trying to setup a bluetooth gprs connection. > the problem is that the connection works > only if i start rfcomm_sppd on a TTY, > and then start manually ppp with "set device" the > same TTY. have you tried to specify set device "!/usr/bin/rfcomm_sppd -a gsm -c 1" inside your /etc/ppp/ppp.conf file? this way ppp(8) will start rfcomm_sppd(1) automatically and will use its stdin/stdout. > rfcomm_pppd and rcomm_sppd with stdin/stdout > does not work properly as the bluetooth modem > echoes everyting back. > I get the same results with the bluetooth modems > on a Nokia 6230 phone and Motorola RazrV3. do not panic :) i do not think it ever worked the way you are trying to, i.e. running rfcomm_sppd(1) from the terminal. the stdin/stdout mode was added specifically for the folks who wanted to use rfcomm_sppd(1) in ppp(8), i.e. 'set device' just like above. i should probably fix it just to avoid confusion. > When i start rfcomm_pppd the ppp daemon begins to write in the log > that he is talking to himself (several "magic is same" errors, and disconnect) hmmm... thats strange... rfcomm_pppd(8) should not have this problem. > But when i start rfcomm_sppd in the background on a tty > it is working properly: > ------------------ > root@phobos# rfcomm_sppd -a gsm -c 1 -b -t /dev/ttyp0 > root@phobos# cu -l /dev/ttyp0 > Connected > atz > OK > ~ > [EOT] > ------------------ > > I'm running about one week old 7.0-CURRENT but > have experienced this for quite some time. > Also, i'm using a usb bluetooth dongle, > and the /etc/rc.bluetooth init script. > > does anyone have idea what can be causing this? i will look into this and fix it thanks, max