Re: [Bluez-users] Apple bluetooth mouse
Hi Elimar,
> > T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
> > D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> > P: Vendor=05ac ProdID=1000 Rev= 9.01
> > C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=100mA
> > I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=hid
> > E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
> > I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=hid
> > E: Ad=82(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
> >
> > this looks like a Bluetooth HID proxy device from CSR. You can use the
> > hid2hci program to switch it into HCI mode. However it seems that Apple
> > is using its own vendor id, so you must change this in the source code.
>
> Where in the source code? This should be a useful info for Benjamin
> Herrenschmidt as well.
>
> I found hid2hci In the CVS sourcecode from bluez-utils2.
> hid2hci -(0|1) gives me
> No devices in H(CI|DI) mode found ;-(
you have to change the vendor id. The hid2hci.c source is not very
complex and I thought it is easy to see where to change the vendor id.
However the attached patch changes it for you. If it works I will write
a version of hid2hci that will also find the Apple dongle.
Regards
Marcel
diff -urN utils2/hid/hid2hci.c utils2-mh/hid/hid2hci.c
--- utils2/hid/hid2hci.c 2003-12-05 12:10:28.000000000 +0100
+++ utils2-mh/hid/hid2hci.c 2003-12-31 08:59:17.000000000 +0100
@@ -249,11 +249,11 @@
switch (mode) {
default:
case 0:
- vendor = 0x0a12;
+ vendor = 0x05ac;
product = 0x1000;
break;
case 1:
- vendor = 0x0a12;
+ vendor = 0x05ac;
product = 0x0001;
break;
}
Reply to: