From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 1 19:58:46 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 2A7D716A4CE for ; Mon, 1 Mar 2004 19:58:46 -0800 (PST) Received: from hotmail.com (law11-f43.law11.hotmail.com [64.4.17.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E71F43D1D for ; Mon, 1 Mar 2004 19:58:46 -0800 (PST) (envelope-from weiwuzhang@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 1 Mar 2004 19:58:45 -0800 Received: from 218.85.105.232 by lw11fd.law11.hotmail.msn.com with HTTP; Tue, 02 Mar 2004 03:58:45 GMT X-Originating-IP: [218.85.105.232] X-Originating-Email: [weiwuzhang@hotmail.com] X-Sender: weiwuzhang@hotmail.com From: "Zhang Weiwu" To: freebsd-bluetooth@freebsd.org Date: Tue, 02 Mar 2004 11:58:45 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 02 Mar 2004 03:58:45.0976 (UTC) FILETIME=[A9173580:01C4000A] Subject: 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: Tue, 02 Mar 2004 03:58:46 -0000 Hello. Thanks for you all helped me all the way in this week, now I have successfully set up a bluetooth LAN access server (on FreeBSD 5.2), I send everybody a bluetooth usb dodges. MAC OS notebook works fine, Windows 2000 dials in with no problem, my FreeBSD notebook works great. Each computer access desktop computers in the LAN no problem, surf the Internet etc. A Linux user is still fighting his way dialing in, but I think he will figure it out very soon. It's the finest day, the sun is shining and we have bluetooth LAN... Thank you everyone who helped me! 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", 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. Sometimes (not very frequently) iBook disconnects and cannot connect anymore unless the bluetooth ppp server restart. (Windows notebook no problem.) Is it because we are sharing channel No.1? Should I register LAN service on channel one through channel six? Please give more advices. When the network work fine and I figured out all the problems, I'll write a guide on my homepage. I hope it can be useful thanks to my mixed OS environment. and I hope you can correct my article by then:) _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn From owner-freebsd-bluetooth@FreeBSD.ORG Tue Mar 2 11:54:30 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 91B9A16A4CE for ; Tue, 2 Mar 2004 11:54:30 -0800 (PST) Received: from web40310.mail.yahoo.com (web40310.mail.yahoo.com [66.218.78.89]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E70D43D1D for ; Tue, 2 Mar 2004 11:54:30 -0800 (PST) (envelope-from m_evmenkin@yahoo.com) Message-ID: <20040302195430.58891.qmail@web40310.mail.yahoo.com> Received: from [66.35.239.94] by web40310.mail.yahoo.com via HTTP; Tue, 02 Mar 2004 11:54:30 PST Date: Tue, 2 Mar 2004 11:54:30 -0800 (PST) From: Maksim Yevmenkin To: freebsd-bluetooth@freebsd.org, Zhang Weiwu In-Reply-To: <4044CFB1.90607@cw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: bluetooth channels -- not very clear on concept 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: Tue, 02 Mar 2004 19:54:30 -0000 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", in your case these are RFCOMM channels. a single RFCOMM channel represents a logical connection between two devices using RFCOMM procotol. think of it as a virtual serial cable. you can have up to 62 RFCOMM channels between *the same* pair of devices. if you simplify the picture enough you might find it similar to IP:PORT concept, where IP is a BD_ADDR of the device and PORT is a RFCOMM channel. note: this analogy is not quite correct because there is a L2CAP layer between baseband and RFCOMM. the RFCOMM server is listening on wildcard BD_ADDR (*) and RFCOMM channel 1. so when new connection is accepted from the remote device will spawn new daemon to service the connection and run PPP over it, i.e. *: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. > 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? > 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/ > 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. thanks, max __________________________________ Do you Yahoo!? Yahoo! Search - Find what you抮e looking for faster http://search.yahoo.com 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 From owner-freebsd-bluetooth@FreeBSD.ORG Wed Mar 3 10:53:56 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 EFE8116A4CE for ; Wed, 3 Mar 2004 10:53:56 -0800 (PST) Received: from web40312.mail.yahoo.com (web40312.mail.yahoo.com [66.218.78.91]) by mx1.FreeBSD.org (Postfix) with SMTP id E684143D2F for ; Wed, 3 Mar 2004 10:53:56 -0800 (PST) (envelope-from m_evmenkin@yahoo.com) Message-ID: <20040303185356.54129.qmail@web40312.mail.yahoo.com> Received: from [66.35.239.94] by web40312.mail.yahoo.com via HTTP; Wed, 03 Mar 2004 10:53:56 PST Date: Wed, 3 Mar 2004 10:53:56 -0800 (PST) From: Maksim Yevmenkin To: zhangweiwu@realss.com, freebsd-bluetooth@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: bluetooth channels -- not very clear on concept 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: Wed, 03 Mar 2004 18:53:57 -0000 Hello, [...] > > > 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 ok. that tells me that you are having a problem with SDP. when you specify -C LAN rfcomm_pppd(8) will try to query remote server from RFCOMM channel. for whatever reason the server did not respond to client's SDP query. when you run rfcomm_pppd(8) with -C 1 it does not use SDP and connects directly to the RFCOMM channel 1. i need to look at hcidump(1) output. > 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.) well, think about it :) how would MAC OS and Windows would know which RFCOMM channel to use? the only way to find out is to send SDP query to the server and ask if the server provides LAN service. so both MAC OS and Windows *do* ask for RFCOMM channel number. Linux tools do the same. it seems that you have the same problem on FreeBSD and Linux when you try to use SDP. > > > 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:) ok. i will send you the tarball. compile and intall it. then run as root # hcidump -w rfcomm.dump and in another window try to # rfcomm_pppd -c -a 00:04:61:80:6f:e4 -C LAN -l bluetooth then interrupt (with ^C) hcidump(1) and send me the rfcomm.dump file. BTW Linux users should have hcidump tool. it should be compatible with the one from FreeBSD. it would be nice to have Linux dump as well. > 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. ok. thanks, max __________________________________ Do you Yahoo!? Yahoo! Search - Find what you抮e looking for faster http://search.yahoo.com From owner-freebsd-bluetooth@FreeBSD.ORG Fri Mar 5 09:57:38 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 1AD8616A4CE for ; Fri, 5 Mar 2004 09:57:38 -0800 (PST) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id E734243D39 for ; Fri, 5 Mar 2004 09:57:29 -0800 (PST) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id i25HvIWj011643 for ; Fri, 5 Mar 2004 09:57:18 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id i25HvDTE011641 for freebsd-bluetooth@freebsd.org; Fri, 5 Mar 2004 09:57:13 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Fri, 5 Mar 2004 09:57:13 -0800 From: "Loren M. Lang" To: freebsd-bluetooth@freebsd.org Message-ID: <20040305175713.GB10889@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: Bluetooth HID support 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: Fri, 05 Mar 2004 17:57:38 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I am curious on what the state of the bluetooth hid drivers are. We will sortly start some development on developing some bt hid devices and I'm looking to setup a unix workstation of some kind for it. Is there good enough support in FreeBSD 5.x for a bt keyboard or should I use a linux workstation for now. Also, it seems that just about all bt usb dongles use the same protocol looking through the linux bt usb database where they all use the same driver, though some need firmware installed. Is there a good chance then that if linux supports a specific dongle without any firmware requirements with the generic driver that it will work on FreeBSD as Linux's tested hw list is much greater and we've already purchased a belkin adapter. --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C =20 --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFASL95+vN6RuSjKAwRArPlAJ4n3QuwZhhWUUAv3YuiRgNcoJhrKgCgrzeC /KY0P4YxKjeaGmFF1o5HFH8= =NJ93 -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--