-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
[Feature Request] RAW HID and Console on V-USB #8320
Comments
Good timing! I implemented this feature on plaid and keycapsss/plaid_pad. https://github.com/hsgw/qmk_firmware/tree/VUSB_HIDRAW I try to choose mouse/extrakeys or hid_raw for now. I had done to recognize it as a composite device from OS and send data from the device to the host.
|
I looked up a bit more this issue, I found strange behavior. On plaid, interrupt transfer from host uses EP3 and fail, but, on plaid_pad, control transfer (setup-data stage) uses EP1 and success. (edited)
See latest comment |
Ill give it a look later tonight |
I will try same method as KEYBOARD_SHARED_EP. |
I have added you on discord, Have a few questions:) |
I read VUSB codes on QMK again, and I realized the following issues.
And
Therefore, I will try implemented following method.
First, I will make a PR to add hid_raw feature soon. If you have any suggestion, please advise me! |
Small update as well: From a brief look on adding EP4 (and a very helpful email from the authors of V-USB) it looks like it can be done. However it will mean spinning our own version of the library, something that might harm future code maintenance. Due to the above, I think that @hsgw proposal is a very reasonable compromise. |
That's why I'd like to get #8321 in before any of this work is done; we can then fork the V-USB repo to qmk/v-usb and apply our modifications there while still being able to pull down any updates from upstream. |
Any idea when that will be done? We can keep testing in the meantime |
It's ready to go, just needs more eyes on it. Will also need qmk/qmk_compiler#62 merged & deployed at the same time so as to not break Configurator. |
Tested keyboard
Test
DeviceI made test keymap for plaid, plaid_pad and tartan. Device settings
HostMy small script with webhid on chrome. And hidpytoy is useful too. |
This has been done and can be closed |
Looking at VUSB which is the bases of all the atmega32a and 328p mcus the above 2 features are missing.
Console is especially vital for debugging.
With the help of @fauxpark we have concluded that we need more than the 2 endpoints V-USB shows in all its examples.
This is because 1 endpoint is used to the keyboard HID and the second endpoint for extrakeys and mouse.
A further endpoint would be needed for Console and another for RAW HID.
Any ideas or experiences how to implement this are welcome.
Feature Request Type
Description
The text was updated successfully, but these errors were encountered: