Apple Magic Mouse
Iain Hibbert
plunky at ogmig.net
Mon Sep 14 17:09:30 UTC 2015
On Mon, 14 Sep 2015, Dirk Engling wrote:
> On 12.09.15 19:53, Maksim Yevmenkin wrote:
>
> > i think it should be possible to teach bthidd to make another sdp
> > request to pull device id sdp record (if available). if apple mouse
> > answers it then it should very easy to identify it and enable all the
> > features.
>
> Apples magic mouse indeed answers the SDP request for its Device ID
> Service Record.
>
> Find attached a first patch that adds a vendor, product and version
> member in the bthid_session object that is filled after both connections
> for the session were attached.
>
> This is done in a new function session_get_devid that issues and handles
> the SDP requests.
>
> There's also a new hid_initialise function, that gets a chance to take a
> look at those new members and initialise devices based on those information.
My advice is, to put that code in bthidcontrol, which already queries the
device, and add product-id and vendor-id fields to the bthidd.conf file.
that then solves your issue about the libsdp blocking read/write calls,
since it knows the information before it starts.
iain
More information about the freebsd-bluetooth
mailing list