Re: Drawing Test Fails in Touch Panel CETK

Tech-Archive recommends: Fix windows errors by optimizing your registry




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 -



.



Relevant Pages

  • Re: Drawing Test Fails in Touch Panel CETK
    ... I have peace of code inside touch driver ... ISR where I wait for Gpio Event using WaitforSemphore API. ... bind GPio and timer IRQ with SYS_INTR during TouchPanelEnable. ... when GPIO detects either a PEN DOWN interrupt or PEN UP Interrupt ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Drawing Test Fails in Touch Panel CETK
    ... If you at anytime read the GPIO ... bind GPio and timer IRQ with SYS_INTR during TouchPanelEnable. ... when GPIO detects either a PEN DOWN interrupt or PEN UP Interrupt ... Touch panel is working fine i.e. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Drawing Test Fails in Touch Panel CETK
    ... Is your touch driver sampling the stylus inputs once a pen-down event comes ... Notice how once IRQ_ADC interrupt has occured, ... For Drawing I think, Main problem is, I get only one gpio interrupt ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Drawing Test Fails in Touch Panel CETK
    ... Is your touch driver sampling the stylus inputs once a pen-down event comes ... Notice how once IRQ_ADC interrupt has occured, ... Touch panel is working fine i.e. ... gpio and timer irq to TouchEvent handle. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Drawing Test Fails in Touch Panel CETK
    ... Touch panel is working fine i.e. ... For Drawing I think, Main problem is, I get only one gpio interrupt ... I use to check gpio pin status whenever I get the gpio ...
    (microsoft.public.windowsce.platbuilder)