nanogui: Setting up TouchScreen for AT91SAM9261-EK


Previous by date: 25 Jan 2007 13:07:58 +0000 Error in making Nanox-microwindows for Linux-Native, Taniya Das
Next by date: 25 Jan 2007 13:07:58 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Previous in thread: 25 Jan 2007 13:07:58 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Next in thread: 25 Jan 2007 13:07:58 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu

Subject: Re: [nanogui] Setting up TouchScreen for AT91SAM9261-EK
From: "Uwe Klatt" ####@####.####
Date: 25 Jan 2007 13:07:58 +0000
Message-Id: <006501c74081$c157e3f0$081710ac@arnstein.miwe.de>

Hello,

>The
> strange thing i encountered is although using the command: "cat
> /dev/ts0 > output" returns 16 bytes for each event.
> I encountered the following error:
> Wrong number of bytes 8 read from touch panel (expected 16)
> Below is a series of output from 4 events on roughly the same point:
> 4C 1D 9A 00 97 00 CB 00 00 00 9A 00 97 00 B8 0B
> 4C 1D 9B 00 99 00 F3 23 00 00 9B 00 99 00 14 05
> 4C 1D 9B 00 99 00 A7 1F 00 00 9B 00 99 00 E4 25
> 4C 1D 9C 00 9B 00 03 19 00 00 9C 00 9B 00 34 21
> My guess is
> struct ts_event {
>  short dummy
>  short x;
>  short y;
>  short pressure;
> };

If you get 16 Bytes you need a ts_event structure with 16 Bytes ;-)

e.g.

struct ts_event {
 short dummy
 short x;
 short y;
 short pressure;
 short dummy2;
 short dummy3;
 short dummy4;
 short dummy5;
};

Youl have to find out the data format of your touch controller...

Bye
Uwe

Previous by date: 25 Jan 2007 13:07:58 +0000 Error in making Nanox-microwindows for Linux-Native, Taniya Das
Next by date: 25 Jan 2007 13:07:58 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Previous in thread: 25 Jan 2007 13:07:58 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Next in thread: 25 Jan 2007 13:07:58 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu


Powered by ezmlm-browse 0.20.