kriomant / ch57x-keyboard-tool

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

Supporting 0x514c : 0x8850 #89

Open ezesolares opened 5 months ago

ezesolares commented 5 months ago

the device is a 3×3 with 2 knobs and bluetooth

Linux Info

Class 0 ((Defined at Interface level))
Subclass 0  
Protocol 0  
USB Version 1.10  
     
Vendor ID 0x514c  
Product ID 0x8850  
     
Speed 12 Mbit/s  
Channels 0  
Max. Packet Size 64  
     

when i try it, i get the following errors

scofmb@scofmb-laptop:~/Downloads/src/ch57x-keyboard-tool$ RUST_BACKTRACE=full /home/scofmb/.cargo/bin/ch57x-keyboard-tool --vendor-id 0x514c --product-id 0x8850 led 0 thread 'main' panicked at /home/scofmb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ch57x-keyboard-tool-1.4.2/src/main.rs:196:14: internal error: entered unreachable code: unsupported device stack backtrace: 0: 0x58d8175f4252 - ::fmt::hffecb437d922f988 1: 0x58d817618d1c - core::fmt::write::hd9a8d7d029f9ea1a 2: 0x58d8175f223f - std::io::Write::write_fmt::h0e1226b2b8d973fe 3: 0x58d8175f4024 - std::sys_common::backtrace::print::he907f6ad7eee41cb 4: 0x58d8175f54db - std::panicking::default_hook::{{closure}}::h3926193b61c9ca9b 5: 0x58d8175f5233 - std::panicking::default_hook::h25ba2457dea68e65 6: 0x58d8175f597d - std::panicking::rust_panic_with_hook::h0ad14d90dcf5224f 7: 0x58d8175f5819 - std::panicking::begin_panic_handler::{{closure}}::h4a1838a06f542647 8: 0x58d8175f4726 - std::sys_common::backtrace::rust_end_short_backtrace::h77cc4dc3567ca904 9: 0x58d8175f5584 - rust_begin_unwind 10: 0x58d817461985 - core::panicking::panic_fmt::h940d4fd01a4b4fd1 11: 0x58d81746fc6c - ch57x_keyboard_tool::open_keyboard::h1dbf727e80df639e 12: 0x58d81746d1fb - ch57x_keyboard_tool::main::h528d003de2047d0a 13: 0x58d817485d03 - std::sys_common::backtrace::rust_begin_short_backtrace::h25fde1d23be9d262 14: 0x58d81747ff6d - std::rt::lang_start::{{closure}}::h069e3546c196ec5e 15: 0x58d8175ec263 - std::rt::lang_start_internal::h103c42a9c4e95084 16: 0x58d817470045 - main 17: 0x797b29c2a1ca - libc_start_call_main at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 18: 0x797b29c2a28b - libc_start_main_impl at ./csu/../csu/libc-start.c:360:3 19: 0x58d817462035 - _start

What can i do to help supporting this mini keyboard?

KingDuckZ commented 2 months ago

In my case this model reports itself as 514c:8850, it's 3 columns, 4 rows and 4 knobs, 3 layers and bluetooth, with LEDs

KingDuckZ commented 1 month ago

Any help on this please?

cmbarba commented 5 days ago

I have a similar product with the same vendor and product id. When I try to set them with the utility it won't accept 514c as the vendor id:

error: Invalid value '514c' for '--vendor-id <VENDOR_ID>': invalid digit found in string

KingDuckZ commented 9 hours ago

I've got mine since the 1st of September and it's been collecting dust since. I'm happy to provide any info and run whatever test, devs please do ask