From owner-freebsd-bluetooth@FreeBSD.ORG Thu Dec 9 17:26:35 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 325A716A4CE for ; Thu, 9 Dec 2004 17:26:35 +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 BE4C743D41 for ; Thu, 9 Dec 2004 17:26:34 +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)iB9HQY4J019778; Thu, 9 Dec 2004 12:26:34 -0500 (EST) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1])id iB9HQXeW013477; Thu, 9 Dec 2004 12:26:33 -0500 (EST) (envelope-from tuc@tucs-beachin-obx-house.com) Received: (from tucobx@localhost)iB9HQXsQ013476; Thu, 9 Dec 2004 12:26:33 -0500 (EST) (envelope-from tucobx) From: Tuc at Beach House Message-Id: <200412091726.iB9HQXsQ013476@himinbjorg.tucs-beachin-obx-house.com> To: maksim.yevmenkin@savvis.net (Maksim Yevmenkin) Date: Thu, 9 Dec 2004 12:26:33 -0500 (EST) In-Reply-To: <41B614F4.4070009@savvis.net> from "Maksim Yevmenkin" at Dec 07, 2004 12:39:16 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: Thu, 09 Dec 2004 17:26:35 -0000 > 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. > Same thing. himinbjorg# ls -l /usr/obj/usr/src/usr.sbin/bluetooth/sdpcontrol/sdpcontrol -rwxr-xr-x 1 root wheel 16826 Dec 9 12:21 /usr/obj/usr/src/usr.sbin/bluetooth/sdpcontrol/sdpcontrol himinbjorg# /usr/obj/usr/src/usr.sbin/bluetooth/sdpcontrol/sdpcontrol -a gjallar browse Could not execute command "browse". Input/output error himinbjorg# /usr/obj/usr/src/usr.sbin/bluetooth/sdpcontrol/sdpcontrol -a gjallar search OPUSH Could not execute command "search". Input/output error Thanks, Tuc