PORTS Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
This forum is closed to new activity.
The posts are available to browse, but posting has been disabled. BIG THANKS to all who have participated and shared your knowledge over the past 13 years.
Aug 11, 2023
Home
Help
Search
Login
Register
PORTS Forum
»
Ports and Interfaces
»
USB
»
HID Keyboard led control
« previous
next »
Print
Pages: [
1
]
Author
Topic: HID Keyboard led control (Read 12485 times)
Edio
Member
Posts: 12
HID Keyboard led control
«
on:
October 17, 2013, 08:49:20 am »
I´m want to morse code a keyboard led to control another device. I go all the way but createfile fails if dwDesiredAccess = GENERIC_READ or GENERIC_WRITE. I read somewhere that from Win2000 on that access is OS exclusive. Am I doing a mistake or that really can´t be done
Logged
Jan Axelson
Administrator
Frequent Contributor
Posts: 3033
Re: HID Keyboard led control
«
Reply #1 on:
October 17, 2013, 10:04:07 am »
See:
Why do I receive "Access denied" when attempting to access my HID?
here:
http://www.lvr.com/hidfaq.htm
If using Windows 8, also see this and the pages it links to:
http://www.lvr.com/forum/index.php?topic=1092.msg4710
Logged
Edio
Member
Posts: 12
Re: HID Keyboard led control
«
Reply #2 on:
October 17, 2013, 10:30:01 am »
Thank you , I'll give HidD_SetFeature a try. but I guess the best way is to create another endpoint to deal with this.
Logged
Jan Axelson
Administrator
Frequent Contributor
Posts: 3033
Re: HID Keyboard led control
«
Reply #3 on:
October 17, 2013, 08:37:22 pm »
A single HID supports at most one interrupt IN and one interrupt OUT endpoint, so if you don't want to use Feature reports, you would need to create another HID interface or maybe a second HID in the top level collection.
Logged
Edio
Member
Posts: 12
Re: HID Keyboard led control
«
Reply #4 on:
October 21, 2013, 12:54:08 pm »
As I noticed, SetFeature (for data transfer) is doomed in Win8 for security reasons. I'm in the way of creating a second HID top level collection. now I'm digesting USB papers (that includes your book) how I miss rs232 days!.
Thank you for the replay.
Logged
Print
Pages: [
1
]
« previous
next »
PORTS Forum
»
Ports and Interfaces
»
USB
»
HID Keyboard led control