[PLUG] USB foot pedal controller
Richard C. Steffens
rsteff at comcast.net
Tue May 10 00:42:27 UTC 2011
On 05/09/2011 12:09 PM, Aaron Burt wrote:
> On Mon, May 09, 2011 at 10:53:31AM -0700, Richard C. Steffens wrote:
>> If I wanted to use a USB foot pedal to control sound playback, would I
>> have to write something to go into one of the sound playing programs? Or
>> is there some way to make the three switches on the USB controller
>> generate the same signals used for play/pause, fast forward, and rewind?
> Hard to say. I don't know what the foot pedal looks like to the system.
> ("lsusb -v" or "usb-devices" would provide a huge amount of info.)
Since they are kind of long, I've posted the output of each of those
commands to my Comcast web site.
lsusb -v is at:
http://home.comcast.net/~rsteff/footpedal/lsusb.html
usb-devices is at:
http://home.comcast.net/~rsteff/footpedal/usb-devices.html
I'm guessing the relevant part of lsusb -v is:
-------------------------------------------------
Bus 004 Device 002: ID 05f3:00ff PI Engineering, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x05f3 PI Engineering, Inc.
idProduct 0x00ff
bcdDevice 1.20
iManufacturer 1 VEC
iProduct 2 VEC USB Footpedal
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 35
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)
-------------------------------------------------
And the relevant part of usb-devices is:
-------------------------------------------------
T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=05f3 ProdID=00ff Rev=01.20
S: Manufacturer=VEC
S: Product=VEC USB Footpedal
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
-------------------------------------------------
At the moment, most of that means nothing to me. Does this info suggest
that I can do something useful with it in terms of assigning key codes?
Or will it be a bigger project?
--
Regards,
Dick Steffens
More information about the PLUG
mailing list