Skip to content

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

@hanbingsuifeng

Description

@hanbingsuifeng

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions