Project

General

Profile

Touchscreen is not detected

Added by Andri Haryono almost 3 years ago

Hello everyone,

Somehow my OMAP-L138F is not detecting my LCD as touchscreen LCD. I am using NEC_NL4827HC19-05B
and follow the step from here
https://support.criticallink.com/redmine/boards/10/topics/4558

the LCD shows the image, but i cannot do ts_calibrate for the touchscreen.
Can you guys point out where I did wrong?

thanks

root@mityomapl138:~/lcd-lx45# ./do_load_fpga_lcd.sh
ERROR: Module fpga_ctrl does not exist in /proc/modules
Disabling lock debugging due to kernel taint
fpga fpga_ctrl: loading the fpga_ctrl module.
fpga fpga_ctrl: Found Device ID 00-Base Module (01.01) at C681C000
fpga fpga_ctrl: Found Device ID 23-ADS7843 Touch Screen (01.02) at C681C080
input: ADS7843 Touchscreen as /devices/fpga_ctrl/1/input/input1
fpga fpga_ctrl: enable_irq_vector (0,0,1)
fpga fpga_ctrl: Found Device ID 02-LCD Settings Controller (01.00) at C681C180
fpga_lcdctlr 3: FPGA LCDCTLR Loaded
FPGA State = 4 : PROGRAMMED
PROGRAMMED
FPGA Version : 01.00
FPGA Date : 2010-04-20
Base Module Version : 01.01
Base Module Date : 2010-09-27
root@mityomapl138:~/lcd-lx45# ts_calibrate
xres = 480, yres = 272
tslib: Selected device is not a touchscreen (must support ABS and KEY event types)
Took 2 samples...
Top left : X = -547655198 Y = 537965376
Took 2 samples...
Top right : X = -547655198 Y = 537965376
Took 2 samples...
Bot right : X = -547655198 Y = 537965376
Took 2 samples...
Bot left : X = -547655198 Y = 537965376
Took 2 samples...
Center : X = -547655198 Y = 537965376
0.262587 0.679610 0.691852
1.435371 -3.489222 -3.552069
Calibration constants: 17208 44538 45341 94068 -228669 -232788 65536


Replies (5)

RE: Touchscreen is not detected - Added by Andri Haryono almost 3 years ago

I found out that we cannot use the touchscreen whenever the mouse/keyboard is attached to the USB port.
after I plug off those, the touchscreen is working.

However, i got another issue, the ts_calibration is working with the following result.
however, I cannot use the touchscreen when I use my QT program. somehow the point I touch is shifted/deviated to a random place

root@mityomapl138:~/lcd-lx16# ts_calibrate
xres = 480, yres = 272
Took 1 samples...
Top left : X = 891 Y = 3516
Took 1 samples...
Top right : X = 816 Y = 526
Took 1 samples...
Bot right : X = 2969 Y = 483
Took 1 samples...
Bot left : X = 3011 Y = 3564
Took 9 samples...
Center : X = 1947 Y = 1989
492.043213 0.000106 -0.125147
15.992462 0.080493 -0.001538
Calibration constants: 32246544 6 -8201 -1048082 5275 -100 65536

please find the attached code for my dummy QT program

test (368 KB)

test.zip (6.86 KB)

RE: Touchscreen is not detected - Added by Jonathan Cormier almost 3 years ago

Heres some pages I would read. http://processors.wiki.ti.com/index.php/How_to_Recalibrate_the_Touchscreen

http://processors.wiki.ti.com/index.php/Tslib
Note this page mentions a ts_test program. Lets see if the calibration works when using this test app.

Note before starting the Qt gui it might be necessary to define the following variables.

export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export QWS_MOUSE_PROTO=tslib:/dev/input/event0

/home/root/gui -qws &

RE: Touchscreen is not detected - Added by Andri Haryono almost 3 years ago

Thanks Jonathan for your reply,

I have follow you guidance. it improve the LCD touchsceen response. However, it's still hard to be used.
Do you have recommendation on capacitive touchscreen that supported by Critical link?

regards,

RE: Touchscreen is not detected - Added by Jonathan Cormier almost 3 years ago

Andri Haryono wrote:

Thanks Jonathan for your reply,

I have follow you guidance. it improve the LCD touchsceen response. However, it's still hard to be used.
Do you have recommendation on capacitive touchscreen that supported by Critical link?

Hmm we've used several different cap touchscreens over the years though I'm only aware of ones we've used on the 335x. However they've all been i2c based so the L138 should be a problem.

I don't recall what the touchscreens were or where they were purchased from. I'll have to get some feedback from some other engineers. Note that when you do pick out a cap touchscreen, make sure to check for existing drivers. The few I've dealt with have required some manual rewriting of the drivers to get to work based on datasheets that are mostly in Chinese.

RE: Touchscreen is not detected - Added by Jonathan Cormier almost 3 years ago

Jonathan Cormier wrote:

Hmm we've used several different cap touchscreens over the years though I'm only aware of ones we've used on the 335x. However they've all been i2c based so the L138 should be a problem.

*shouldn't be a problem

    (1-5/5)
    Add picture from clipboard (Maximum size: 500 MB)