nanogui: Setting up TouchScreen for AT91SAM9261-EK


Previous by date: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt
Next by date: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt
Previous in thread: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt
Next in thread: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt

Subject: Re: [nanogui] Setting up TouchScreen for AT91SAM9261-EK
From: "Kelvin Xu" ####@####.####
Date: 25 Jan 2007 13:51:23 +0000
Message-Id: <BAY117-F236CE7FD294965753A777CBFA30@phx.gbl>

Hi,

Think i have figure it out by a bit.

Each event is 8 Bytes. One each for pen-down and pen-up. The X and Y 
coordinates of pen-down and up remain to be that of pen-down even when the 
pen is drag to another position before lifting it up.

However, i am not too sure how Nano-X input drivers work.
There are 2 possible values for the pressure variable after analysing my 
touchscreen output.
1) One of the byte shows a value of 7500 on pen-down and 0 on pen-up. => 
This   subsequent pen-down and pen-up event does not send a "Click" event to 
Nano-X as the programs do not respond

2) The other shows an almost random values on pen-up and pen-down varying 
from 100-9000 and i could not figure out a pattern. With this, Nano-X 
interpret as a continous pen-down.

Could you advice on what could be a possible problem?

Regards,
Kelvin

>From: "Uwe Klatt" ####@####.####
>To: "Kelvin Xu" ####@####.####
>Subject: Re: [nanogui] Setting up TouchScreen for AT91SAM9261-EK
>Date: Thu, 25 Jan 2007 14:07:22 +0100
>
>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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>

_________________________________________________________________
Get MSN Messenger emoticons and display pictures here! 
http://ilovemessenger.msn.com/?mkt=en-sg


Previous by date: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt
Next by date: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt
Previous in thread: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt
Next in thread: 25 Jan 2007 13:51:23 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Uwe Klatt


Powered by ezmlm-browse 0.20.