Hi,
I have worked with NXP USB host lite example and successful tested it for my USB stick ,now i want to change the code for HID class as it is mean for Mass storage Class only . By studying i come to know that i have to do two things 1.Change the BULK descriptor to INTERRUPT for HID 2.Support for Report parsing
but i do not know how to do these? any body done this please guide me how to do this ,i am targeting the LPC1754 from NXP
2.Support for Report parsing
A couple of reference source code of HID report parser
Linux hiddev: drivers/hid/hid-core.c hid_parse_report() lxr.free-electrons.com/.../hid-core.c
Linux libhid: hidparser.c HIDParse() libhid.alioth.debian.org/.../hidparser_8c.html
MacOSX HIDParseDescriptor.c HIDParseDescriptor() www.opensource.apple.com/.../
Microchip Application Library " href= "www.fourwalledcubicle.com/LUFA.php">www.fourwalledcubicle.com/LUFA.php USB_ProcessHIDReport() www.fourwalledcubicle.com/.../a00245.html
etc.
Tsuneo
Ah, I remember.
When the target is a keyboard which supports boot protocol (confirmed in its interface descriptor), Send Set_Protocol( Boot_protocol ) request to the keyboard. And then, the keyboard returns input reports in Standard keyboard report format. You don't need to read out / parse its report descriptor.
USB host stack on TI StellarisWare supports keyboard and mouse in this way. Maybe, they would like to escape from the trouble of parser implementation :-)
> 1.Change the BULK descriptor to INTERRUPT
Visit to this post http://www.keil.com/forum/17034/ Posted 14-Jun-2010 09:01 GMT
Its really thank of you Tsuneo in advance ,i am looking into all the information that you have provided and hopefully will do it and if stuck some where then will ask you.Thank you again for your precious time.
regards YASIR
Hello everyone,
I wanted to do something similar, modify NXP Host Lite for typical USB mouse support. But unfortunately I have a problem during very early stage, when Host sends SETUP Packet, mouse does not respond. The variable HOST_TDControlStatus at the end of Host_ProcessTD function has value 5 which corresponding DeviceNotResponding Condition Code I suppose.
As well as I connect massive storage device, the variable has NOERROR code. Should I do something more for mouse support?
English is not my native language, so forgive me for any grammar mistakes :)
Regards Adam