Problem Changing Report Descriptor

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
H&Mcorp
Posts: 2
Joined: Mon Jul 23, 2007 9:15 am

Problem Changing Report Descriptor

Post by H&Mcorp » Mon Jul 23, 2007 9:48 am

I try to change some descrptor value in HIDkeys firmware ,
when we change some descriptor values like logical_maximum the device can not connect to pc . the message is " Device Can't start (code 10 ) "

we are using HID descriptor tool from USB.org to make Descriptor values.

Is there anywhere else to change when we change the report Descriptors ?
except reportBuffer I think .

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Thu Jul 26, 2007 12:18 pm

Windows is very strict when it checks the consistency of report descriptors and whether the report complies to the descriptor. Usb.org's descriptor tool does not check the consistency of the descriptor at all. You can easily create descriptors which are rejected by Windows.

It's easiest to start with a descriptor which is known to work and modify it in small steps into the direction you want. This way you know WHICH modification caused the problems.

H&Mcorp
Posts: 2
Joined: Mon Jul 23, 2007 9:15 am

still have some problem

Post by H&Mcorp » Sun Jul 29, 2007 12:02 pm

thank you dear christian :

but our problem still remaining !

let me describe our problem :
we need to control windows media player with HID codes !
so , we need media play , pause , volume up & down ,.....
but no one of the HID codes from HID tables working properly !!!!!
in fact we can only see codes working from A to F24 from keyboard table !
that mean , we can only have correct codes from 4 to 115 from keyboard HID table , ( we used HIDKeys firmware for this porpuse )
we will thank you so much if you change codes for this purpose and send it to my email , because we try it so much but still no response from it , our mail address is : " haafpt@yahoo.com "

Thank you for your helps in advance .

best regards

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Mon Jul 30, 2007 4:19 pm

Have you checked whether Windows Media Player supports control through these keyboard extensions at all? These key codes may be filtered by the Windows kernel driver or they may be mapped to events which are ignored by Windows Media Player.

I have no experience with Windows myself, so I'm araid I can't help much more than that.

Darwin

Post by Darwin » Wed Aug 08, 2007 11:18 pm

I think you need to add second descriptor in order to control the volume as shown in microsoft website.
http://www.microsoft.com/whdc/device/input/w2kbd.mspx

Post Reply