Hi ,
I have bought a MCB23xx development kit. We have to make a application on a windows XP machine which is going to talk to the MCB23xx board via the USB interface of the PC.
I have already configured the MCB23xx board to be a Human Interface Devices (HID) USB class type by downloading the HID example code firmware using a keil ulink2 debugger.
The code was picked up from the keil site and also i have tried and used successfully the HID client example code which is VC++ based for toggling few LED's on the board and sensing the keyboard interrupt.
My task is that i have to make a new vc++ based application which is going to have a edit box and when we type some thing in this box and when we click a send button on this GUI the typed string should go to the MCB23xx board and then appear on the LCD display present on the board.
Here are the few questions: 1)Has anyone used/worked on HID client (Host Side (PC) side) vc++ application. 2) Can i send the a string if i configure the evaluation board to be HID class type? 3)Can anyone provide me a documentation for the HID (VC++) based client application present on the keil site? 4) Also a documentation of the HID example code present on keil site would be very helpful, Has anyone used this code (Board side) for their custom application?
I will be grateful if someone answers my queries.
Thanks in advance, Amit
You are expecting too much from KEIL, if you think they should provide the details of PC programming. KEIL provide development tools for MCUs, not for PC solution.
Buy this Axelson's book. This book explains the HID spec and Windows programming in details. "USB Complete: Third Edition" by Jan Axelson http://www.lvr.com/usbc.htm
Also, you'll find this VC6 example and other examples on the Axelson's HID page ( http://www.lvr.com/hidpage.htm ) Usbhidio_vc6 www.lvr.com/.../usbhidio_vc6.zip
To use the HID-APIs on Windows, you need HID headers from Windows DDK.
For VC2005 or VC2003 "DDK - Windows Driver Development Kit" from MS WHDC www.microsoft.com/.../default.mspx Find "Download the Windows Server 2003 SP1 DDK [236 MB ISO file]" link
For VC6, Recent WinDDK has introduced many change all over to the essential header files, like WinBase.h, from the VC6 days. These changes introduce many conflicts to the original VC6 headers. Then, the header files from the old WinDDK in the VC6 age fit to the project on VC6. You'll find excerpts for HID headers from Win2000 DDK on the Intel Press site. www.intel.com/.../FromDDK.htm
The exe made by VC6 using this header should be compatible to WinXP.
[References] "Operating HID Collections" on MSDN msdn2.microsoft.com/.../ms789924.aspx
"Universal Serial Bus Revision 2.0 specification (9.73 MB)" on USB.org www.usb.org/.../usb_20_092407.zip
"Device Class Definition for HID 1.11" on USB.org www.usb.org/.../HID1_11.pdf
Tsuneo
Hi Tsuneo ,
Thanks for a quick reply. It looks like you have worked on the USB interface (more on the HID front). Could you please provide me your mail ID you use frequently so that i could contact you if in need.
Have worked anytime on the firmware code of HID for LPC2378 or LPC2888 .
Regards Amit