|
|
View previous topic :: View next topic |
Author |
Message |
subhan.mohammed
Joined: 21 Nov 2014 Posts: 8
|
USB HID IO + HID Keyboard |
Posted: Fri Nov 21, 2014 3:33 am |
|
|
Hi everyone,
I am developing a USB Composite device with HID Keyboard and HID mouse functionality using PIC18F4550.
The device works perfectly in one direction. That is, I can send data to PC. But I cannot receive any custom data from my PC Application to the device as Windows will hold the endpoints for HID keyboard and mouse.
To solve the above issue, I decided to add HID IO functionality to my device.
So, now my device contains three interfaces
1) HID Mouse
2) HID Keyboard
3) HID IO device
The code compiles without errors. But when I connect the device to PC, PC could not install the drivers to my device.
Please anybody can provide me an example how to add HID IO with HID keyboard?
Thanks in advance. |
|
|
rksjbeck
Joined: 10 Sep 2009 Posts: 3 Location: Atlanta, GA
|
|
Posted: Sat Feb 14, 2015 10:22 am |
|
|
I'm just going with what I have done using composite devices here, but what I think you will need to do is get Windows to use its generic HID driver for the device end point, but without the seeing the source code, or having the device to look at the enumeration, I'm guessing.
Then you can use one of the simple HID terminals to see if your endpoint is reachable. Then you will need to use one of the HID libraries to open the endpoint for reading. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19477
|
|
Posted: Sun Feb 15, 2015 3:25 am |
|
|
Look at the HID descriptor in usb_desc_hid.c
This implements a custom HID I/O device.
CCS supply a demo program (hiddemo.exe), which demonstrates talking to this. Get this HID working "on it's own" first, then try adding the descriptor to your multiple device. I've done it with the CCS example ex_usb_hid_and_cdc, taking out the keyboard HID device that this implements, to give CDC+HID I/O. This worked fine.
If you haven't got hiddemo.exe, ask CCS for it and the sources. It used to come 'with' their USB demo kit, but as available 'on request', since the HID device source is supplied in the examples. |
|
|
|
|
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
|