From: Paulo Marques <pmarques@grupopie.com>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linux-Input <linux-input@atrey.karlin.mff.cuni.cz>,
Dmitry Torokhov <dtor_core@ameritech.net>
Subject: Re: [RFC/RFT] [patch] Elo serial touchscreen driver
Date: Wed, 09 Feb 2005 13:23:27 +0000 [thread overview]
Message-ID: <420A0ECF.3090406@grupopie.com> (raw)
In-Reply-To: <20050208164227.GA9790@ucw.cz>
Vojtech Pavlik wrote:
> Hi!
>
> I've written a driver for probably the most common touchscreen type -
> the serial Elo touchscreen.
If we are serious about getting support for serial touchscreens into the
kernel, I can certainly give a hand there.
I work for a company that develops software for restaurants, and we have
a Linux port of our main application running in actual restaurants with
a custom made Linux distribution for about 2 years now.
We had to support a number of touchscreens, and we do it in the
application itself, reading the serial port and processing the data.
If this could go into the kernel, then our application needed only to
read the input device, and handle events, no matter what touch screen
was there. That would be a great improvement :)
> The driver should handle all generations of serial Elos, as it handles
> Elo 10-byte, 6-byte, 4-byte and 3-byte protocols.
> I do not have any touchscreen, so I can't test the driver myself.
I have one that uses the 10 byte protocol (I've never seen one ELOtouch
that used one of the other protocols). I can give you some feedback as
soon as I have some time to test it.
> So if you have the time, please comment on the code of the patch,
> and if you have an Elo, please try the driver with it.
>
> [...]
> + case 9:
> + if (elo->csum) {
> + input_regs(dev, regs);
> + input_report_abs(dev, ABS_X, (elo->data[4] << 8) | elo->data[3]);
> + input_report_abs(dev, ABS_Y, (elo->data[6] << 8) | elo->data[5]);
> + input_report_abs(dev, ABS_PRESSURE, (elo->data[8] << 8) | elo->data[7]);
> + input_report_key(dev, BTN_TOUCH, elo->data[8] || elo->data[7]);
This one is weird. In my code I have this:
> button = ((buf[2] & 0x03) != 0);
So maybe, ELO touchscreens that don't have pressure sense output, only
send "touch down / up" information on the 2 LSB's of the third byte(?)
Anyway, inputattach should have a command line option to set the
baudrate manually, as some of these touchscreens have configurable
baudrates, and some POS manufacturers set them to non-default values.
Also, I've already seen touchscreens where the POS manufacturer got the
pin-out wrong (or something like that) so the touch reports the X
coordinate where the Y should be, and vice-versa. I really don't know
where this should be handled (driver, input layer, application?), but it
must be handled somewhere for the applications to work.
--
Paulo Marques - www.grupopie.com
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke (1729 - 1797)
next prev parent reply other threads:[~2005-02-09 13:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-08 16:42 [RFC/RFT] [patch] Elo serial touchscreen driver Vojtech Pavlik
2005-02-08 16:54 ` Dmitry Torokhov
2005-02-09 13:23 ` Paulo Marques [this message]
2005-02-09 17:00 ` Vojtech Pavlik
2005-02-09 17:14 ` Jan-Benedict Glaw
2005-02-09 17:30 ` Vojtech Pavlik
2005-02-09 18:08 ` Paulo Marques
2005-02-09 19:18 ` Vojtech Pavlik
2005-02-09 19:54 ` Paulo Marques
2005-02-09 20:06 ` Jan-Benedict Glaw
2005-02-09 20:03 ` Jan-Benedict Glaw
2005-02-09 20:10 ` Vojtech Pavlik
2005-02-09 21:53 ` Jan-Benedict Glaw
2005-02-09 19:58 ` Jan-Benedict Glaw
2005-02-09 20:51 ` Paulo Marques
2005-02-09 21:39 ` Jan-Benedict Glaw
2005-02-09 21:53 ` Vojtech Pavlik
2005-02-10 10:46 ` Jan-Benedict Glaw
2005-02-10 13:06 ` Paulo Marques
2005-02-10 13:43 ` Jan-Benedict Glaw
2005-02-10 15:35 ` Paulo Marques
2005-02-10 15:55 ` Jan-Benedict Glaw
2005-02-10 16:16 ` Vojtech Pavlik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=420A0ECF.3090406@grupopie.com \
--to=pmarques@grupopie.com \
--cc=dtor_core@ameritech.net \
--cc=linux-input@atrey.karlin.mff.cuni.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox