kriomant / ch57x-keyboard-tool

Utility for programming ch57x small keyboard
MIT License
544 stars 66 forks source link

"unexpected interface parameters" error when attempting to upload #70

Closed mramendi closed 7 months ago

mramendi commented 7 months ago

Fedora Linux 38 tried both the downloaded binary and building from source via cargo - same problem USB device is 1189:8890, from Aliexpress

When I try uploading with ~/.cargo/bin/ch57x-keyboard-tool upload <map.yaml (using my own map, which validates successfully, or just a copy of example-mapping.yaml, the issue happens anyway), the upload does not happen. I get the following error message:

Error: unexpected interface parameters: InterfaceDescriptor {
    bLength: 9,
    bDescriptorType: 4,
    bInterfaceNumber: 0,
    bAlternateSetting: 0,
    bNumEndpoints: 1,
    bInterfaceClass: 3,
    bInterfaceSubClass: 1,
    bInterfaceProtocol: 1,
    iInterface: 0,
}
mramendi commented 7 months ago

This is a duplicate of #50 . I was able to resolve it by installing version 1.2.4 (using cargo). Version 1.2.4 reported insufficient permissions first; when I ran it as root, it successfully programmed the mini keyboard.

mramendi commented 7 months ago

closing as duplicate, but please do get the solution that worked in 1.2.4 back if at all possible