From: Marcel Holtmann <marcel@holtmann.org>
To: Elimar Riesebieter <riesebie@lxtec.de>
Cc: BlueZ Mailing List <bluez-users@lists.sourceforge.net>,
debian-powerpc <debian-powerpc@lists.debian.org>
Subject: Re: [Bluez-users] Apple bluetooth mouse
Date: Wed, 31 Dec 2003 09:04:30 +0100 [thread overview]
Message-ID: <1072857870.26925.3.camel@pegasus> (raw)
In-Reply-To: <20031230221526.GD946@samweis.home.lxtec.de>
[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]
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
[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 401 bytes --]
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;
}
prev parent reply other threads:[~2003-12-31 8:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20031228012502.GA16798@samweis.home.lxtec.de>
[not found] ` <20031228170349.GA1460@samweis.home.lxtec.de>
[not found] ` <m3fzf47oa3.fsf@neo.loria>
2003-12-30 18:24 ` [Bluez-users] Re: Apple bluetooth mouse Elimar Riesebieter
2003-12-30 19:49 ` Marcel Holtmann
[not found] ` <20031229175358.GA801@samweis.home.lxtec.de>
2003-12-30 20:59 ` [Bluez-users] " Elimar Riesebieter
2003-12-30 21:06 ` Marcel Holtmann
2003-12-30 22:15 ` Elimar Riesebieter
2003-12-31 8:04 ` Marcel Holtmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1072857870.26925.3.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-users@lists.sourceforge.net \
--cc=debian-powerpc@lists.debian.org \
--cc=riesebie@lxtec.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox