rgerganov / footswitch

Command-line utility for PCsensor and Scythe foot switches
MIT License
414 stars 60 forks source link

Footswitch1-F1.8 not recognised under WSL ( windows subsystem for linux ) #42

Open bradphelan opened 6 years ago

bradphelan commented 6 years ago

I have a PCSensor foot pedal. When plugged it windows 10 says it is a

Footswitch1-F1.8

I've tried the software under WSL but when I do

footswitch -r

I get

Cannot find footswitch with one of the supported VID:PID. Check that the device is connected and that you have the correct permissions to access it. [init(), footswitch.c:109]

Is this a WSL problem or the footswitch model is not supported?

rgerganov commented 6 years ago

Does WSL have the lsusb command? If so, can you paste the output when the switch is connected?

bradphelan commented 6 years ago

First I found the HID data under the windows driver list

image

so VID = 0C45 PID = 7404

which seems to be on the list of supported ids

image

however running

sudo lsusb

returns no result. Maybe they are hidden from WSL ??

rgerganov commented 6 years ago

Yes, this is supported VID:PID but unfortunately it seems to be hidden in WSL. Please let me know if you manage to find a workaround.

bradphelan commented 6 years ago

I think there is no direct USB support under WSL only mounting of USB drives.

bradphelan commented 6 years ago

I found this but I'm not sure it's relevant. Is the footswitch a "serial" device as described in the link

https://blogs.msdn.microsoft.com/wsl/2017/04/14/serial-support-on-the-windows-subsystem-for-linux/

rgerganov commented 6 years ago

No, it is a USB HID device.

doadin commented 4 years ago

I know this is old but its still open and has no solution, I recently tried to use the pcsensor software and it wouldnt work in windows. noticed this project and im trying to get it working in windows but no luck.

error writing data ( [usb_write(), E:\footswitch-1.0\footswitch.c:147]

I have hidapi working though as I can get manufacture/product/serial number/indexed string(s) but usb_write doesnt work. is it possible usb_write(query) is wrong? or is this more possibly a permissions issue? I tried runing from an admin powershell. same thing happens. It would seem hidapi is able to read just not write.

Edit: im testing with VID = 0C45 PID = 7403

Edit2: seems like it might be a win10 restricktion that libusb would fix