imx6ull add capacitance touch screen

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6ull add capacitance touch screen

跳至解决方案
1,400 次查看
lukeli
Contributor II

Dear Sir:

            we are using imx6ull for our projects. and face a problem about touch panel.

            we have ported the source for a cap touch screen. and I can even get the x/y report value with command "hexdump /dev/input/event1" after click the screen.   my lcd is 320X480.

if click left top, it will print

...

0001f10 fc4a 59f6 59e6 0006 0003 0035 0002 0000

0001f20 fc4a 59f6 59e6 0006 0003 0036 002b 0000

...

if click right bottom, it will print

...

0001f90 fcd3 59f6 b731 0001 0003 0035 0115 0000

0001fa0 fcd3 59f6 b731 0001 0003 0036 01df 0000

...

here is the log when I run evtest:

evtest /dev/input/event1

Input driver version is 1.0.1

Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0

Input device name: "fts_ts"

Supported events:

  Event type 0 (EV_SYN)

  Event type 1 (EV_KEY)

    Event code 330 (BTN_TOUCH)

  Event type 3 (EV_ABS)

    Event code 48 (ABS_MT_TOUCH_MAJOR)

      Value      0

      Min        0

      Max      255

    Event code 53 (ABS_MT_POSITION_X)

      Value      0

      Min        0

      Max      320

    Event code 54 (ABS_MT_POSITION_Y)

      Value      0

      Min        0

      Max      480

    Event code 57 (ABS_MT_TRACKING_ID)

      Value      0

      Min        0

      Max       15

    Event code 58 (ABS_MT_PRESSURE)

      Value      0

      Min        0

      Max      255

Properties:

  Property type 1 (INPUT_PROP_DIRECT)

Testing ... (interrupt to exit)

[FTS][A]P0(301, 2)[p:63,tm:9] DOWN!

Event: time 1509371557.126285, type 3 (EV_ABS), code 57 (ABS_MT_TR[FTS][A]P0(301, 2)[p:63,tm:9] DOWN!

ACKING_ID), value 0

Event: time 1509371557.126285, type 3 (EV_ABS), code 58 (ABS_MT_PR[FTS][A]P0(302, 2)[p:63,tm:9] DOWN!

ESSURE), value 63

Event: time 1509371557.126285, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.1[FTS][A]P0(302, 2)[p:63,tm:9] DOWN!

26285, -------------- SYN_REPORT ------------

Event: time 150937[FTS][A]Points All Up!

1557.129618, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1

Event: time 1509371557.129618, -------------- SYN_REPORT ------------

Event: time 1509371557.139469, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0

Event: time 1509371557.139469, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 63

Event: time 1509371557.139469, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.139469, -------------- SYN_REPORT ------------

Event: time 1509371557.154263, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0

Event: time 1509371557.154263, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 63

Event: time 1509371557.154263, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.154263, -------------- SYN_REPORT ------------

Event: time 1509371557.170482, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0

Event: time 1509371557.170482, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 63

Event: time 1509371557.170482, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.170482, -------------- SYN_REPORT ------------

Event: time 1509371557.184227, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0

Event: time 1509371557.184227, ++++++++++++++ SYN_MT_REPORT ++++++++++++

Event: time 1509371557.184227, -------------- SYN_REPORT ------------

but the UI do not response the event.

                 do you have any idea about this problem?             

标签 (2)
0 项奖励
1 解答
1,189 次查看
lukeli
Contributor II

使用的是linux,  去除touch panel multi input相关代码后,touch panel已正常运行。

在原帖中查看解决方案

0 项奖励
4 回复数
1,189 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

你这里使用的是哪个版本的BSP,Linux还是Android的?

0 项奖励
1,190 次查看
lukeli
Contributor II

使用的是linux,  去除touch panel multi input相关代码后,touch panel已正常运行。

0 项奖励
1,189 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

OK,可以工作了就好

0 项奖励
1,189 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

从你上述信息可以看到你底层的驱动是跑起来了,应用层还要添加,你可以可以联系一下你购买屏的厂家要一下该触摸屏的文件添加到应用层就可以了。

0 项奖励