carlossless / sinowealth-kb-tool

A utility for reading and writing flash contents on Sinowealth 8051-based HID devices through the commonly found ISP bootloader
MIT License
54 stars 15 forks source link

hidapi instead of libusb (windows support) #10

Closed carlossless closed 11 months ago

carlossless commented 11 months ago

Using libusb for raw HID communication doesn't seem to be suitable for Windows. The approach would work fine on macOS and Linux, but it was never been tested on Windows.

Changes here replace direct libusb usage with hidapi. Linux would still use the hidapi libusb backend, since the hidraw backend doesn't seem to recognize the ISP device as a regular HID device.

Addresses https://github.com/carlossless/sinowealth-kb-tool/issues/8


Testing

carlossless commented 11 months ago

@WinkelCode, would you mind testing this on the platforms you have access to?

WinkelCode commented 11 months ago

🎉 I didn't test writing, but reading seems to work on Windows now.