From owner-freebsd-bluetooth@FreeBSD.ORG Tue Mar 2 21:52:33 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 22A1C16A4CE for ; Tue, 2 Mar 2004 21:52:33 -0800 (PST) Received: from hotmail.com (law11-f70.law11.hotmail.com [64.4.17.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DB7F43D1D for ; Tue, 2 Mar 2004 21:52:33 -0800 (PST) (envelope-from weiwuzhang@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 2 Mar 2004 21:52:32 -0800 Received: from 218.85.105.146 by lw11fd.law11.hotmail.msn.com with HTTP; Wed, 03 Mar 2004 05:52:31 GMT X-Originating-IP: [218.85.105.146] X-Originating-Email: [weiwuzhang@hotmail.com] X-Sender: weiwuzhang@hotmail.com From: "Zhang Weiwu" To: m_evmenkin@yahoo.com, freebsd-bluetooth@freebsd.org Date: Wed, 03 Mar 2004 13:52:31 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 03 Mar 2004 05:52:32.0809 (UTC) FILETIME=[B89D0190:01C400E3] Subject: Re: bluetooth channels -- not very clear on concept X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: zhangweiwu@realss.com List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 05:52:33 -0000 Maksim Yevmenkin wrote: > >Hello, > >[...] > > > On my configuration I setup LAN access server listen to channel 1, and > > everyone dials in on that channel. I'm not sure of the concept of > > "channels", > > *:1 - LISTEN -- main server > BD_ADDR_LOCAL:1 <-> BD_ADDR_REMOTE1:1 -- client (1) > BD_ADDR_LOCAL:1 <-> BD_ADDR_REMOTE2:1 -- client (2) > >becase BD_ADDR of the remote device is different you can share the same >RFCOMM channel between serval devices. Nice. Now I got it. Thank you. > > > sometimes when other people are connected, I use "rfcomm_pppd > > -c -C LAN -l bluetooth-client" and get "no socket available" prompt, then I > > use "rfcomm_pppd -c -C 1 -l bluetooth-client" and it works. > >hmmm... is that the exact command you using? in client mode (-c) you need >to specify the address of the server to connect to (-a) otherwise it will >not work. also what does "no socket available" is that the error you are >getting? Sorry I wasn't clear. Here is the script(1) to produce the problem: thinkpad# rfcomm_pppd -c -a 00:04:61:80:6f:e4 -C LAN -l bluetooth rfcomm_pppd: Could not obtain RFCOMM channel: Socket is not connected thinkpad# rfcomm_pppd -c -a 00:04:61:80:6f:e4 -C 1 -l bluetooth thinkpad# ifconfig tun0 tun0: flags=8051 mtu 1500 inet 192.168.0.87 --> 192.168.0.120 netmask 0xffffffff Opened by PID 47776 MAC OS and Windows doesn't ask for Channel number. They recognize LAN and connect to channel 1. Linux user always gets refused. (so strange the Linux bluetooth LAN tool pand(1) don't have a parameter to specify what channel to connect to.) > > Sometimes (not very frequently) iBook disconnects and cannot connect > > anymore unless the > > bluetooth ppp server restart. (Windows notebook no problem.) Is it because > >that is strange. i'd like to take a look at hcidump output. you will need >to download it from http://www.geocities.com/m_evmenkin/ Do you mean your homepage? You forgot I am in China I cannot go to geocities. To help me you sent me your sdp package through email a week ago:) Today the iBook problem is (I guess) solved. I found this line in ppp.log: Mar 3 10:59:34 dino ppp[2274]: Phase: deflink: ** Too many ECHO LQR packets lost ** I disabled lqr, the iBook don't have the problem any more. > > we are sharing channel No.1? Should I register LAN service on channel one > > through channel six? > >if you only have one bluetooth device attached to the server then you >should be fine. you need to register mulitple RFCOMM channels only if you >are running multiple RFCOMM servers. you can do it if you have more the >one bluetooth device attached to the server. again, keep in mind that a >single bluetooth device can only have 8 clients at a time. Thank you for the advice. _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn