nanogui: Thread: ADS 7843 Touchscreen Solved ! Touchscreen issues and queries


[<<] [<] Page 1 of 1 [>] [>>]
Subject: ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: "Kelvin Xu" ####@####.####
Date: 26 Jan 2007 05:31:19 +0000
Message-Id: <BAY117-F16A50A6FC6EC049EE615C4BFA20@phx.gbl>

Dear all,

I have finally set up my touchscreen. I realise it is not really a problem 
with the drivers.
But something to do with the devmouse.c and mou_touchscreen.c.

Nano-X has been blocking all mouse clicks after going into the 
filer_transform function in devmouse.c.
I try commenting out the calling of the function and everything works.

Questions:
Can anyway enlightened me abt the filter_transform function as to what are 
its functions and whether it will affect the future operations of my 
touchscreen after commenting it out.
I have also noted that the MOUSE_TRANSFORM flag is set in mou_touchscreen.c.

Who those who might want to use the ADS7843 Touchscreen below is the header 
file for it:

struct ts_event {
short pressure;
short x;
short y;
short dumy;
};

Regards,
Kelvin

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

Subject: Re: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: "Uwe Klatt" ####@####.####
Date: 26 Jan 2007 06:46:02 +0000
Message-Id: <005301c74115$90f73ff0$081710ac@arnstein.miwe.de>

Hello again,

> Questions:
> Can anyway enlightened me abt the filter_transform function as to
> what are its functions and whether it will affect the future
> operations of my touchscreen after commenting it out.
> I have also noted that the MOUSE_TRANSFORM flag is set in
> mou_touchscreen.c.

The MOUSE_TRANSFORM flag collects a few mouse positions (default is 4) for 
average before creating mouse events (WM_MOUSEMOVE etc.).
I have disabled it with the MOUSE_RAW flag instead.
I think this is a better way to disable filter_transform.

Without filtering the touch is more responsive and sometimes another 
prefiltering is done inside of the touch device driver.

But the application should work with MOUSE_TRANSFORM too!

Bye
Uwe


Subject: Re: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: "William IN" ####@####.####
Date: 24 May 2007 16:58:07 +0100
Message-Id: <7FDA2B75D6D2DA4B82CB4A63F1CBFDE74371E3@serveur22.Synchronic.local>

Hello,

I'm working on an evaluation board that is M5329EVB from Freescale. I have connected a LCD SHARP display on it and I would like to use the touchscreen function. There is an ADS7843 controler on the board. I'm working with µCLinux, the LTIB version is ltib-m532xevb-20061117 and I have installed microwindows-0.90 
I don't understand how the touchscreen could work if there is only the ADS7846 touchscreen driver in the microwindows config file. I tried to enable it but when I run a demo such as nxkbd, there is no response. What I understand from your previous message is that the touchscreen acts like a mouse. Please, could you be more explicit ? 
Besides, I can enable the ADS7843 driver in the ltib menu configuration and I saw that if I enable SERMOUSE in the microwindows config file, I can see the cursor moving but without following where I touch the screen. That is kind of weird, because I don't see the link between the drivers in the kernel and those in microwindows. 

Best regards,
William
Subject: Re: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: nafiton ####@####.####
Date: 29 May 2007 17:40:41 +0100
Message-Id: <465C5780.8080502@geocities.com>

Hi

I will throw in what I saw in my board and perhaps somebody will 
enlighten us :o)

Here it is a sentec cobra 5329 with an emlix uclinux. It has a different 
touchscreen controller, a TSC2200. Here is how it is working:
  - The touchscreen driver is integrated into the linux kernel input 
subsystem:
         uclinux/linux-2.6.x/drivers/input/touchscreen/tsc2200.c
  - The driver register itself as an input device on probe function
  - To report position or actions, this driver call functions from the 
input subsystem like:
                 input_report_abs(input_dev, ABS_X, x)
                        or
                input_report_key(input_dev, BTN_TOUCH, 1);
  - The microwindows has a serial mouse defined
  -  I don´t know how exactly it is done, but these events are passed 
from the kernel to the microwindows program

Good luck,
nafiton

William IN escribió:
> Hello,
>
> I'm working on an evaluation board that is M5329EVB from Freescale. I have connected a LCD SHARP display on it and I would like to use the touchscreen function. There is an ADS7843 controler on the board. I'm working with µCLinux, the LTIB version is ltib-m532xevb-20061117 and I have installed microwindows-0.90 
> I don't understand how the touchscreen could work if there is only the ADS7846 touchscreen driver in the microwindows config file. I tried to enable it but when I run a demo such as nxkbd, there is no response. What I understand from your previous message is that the touchscreen acts like a mouse. Please, could you be more explicit ? 
> Besides, I can enable the ADS7843 driver in the ltib menu configuration and I saw that if I enable SERMOUSE in the microwindows config file, I can see the cursor moving but without following where I touch the screen. That is kind of weird, because I don't see the link between the drivers in the kernel and those in microwindows. 
>
> Best regards,
> William
>   
Subject: ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: "William IN" ####@####.####
Date: 1 Jun 2007 10:07:53 +0100
Message-Id: <7FDA2B75D6D2DA4B82CB4A63F1CBFDE7437299@serveur22.Synchronic.local>

Hello,

Thanks for all the replies, but there is still some obscure things I would like to enlighten... First, I have made many printk in evdev.c, tsdev.c, input.c and mousedev.c files which are in ../linux/drivers/input   I've put traces in the event, open, close, read, write, and connect functions.
It seems that evdev.c, tsdev.c and mousedev.c are connecting at the launch of µCLinux in the target. Without executing nano-X server, there is only input.c replying and after executing nano-X server, I can see traces in mousedev.c and input.c at the open functions and others in read and event functions when I touch the screen. It proves that there is a link between nano-X and the drivers in the kernel. 
My first question is why did tsdev and evdev not open ? Isn't tsdev supposed to interface with the touchscreen ?
Then I've also put traces in mou_touchscreen.c which is in ../microwindows-0.90/src/drivers and devmouse.c in  ../microwindows-0.90/src/engine  I can see traces in devmouse.c when I touch the screen. 
I saw in the previous message from Kelvin that I had to adapt the structure for the ADS7843 so I modified the touchscreen_ads7846.h file and wrote : 

#ifndef  TS_DEVICE
#define TS_DEVICE  "ADS7846"

#define  TS_DEVICE_FILE  "/dev/event0"

struct  ts_event{
	short	pressure;
	short	x;
	short 	y;
	short	dumy;
};

#endif

My next question is why can't I see anything from mou-touchscreen.c ? I've also commented out the filter_transform function but I see nothing.. So, does the touchscreen really act like a mouse ?

Best regards,
William,

Subject: RE: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: Junior ####@####.####
Date: 1 Jun 2007 16:41:22 +0100
Message-Id: <23748F90574.00000219ejr@inbox.com>

> -----Original Message-----
> From: ####@####.####
> Sent: Fri, 1 Jun 2007 11:08:10 +0200
> To: ####@####.####
> Subject: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues and
> queries
> 
> Hello,
> 
> Thanks for all the replies, but there is still some obscure things I
> would like to enlighten... First, I have made many printk in evdev.c,
> tsdev.c, input.c and mousedev.c files which are in ../linux/drivers/input
> I've put traces in the event, open, close, read, write, and connect
> functions.
> It seems that evdev.c, tsdev.c and mousedev.c are connecting at the
> launch of µCLinux in the target. Without executing nano-X server, there
> is only input.c replying and after executing nano-X server, I can see
> traces in mousedev.c and input.c at the open functions and others in read
> and event functions when I touch the screen. It proves that there is a
> link between nano-X and the drivers in the kernel.
> My first question is why did tsdev and evdev not open ? Isn't tsdev
> supposed to interface with the touchscreen ?
> Then I've also put traces in mou_touchscreen.c which is in
> ../microwindows-0.90/src/drivers and devmouse.c in
> ../microwindows-0.90/src/engine  I can see traces in devmouse.c when I
> touch the screen.
> I saw in the previous message from Kelvin that I had to adapt the
> structure for the ADS7843 so I modified the touchscreen_ads7846.h file
> and wrote :
> 
> #ifndef  TS_DEVICE
> #define TS_DEVICE  "ADS7846"
> 
> #define  TS_DEVICE_FILE  "/dev/event0"
> 
> struct  ts_event{
> 	short	pressure;
> 	short	x;
> 	short 	y;
> 	short	dumy;
> };
> 
> #endif
> 
> My next question is why can't I see anything from mou-touchscreen.c ?
> I've also commented out the filter_transform function but I see nothing..
> So, does the touchscreen really act like a mouse ?

I've used the ADS7843 a while back and I used my tslib patch I posted some time back. 
You migh want to check the archives for it and may need to adjust your threshold.

--Jr.

Subject: Re: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: "William IN" ####@####.####
Date: 4 Jun 2007 14:25:00 +0100
Message-Id: <7FDA2B75D6D2DA4B82CB4A63F1CBFDE74372C8@serveur22.Synchronic.local>

Hi Junior,

I've downloaded TSLIB from this website : http://linux-dvbh.blogspot.com/2006/12/tslib-download-and-cross-compile-for.html because I couldn't find it the archives. The thing is I don't really know if it is the latest version because there is no ADS7843 in the ts.conf file.
Could you tell me where is your TSLIB patch.

Best regards,
William IN
Subject: Re: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues and queries
From: Junior ####@####.####
Date: 6 Jun 2007 03:23:44 +0100
Message-Id: <5B58AADBC7C.000007F2ejr@inbox.com>

http://tslib.berlios.de/

> -----Original Message-----
> From: ####@####.####
> Sent: Mon, 4 Jun 2007 15:25:53 +0200
> To: ####@####.####
> Subject: Re: [nanogui] ADS 7843 Touchscreen Solved ! Touchscreen issues
> and queries
> 
> Hi Junior,
> 
> I've downloaded TSLIB from this website :
http://linux-dvbh.blogspot.com/2006/12/tslib-download-and-cross-compile-for.html
> because I couldn't find it the archives. The thing is I don't really know
> if it is the latest version because there is no ADS7843 in the ts.conf
> file.
> Could you tell me where is your TSLIB patch.
> 
> Best regards,
> William IN
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.