Skip to content
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

core.py Issues with sending output report to HID device #85

Open
Chris0074 opened this issue May 22, 2024 · 0 comments
Open

core.py Issues with sending output report to HID device #85

Chris0074 opened this issue May 22, 2024 · 0 comments

Comments

@Chris0074
Copy link

Chris0074 commented May 22, 2024

Sending an output report to an HID device (it is a kind of USB-dongle) results in an hanging communication.
I investigated a little bit and found a workaround for my problem. The described modification are working on my side.
My workaround looks like this:
In the member function send_output_report(self, data) (file core.py) I replaced lines 534 - 567 by the following 2 lines:
result = hid_dll.HiD_SetOutputReport(int(self.hid_handle), byref(raw_data), len(raw_data))
return result

As I do not know very much about HID devices, my question is: Is the change I did OK ?
It can also be that my USB device has some issues and the original code is fully OK.
For me it is a logical step to use the API-call from the DLL to communicate with the USB device. The same is done for the member function send_featue_report(self, data), which also calls the API-function hid_dll.HidD_SetFeature(int(self.hid_handle), byref(raw_data), len(raw_data)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant