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

Win10 failed to call hid_write to send data, win7 succeeded #472

Open
hanbingsuifeng opened this issue Feb 22, 2022 · 1 comment
Open

Win10 failed to call hid_write to send data, win7 succeeded #472

hanbingsuifeng opened this issue Feb 22, 2022 · 1 comment

Comments

@hanbingsuifeng
Copy link

Win10 Calls hidAPI to send data to the third-party library hid_write function in Windows. The device supports two ReportID types: 0x55 and 0x41, where 0x55 indicates normal communication data and 0x41 indicates firmware package data. The length of sent data is 64 bytes. The first byte is ReportId. When sending 0x55, the data is successfully sent, but when sending 0x41, the data fails to be sent. But in Windows 7 sending both data formats was successful. Int HID_API_EXPORT HID_API_CALL hid_write(hid_device *dev, const unsigned char *data, Size_t length) inside WriteFile(dev-> device_handle, buf, (DWORD) length, NULL, &dev-> write_ol); The function reported an error. But no reason was found. Do you have any solution?

@Youw
Copy link

Youw commented Mar 14, 2022

Please see #468 and close this issue.

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

2 participants