From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 22 08:05:23 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 3AC2216A4D7 for ; Mon, 22 Mar 2004 08:05:23 -0800 (PST) Received: from altair.cifrid.net (altair.cifrid.net [195.136.117.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4859043D5C for ; Mon, 22 Mar 2004 08:05:18 -0800 (PST) (envelope-from apm@cifrid.net) Received: from menkar.cifrid.net ([217.172.244.10]:49220) by altair.cifrid.net with esmtp (Exim 4.30) id 1B5Rwi-0008X4-HA for bluetooth@freebsd.org; Mon, 22 Mar 2004 17:06:36 +0100 To: bluetooth@freebsd.org From: Artur Meski Date: Mon, 22 Mar 2004 17:05:23 +0100 Message-ID: <86y8psvpdo.fsf@menkar.cifrid.net> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Subject: Bluetooth, HCI timeout. 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: Mon, 22 Mar 2004 16:05:23 -0000 --=-=-= [ This is a duplicate of a message sent to current@, because I didn't ] [ notice presence of this mailing list ] I can't make my bluetooth Microstar dongle work neither with FreeBSD -CURRENT (2004/03/22) nor with 5.2.1-RELEASE. As far as I remember it has been working fine with 5.1-RELEASE (but with another PC). I don't know what can have an impact on it. See attached file for 'rc.bluetooth start ubt0' command "output" (http://artur.black.pl/bluetooth.txt). --=-=-= Content-Disposition: inline; filename=bluetooth.txt Content-Description: rc.bluetooth, messages # /usr/local/etc/rc.bluetooth start ubt0 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3 , OCF=0x3. Timeout ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15) complete_command: ubt0hci - no pending command, state=0x1 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x4 , OCF=0x9. Timeout ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15) complete_command: ubt0hci - no pending command, state=0x1 BD_ADDR: 00:10:dc:4b:b6:64 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x4 , OCF=0x3. Timeout ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15) complete_command: ubt0hci - no pending command, state=0x1 Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x4 , OCF=0x5. Timeout ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15) complete_command: ubt0hci - no pending command, state=0x1 Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3 , OCF=0x1a. Timeout ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15) complete_command: ubt0hci - no pending command, state=0x1 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3 , OCF=0x24. Timeout ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15) complete_command: ubt0hci - no pending command, state=0x1 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3 , OCF=0x13. Timeout ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15) complete_command: ubt0hci - no pending command, state=0x1 Could not execute command "initialize". Device not configured --=-=-= -- // WWW: artur.black.pl // PGP: finger apm@acrux.cifrid.net // --=-=-=-- From owner-freebsd-bluetooth@FreeBSD.ORG Tue Mar 23 18:49:23 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 6A0E916A4CE for ; Tue, 23 Mar 2004 18:49:23 -0800 (PST) Received: from fep01-mail.bloor.is.net.cable.rogers.com (fep01-mail.bloor.is.net.cable.rogers.com [66.185.86.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5C3743D58 for ; Tue, 23 Mar 2004 18:49:21 -0800 (PST) (envelope-from dima@rogers.com) Received: from [24.100.213.250] by fep01-mail.bloor.is.net.cable.rogers.com ESMTP <20040324024843.KRQT138614.fep01-mail.bloor.is.net.cable.rogers.com@[24.100.213.250]> for ; Tue, 23 Mar 2004 21:48:43 -0500 Received: from Spooler by dima@rogers.com (Mercury/32 v4.01a) ID MO00011E; 23 Mar 2004 21:50:48 -0500 Received: from spooler by lumina.dima.componentone.com (Mercury/32 v4.01a); 23 Mar 2004 21:50:24 -0500 Received: from lumina.apexsc.com (127.0.0.1) by lumina.dima.componentone.com (Mercury/32 v4.01a) with ESMTP ID MG00011D; 23 Mar 2004 21:50:17 -0500 To: freebsd-bluetooth@freebsd.org From: Dmitry Yaitskov Organization: Disorganized Date: Tue, 23 Mar 2004 21:50:17 -0500 Message-ID: <84hdwfvtzq.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 fep01-mail.bloor.is.net.cable.rogers.com from [24.100.213.250] using ID at Tue, 23 Mar 2004 21:48:42 -0500 Subject: 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: Wed, 24 Mar 2004 02:49:23 -0000 Hi, I have a couple of bluetooth USB dongles (made by BlueGear), and would like to use these to connect my laptop to my home LAN. I went through the basic setup steps described here http://www.oook.cz/bsd/bluetooth.html and got my gongle up and running on FreeBSD. It can also see the other dongle on the laptop, e.g. the # hccontrol -n ubt0hci inquiry returns the other device's BT_ADDR etc. Also, the other device does see the FreeBSD one. My question is, now what? I"d like somehow to let the laptop access the LAN on which the FreeBSD system is, so I need some server on the FreeBSD side (I've downloaded the sdp-1.5 package but I could not find much (any) docs/info on its use unfortunately) and a Windows client on the laptop - any pointers/advice will be much appreciated. Thanks. -- Cheers, -Dima. From owner-freebsd-bluetooth@FreeBSD.ORG Wed Mar 24 03:37:07 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 5063216A4D3 for ; Wed, 24 Mar 2004 03:37:07 -0800 (PST) Received: from mail27.cn4e.com (unknown [218.107.207.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5D4843D5D for ; Wed, 24 Mar 2004 03:37:06 -0800 (PST) (envelope-from zhangweiwu@realss.com) Received: from realss.com (unknown [210.34.10.206]) by mail27.cn4e.com (WorldPost) with ESMTP id 0C1C1D3E3BCA; Wed, 24 Mar 2004 20:03:07 +0800 (CST) Message-ID: <4061729F.4010504@realss.com> Date: Wed, 24 Mar 2004 19:35:59 +0800 From: Zhang Weiwu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040227 X-Accept-Language: zh-cn, en-us, en MIME-Version: 1.0 To: Dmitry Yaitskov References: <84hdwfvtzq.fsf@nothing.nowhere.com> In-Reply-To: <84hdwfvtzq.fsf@nothing.nowhere.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-bluetooth@freebsd.org 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: Wed, 24 Mar 2004 11:37:07 -0000 Dmitry Yaitskov wrote: >Hi, > >I have a couple of bluetooth USB dongles (made by BlueGear), and would >like to use these to connect my laptop to my home LAN. I went through >the basic setup steps described here >http://www.oook.cz/bsd/bluetooth.html and got my gongle up and running >on FreeBSD. It can also see the other dongle on the laptop, e.g. the > ># hccontrol -n ubt0hci inquiry > >returns the other device's BT_ADDR etc. Also, the other device does >see the FreeBSD one. > >My question is, now what? I"d like somehow to let the laptop access >the LAN on which the FreeBSD system is, so I need some server on the >FreeBSD side (I've downloaded the sdp-1.5 package but I could not find >much (any) docs/info on its use unfortunately) and a Windows client on >the laptop - any pointers/advice will be much appreciated. > You need to run rfcomm_pppd. This tool builds ppp connection on both side. If you ever configured ppp(8) it won't be difficult. You need to run sdpd on server side, sdpd is not necessary on client side. You need to read rfcomm_pppd(8). I'm not in my office, I'll send my real configure file later when I am in my office. From owner-freebsd-bluetooth@FreeBSD.ORG Wed Mar 24 19:03:34 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 6599316A4CE for ; Wed, 24 Mar 2004 19:03:34 -0800 (PST) Received: from fep04-mail.bloor.is.net.cable.rogers.com (fep04-mail.bloor.is.net.cable.rogers.com [66.185.86.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9634443D41 for ; Wed, 24 Mar 2004 19:03:33 -0800 (PST) (envelope-from dima@rogers.com) Received: from [24.100.213.250] by fep04-mail.bloor.is.net.cable.rogers.com ESMTP <20040325030245.ZUMO323940.fep04-mail.bloor.is.net.cable.rogers.com@[24.100.213.250]> for ; Wed, 24 Mar 2004 22:02:45 -0500 Received: from Spooler by dima@rogers.com (Mercury/32 v4.01a) ID MO000236; 24 Mar 2004 22:05:00 -0500 Received: from spooler by lumina.dima.componentone.com (Mercury/32 v4.01a); 24 Mar 2004 22:04:36 -0500 Received: from lumina.apexsc.com (127.0.0.1) by lumina.dima.componentone.com (Mercury/32 v4.01a) with ESMTP ID MG000235; 24 Mar 2004 22:04:36 -0500 To: freebsd-bluetooth@freebsd.org In-Reply-To: <4061729F.4010504@realss.com> (Zhang Weiwu's message of "Wed, 24 Mar 2004 19:35:59 +0800") References: <84hdwfvtzq.fsf@nothing.nowhere.com> <4061729F.4010504@realss.com> From: Dmitry Yaitskov Organization: Disorganized Date: Wed, 24 Mar 2004 22:04:36 -0500 Message-ID: <84lllp1vaz.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 fep04-mail.bloor.is.net.cable.rogers.com from [24.100.213.250] using ID at Wed, 24 Mar 2004 22:02:42 -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 03:03:34 -0000 Zhang Weiwu wrote: > Dmitry Yaitskov wrote: > >>Hi, >> >>I have a couple of bluetooth USB dongles (made by BlueGear), and would >>like to use these to connect my laptop to my home LAN. I went through >>the basic setup steps described here >>http://www.oook.cz/bsd/bluetooth.html and got my gongle up and running >>on FreeBSD. It can also see the other dongle on the laptop, e.g. the >> >># hccontrol -n ubt0hci inquiry >> >>returns the other device's BT_ADDR etc. Also, the other device does >>see the FreeBSD one. >> >>My question is, now what? I"d like somehow to let the laptop access >>the LAN on which the FreeBSD system is, so I need some server on the >>FreeBSD side (I've downloaded the sdp-1.5 package but I could not find >>much (any) docs/info on its use unfortunately) and a Windows client on >>the laptop - any pointers/advice will be much appreciated. >> > You need to run rfcomm_pppd. This tool builds ppp connection on both > side. If you ever configured ppp(8) it won't be difficult. Thanks, I understand more or less what needs to be done on the server side. I am still unclear though about the client - which is WinXP - what do I need to do/run there? > You need to run sdpd on server side, sdpd is not necessary on client side. > > You need to read rfcomm_pppd(8). I'm not in my office, I'll send my > real configure file later when I am in my office. Could you do that? Thanks. -- Cheers, -Dima. From owner-freebsd-bluetooth@FreeBSD.ORG Wed Mar 24 19:20:54 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 8959516A4CE for ; Wed, 24 Mar 2004 19:20:54 -0800 (PST) Received: from grover.logicsquad.net (ppp142-17.lns1.adl2.internode.on.net [150.101.142.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 26CFA43D2F for ; Wed, 24 Mar 2004 19:20:53 -0800 (PST) (envelope-from paulh@logicsquad.net) Received: (qmail 49825 invoked by uid 1000); 25 Mar 2004 03:20:51 -0000 Date: Thu, 25 Mar 2004 13:50:51 +1030 From: "Paul A. Hoadley" To: freebsd-bluetooth@freebsd.org Message-ID: <20040325032051.GD42893@grover.logicsquad.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d01dLTUuW90fS44H" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Pairing a Sony Ericsson T68i to FreeBSD 5.2.1 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 03:20:54 -0000 --d01dLTUuW90fS44H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I just upgraded a machine to 5.2.1 to do some Bluetooth experimentation. I am trying to communicate with my T68i. My USB dongle is connected: ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2 ubt0: Interface 0 endpoints: interrupt=3D0x81, bulk-in=3D0x82, bulk-out=3D0= x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=3D0x83, isoc-out=3D0x3; wMaxPacketSize=3D49; nframes=3D6, buffer size=3D294 The phone is discoverable: > hccontrol -n ubt0hci inquiry Inquiry result, num_responses=3D1 Inquiry result #0 BD_ADDR: 00:80:37:79:bf:e9 Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 00 Page Scan Mode: 00 Class: 52:22:04 Clock offset: 0x540 Inquiry complete. Status: No error [00] Now I want to pair with the phone and do some service enquiries. I have this entry in /etc/bluetooth/hcsecd.conf: device { bdaddr 00:80:37:79:bf:e9; name "T68i"; key nokey; pin "1111"; } I run 'hcsecd -d', and try to initiate pairing from the phone. Now the T68i asks for a "Passkey", but I assume it wants the PIN. Upon entering the PIN, it thinks, then reports "Bluetooth connection failed". I get no message from hcsecd. Have I missed a step here? Has anyone else got a T68i working? Further to this, and assuming I get it working at some point, I cannot seem to find the SDP tools---do I still need to download and compile the sdp-1.5 package? Thanks for any help! --=20 Paul. mailto:paulh@logicsquad.net --d01dLTUuW90fS44H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYlAT730Z/jysbzIRAlmMAJ4hLOJwU4kTtaxEXNDfUhKR7jTZIgCfVTic rKP204XnhEWoFeckRbppmS4= =fUeg -----END PGP SIGNATURE----- --d01dLTUuW90fS44H-- From owner-freebsd-bluetooth@FreeBSD.ORG Wed Mar 24 20:19:04 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 38CCD16A4CF for ; Wed, 24 Mar 2004 20:19:04 -0800 (PST) Received: from grover.logicsquad.net (ppp142-17.lns1.adl2.internode.on.net [150.101.142.17]) by mx1.FreeBSD.org (Postfix) with SMTP id CF19B43D46 for ; Wed, 24 Mar 2004 20:19:02 -0800 (PST) (envelope-from paulh@logicsquad.net) Received: (qmail 59337 invoked by uid 1000); 25 Mar 2004 04:18:59 -0000 Date: Thu, 25 Mar 2004 14:48:59 +1030 From: "Paul A. Hoadley" To: freebsd-bluetooth@freebsd.org Message-ID: <20040325041859.GF42893@grover.logicsquad.net> References: <20040325032051.GD42893@grover.logicsquad.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QXO0/MSS4VvK6f+D" Content-Disposition: inline In-Reply-To: <20040325032051.GD42893@grover.logicsquad.net> User-Agent: Mutt/1.4.2.1i Subject: Re: Pairing a Sony Ericsson T68i to FreeBSD 5.2.1 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 04:19:04 -0000 --QXO0/MSS4VvK6f+D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 25, 2004 at 01:50:51PM +1030, Paul A. Hoadley wrote: > I run 'hcsecd -d', and try to initiate pairing from the phone. Now > the T68i asks for a "Passkey", but I assume it wants the PIN. Upon > entering the PIN, it thinks, then reports "Bluetooth connection > failed". I get no message from hcsecd. >=20 > Have I missed a step here? Has anyone else got a T68i working? Sorry people, my bad---I didn't read to the bottom of the Handbook page: # hccontrol -n ubt0hci write_node_role_switch 0 It now works. > Further to this, and assuming I get it working at some point, I > cannot seem to find the SDP tools---do I still need to download and > compile the sdp-1.5 package? I have successfully built the binaries from this package. Is this still the way to go? --=20 Paul. mailto:paulh@logicsquad.net --QXO0/MSS4VvK6f+D Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYl2y730Z/jysbzIRApEfAJ9tszSZOwdn5LzE+3fxJN4/7jFnKQCeJuHT EThpkWg5XNvOtU9a+r6qYeU= =cTW6 -----END PGP SIGNATURE----- --QXO0/MSS4VvK6f+D-- 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. From owner-freebsd-bluetooth@FreeBSD.ORG Thu Mar 25 01:13: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 4890116A4CE for ; Thu, 25 Mar 2004 01:13:30 -0800 (PST) Received: from grover.logicsquad.net (ppp142-17.lns1.adl2.internode.on.net [150.101.142.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 15B1743D3F for ; Thu, 25 Mar 2004 01:13:29 -0800 (PST) (envelope-from paulh@logicsquad.net) Received: (qmail 69763 invoked by uid 1000); 25 Mar 2004 09:13:27 -0000 Date: Thu, 25 Mar 2004 19:43:27 +1030 From: "Paul A. Hoadley" To: freebsd-bluetooth@freebsd.org Message-ID: <20040325091327.GI42893@grover.logicsquad.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cVp8NMj01v+Em8Se" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: More on T68i 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 09:13:30 -0000 --cVp8NMj01v+Em8Se Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, After conversing with myself on-list earlier, I have now got files going back and forth between my T68i and FreeBSD 5.2.1. (This is using obexapp from the command line. I am yet to succeed with a phone-initiated transfer with sdpd running---phone just bails out with 'Bluetooth connection failed'.) Has anyone progressed any further than this with a T68i? I notice Maksim Yevmenkin refers to testing on a T68i in the obexapp man page---Maksim, are you doing anything more sophisticated than single file transfers using obexapp? I am interested in doing something like maintaining a central vCard database (though probably in a more accessible form, such as RDF, and converting to vCard as required) to which I can sync my T68i, and hopefully my Palm Zire 71. Is anyone doing anything like this? --=20 Paul. mailto:paulh@logicsquad.net --cVp8NMj01v+Em8Se Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYqK3730Z/jysbzIRAjkrAJ9FwC4GETixlOcW5VOrgRXStfH1pwCfSs9b IGEGCIKx/NnRq5eRER2mLAY= =kvQa -----END PGP SIGNATURE----- --cVp8NMj01v+Em8Se-- From owner-freebsd-bluetooth@FreeBSD.ORG Thu Mar 25 04:42:22 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 0DA6E16A4CE for ; Thu, 25 Mar 2004 04:42:22 -0800 (PST) Received: from mail27.cn4e.com (unknown [218.107.207.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 618CD43D2F for ; Thu, 25 Mar 2004 04:42:21 -0800 (PST) (envelope-from zhangweiwu@realss.com) Received: from realss.com (unknown [218.85.105.169]) by mail27.cn4e.com (WorldPost) with ESMTP id 276F7D6DE6FD; Thu, 25 Mar 2004 21:08:36 +0800 (CST) Message-ID: <4062D379.9020500@realss.com> Date: Thu, 25 Mar 2004 20:41:29 +0800 From: Zhang Weiwu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040227 X-Accept-Language: zh-cn, en-us, en MIME-Version: 1.0 To: Dmitry Yaitskov References: <84hdwfvtzq.fsf@nothing.nowhere.com> <4061729F.4010504@realss.com> <84lllp1vaz.fsf@nothing.nowhere.com> <84d6711k72.fsf@nothing.nowhere.com> In-Reply-To: <84d6711k72.fsf@nothing.nowhere.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-bluetooth@freebsd.org cc: =?UTF-8?B?546LIOWuh+e/lA==?= Subject: Re: Windows client/FreeBSD server Q. on bluetooth LAN 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 12:42:22 -0000 Hi. Dmitry Yaitskov wrote: >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. > I'm sorry I'm too busy today to give a detailed reply. I copied this email to my friend who has a Windows notebook connecting to my bluetooth server, I think he can help you if he has time:) Here is my ppp configure file, for your reference: == On the client side == thinkpad# cat /etc/ppp/ppp.conf bluetooth: enable lqr accept lqr set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0 add default HISADDR enable dns set dial set timeout 0 disable iface-alias deny pap disable pap deny chap disable chap On the client, to connect use /etc/rc.bluetooth start ubt0 rfcomm_pppd -c -a 00:04:61:80:6f:e4 -C 1 -l bluetooth == On server side == dino# cat /etc/ppp/ppp.conf # on dino ppp is *only* used with rfcomm as bluetooth LAN # access server. This ppp.conf is written to fit that purpose. rfcomm-server: set timeout 0 set lqrperiod 10 #enable lqr disabled because Xiaojuan's notebook doesn't support lqr accept lqr set ifaddr 192.168.0.120 192.168.0.53-192.168.0.119 255.255.255.0 accept dns enable proxy #enable proxyall disable pap deny pap disable chap deny chap On the server I copied /etc/rc.bluetooth to /usr/local/etc/rc.d/bluetooth.sh and modified it to let the server start up accepting PPP connection. dino# diff /usr/local/etc/rc.d/bluetooth.sh /etc/rc.bluetooth 32,35d31 < # Zhang Weiwu: modifications --- < ## Usage check is disabled < ## Device is set to ubt0 < ## Call sdpd and rfcomm_pppd 154,157c150,153 < #if [ $# -lt 2 ]; then < # usage $0 < # exit 1 < #fi --- > if [ $# -lt 2 ]; then > usage $0 > exit 1 > fi 161,163c157,158 < #dev=$1 < #shift < dev=ubt0 --- > dev=$1 > shift 236,241d230 < # weiwu added: < hccontrol -n ubt0hci inquiry < sdpd < sdptool add --channel=1 LAN < rfcomm_pppd -s -C 1 -l rfcomm-server < echo -n ' bluetooth' From owner-freebsd-bluetooth@FreeBSD.ORG Thu Mar 25 07:03:52 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 A879516A4CE for ; Thu, 25 Mar 2004 07:03:52 -0800 (PST) Received: from fep01-mail.bloor.is.net.cable.rogers.com (fep01-mail.bloor.is.net.cable.rogers.com [66.185.86.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DDC443D1D for ; Thu, 25 Mar 2004 07:03:52 -0800 (PST) (envelope-from dima@rogers.com) Received: from [24.100.213.250] by fep01-mail.bloor.is.net.cable.rogers.com ESMTP <20040325150132.EWFA138614.fep01-mail.bloor.is.net.cable.rogers.com@[24.100.213.250]> for ; Thu, 25 Mar 2004 10:01:32 -0500 Received: from Spooler by dima@rogers.com (Mercury/32 v4.01a) ID MO0002A8; 25 Mar 2004 10:03:45 -0500 Received: from spooler by lumina.dima.componentone.com (Mercury/32 v4.01a); 25 Mar 2004 10:03:40 -0500 Received: from lumina.apexsc.com (127.0.0.1) by lumina.dima.componentone.com (Mercury/32 v4.01a) with ESMTP ID MG0002A7; 25 Mar 2004 10:03:36 -0500 To: freebsd-bluetooth@freebsd.org In-Reply-To: <4062D379.9020500@realss.com> (Zhang Weiwu's message of "Thu, 25 Mar 2004 20:41:29 +0800") References: <84hdwfvtzq.fsf@nothing.nowhere.com> <4061729F.4010504@realss.com> <84d6711k72.fsf@nothing.nowhere.com> <4062D379.9020500@realss.com> From: Dmitry Yaitskov Organization: Disorganized Date: Thu, 25 Mar 2004 10:03:36 -0500 Message-ID: <84vfktynnb.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 fep01-mail.bloor.is.net.cable.rogers.com from [24.100.213.250] using ID at Thu, 25 Mar 2004 10:01:32 -0500 Subject: Re: Windows client/FreeBSD server Q. on bluetooth LAN 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 15:03:52 -0000 Hi Thanks Zhang. Some new info: I d/loaded a new bluetooth stack from Toshiba, and now I am actually able to connect, via a "modem" on the laptop side. The connection stays up, the problem seems to be with the TCP/IP and/or PPP settings. Here's what happens: After connection, ipconfig says the following about the connection on the laptop side: PPP adapter Direct Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface Physical Address. . . . . . . . . : 00-53-45-00-00-00 Dhcp Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.1.53 Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . : 192.168.1.53 DNS Servers . . . . . . . . . . . : 192.168.1.1 I'm not sure but the fact that IP addr and the gateway are the same seems wrong to me. On the server, I tried mimicking the config that you posted: rfcomm-server: set timeout 0 set lqrperiod 10 enable lqr accept lqr set ifaddr 192.168.1.120 192.168.1.53-192.168.1.119 255.255.255.0 accept dns enable proxy disable pap deny pap disable chap deny chap Still, the only IP that I can ping from the laptop is the IP address/default gateway one. I guess I'm missing something obvious here... -- Cheers, -Dima. From owner-freebsd-bluetooth@FreeBSD.ORG Thu Mar 25 21:44:18 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 8F5A716A4CE for ; Thu, 25 Mar 2004 21:44:18 -0800 (PST) Received: from fep03-mail.bloor.is.net.cable.rogers.com (fep03-mail.bloor.is.net.cable.rogers.com [66.185.86.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED10743D3F for ; Thu, 25 Mar 2004 21:44:17 -0800 (PST) (envelope-from dima@rogers.com) Received: from [24.100.213.250] by fep03-mail.bloor.is.net.cable.rogers.com ESMTP <20040326054417.OPOW396979.fep03-mail.bloor.is.net.cable.rogers.com@[24.100.213.250]> for ; Fri, 26 Mar 2004 00:44:17 -0500 Received: from Spooler by dima@rogers.com (Mercury/32 v4.01a) ID MO00036D; 26 Mar 2004 00:45:50 -0500 Received: from spooler by lumina.dima.componentone.com (Mercury/32 v4.01a); 26 Mar 2004 00:45:26 -0500 Received: from lumina.apexsc.com (127.0.0.1) by lumina.dima.componentone.com (Mercury/32 v4.01a) with ESMTP ID MG00036C; 26 Mar 2004 00:45:22 -0500 To: freebsd-bluetooth@freebsd.org In-Reply-To: <84vfktynnb.fsf@nothing.nowhere.com> (Dmitry Yaitskov's message of "Thu, 25 Mar 2004 10:03:36 -0500") References: <84hdwfvtzq.fsf@nothing.nowhere.com> <4061729F.4010504@realss.com> <84d6711k72.fsf@nothing.nowhere.com> <4062D379.9020500@realss.com> <84vfktynnb.fsf@nothing.nowhere.com> From: Dmitry Yaitskov Organization: Disorganized Date: Fri, 26 Mar 2004 00:45:22 -0500 Message-ID: <84brmkupot.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 fep03-mail.bloor.is.net.cable.rogers.com from [24.100.213.250] using ID at Fri, 26 Mar 2004 00:44:17 -0500 Subject: Re: Windows client/FreeBSD server Q. on bluetooth LAN 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, 26 Mar 2004 05:44:18 -0000 Ok, here's the bottom line: got it working. The missing link was the gateway_enable="YES" line in rc.conf. After that, it all more or less just worked :) Thanks for the advice Zhang. -- Cheers, -Dima.