Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2010 15:50:05 -0700
From:      Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
To:        Buganini <buganini@gmail.com>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: Non-standard bluetooth mouse?
Message-ID:  <AANLkTimQYHNLjp3C43pg6E4QN_bi%2BmOMWPEib7_yWZTG@mail.gmail.com>
In-Reply-To: <AANLkTik=Ew3vR3_SfoqD2UOZRHULzHh1CGq-Cc8TvikV@mail.gmail.com>
References:  <AANLkTik=Ew3vR3_SfoqD2UOZRHULzHh1CGq-Cc8TvikV@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 3, 2010 at 2:03 PM, Buganini <buganini@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimQYHNLjp3C43pg6E4QN_bi%2BmOMWPEib7_yWZTG>