From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 17:06:24 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 0257E16A4CE for ; Sat, 4 Dec 2004 17:06:24 +0000 (GMT) Received: from vjofn.tucs-beachin-obx-house.com (vjofn.tucs-beachin-obx-house.com [204.107.90.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B5FE43D69 for ; Sat, 4 Dec 2004 17:06:23 +0000 (GMT) (envelope-from tuc@tucs-beachin-obx-house.com) Received: from himinbjorg.tucs-beachin-obx-house.com (ool-44c09852.dyn.optonline.net [68.192.152.82]) (authenticated bits=128)iB4H6NFR073550 for ; Sat, 4 Dec 2004 12:06:23 -0500 (EST) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1])id iB4H6MbP013458 for ; Sat, 4 Dec 2004 12:06:22 -0500 (EST) (envelope-from tuc@tucs-beachin-obx-house.com) Received: (from tucobx@localhost)iB4H6ME2013457 for freebsd-bluetooth@freebsd.org; Sat, 4 Dec 2004 12:06:22 -0500 (EST) (envelope-from tucobx) From: Tuc at Beach House Message-Id: <200412041706.iB4H6ME2013457@himinbjorg.tucs-beachin-obx-house.com> To: freebsd-bluetooth@freebsd.org Date: Sat, 4 Dec 2004 12:06:22 -0500 (EST) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: sdpcontrol issues (LONG) 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: Sat, 04 Dec 2004 17:06:24 -0000 Hi, Brand new Bluetooth user. I'm running : FreeBSD himinbjorg.tucs-beachin-obx-house.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #7: Tue Oct 12 15:07:09 EDT 2004 root@himinbjorg.tucs-beachin-obx-house.com:/usr/obj/usr/src/sys/HIMINBJORG i386 with a new D-Link BT-120.B4 . I'm trying to follow all the examples according to: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bluetooth.html I do the kldload, and I get: ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 And the rc.bluetooth: BD_ADDR: 00:11:95:00:39:15 Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 So far, I think I'm doing well. So I turn on my Palm Treo 650 and make it discoverable. I've already put in /etc/bluetooth/hosts : 00:07:e0:02:16:16 TucTreo650.tucs-beachin-obx-house.com So I do the hccontrol -n ubt0hci inquiry Inquiry result, num_responses=1 Inquiry result #0 BD_ADDR: TucTreo650.tucs-beachin-obx-house.com Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 00 Page Scan Mode: 00 Class: 50:02:0c Clock offset: 0x1ac Inquiry complete. Status: No error [00] So far so good. And the hccontrol -n ubt0hci remote_name_request TucTreo650.tucs-beachin-obx-house.com returned : BD_ADDR: TucTreo650.tucs-beachin-obx-house.com Name: palmOne Device So I went on to hccontrol -n ubt0hci read_connection_list , which came up empty. I'm not sure that this should really show anything. So I skipped down to the l2ping -a TucTreo650.tucs-beachin-obx-house.com and all of a sudden on the Treo I get some tones and it tells me a connection is in progress. The results of the ping are : 20 bytes from 00:07:e0:02:16:16 seq_no=0 time=2081.812 ms result=0 20 bytes from 00:07:e0:02:16:16 seq_no=1 time=31.914 ms result=0 20 bytes from 00:07:e0:02:16:16 seq_no=2 time=45.864 ms result=0 20 bytes from 00:07:e0:02:16:16 seq_no=3 time=27.612 ms result=0 20 bytes from 00:07:e0:02:16:16 seq_no=4 time=30.311 ms result=0 20 bytes from 00:07:e0:02:16:16 seq_no=5 time=33.280 ms result=0 (The treo had timed out so the first one I had to turn it back on.) Just for giggles, I went back to the hccontrol -n ubt0hci read_connection_list and saw : Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State TucTreo650.tucs-b 41 ACL 0 MAST NONE 0 0 OPEN So it looks pretty good. I try the l2control -a himinbjorg.tucs-beachin-obx-house.com read_channel_list (I already put my BD_ADDR in the /etc/bluetooth/hosts as : 00:11:95:00:39:15 himinbjorg.tucs-beachin-obx-house.com ) And it comes up empty. So does the read_connection_list, unless I do the l2ping and quickly go back. Then I get : L2CAP connections: Remote BD_ADDR Handle Flags Pending State TucTreo650.tucs-b 42 O D 0 OPEN I go on to a btsockstat, and get : Active raw HCI sockets Socket PCB Flags Recv-Q Send-Q Local address c891c960 c7f01280 000002 0 0 * So now I skip down to section 24.4.6 . My first question is how should I be starting hcsecd on a regular basis? I don't see anything in the /etc/rc.bluetooth to do it. So in the /etc/bluetooth/hcsecd.conf I put : device { bdaddr 00:07:e0:02:16:16; name "palmOne Device"; key nokey; pin "1234"; } and after realizing the default file has some sort of error on line 44, I have to comment it out : #device { # bdaddr 00:1:2:3:4:5; # name "Dummy"; # key nokey; # pin "0000"; #} I run it, and tell the Palm to trust my laptop. The debug is : hcsecd[12989]: Got PIN_Code_Request event from 'ubt0hci', remote bdaddr 00:07:e0:02:16:16 hcsecd[12989]: Found matching entry, remote bdaddr 00:07:e0:02:16:16, name 'palmOne Device', PIN code exists hcsecd[12989]: Sending PIN_Code_Reply to 'ubt0hci' for remote bdaddr 00:07:e0:02:16:16 hcsecd[12989]: Got Link_Key_Notification event from 'ubt0hci', remote bdaddr 00:07:e0:02:16:16 So that looks good too. I tell it to background so it'll continue to run. I move on to the next section, and this is where things start to go bad. I do a sdpcontrol -a TucTreo650.tucs-beachin-obx-house.com browse and I get: Could not execute command "browse". Input/output error I did a search of all the options, each come up as Input/output error. I then try to start sdpd, and it doesn't exist. I drop down to sdpcontrol -l browse and I get it as an illegal option. So, I'm a tad stuck, don't want to go much farther..... Thanks, Tuc From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 17:38: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 CDA5516A4CE for ; Sat, 4 Dec 2004 17:38:38 +0000 (GMT) Received: from hood.oook.cz (hood.oook.cz [212.27.205.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE27143D31 for ; Sat, 4 Dec 2004 17:38:37 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from hood.oook.cz (localhost.oook.cz [127.0.0.1]) by hood.oook.cz (8.13.1/8.13.1) with ESMTP id iB4HcaOo039386 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Dec 2004 18:38:36 +0100 (CET) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by hood.oook.cz (8.13.1/8.13.1/Submit) id iB4HcaDt039385; Sat, 4 Dec 2004 18:38:36 +0100 (CET) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: hood.oook.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Tuc at Beach House In-Reply-To: <200412041706.iB4H6ME2013457@himinbjorg.tucs-beachin-obx-house.com> References: <200412041706.iB4H6ME2013457@himinbjorg.tucs-beachin-obx-house.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DA95kU/h/V7MrdGjm1PK" Date: Sat, 04 Dec 2004 18:38:35 +0100 Message-Id: <1102181915.30304.10.camel@hood.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port cc: freebsd-bluetooth@FreeBSD.org Subject: Re: sdpcontrol issues (LONG) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 17:38:38 -0000 --=-DA95kU/h/V7MrdGjm1PK Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Tuc at Beach House p=ED=B9e v so 04. 12. 2004 v 12:06 -0500: > My first question is how should I be starting hcsecd on a regular > basis? I don't see anything in the /etc/rc.bluetooth to do it. Pairing is one-time operation. Once your palm have your computer's dongle in list of trusted devices, everything will be fine. FreeBSD does not really care :) > I do a sdpcontrol -a TucTreo650.tucs-beachin-obx-house.com browse =20 > and I get: >=20 > Could not execute command "browse". Input/output error >=20 > I did a search of all the options, each come up as Input/output error. >=20 > I then try to start sdpd, and it doesn't exist. >=20 > I drop down to sdpcontrol -l browse and I get it as an illegal=20 > option.=20 Palm devices are known to not implement service browsing. Mine Tungsten T3 can't be browsed, either. You will want to query for channels of services you want to use, with 'sdcontrol search' command.=20 --=20 Pav Lucistnik - Hocumms Razor states that the most obvious, though possible not conceviab= le, answer to a problem is most likely the correct one. - unless you are playing zelda. --=-DA95kU/h/V7MrdGjm1PK Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBsfYbntdYP8FOsoIRAvOIAJ9RJkn4jqHHFyZ3b6HWzpQyncPtmgCdFKtZ OftTAx65+60P5LJWRtKD/hc= =e4bI -----END PGP SIGNATURE----- --=-DA95kU/h/V7MrdGjm1PK-- From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 17:54: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 6ACE416A4CE; Sat, 4 Dec 2004 17:54:22 +0000 (GMT) Received: from vjofn.tucs-beachin-obx-house.com (vjofn.tucs-beachin-obx-house.com [204.107.90.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id F25F443D46; Sat, 4 Dec 2004 17:54:21 +0000 (GMT) (envelope-from tuc@tucs-beachin-obx-house.com) Received: from himinbjorg.tucs-beachin-obx-house.com (ool-44c09852.dyn.optonline.net [68.192.152.82]) (authenticated bits=128)iB4HsLFR074971; Sat, 4 Dec 2004 12:54:21 -0500 (EST) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1])id iB4HsLbP014736; Sat, 4 Dec 2004 12:54:21 -0500 (EST) (envelope-from tuc@tucs-beachin-obx-house.com) Received: (from tucobx@localhost)iB4HsLYc014735; Sat, 4 Dec 2004 12:54:21 -0500 (EST) (envelope-from tucobx) From: Tuc at Beach House Message-Id: <200412041754.iB4HsLYc014735@himinbjorg.tucs-beachin-obx-house.com> To: pav@FreeBSD.org Date: Sat, 4 Dec 2004 12:54:21 -0500 (EST) In-Reply-To: <1102181915.30304.10.camel@hood.oook.cz> from "Pav Lucistnik" at Dec 04, 2004 06:38:35 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-bluetooth@FreeBSD.org cc: Tuc at Beach House Subject: Re: sdpcontrol issues (LONG) 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: Sat, 04 Dec 2004 17:54:22 -0000 > > My first question is how should I be starting hcsecd on a regular > > basis? I don't see anything in the /etc/rc.bluetooth to do it. > > Pairing is one-time operation. Once your palm have your computer's > dongle in list of trusted devices, everything will be fine. FreeBSD does > not really care :) > Gotcha. Thank you. > > > I do a sdpcontrol -a TucTreo650.tucs-beachin-obx-house.com browse > > and I get: > > > > Could not execute command "browse". Input/output error > > > > I did a search of all the options, each come up as Input/output error. > > > > I then try to start sdpd, and it doesn't exist. > > > > I drop down to sdpcontrol -l browse and I get it as an illegal > > option. > > Palm devices are known to not implement service browsing. > Ok. Thank you. I wasn't aware of that. > > Mine > Tungsten T3 can't be browsed, either. You will want to query for > channels of services you want to use, with 'sdcontrol search' command. > I assume you mean sdpcontrol. I tried to do the whole list, and got nothing for each of them. I also wanted to start offering services from my FreeBSD laptop, and wanted to start sdpd, but I don't find it on my laptop. Is there a ports package I need to install? The document mentions the use of "sdpcontrol -l browse", and "-l" is an invalid option. Is my sdpcontrol a wrong version that it does not have this option? Thanks, Tuc. (PS - I loaded a Winderz box with the BT-120.B4 software and put a different dongle on that, and I can see services on it.... Now I want it to see services on my FreeBSD, but I don't think I can offer it without the sdpd program which I can't find) From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 17:57:45 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 1F24116A4CE for ; Sat, 4 Dec 2004 17:57:45 +0000 (GMT) Received: from hood.oook.cz (hood.oook.cz [212.27.205.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3618943D41 for ; Sat, 4 Dec 2004 17:57:44 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from hood.oook.cz (localhost.oook.cz [127.0.0.1]) by hood.oook.cz (8.13.1/8.13.1) with ESMTP id iB4HvhXp039507 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Dec 2004 18:57:43 +0100 (CET) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by hood.oook.cz (8.13.1/8.13.1/Submit) id iB4Hvgnt039506; Sat, 4 Dec 2004 18:57:42 +0100 (CET) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: hood.oook.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Tuc at Beach House In-Reply-To: <200412041754.iB4HsLYc014735@himinbjorg.tucs-beachin-obx-house.com> References: <200412041754.iB4HsLYc014735@himinbjorg.tucs-beachin-obx-house.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-C9eQz6RUEz7YBmVmuABv" Date: Sat, 04 Dec 2004 18:57:42 +0100 Message-Id: <1102183062.30304.13.camel@hood.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port cc: freebsd-bluetooth@FreeBSD.org cc: Tuc at Beach House Subject: Re: sdpcontrol issues (LONG) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 17:57:45 -0000 --=-C9eQz6RUEz7YBmVmuABv Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Tuc at Beach House p=ED=B9e v so 04. 12. 2004 v 12:54 -0500: > > Mine > > Tungsten T3 can't be browsed, either. You will want to query for > > channels of services you want to use, with 'sdcontrol search' command. > >=20 > I assume you mean sdpcontrol. I tried to do the whole list, and > got nothing for each of them.=20 Yes, sdpcontrol, typo. I was copying it from Handbook, by hand. > I also wanted to start offering services from my FreeBSD laptop, > and wanted to start sdpd, but I don't find it on my laptop. Is there a po= rts > package I need to install? >=20 > The document mentions the use of "sdpcontrol -l browse", and "-l" > is an invalid option. Is my sdpcontrol a wrong version that it does not h= ave > this option? You may want to upgrade your system to FreeBSD 5.3, which have these utilities. I think 5.2.1 does not yet have them. PS please don't take this conversation offlist, others may be interested too. --=20 Pav Lucistnik 42.7 percent of all statistics are made up on the spot. --=-C9eQz6RUEz7YBmVmuABv Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBsfqWntdYP8FOsoIRArS7AKDDtM4wc1ugf+qUHfvEc10hjZD/XQCgsrAC aNRehARpEFsYhAdAKzn3NTg= =686X -----END PGP SIGNATURE----- --=-C9eQz6RUEz7YBmVmuABv-- From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 18:04:12 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 6E58516A4CE; Sat, 4 Dec 2004 18:04:12 +0000 (GMT) Received: from vjofn.tucs-beachin-obx-house.com (vjofn.tucs-beachin-obx-house.com [204.107.90.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2273243D5C; Sat, 4 Dec 2004 18:04:12 +0000 (GMT) (envelope-from tuc@tucs-beachin-obx-house.com) Received: from himinbjorg.tucs-beachin-obx-house.com (ool-44c09852.dyn.optonline.net [68.192.152.82]) (authenticated bits=128)iB4I4BFR075396; Sat, 4 Dec 2004 13:04:11 -0500 (EST) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1])id iB4I4BbP015258; Sat, 4 Dec 2004 13:04:11 -0500 (EST) (envelope-from tuc@tucs-beachin-obx-house.com) Received: (from tucobx@localhost)iB4I4BjY015257; Sat, 4 Dec 2004 13:04:11 -0500 (EST) (envelope-from tucobx) From: Tuc at Beach House Message-Id: <200412041804.iB4I4BjY015257@himinbjorg.tucs-beachin-obx-house.com> To: pav@FreeBSD.org Date: Sat, 4 Dec 2004 13:04:10 -0500 (EST) In-Reply-To: <1102183062.30304.13.camel@hood.oook.cz> from "Pav Lucistnik" at Dec 04, 2004 06:57:42 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-bluetooth@FreeBSD.org cc: Tuc at Beach House Subject: Re: sdpcontrol issues (LONG) 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: Sat, 04 Dec 2004 18:04:12 -0000 > Yes, sdpcontrol, typo. I was copying it from Handbook, by hand. > Ok, great. > > > The document mentions the use of "sdpcontrol -l browse", and "-l" > > is an invalid option. Is my sdpcontrol a wrong version that it does not have > > this option? > > You may want to upgrade your system to FreeBSD 5.3, which have these > utilities. I think 5.2.1 does not yet have them. > Oh. :-/ Ok. Didn't want to go to 5.3 because I heard alot of bad things about it....... > > PS please don't take this conversation offlist, others may be interested > too. > Um, not sure why your saying this. I've cc'd the list both times. In elm I see : T)o: pav@FreeBSD.org C)c: tuc@ttsg.com (Tuc at Beach House), freebsd-bluetooth@FreeBSD.org Is there a mistype somewhere? Thanks, Tuc From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 19:04: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 99B8416A4CE for ; Sat, 4 Dec 2004 19:04:23 +0000 (GMT) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00FD043D60 for ; Sat, 4 Dec 2004 19:04:23 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [24.52.242.150]) by mta10.adelphia.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20041204190422.NGST18426.mta10.adelphia.net@[192.168.1.254]>; Sat, 4 Dec 2004 14:04:22 -0500 Message-ID: <41B20A3D.4030008@savvis.net> Date: Sat, 04 Dec 2004 11:04:29 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tuc at Beach House References: <200412041706.iB4H6ME2013457@himinbjorg.tucs-beachin-obx-house.com> In-Reply-To: <200412041706.iB4H6ME2013457@himinbjorg.tucs-beachin-obx-house.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-bluetooth@freebsd.org Subject: Re: sdpcontrol issues (LONG) 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: Sat, 04 Dec 2004 19:04:23 -0000 Hello, > FreeBSD himinbjorg.tucs-beachin-obx-house.com 5.2.1-RELEASE FreeBSD > 5.2.1-RELEASE #7: Tue Oct 12 15:07:09 EDT 2004 > root@himinbjorg.tucs-beachin-obx-house.com:/usr/obj/usr/src/sys/HIMINBJORG > i386 bluetooth in 5.2.1 is not very user frilendly. please upgrade your system to 5.3 or 5-stable. [snip - all output looks good to me] > So I went on to hccontrol -n ubt0hci read_connection_list , which > came up empty. I'm not sure that this should really show anything. it will if you have open baseband connection. please note that stack will shutdown inactive baseband connections after few seconds of inactivity. > So I skipped down to the l2ping -a > TucTreo650.tucs-beachin-obx-house.com and all of a sudden on the Treo > I get some tones and it tells me a connection is in progress. The > results of the ping are : > > 20 bytes from 00:07:e0:02:16:16 seq_no=0 time=2081.812 ms result=0 20 > bytes from 00:07:e0:02:16:16 seq_no=1 time=31.914 ms result=0 20 > bytes from 00:07:e0:02:16:16 seq_no=2 time=45.864 ms result=0 20 > bytes from 00:07:e0:02:16:16 seq_no=3 time=27.612 ms result=0 20 > bytes from 00:07:e0:02:16:16 seq_no=4 time=30.311 ms result=0 20 > bytes from 00:07:e0:02:16:16 seq_no=5 time=33.280 ms result=0 > > (The treo had timed out so the first one I had to turn it back on.) > Just for giggles, I went back to the hccontrol -n ubt0hci > read_connection_list and saw : > > Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State > TucTreo650.tucs-b 41 ACL 0 MAST NONE 0 0 OPEN > > So it looks pretty good. yep, that is exactly what it should look like. l2ping will open baseband connection for you. if you stop l2ping and wait few seconds then baseband connection will be terminated due to inactivity. > I try the l2control -a himinbjorg.tucs-beachin-obx-house.com > read_channel_list (I already put my BD_ADDR in the > /etc/bluetooth/hosts as : 00:11:95:00:39:15 > himinbjorg.tucs-beachin-obx-house.com ) > > And it comes up empty. So does the read_connection_list, unless I do > the l2ping and quickly go back. Then I get : > > L2CAP connections: Remote BD_ADDR Handle Flags Pending State > TucTreo650.tucs-b 42 O D 0 OPEN that is fine to. read_connection_list command in both l2control and hcicontrol should have similar output. if they do then everything is fine - hci and l2cap have consistent information. if they dont then something is bad. > I go on to a btsockstat, and get : > > Active raw HCI sockets Socket PCB Flags Recv-Q Send-Q Local > address c891c960 c7f01280 000002 0 0 * thats fine too. you do not have yet open any _logical_ connections on top of baseband connections, i.e. you do not have l2cap or rfcomm channels open. > So now I skip down to section 24.4.6 . > > My first question is how should I be starting hcsecd on a regular > basis? I don't see anything in the /etc/rc.bluetooth to do it. So in > the /etc/bluetooth/hcsecd.conf I put : > > device { bdaddr 00:07:e0:02:16:16; name "palmOne Device"; key > nokey; pin "1234"; } > > and after realizing the default file has some sort of error on line > 44, I have to comment it out : > > #device { # bdaddr 00:1:2:3:4:5; # name "Dummy"; # > key nokey; # pin "0000"; #} > > I run it, and tell the Palm to trust my laptop. The debug is : > > hcsecd[12989]: Got PIN_Code_Request event from 'ubt0hci', remote > bdaddr 00:07:e0:02:16:16 hcsecd[12989]: Found matching entry, remote > bdaddr 00:07:e0:02:16:16, name 'palmOne Device', PIN code exists > hcsecd[12989]: Sending PIN_Code_Reply to 'ubt0hci' for remote bdaddr > 00:07:e0:02:16:16 hcsecd[12989]: Got Link_Key_Notification event from > 'ubt0hci', remote bdaddr 00:07:e0:02:16:16 yes, thats looks good to me. i will verify the default (example) section in /etc/bluetooth/hcsecd.conf. > I move on to the next section, and this is where things start to go > bad. > > I do a sdpcontrol -a TucTreo650.tucs-beachin-obx-house.com browse and > I get: > > Could not execute command "browse". Input/output error > > I did a search of all the options, each come up as Input/output > error. well, i will double check, but i think thats because of endianess bug in sdpcontrol. it was fixed later. > I then try to start sdpd, and it doesn't exist. sdpd was not included in 5.2.1. you _do_not_ need to run sdpd unless you want to provide bluetooth services to remote clients, i.e. act as a server > I drop down to sdpcontrol -l browse and I get it as an illegal > option. '-l' option appeared later when sdpd was added. it means browse _local_ sdpd database. again you _do_not_ need this unless host provides bluetoth services. i'd strongly recommend to upgrade the system to 5.3 or 5-stable. you could so source upgreade (cvsup/buildworld) if you have time. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 19:38:37 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 0E70E16A4CE for ; Sat, 4 Dec 2004 19:38:37 +0000 (GMT) Received: from hood.oook.cz (hood.oook.cz [212.27.205.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B25F43D5D for ; Sat, 4 Dec 2004 19:38:36 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from hood.oook.cz (localhost.oook.cz [127.0.0.1]) by hood.oook.cz (8.13.1/8.13.1) with ESMTP id iB4JcZFu040015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Dec 2004 20:38:35 +0100 (CET) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by hood.oook.cz (8.13.1/8.13.1/Submit) id iB4JcYpE040014; Sat, 4 Dec 2004 20:38:34 +0100 (CET) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: hood.oook.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Tuc at Beach House In-Reply-To: <200412041804.iB4I4BjY015257@himinbjorg.tucs-beachin-obx-house.com> References: <200412041804.iB4I4BjY015257@himinbjorg.tucs-beachin-obx-house.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-O52z3ZdlaQDT/voYaB9q" Date: Sat, 04 Dec 2004 20:38:34 +0100 Message-Id: <1102189114.39934.2.camel@hood.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port cc: freebsd-bluetooth@FreeBSD.org cc: Tuc at Beach House Subject: Re: sdpcontrol issues (LONG) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 19:38:37 -0000 --=-O52z3ZdlaQDT/voYaB9q Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Tuc at Beach House p=ED=B9e v so 04. 12. 2004 v 13:04 -0500: > > PS please don't take this conversation offlist, others may be intereste= d > > too. > >=20 > Um, not sure why your saying this. I've cc'd the list both times. > In elm I see : >=20 > T)o: pav@FreeBSD.org >=20 >=20 > C)c: tuc@ttsg.com (Tuc at Beach House), freebsd-bluetooth@FreeBSD.org Sorry, you're right. Missed it first time and noticed after when I sent my reply. --=20 Pav Lucistnik ... the obese drugged penguin used by Linux. -- Scott Long --=-O52z3ZdlaQDT/voYaB9q Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBshI6ntdYP8FOsoIRAtTxAJ9NVb9z92Wa1SVpUSpBdUCnCdZdGQCgqaMY QREto+sZP9dPMK8RfGjZROk= =LS4t -----END PGP SIGNATURE----- --=-O52z3ZdlaQDT/voYaB9q-- From owner-freebsd-bluetooth@FreeBSD.ORG Sat Dec 4 21:59:48 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 E912216A4CE for ; Sat, 4 Dec 2004 21:59:48 +0000 (GMT) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 650EF43D31 for ; Sat, 4 Dec 2004 21:59:48 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [24.52.242.150]) by mta9.adelphia.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20041204215947.IGOD14438.mta9.adelphia.net@[192.168.1.254]>; Sat, 4 Dec 2004 16:59:47 -0500 Message-ID: <41B23359.8010907@savvis.net> Date: Sat, 04 Dec 2004 13:59:53 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tuc at Beach House References: <200412041706.iB4H6ME2013457@himinbjorg.tucs-beachin-obx-house.com> <41B20A3D.4030008@savvis.net> In-Reply-To: <41B20A3D.4030008@savvis.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-bluetooth@freebsd.org Subject: Re: sdpcontrol issues (LONG) 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: Sat, 04 Dec 2004 21:59:49 -0000 [...] >> I do a sdpcontrol -a TucTreo650.tucs-beachin-obx-house.com browse and >> I get: >> >> Could not execute command "browse". Input/output error >> >> I did a search of all the options, each come up as Input/output >> error. > > well, i will double check, but i think thats because of endianess bug in > sdpcontrol. it was fixed later. actually, i was wrong. sdpcontrol and libsdp did not change that much, so it should have worked. could you please get hcidump from http://geocities.com/m_evmenkin/hcidump-1.5.tar.gz compile and install it. then as root run # hcidump -w sdp.dump (this will block) and then in another window try to run % sdpcontrol -a treo_bd_addr browse % sdpcontrol -a treo_bd_addr search then hit ^C and terminate hcidump and send me the sdp.dump file. max