From owner-freebsd-current@FreeBSD.ORG Fri Jun 13 18:25:30 2003 Return-Path: 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 3B69237B401 for ; Fri, 13 Jun 2003 18:25:30 -0700 (PDT) Received: from web40311.mail.yahoo.com (web40311.mail.yahoo.com [66.218.78.90]) by mx1.FreeBSD.org (Postfix) with SMTP id C909643F3F for ; Fri, 13 Jun 2003 18:25:29 -0700 (PDT) (envelope-from m_evmenkin@yahoo.com) Message-ID: <20030614012529.14108.qmail@web40311.mail.yahoo.com> Received: from [207.175.241.198] by web40311.mail.yahoo.com via HTTP; Fri, 13 Jun 2003 18:25:29 PDT Date: Fri, 13 Jun 2003 18:25:29 -0700 (PDT) From: Maksim Yevmenkin To: User Toyboy , freebsd-current@freebsd.org In-Reply-To: <200306140040.h5E0ebG9002586@toy.homeunix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: bluetooth 20030604 and 5.1 release X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 14 Jun 2003 01:25:30 -0000 Hello, --- User Toyboy wrote: > Hello again, all information you have given me has been very helpful. ButI > have messed up somewhere while setting up the rcfomm_pppd section and I > don't know where the problem is. I have setup my ppp.conf like this: [section skipped] please take a look at examples in rfcomm_pppd(8) man page. you might want to start with clean ppp.conf and make Bluetooth stuff work then add your existing configuration. > the output from hcidump when my other computer tries to make a LAN > connection over PPP is: [ skipped ] up until this section everything looks good. > > ACL data: handle 0x0006 flags 0x02 dlen 17 > > ACL data: handle 0x0006 flags 0x01 dlen 1 > L2CAP(d): cid 0x4f len 14 [psm 3] > RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 > dlci 2 frame_type 0 credit_flow 15 pri 0 ack_timer 0 frame_size 127 > max_re > trans 0 credits 0 > < ACL data: handle 0x0006 flags 0x02 dlen 8 > L2CAP(d): cid 0x40 len 4 [psm 3] > RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73 this section tells me that remote side wants to open RFCOMM connection on DLCI 2 (RFCOMM channel 1), but FreeBSD rejects this connection (most likely because nothing is listening). > Also, let me explain cleary what I am trying to do so you can tell me if my > understanding is wrong. I am using my FreeBSD box with a bluetooth adaptor > to serve internet connections to other devices, my laptop specifically. > So I did "hcsecd", then "sdptool add --channel=1 LAN" then did you run "sdpd"? you need to run "sdpd" and then register service with "sdptool". also you can verify that service has been registered by issuing "sdptool browse ff:ff:ff:00:00:00" and look for LAN service. > rfcomm_pppd -a mylaptopaddress -s -C 1 -l bluetooth" aha! this is the problem. you misused "-a" option. in server mode "-a" tells rfcomm_pppd(8) on which *local* BD_ADDR it should listen. it seems that you have specified *remote* (mylaptopaddress) BD_ADDR. this (*remote*) BD_ADDR does not exists on FreeBSD, so connection will never be accepted. in general server application should listen on ANY BD_ADDR, i.e. accept connection via any local device. so what you should do is remove "-a" option completely, .i.e. rfcomm_pppd -s -C 1 -l bluetooth this will make rfcomm_pppd(8) accept connection from any local device. its all in the man page. > These are all the steps I took to get this to work. The items are already > paired. Does anyone know where I am making a wrong step? The laptop I am > using to connect is MAC OS X, and I found info on the net to connect OSX to > a bluetooth PPP over LAN connection says I should do this on my mac: > select "LAN access using PPP." > Select RS232 on Port type. > On the Modem tab, select "Null Modem 115200" modem profile. can you discover services on your MAC laptop? do you see FreeBSD? do you see LAN service on FreeBSD? if not then you did not setup "sdpd" on FreeBSD properly. thanks, max __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com