Re: Getting input from USB HID foot pedal. Where to get started?

2009-05-19 Thread thzxcyl
On Tue, May 19, 2009 at 2:40 AM, vibi sreenivasan
wrote:

> what does your /proc/bus/input/devices say ?
> regards
> vibi sreenivasan
>

It did not show up in input/devices. I don't think it is seen as an input
device since it show up as /dev/usb/hiddev0.

Thanks,
T.


Re: Getting input from USB HID foot pedal. Where to get started?

2009-05-18 Thread vibi sreenivasan

hi,

>I have a foot pedal that is implemented as a USB HID device, and it 
what does your /proc/bus/input/devices say ?
regards
vibi sreenivasan




--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: Getting input from USB HID foot pedal. Where to get started?

2009-05-18 Thread T

Manish Katiyar  gmail.com> writes:

> Will this help ?
> 
> http://www.linuxjournal.com/article/7353
> 
> Thanks -
> Manish
> 
> >
> > Many thanks,
> > T.
> 

I found that link, too; it's very helpful start but unfortunately works in the
opposite direction from I want - i.e. that driver sends out put while I'm
looking for way to get input. Is there similar examples but focusing on getting
inputs? I'm not familiar with the input system in linux, and I think that's
where I got stuck.

Thanks,

T.


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: Getting input from USB HID foot pedal. Where to get started?

2009-05-17 Thread Manish Katiyar
On Mon, May 18, 2009 at 8:02 AM, thzxcyl  wrote:
> I have a foot pedal that is implemented as a USB HID device, and it sends
> one input: in binary, 0001, 0010, or 0100 corresponds to each pedal,
> respectively; combination of pedal presses sends combination of those binary
> number, and releases of pedal trigger input of whatever pedal still being
> pressed (if all pedal is up,  is sent). My intention is to have the
> pedal buttons behave as normal keyboard keys (ctrl, alt, and pgdn).
>
> I've read many writeup on related topics, some of them a few years old, and
> I'm still confused as to where to start: do I need to patch the kernel?
> write a driver translate the input to keycode? do both? I would really
> appreciate a pointer to some tutorials on how to get started and example
> codes if there are any.

Will this help ?

http://www.linuxjournal.com/article/7353

Thanks -
Manish

>
> Many thanks,
> T.



-- 
Thanks -
Manish

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Getting input from USB HID foot pedal. Where to get started?

2009-05-17 Thread thzxcyl
I have a foot pedal that is implemented as a USB HID device, and it sends
one input: in binary, 0001, 0010, or 0100 corresponds to each pedal,
respectively; combination of pedal presses sends combination of those binary
number, and releases of pedal trigger input of whatever pedal still being
pressed (if all pedal is up,  is sent). My intention is to have the
pedal buttons behave as normal keyboard keys (ctrl, alt, and pgdn).

I've read many writeup on related topics, some of them a few years old, and
I'm still confused as to where to start: do I need to patch the kernel?
write a driver translate the input to keycode? do both? I would really
appreciate a pointer to some tutorials on how to get started and example
codes if there are any.

Many thanks,
T.