From owner-freebsd-mobile@FreeBSD.ORG Sat Aug 2 16:35:04 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1AB537B401 for ; Sat, 2 Aug 2003 16:35:03 -0700 (PDT) Received: from infidyne.com (io.infidyne.com [212.112.161.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 840CF43FAF for ; Sat, 2 Aug 2003 16:35:02 -0700 (PDT) (envelope-from peter.schuller@infidyne.com) Received: (qmail 30215 invoked by uid 1000); 2 Aug 2003 23:35:02 -0000 From: "Peter Schuller" Date: Sun, 3 Aug 2003 01:35:02 +0200 To: Maksim Yevmenkin Message-ID: <20030802233501.GA29200@infidyne.com> References: <2E7E8A35375D1449A6F28D5E022E67310AC4E7@USSC8MS04.Global.Cwintra.Com> <20030719214709.98429.qmail@web40311.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030719214709.98429.qmail@web40311.mail.yahoo.com> User-Agent: Mutt/1.4i cc: Peter Schuller cc: freebsd-mobile@freebsd.org Subject: Re: rfcomm_pppd fails (T40p and Nokia 7650) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 23:35:04 -0000 Hello, after much delay... > > rfcomm_pppd[39117]: Could not connect socket. Connection refused > > (61) > > this means that PC was not able to establish Bluetooth RFCOMM connection. > perhaps phone rejected it, or could be other reason. i would like to see > HCI dump. could you please compile hcidump(1) from the snapshot's ports/ > directory and then run it As I mentioned I am still getting occational "connection refused" messages. Retrying always solves it. Following are two typescripts from an hcidump session. The first contains the dump during two sessions where there was no rfcomm problems. First there is a session that failes due to a "NO CARRIER" error from the phone (I am consistently getting this on every other connection attempt, so I always have to initiate a connect twice, but I assume it has nothing what so ever to do with rfcomm), and the second is from a fully successful connection. I figured I'd include this for reference just in case. The second contains the dump from an attempt where I got the connection refused error. I don't know if it is useful though given that it's just one command and two events. The typescripts are here: http://www.scode.org/rfcomm_working.typescript http://www.scode.org/rfcomm_failure.typescript Btw, in order to compile hcidump successfully (make depend && make && make install) I had to comment out line 209 and 210 of parse/sdp.c. Otherwise it would complain about the size of 0x1000.....000L being too big for its type. (I just commented it out because I wasn't sure how to deal with numbers that large in C. I'm not sure if mishandling 128 bit numbers in print_int screwed up anything in the above dumps though.) Again, I can live with occational "connection refused" messages. So look at this if you feel it is of interest for improving the code; otherwise nevermind. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrival: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org