How to customize input from USB Foot Switch?

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

How to customize input from USB Foot Switch?

Postby awolf on Fri Apr 13, 2012 6:15 pm

Hi, I just bought a cheap USB foot switch, and when I plug it in, no extra device shows up in my input control panel. Pressing it enters the letter "b". What I want to do is simply have some sort of control that will affect it and not my main keyboard. I just want to be able to choose what key it enters. For example, I'd like to have it enter an arrow key for page turning.
I'm using Mint 12 KDE.
Aaron Wolf
music teacher, scholar
http://wolftune.com
awolf
Level 1
Level 1
 
Posts: 32
Joined: Sun Feb 26, 2012 1:02 pm
Location: Ann Arbor, MI

Linux Mint is funded by ads and donations.
 

Re: How to customize input from USB Foot Switch?

Postby bugmenotprettyplz on Tue May 08, 2012 1:00 pm

Hi,
Is it a foot switch from the brand pcsensor?
y8 | Miniclip | y3 | friv | ben10 |
bugmenotprettyplz
Level 2
Level 2
 
Posts: 97
Joined: Tue May 11, 2010 2:26 pm

Re: How to customize input from USB Foot Switch?

Postby awolf on Tue May 08, 2012 7:42 pm

Yes it is, and I figured out since posting this that I could set the thing using Windows and it would retain the settings. The Windows app ran but didn't successfully see the pedal under WINE.
Overall, it is functional enough to be useful even though I need to access Windows to set the pedal.
Aaron Wolf
music teacher, scholar
http://wolftune.com
awolf
Level 1
Level 1
 
Posts: 32
Joined: Sun Feb 26, 2012 1:02 pm
Location: Ann Arbor, MI

Re: How to customize input from USB Foot Switch?

Postby bugmenotprettyplz on Wed May 09, 2012 4:34 pm

Hehe ok, I had the same. I was disappointed not being able to configure it with linux, I felt ready for adventure, read tutorials how to sniff usb and write to usb. I got some nice data patterns after sniffing their configurator (it was fun to try to configure it in many ways and look what changed), but the kernel wouldn't let me write anything to the device. I forced things to the kernel and only got the device bricked :(
Now I pray there would be somebody smarter than me with libusb/libhid.
y8 | Miniclip | y3 | friv | ben10 |
bugmenotprettyplz
Level 2
Level 2
 
Posts: 97
Joined: Tue May 11, 2010 2:26 pm

Re: How to customize input from USB Foot Switch?

Postby dagon on Wed May 09, 2012 6:06 pm

I figured out since posting this that I could set the thing using Windows and it would retain the settings.

That's actually what the manufacturer suggests too but if they say they support Linux it's quite natural to wish for the same functionality and not having to boot into another operative system to set up the product.
http://www.pcsensor.com/index.php?_a=viewProd&productId=5
If you hope use it in Linux, it is ok, but if setting the function, you need setting it in windows PC.


awolf wrote:The Windows app ran but didn't successfully see the pedal under WINE.

Which version of the software did you get with the pedal?

bugmenotprettyplz wrote:I forced things to the kernel and only got the device bricked :(
Now I pray there would be somebody smarter than me with libusb/libhid.

If you want people to help you hack it right again(which is theoretically possible) you had better start a new thread. It could possibly turn out to be very long... :D
Image
User avatar
dagon
Level 7
Level 7
 
Posts: 1509
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden

Re: How to customize input from USB Foot Switch?

Postby awolf on Wed May 09, 2012 9:30 pm

I just downloaded the latest version of the software from the pcsensor website.
What they say is that it must be set under Windows for whatever key or string is desired but that it then works under Linux for operation, and that's certainly true.
Aaron Wolf
music teacher, scholar
http://wolftune.com
awolf
Level 1
Level 1
 
Posts: 32
Joined: Sun Feb 26, 2012 1:02 pm
Location: Ann Arbor, MI

Re: How to customize input from USB Foot Switch?

Postby rgerganov on Tue Aug 21, 2012 11:25 am

Hi,

I have implemented a command line utility for programming the foot switch sold by PCsensor (vID:pID = 0c45:7403). It is using the libusb library and it works great on Linux. You can find the source and instructions on GitHub: https://github.com/rgerganov/footswitch

Cheers,
Rado
rgerganov
Level 1
Level 1
 
Posts: 1
Joined: Tue Aug 21, 2012 11:21 am

Re: How to customize input from USB Foot Switch?

Postby awolf on Tue Aug 21, 2012 12:28 pm

Awesome! Incidentally, I was just discussing with someone a full graphical program they made for this and other foot pedals.
Discussion is over at LinuxMusicians.com:
http://www.linuxmusicians.com/viewtopic ... 80&p=30278

You should collaborate maybe!
Aaron Wolf
music teacher, scholar
http://wolftune.com
awolf
Level 1
Level 1
 
Posts: 32
Joined: Sun Feb 26, 2012 1:02 pm
Location: Ann Arbor, MI

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 11 guests