From owner-freebsd-bluetooth@FreeBSD.ORG Fri Sep 3 22:56:30 2010 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68DF8106564A for ; Fri, 3 Sep 2010 22:56:30 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id F35EB8FC13 for ; Fri, 3 Sep 2010 22:56:29 +0000 (UTC) Received: by wyb33 with SMTP id 33so2573414wyb.13 for ; Fri, 03 Sep 2010 15:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=2fr2MROphl+m1UBdDbB34CAIqOB4X9zZksPQ18QHnHw=; b=YD1v2PPC7QBqB/ojopp0HJXLCTBKlU9q5v883So0nWXVjR/VnR7UzhpbR5YK8Y4Ebn 5dICZ/Ry6oG39uuxmMejRjTAuVc/sdkdz0SdywBM1C6vlnyV3vfcl+oMuL8Q/7kk27fc ZH7gu5iewYZCijzhcojcU6N/LmHS9/dOMxUKM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eLXgdxuJt+1QpMvr1d85TuhV4Igi4y+2nm2draUijrP/0y7nYU0NNUIJR6jeQn+/s9 7O5e6uQDBFZfB4GV1w4OozB6fseOtn5bT1qH0oVT2+PsvSvuV1eNRHagj1eBI27Acdbh Rv82xb62HeI9lE/UHd09agXpBHQs7lMNShwVQ= MIME-Version: 1.0 Received: by 10.216.162.72 with SMTP id x50mr45062wek.3.1283554205339; Fri, 03 Sep 2010 15:50:05 -0700 (PDT) Received: by 10.216.27.204 with HTTP; Fri, 3 Sep 2010 15:50:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Sep 2010 15:50:05 -0700 Message-ID: From: Maksim Yevmenkin To: Buganini Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Non-standard bluetooth mouse? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 22:56:30 -0000 On Fri, Sep 3, 2010 at 2:03 PM, Buganini wrote: > I got a bluetooth mouse > (http://www.ectrade.com/Auction/FreeSample/1927412228/new-wireless-bluetooth-mouse-CH-25.html) > , but I couldn't get it work: > [code] > #bthidcontrol -a btmouse Query > Could not perform SDP query on the device 00:11:67:fa:1f:89. Attribute > not found (87) > [/code] > > I added some printf in /usr/src/usr.sbin/bluetooth/bthidcontrol/sdp.c > to see what's returned by the mouse: > [code] > nvalues: 8 > 0 Get control_psm > 1 Get interrupt_psm > 2 Get battery_power > 3 Get normally_connectable > 4 Not OK > 5 Not OK > 6 Not OK > 7 Not OK > control_psm: 17 > interrupt_psm: 1 > reconnect_initiate: -1 > normally_connectable: 0 > hid_descriptor: 0x0 > hid_descriptor_length: -1 > [/code] > my mouse returned only 4 attributes. > > But it works on windows xp without any driver. > > Is this problem in mouse or in freebsd driver? > Or it is just because this mouse is not following standard? if i'm reading bluetooth hid specification correctly, both sdp attribute 0x0205 (HIDReconnectInitiate) and sdp attribute 0x0206 (HIDDescriptorList) are mandatory. according to the output you have provided, both mandatory attributes are missing. as far as i can tell there could be 2 options here 1) those attributes are really missing 2) we are failing to retrieve them correctly there is not much we can do about (1) unless we obtain hid descriptor in some other way. can you please install hcidump utility from ports and send me a binary trace? thanks max