Re: Drawing Test Fails in Touch Panel CETK
- From: Ajith <Ajith@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 4 Sep 2007 00:20:01 -0700
Hi Amit,
The Touch screen driver works using PEN_DOWN and PENUP event. Penup will
mostly be a timer interrupt which is enabled when you get a PENDOWN event.
The whole idea is when you get a PENDOWN event, start a timer and which
repeatedly checks the whether the Pen is up .
Is it not possible to get the state of the GPIO pins throgh its registers?
Normally any GPIO pin which is configured as an interrupt would reflect its
state in some GPIO registers when the interrupt happens. by this method one
can identify a pen down interrupt. what is the controller you use?
regards
Ajith
"Amit" wrote:
Hi Ajith,.
Thanks for your reply.
If we send Coordinates cooresponding to every pen down, then how do we
manage use case single tip down. Because cuurently I use calculate
time diffrence between two consequetives interrupt to find out whether
user has really pressed the panel or not.
My Gpio just give interrupt whenever any events happens on the gpio
port for touch panel( either pen up or pen down). Its doesn't tells me
that whether its pen up or pen down. I use a internal logic thats
treat any alternative events as pen up and pen down.
Do you mean that I should have more information from gpio regarding
its pen up or pen down.
Regards
Amit
On Sep 3, 5:08 pm, Ajith <Aj...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
I think we need to pass coordinates to the OS after every PENDOWN interrupt.
I think your threshold can go wrong because flags will get changed for every
Touchpanel events.
regards
Ajith
"Amit" wrote:
Hi All,
I am trying Drawing test in Touch Panel Test on WinCE 5.0
Enviornment. Test use to fail. Also In log it shows the message
TouchPanelSetCalibration Failed. I am able to pass all the Other test
cases except InitializeCurserTest which is actually skipped, since not
supported inside my touch screen driver, and i hope its not require
even.
Also When I run the test individually first its tries to calibrate
the screen which happens successfully. After that It ask to draw
something on screen for some time period. When I try to draw on the
screen using stylus, No lines comes on the screen.
But When I try to just press the stylus at lot many points of touch
panel. Suddenly some lines appers on the screen. Line start from the
point where i press on the panel and goes up to left bottom corner.
Let me explain you my implementation of touch screen driver. I have
taken reference code for my driver from CE 5.0 Public\Common\Oak
\Drivers folder. My driver use to detect use to send coordinates to
GWES corresponding to every pen down greater then a threshold value.
Can Someone Please give me some pointers what can possibley go wrong.
Thanks in Advance.- Hide quoted text -
- Show quoted text -
- Follow-Ups:
- Re: Drawing Test Fails in Touch Panel CETK
- From: Amit
- Re: Drawing Test Fails in Touch Panel CETK
- References:
- Drawing Test Fails in Touch Panel CETK
- From: Amit
- Re: Drawing Test Fails in Touch Panel CETK
- From: Amit
- Drawing Test Fails in Touch Panel CETK
- Prev by Date: Re: Drawing Test Fails in Touch Panel CETK
- Next by Date: Re: How to implement pxa270 speedstep driver?
- Previous by thread: Re: Drawing Test Fails in Touch Panel CETK
- Next by thread: Re: Drawing Test Fails in Touch Panel CETK
- Index(es):
Relevant Pages
|