From owner-freebsd-bluetooth@FreeBSD.ORG Wed Mar 24 23:03:25 2004 Return-Path: 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 63EE516A4CE for ; Wed, 24 Mar 2004 23:03:25 -0800 (PST) Received: from fep02-mail.bloor.is.net.cable.rogers.com (fep02-mail.bloor.is.net.cable.rogers.com [66.185.86.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9F5343D1D for ; Wed, 24 Mar 2004 23:03:24 -0800 (PST) (envelope-from dima@rogers.com) Received: from [24.100.213.250] by fep02-mail.bloor.is.net.cable.rogers.com ESMTP <20040325070222.SYG39251.fep02-mail.bloor.is.net.cable.rogers.com@[24.100.213.250]> for ; Thu, 25 Mar 2004 02:02:22 -0500 Received: from Spooler by dima@rogers.com (Mercury/32 v4.01a) ID MO00025C; 25 Mar 2004 02:04:54 -0500 Received: from spooler by lumina.dima.componentone.com (Mercury/32 v4.01a); 25 Mar 2004 02:04:36 -0500 Received: from lumina.apexsc.com (127.0.0.1) by lumina.dima.componentone.com (Mercury/32 v4.01a) with ESMTP ID MG00025B; 25 Mar 2004 02:04:33 -0500 To: freebsd-bluetooth@freebsd.org In-Reply-To: <84lllp1vaz.fsf@nothing.nowhere.com> (Dmitry Yaitskov's message of "Wed, 24 Mar 2004 22:04:36 -0500") References: <84hdwfvtzq.fsf@nothing.nowhere.com> <4061729F.4010504@realss.com> <84lllp1vaz.fsf@nothing.nowhere.com> From: Dmitry Yaitskov Organization: Disorganized Date: Thu, 25 Mar 2004 02:04:33 -0500 Message-ID: <84d6711k72.fsf@nothing.nowhere.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, cygwin32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Authentication-Info: Submitted using SMTP AUTH LOGIN at fep02-mail.bloor.is.net.cable.rogers.com from [24.100.213.250] using ID at Thu, 25 Mar 2004 02:02:22 -0500 Subject: Re: Windows client/FreeBSD server Q. X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 07:03:25 -0000 Hi again, Ok, I got somewhat closer to where I want to be I think... I found a set of bluetooth tools on the CDs that came with my laptop (Toshiba satellite 5000) and installed them. After some tweaking and following the rfcomm_pppd man pages I got to the point where I can see the BT device on FreeBSD from the laptop, and see the "LAN access over PPP" service on it. I can even "connect' from the laptop to that service. But then nothing happens (on the laptop's network connections panel, there is a "Bluetooth LAN emulation from Toshiba" connection, and it stays in the "network cable unplugged" status)... My guess is that the PPP part on the FreeBSD side is not configured correctly. Using the hcidump I see lots of activity when I connect, here's the last fragment: > HCI Event: Number of Completed Packets(0x13) plen 5 < ACL data: handle 0x0028 flags 0x02 dlen 72 L2CAP(d): cid 0x7a len 68 [psm 3] RFCOMM(d): UIH: cr 0 dlci 2 pf 0 ilen 64 fcs 0x40 > HCI Event: Number of Completed Packets(0x13) plen 5 < ACL data: handle 0x0028 flags 0x02 dlen 72 L2CAP(d): cid 0x7a len 68 [psm 3] RFCOMM(d): UIH: cr 0 dlci 2 pf 0 ilen 64 fcs 0x40 > HCI Event: Number of Completed Packets(0x13) plen 5 < ACL data: handle 0x0028 flags 0x02 dlen 8 L2CAP(d): cid 0x7a len 4 [psm 3] RFCOMM(s): DISC: cr 0 dlci 2 pf 1 ilen 0 fcs 0xd9 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0028 flags 0x02 dlen 8 L2CAP(d): cid 0x5a len 4 [psm 3] RFCOMM(s): UA: cr 0 dlci 2 pf 1 ilen 0 fcs 0xf3 then nothing happens for a while, and finally (after several minutes) this: > ACL data: handle 0x0028 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0059 scid 0x0078 < ACL data: handle 0x0028 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0059 scid 0x0078 > HCI Event: Number of Completed Packets(0x13) plen 5 > HCI Event: Disconn Complete(0x05) plen 4 which I guess means that the connection was terminated for lack of activity: My best guess is that ppp is misconfigured on the server. Here's what my ppp.conf contains (the only part that I changed is rfcomm-server): ################################################################# # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by wself@cdrom.com # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $ ################################################################# default: set timeout 180 enable dns set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that "device" references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) # set device /dev/cuaa1 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180 # 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) rfcomm-server: set timeout 0 set lqrperiod 10 set ifaddr 10.0.0.1 10.0.0.2 255.255.255.0 enable lqr accept lqr disable pap deny pap disable chap deny chap papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set phone PHONE_NUM set authname USERNAME set authkey PASSWORD set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR # Add a (sticky) default route Any ideas will be much appreciated. Thanks. -- Cheers, -Dima.