Skip to content

Support for 514c : 8851 #162

@daniel-fs

Description

@daniel-fs

Hi there!

This device is a wired 3x1 with 1 knob, physically like the one in the picture in the Readme. However, it seems like this particular model is not supported.

RUST_BACKTRACE=full ./ch57x-keyboard-tool --vendor-id 0x514c --product-id 0x8851 upload config.yaml

thread 'main' (182702) panicked at src/main.rs:208:14:
internal error: entered unreachable code: unsupported device
stack backtrace:
   0:     0x5654192749e2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4e0a3aeea0f9c085
   1:     0x565419285c6f - core::fmt::write::hecf68a131630c74d
   2:     0x56541924efb1 - std::io::Write::write_fmt::h93c9a261259c931a
   3:     0x5654192557b2 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621
   4:     0x56541925791c - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb
   5:     0x565419257776 - std::panicking::default_hook::h63f9bf8161c5d325
   6:     0x565419257fa5 - std::panicking::panic_with_hook::h3173740e06bd0752
   7:     0x565419257e06 - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87
   8:     0x5654192558f9 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320
   9:     0x5654192434dd - __rustc[de0091b922c53d7e]::rust_begin_unwind
  10:     0x56541928f0a0 - core::panicking::panic_fmt::h5138da2ef87be35b
  11:     0x56541911a8e4 - ch57x_keyboard_tool::open_device::h1cb6da3d76fc7ffd
  12:     0x56541911bf3b - ch57x_keyboard_tool::main::h96d0e10440285b5b
  13:     0x56541913c783 - std::sys::backtrace::__rust_begin_short_backtrace::h5af626b70c1eab23
  14:     0x56541913d7ad - std::rt::lang_start::{{closure}}::h47a430b496f3f630
  15:     0x565419250c60 - std::rt::lang_start_internal::hce2b8b328837374b
  16:     0x56541911cee5 - main
  17:     0x7f557b627b0b - <unknown>
  18:     0x7f557b627bbb - __libc_start_main
  19:     0x565419113485 - _start
  20:                0x0 - <unknown>

I tried to do what was done in #122 and added the 8851 product id to the code, then built it. However, the program exits with the message No valid interface/endpoint combination found!.

Not sure what would further be needed to add support for this device. If you need any more info, please let me know, I'll try to provide it if possible.

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