CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

[OT] PC software that would listen to my own USB HID device

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

[OT] PC software that would listen to my own USB HID device
PostPosted: Sun Dec 12, 2010 4:23 am     Reply with quote

Colleagues,

Is there a clean way of making a PC program listen to a PIC18F2550-based HID device Question 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 Question 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 Question

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: 19366

View user's profile Send private message

PostPosted: Sun Dec 12, 2010 5:21 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Dec 12, 2010 10:52 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Tue Dec 14, 2010 12:58 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Dec 14, 2010 1:35 pm     Reply with quote

It's contained in the "MCHPFSUSB Framework", downloadable from Microchip.com.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group