-
-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HID Send? #747
Comments
I am not aware such a mechanism even exists in the HID specification in the first place. Hid_send is implemented through reserved parts of the HID usage tables. If you find a document where sending data to an HID is documented, I'd love to know about it. |
We've been discussing some features that will help with that in #692. |
It appears as a vendor defined usage page for PJRC. So, not part of the HID spec, but not in undefined waters. |
FYI: The larger usecase for my AHK system is that I want to be able to enable keyboard specific AHK hotkeys. One of the problems with AHK is that it cannot distinguish between keypresses on separate keyboards by default. There are libs that let you detect by device (AHKHID), but they do not prevent you from masking off a key on a specific keyboard. QMK and RawHID are a solution. Here is the flow I see.
Things will get a little tricky if each keyboard has the same PID, though. AHK will know that there are two QMK devices, but it would not be able to tell them apart. Either I will have to use separate PIDs, or I will have to figure out a handshake method to get the keyboards to self-identify. Hence the need for two-way communication. |
Well I suppose if you can get two-way communication working, you could send some kind of identifier with each message to identify each individual keyboard. You could send a command from the PC to set an identifier in eeprom on the keyboard or even a randomly-generated one would be better than no identifier at all. This doesn't answer how you'd technically achieve the communication channel, but just throwing some ideas out here. |
Hmm... Though I have something semi-random now. Apparently the AVR USB chips we use have a serial number that is readable. I have never used it, but maybe that is something I can base things on? By the way, the two way comm channel is already available. https://www.pjrc.com/teensy/rawhid.html What is missing is support in QMK to do the reading (currently commented out) and then do anything with the data read. |
Closing this in favor of discussion on #692, #895, and a possible future qmk implementation of https://github.com/hid-io/hid-io/tree/master/spec. |
* GMMK V2 96 ISO * Update keyboards/gmmk/gmmk2/p96/iso/keymaps/vial/vial.json Co-authored-by: adophoxia <[email protected]> * Update keyboards/gmmk/gmmk2/p96/iso/keymaps/vial/config.h Co-authored-by: adophoxia <[email protected]> * LTO_ENABLE seems to be not needed --------- Co-authored-by: adophoxia <[email protected]>
I am working on a way to send HID messages to AutoHotkey. (See this post...) It is the same principle as hid_listen.
Have we implemented a way to receive data via the HID console and change keyboard parameters such as layers?
The text was updated successfully, but these errors were encountered: