nanogui: ADS 7843 Touchscreen Solved ! Touchscreen issues and queries


Previous by date: 1 Jun 2007 16:41:22 +0100 an API question, Junior
Next by date: 1 Jun 2007 16:41:22 +0100 Re: Screen update methods, Junior
Previous in thread: 1 Jun 2007 16:41:22 +0100 ADS 7843 Touchscreen Solved ! Touchscreen issues and queries, William IN
Next in thread: 1 Jun 2007 16:41:22 +0100 Re: ADS 7843 Touchscreen Solved ! Touchscreen issues and queries, William IN

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.


Previous by date: 1 Jun 2007 16:41:22 +0100 an API question, Junior
Next by date: 1 Jun 2007 16:41:22 +0100 Re: Screen update methods, Junior
Previous in thread: 1 Jun 2007 16:41:22 +0100 ADS 7843 Touchscreen Solved ! Touchscreen issues and queries, William IN
Next in thread: 1 Jun 2007 16:41:22 +0100 Re: ADS 7843 Touchscreen Solved ! Touchscreen issues and queries, William IN


Powered by ezmlm-browse 0.20.