Non-standard bluetooth mouse?

Maksim Yevmenkin maksim.yevmenkin at gmail.com
Fri Sep 3 22:56:30 UTC 2010


On Fri, Sep 3, 2010 at 2:03 PM, Buganini <buganini at 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


More information about the freebsd-bluetooth mailing list