Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 2004 02:04:33 -0500
From:      Dmitry Yaitskov <dima@rogers.com>
To:        freebsd-bluetooth@freebsd.org
Subject:   Re: Windows client/FreeBSD server Q.
Message-ID:  <84d6711k72.fsf@nothing.nowhere.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84d6711k72.fsf>