rust-streamdeck icon indicating copy to clipboard operation
rust-streamdeck copied to clipboard

[ERROR] Error connecting to streamdeck: Hid(HidApiError { message: "No HID devices with requested VID/PID found in the system." })

Open hellishvictor opened this issue 1 year ago • 5 comments

Hi, I get the error on the title using one of the followings:

streamdeck-cli --serial CL1234567890 get-buttons streamdeck-cli --vid 0fd9 get-buttons

However, it did connect using the "--pid" option: streamdeck-cli --pid 0063 get-buttons Connected to device (vid: 0fd9 pid: 0063 serial: CL1234567890)

Cheers.

hellishvictor avatar Mar 23 '24 11:03 hellishvictor

Hi With anything but the older model StreamDeck Mini (pid 0063) this is expected behaviour since pid is a required parameter but if it's not provided streamdeck-cli assumes a Mini by default. I don't have access to a Mini so I can not reproduce.

AleksanderZdunek avatar Mar 26 '24 18:03 AleksanderZdunek

Same with the SD XL (pid 006c) using the serial and vid, but no problem using the pid.

hellishvictor avatar Mar 26 '24 20:03 hellishvictor

Yes, with the XL this is expected behaviour. Pid is required parameter.

Technically vid is required as well, but currently there is no reason to use anything but the default value. Serial is optional and only really useful to distinguish between StreamDecks if you have more than one of the same model connected at the same time. But even when using serial you still need to pass the correct pid as well.

AleksanderZdunek avatar Mar 27 '24 10:03 AleksanderZdunek

Ok, --serial and --vid are complementary of --pid (which is the main) for be used only when there's several devices connected. Thanks for your explanation.

hellishvictor avatar Mar 27 '24 10:03 hellishvictor

we could definitely make the default behaviour cleverer (list all devices, connect by index, or something)!

ryankurte avatar Apr 04 '24 20:04 ryankurte