View previous topic :: View next topic |
Author |
Message |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
[OT] PC software that would listen to my own USB HID device |
Posted: Sun Dec 12, 2010 4:23 am |
|
|
Colleagues,
Is there a clean way of making a PC program listen to a PIC18F2550-based HID device The PIC only needs to send status of one (1) switch. My first thought was to use a hot key approach, but the regular keyboard should continue to work like a regular keyboard. This could be wishful thinking, but I think that it would be cleaner if my device were neither a keyboard nor a mouse. What would be a good approach to software on the PC side If it's possible at all, it should be possible to do with C++. Do you think it's possible with C# and .NET too
Any suggestion, insight, reference is appreciated!
(Already reading USB Complete.)
- Nick _________________ Read the label, before opening a can of worms. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Sun Dec 12, 2010 5:21 am |
|
|
Your original approach is fine.
Try a simple experiment. Take a second USB keyboard and attach it to your computer. You will find you can type on either keyboard, and the PC accepts it. I quite commonly have two keyboards, and three mice on a single machine!. (actually a touch screen, separate mouse, and a digitiser tablet, together with a normal keyboard, and a separate control pad).
The 'hot key' approach, would be just like the control pad I have.
Best Wishes |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Sun Dec 12, 2010 10:52 am |
|
|
The CCS HID demo (Borland Delphi) or the Microchip HID demo (Microsoft C++) show, how it cab be easily done. |
|
|
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Tue Dec 14, 2010 12:58 pm |
|
|
FvM wrote: | [...] the Microchip HID demo (Microsoft C++) show, how it can be easily done. |
I've seen posts that talk about that demo (e.g. this one http://www.microchip.com/forums/tm.aspx?m=465892). But I can't seem to find neither a homepage of this demo nor the source code. Could anyone please point me to it? _________________ Read the label, before opening a can of worms. |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Tue Dec 14, 2010 1:35 pm |
|
|
It's contained in the "MCHPFSUSB Framework", downloadable from Microchip.com. |
|
|
|