From owner-freebsd-mobile@FreeBSD.ORG Wed Aug 6 14:49:44 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 E5A3437B401 for ; Wed, 6 Aug 2003 14:49:44 -0700 (PDT) Received: from web40308.mail.yahoo.com (web40308.mail.yahoo.com [66.218.78.87]) by mx1.FreeBSD.org (Postfix) with SMTP id 84B0543F3F for ; Wed, 6 Aug 2003 14:49:44 -0700 (PDT) (envelope-from m_evmenkin@yahoo.com) Message-ID: <20030806214939.47773.qmail@web40308.mail.yahoo.com> Received: from [165.193.27.35] by web40308.mail.yahoo.com via HTTP; Wed, 06 Aug 2003 14:49:39 PDT Date: Wed, 6 Aug 2003 14:49:39 -0700 (PDT) From: Maksim Yevmenkin To: Peter Schuller In-Reply-To: <1059922922.68413.21.camel@thunderbolt.scode.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Wed, 06 Aug 2003 21:49:45 -0000 Hello Peter, [...] > > this is local device tells that it has failed to create baseband > connection > > to the remote with BD_ADDR 00:02:EE:73:89:0B (link type ACL/no > encryption). > > the status code is 0x04 - Page Timeout. > > > > bottom line: the local device has failed to create baseband connection to > the > > phone. when device is idle the radio is only turned on for a brief periods > of > > time to scan for page attempts (from remote devices). it is possible for > the > > device to miss such page attempt and thus incoming connection may fail. i > > think > > that is what might be going on. > > Sounds likely. In general Bluetooth seems a bit half-flaky on phones, > even when doing phone-to-phone stuff. Perhaps this is a just a more > explicit report on the same problem that causes failures in general. > > > could you please put your phone into "discoverable" mode, run > > "hccontrol -n hci inquiry" and send me the output? > > The only relevant settings on the 7650 seems to be the disable/enable > flag for bluetooth and wether it's "visible" or "hidden" to other > devices. I assume "visible" means it's discoverable; just using > different terminoligy. right :) "visible" means "discoverable", i.e. the device will answer to inquiry from the other devices. > If so, I have it set to discoverable mode at all times (when BT is > enabled). > > Here's the output of a successful inquiry: > > thunderbolt# hccontrol -n ubt0hci inquiry > Inquiry result, num_responses=1 > Inquiry result #0 > BD_ADDR: 00:02:ee:73:89:0b > Page Scan Rep. Mode: 0x1 > Page Scan Period Mode: 00 > Page Scan Mode: 00 > Class: 50:22:04 > Clock offset: 0x984 > Inquiry complete. Status: No error [00] > thunderbolt# well, it looks normal to me with one exception - Page Scan Period Mode is set to 0x1 - P1 mode. the default settings for a device is usually 0x00 - P0 mode. perhaps this makes difference? unfortunately current hccontrol(8) tool does not support Read/Write_Page_Scan_Period_Mode command. i will add support for these commands in the next release, so you can try and set P1 Page Scan Period Mode on the device attached to your PC. > At the moment all attemps are successful, though I am relatively sure > that I've seen it fail sometimes (but then the output isn't very > interesting so). did you ever get a different hcidump from the failed sessions? or it always fails at create baseband connection phase? > > of course i'm interesting in improving the code :) btw, do you have the > same > > problems on other systems (Windows or Linux)? > > I don't have Linux on this machine, but I can ask my friend if he's > experiencing the same problems (same phone but different Bluetooth > card). > > As for Winodws, I'll have a go trying to cause random failures the next > time I'm in it. thank you very much for your time and help, max __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com