From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 7 20:39: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 0958016A4CE for ; Tue, 7 Dec 2004 20:39:48 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83CC743D4C for ; Tue, 7 Dec 2004 20:39:47 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45])iB7KdTkV001228; Tue, 7 Dec 2004 14:39:29 -0600 Received: from s228130hz1ew17.apptix-01.savvis.net ([10.146.4.29]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 7 Dec 2004 14:39:27 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew17.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 7 Dec 2004 14:39:18 -0600 Message-ID: <41B614F4.4070009@savvis.net> Date: Tue, 07 Dec 2004 12:39:16 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tuc at Beach House References: <200412070048.iB70m6WY020523@himinbjorg.tucs-beachin-obx-house.com> In-Reply-To: <200412070048.iB70m6WY020523@himinbjorg.tucs-beachin-obx-house.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Dec 2004 20:39:18.0325 (UTC) FILETIME=[D2D2B650:01C4DC9C] X-ECS-MailScanner: No virus is found 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: Tue, 07 Dec 2004 20:39:48 -0000 Tuc at Beach House wrote: >>> I had to configure pppd and rfcomm_pppd and a few other things, and >>>its been running all day. >> >>ah, ok. so, you are saying treo *can* connect to your laptop via >>bluetooth and you can browse on treo? or you can connect windows box to >>your laptop via bluetooth and can browse on windows? > > Treo is using DUN on FreeBSD for its connectivity. FreeBSD > can see all services Windows offers. Windows can see DUN on FreeBSD. > Otherwise, the only thing I *CANT* do so far is find any services on the > Treo. ok. i think i have an idea why it does not work. a colleague of mine has audiovox smartphone (running windows-something) but it gives similar error on sdp requests. apparently sdp server chokes when attribute range has exactly one attribute, i.e. range specified as 0x0004 - 0x0004, meaning return only attribute id 0x0004. could you please try the following: 1) edit /usr/src/usr.sbin/bluetooth/sdpcontrol/search.c file and replace the following lines 39: /* List of the attributes we are looking for */ 40: static u_int32_t attrs[] = 41: { 42: SDP_ATTR_RANGE( SDP_ATTR_SERVICE_RECORD_HANDLE, 43: SDP_ATTR_SERVICE_RECORD_HANDLE), 44: SDP_ATTR_RANGE( SDP_ATTR_SERVICE_CLASS_ID_LIST, 45: SDP_ATTR_SERVICE_CLASS_ID_LIST), 46: SDP_ATTR_RANGE( SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST, 47: SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST), 48: SDP_ATTR_RANGE( SDP_ATTR_BLUETOOTH_PROFILE_DESCRIPTOR_LIST, 49: SDP_ATTR_BLUETOOTH_PROFILE_DESCRIPTOR_LIST) 50: }; with /* List of the attributes we are looking for */ static uint32_t attrs[] = { SDP_ATTR_RANGE( 0, 1 ), SDP_ATTR_RANGE( 3, 4 ), SDP_ATTR_RANGE( 8, 9 ), /* SDP_ATTR_RANGE( SDP_ATTR_SERVICE_RECORD_HANDLE, SDP_ATTR_SERVICE_RECORD_HANDLE), SDP_ATTR_RANGE( SDP_ATTR_SERVICE_CLASS_ID_LIST, SDP_ATTR_SERVICE_CLASS_ID_LIST), SDP_ATTR_RANGE( SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST, SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST), SDP_ATTR_RANGE( SDP_ATTR_BLUETOOTH_PROFILE_DESCRIPTOR_LIST, SDP_ATTR_BLUETOOTH_PROFILE_DESCRIPTOR_LIST) */ }; 2) re-compile sdpcontrol(8) 3) try to search for the services again. thanks, max