Fwd: QUESTION: How can I make a driver for a special serial keyboard which also supports output (maybe via serio_raw)?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Kernel Mailing List <linux-kernel@...>
Date: Tuesday, May 27, 2008 - 1:27 pm

---------- Forwarded message ----------
From: N=E9stor Amigo Cairo <nestorac@gmail.com>
Date: 2008/5/27
Subject: Re: QUESTION: How can I make a driver for a special serial
keyboard which also supports output (maybe via serio_raw)?
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>, Linux Kernel Mailing
List <linux-kernel@vger.kernel.org>


Thanks!! I'm going to do so right now. I send you my current work, as
you can see, I'm adapting an existing driver for this purpose. I would
really appreciate it if you take a look and tell me if I'm doing
right/wrong. I haven't been able to implement write function yet, any
advice would be very helpful also. I'm also sending some schema to
explain me better, but I think you fully understood my ideas.

I hope this time message will arrive also to LKML, everyone's invited
to comment!!

2008/5/27 Dmitry Torokhov <dmitry.torokhov@gmail.com>:
, for
rface
en
. So
 to
 any
zed
e to
iver.

If the serial device is able to work as a keyboard, and also receive
some data from the application via /dev/input/eventX, that would be
perfect!! That's exactly what I was thinking on.

I have been thinking on it, but it's easier to reimplement some
widgets on Qt for just three keys (I can reuse them easily because of
OOP), than managing focus on every widget communicating the
application directly with the serial port (I've been using a switch
structure for this purpose, which is not very kindly). I saw the
device as a keyboard with just three keys and which can also receive
some bytes from the application. This makes debugging and testing much
easier than dealing directly with the serial interface for changing
the focus and managing the application. The only problem is that a
driver must be written for the device, but my long-term idea is to
write some kind of programmable driver, so it could be reused easily
(by instance, assigning a matrix of values to binary data sent to the
serial port, and converting those bytes into Keys using these values,
as in the original driver, but allowing userspace apps to change this
behaviour). I'm not sure if it would be helpful for anyone else. And I
also lack any knowledge of the kernel internals, as you can see.




--
N=E9stor Amigo Cairo
+34 687 96 74 81
nestorac@gmail.com


--
N=E9stor Amigo Cairo
+34 687 96 74 81
nestorac@gmail.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fwd: QUESTION: How can I make a driver for a special serial ..., Néstor Amigo Cairo, (Tue May 27, 1:27 pm)