hidstream | Streaming HID events in Node.js | Keyboard library
kandi X-RAY | hidstream Summary
kandi X-RAY | hidstream Summary
Wraps node-hid with several parsers for common HID devices, specifically, keyboard-like devices.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hidstream
hidstream Key Features
hidstream Examples and Code Snippets
Community Discussions
Trending Discussions on hidstream
QUESTION
I'm working on a project that emulates a USB Composite Device consisting of a HID keyboard and HID Mouse using a microprocessor. I have the device properly enumerating and functioning with both my Windows 7 x64 and Raspbian hosts and it all looks good, but where I'm running into a problem is getting my winforms application (using HidSharp) to open the connected composite device so I can get at the raw data in the keyboard endpoint.
The problem seems to be with the TryOpen() function, in that I can find the connected device by matching VID and PID, I assign the device information and report descriptor, but when I try to open a datastream via TryOpen() it fails, and I don't know why. Unfortunately the function only returns a bool, so I don't know why it's failing, just that it can't open the datastream. I'm wondering if maybe there's something funny with opening a composite device that I'm not aware of? My code for finding the device and opening the datastream is below:
...ANSWER
Answered 2019-May-29 at 18:05So I asked around on the HIDSharp forum about this, and I got an answer from the dev:
Turns out Windows does not allow you to open HID Keyboard devices as a security "feature", so HIDSharp will always fail to open the datastream of a HID Keyboard device.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hidstream
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page