ryankurte / rust-streamdeck

libusb based driver for Elgato StreamDeck devices
Mozilla Public License 2.0
57 stars 24 forks source link

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

Open hellishvictor opened 3 months ago

hellishvictor commented 3 months ago

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.

AleksanderZdunek commented 3 months ago

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.

hellishvictor commented 3 months ago

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

AleksanderZdunek commented 3 months ago

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.

hellishvictor commented 3 months ago

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.

ryankurte commented 3 months ago

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