usb keyboard descriptor

General discussion on mikroC.
Post Reply
Author
Message
sreeja
Posts: 6
Joined: 02 Jul 2008 07:26

usb keyboard descriptor

#1 Post by sreeja » 02 Jul 2008 08:31

hello friends

my intension is to develope a usb keyboard.for this i used pic 18f4550 and microc.i used microc 's hid library for basic usb communication and it was success my systems(win xp) detect my usb and i viewed chars in hid terminal of microc that i send from my pic.but when i started to implement this as a keybord i realised that i have to change the discriptor file usbdsc in the library.i started searching ,i got lot of files but all are not compatible for microc.so i changed some fields of the existing usbdsc file but my system is not taking my hardware as keyboard.if anybody have such discriptor file of keyboard compatible to microc ,please give it to me
i need ur valuable help

amrbekhit
Posts: 95
Joined: 05 Jul 2007 12:55
Contact:

#2 Post by amrbekhit » 03 Jul 2008 19:46

Hi Sreeja,

Have a look at this article on my website http://www.helmpcb.com/Electronics/USBJ ... stick.aspx. In it I describe how to modify the mikroC USB descriptor to work as a USB joystick.

In the article I talk about the HID Tool, which you can download from the USB Implementers Forum (http://www.usb.org/developers/hidpage/). The HID tool contains an example descriptor for a USB keyboard. All you need to do is take that descriptor and follow the steps I outline in the article to get it to work with mikroC.

The final thing you'll need to research is how the data is formatted before being sent to the PC.

Good luck!

--Amr
[url=http://www.mikroe.com/forum/viewtopic.php?p=69489]mikroC USB Joystick[/url]
[url=http://helmpcb.com/software/usb-hid-template-for-visual-basic-2005]USB HID Template for Visual Basic 2005/2008/2010[/url]
[url=http://www.mikroe.com/forum/viewtopic.php?p=55958]Storing floats and other objects in EEPROM[/url]

tarakan
Posts: 95
Joined: 25 Jun 2011 23:35

Re: usb keyboard descriptor

#3 Post by tarakan » 13 Sep 2011 13:58

This is a problem I am working on as well. The usb keyboard.
How does the "parse" command work on this USB HID tool that usb.org provides for developement?
How do I convert the code generated into something that mikroC would understand.

Unfortunately your website, Amrbekhit, is not visible to me. I wish that I could see how you have done it.

amrbekhit
Posts: 95
Joined: 05 Jul 2007 12:55
Contact:

Re: usb keyboard descriptor

#4 Post by amrbekhit » 13 Sep 2011 14:10

Hi tarakan,

I've just tried viewing my site at using Google Chrome and for some reason it doesn't load, but Firefox, Internet explorer and my phone load the site just fine. I'm not sure what's going on there, but the site is still up, so keep trying!

Amr
[url=http://www.mikroe.com/forum/viewtopic.php?p=69489]mikroC USB Joystick[/url]
[url=http://helmpcb.com/software/usb-hid-template-for-visual-basic-2005]USB HID Template for Visual Basic 2005/2008/2010[/url]
[url=http://www.mikroe.com/forum/viewtopic.php?p=55958]Storing floats and other objects in EEPROM[/url]

tarakan
Posts: 95
Joined: 25 Jun 2011 23:35

Re: usb keyboard descriptor

#5 Post by tarakan » 14 Sep 2011 14:28

Dear Amr, I opened your website with I. Explorer.
So what meaning does "report size" have?

How do I make a use of the hid descriptor within my program?
Definit.h somewhat repeats the USBdsc.c .
Was one generated off the other?

Thank you.

Post Reply

Return to “mikroC General”