* [Bluez-users] hid2usb error
@ 2004-02-19 16:00 Alexandre Ghisoli
2004-02-19 18:33 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Alexandre Ghisoli @ 2004-02-19 16:00 UTC (permalink / raw)
To: bluez-users
Hi there,
I've the Logitech diNovo Bluetooth kit, and try to use it as BT device.
So, i've bluez-libs2 & bluez-utils2 to use the hid2hci tool to pass my
Logitech USB HUB to an Bluetooth HUB.
Kernel 2.6.2-mh
hid module loaded.
Running the hid2usb give :
Invalid argument ...
After some investigations, it appear that the following line return the
error (around line 240) :
err = send_report(fd, rep1, sizeof(rep1))
at the 2nd byte send (0xff 0x80)
Anyone can help me, plz ?
Regards
--Alexandre
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] hid2usb error
2004-02-19 16:00 [Bluez-users] hid2usb error Alexandre Ghisoli
@ 2004-02-19 18:33 ` Marcel Holtmann
2004-02-19 18:49 ` Alexandre Ghisoli
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2004-02-19 18:33 UTC (permalink / raw)
To: Alexandre Ghisoli; +Cc: BlueZ Mailing List
Hi Alexandre,
> I've the Logitech diNovo Bluetooth kit, and try to use it as BT device.
> So, i've bluez-libs2 & bluez-utils2 to use the hid2hci tool to pass my
> Logitech USB HUB to an Bluetooth HUB.
>
> Kernel 2.6.2-mh
> hid module loaded.
>
> Running the hid2usb give :
> Invalid argument ...
>
> After some investigations, it appear that the following line return the
> error (around line 240) :
>
> err = send_report(fd, rep1, sizeof(rep1))
>
> at the 2nd byte send (0xff 0x80)
you need a patch for the USB HID driver to send multiple bytes. I think
it is not included so far. Must be pending in Greg's list.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] hid2usb error
2004-02-19 18:33 ` Marcel Holtmann
@ 2004-02-19 18:49 ` Alexandre Ghisoli
2004-02-19 18:58 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Alexandre Ghisoli @ 2004-02-19 18:49 UTC (permalink / raw)
To: bluez-users; +Cc: Marcel Holtmann
Hi Marcel,
Can I find this patch somewhere ?
Thanks for your time
..Alexandre
Le jeu 19/02/2004 à 19:33, Marcel Holtmann a écrit :
> Hi Alexandre,
>
> > I've the Logitech diNovo Bluetooth kit, and try to use it as BT device.
> > So, i've bluez-libs2 & bluez-utils2 to use the hid2hci tool to pass my
> > Logitech USB HUB to an Bluetooth HUB.
> >
> > Kernel 2.6.2-mh
> > hid module loaded.
> >
> > Running the hid2usb give :
> > Invalid argument ...
> >
> > After some investigations, it appear that the following line return the
> > error (around line 240) :
> >
> > err = send_report(fd, rep1, sizeof(rep1))
> >
> > at the 2nd byte send (0xff 0x80)
>
> you need a patch for the USB HID driver to send multiple bytes. I think
> it is not included so far. Must be pending in Greg's list.
>
> Regards
>
> Marcel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] hid2usb error
2004-02-19 18:49 ` Alexandre Ghisoli
@ 2004-02-19 18:58 ` Marcel Holtmann
2004-02-19 19:58 ` Alexandre Ghisoli
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2004-02-19 18:58 UTC (permalink / raw)
To: Alexandre Ghisoli; +Cc: BlueZ Mailing List
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
Hi Alexandre,
> Can I find this patch somewhere ?
in the Linux USB development mailing list archive. I searched for you
and attached it.
Regards
Marcel
[-- Attachment #2: hid-core.diff --]
[-- Type: text/x-patch, Size: 986 bytes --]
--- linux-2.6.1-orig/drivers/usb/input/hid-core.c 2004-01-08 22:59:44.000000000 -0800
+++ linux-2.6.1/drivers/usb/input/hid-core.c 2004-01-21 15:15:35.000000000 -0800
@@ -224,6 +224,9 @@
offset = report->size;
report->size += parser->global.report_size * parser->global.report_count;
+ if (usages < parser->global.report_count)
+ usages = parser->global.report_count;
+
if (usages == 0)
return 0; /* ignore padding fields */
@@ -235,9 +238,13 @@
field->application = hid_lookup_collection(parser, HID_COLLECTION_APPLICATION);
for (i = 0; i < usages; i++) {
- field->usage[i].hid = parser->local.usage[i];
+ int j = i;
+ /* Duplicate the last usage we parsed if we have excess values */
+ if (i >= parser->local.usage_index)
+ j = parser->local.usage_index - 1;
+ field->usage[i].hid = parser->local.usage[j];
field->usage[i].collection_index =
- parser->local.collection_index[i];
+ parser->local.collection_index[j];
}
field->maxusage = usages;
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [Bluez-users] hid2usb error
2004-02-19 18:58 ` Marcel Holtmann
@ 2004-02-19 19:58 ` Alexandre Ghisoli
0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Ghisoli @ 2004-02-19 19:58 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: BlueZ Mailing List
Hum,
Many thanks, it's working now !!
Regards
--Alexandre
Le jeu 19/02/2004 à 19:58, Marcel Holtmann a écrit :
> Hi Alexandre,
>
> > Can I find this patch somewhere ?
>
> in the Linux USB development mailing list archive. I searched for you
> and attached it.
>
> Regards
>
> Marcel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-02-19 19:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-19 16:00 [Bluez-users] hid2usb error Alexandre Ghisoli
2004-02-19 18:33 ` Marcel Holtmann
2004-02-19 18:49 ` Alexandre Ghisoli
2004-02-19 18:58 ` Marcel Holtmann
2004-02-19 19:58 ` Alexandre Ghisoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox