嵌入式爱好者

查看: 20358|回复: 5

[Linux] 我的电容触屏特别不灵敏

[复制链接]

0

主题

0

帖子

9

积分

AM335x通行证

扫一扫,手机访问本帖
发表于 2013-12-13 10:02:01 | 显示全部楼层 |阅读模式
如题,我的电容触屏特别不灵敏,在qt的那个主界面上的时候还可以,等点击进入下面子窗口的时候,触屏就不太好用了,尤其是那个关闭窗口按钮,可能要点几十下才能偶尔关闭,我初步估计是触屏校准与窗口上的图标不匹配,这个应该怎么做?我想重新校一下屏,除了重新初始化rootfs系统外,还能怎么做?谢谢
回复

使用道具 举报

1

主题

67

帖子

108

积分

发表于 2013-12-13 17:07:43 | 显示全部楼层
建议lz将屏幕的外壳去掉,屏幕的外壳影响了屏幕边角的触摸是用
点评回复 支持 反对

使用道具 举报

0

主题

0

帖子

9

积分

AM335x通行证

 楼主| 发表于 2013-12-14 08:42:26 | 显示全部楼层
l谢谢楼上,不过把外壳去了,也没改善
点评回复 支持 反对

使用道具 举报

0

主题

0

帖子

9

积分

AM335x通行证

 楼主| 发表于 2013-12-14 08:55:55 | 显示全部楼层
我把ft5x06_ts.c中的printk("Linux Touch down,it is start \n");和printk("Linux Touch up,it is end \n");打开了按键正常的时候有Linux Touch up,it is end输出,怎么按都没反应的时候就只有"Linux Touch down,it is start输出。
点评回复 支持 反对

使用道具 举报

0

主题

0

帖子

9

积分

AM335x通行证

 楼主| 发表于 2013-12-17 16:59:53 | 显示全部楼层
我把从i2c总线上读出来的数据上上看,如果触摸时间稍长一点,从i2c读出来的数据就不正确,只能快速的点击看着数据才能正常一点,还有就是每个子串口的关闭按钮感觉是点不到正确位置上,偶尔能有效。快速点击正确的打印数据是[19124.875007]
[19124.875018]  recdata=0,0,11,1,5a,5a,0,fe,0,0
[19124.881136] start read_data i2c_rxdata OK
[19124.885381] Touch down, x=15a y=fe
[19124.889042] Linux Touch down,it is start
[19124.893247] button down
[19124.924938]
[19124.924949]  recdata=0,0,11,81,5a,5a,0,fe,0,0
[19124.931142] start read_data i2c_rxdata OK
[19124.935344] Touch down, x=15a y=fe
[19124.938998] Linux Touch down,it is start
[19124.943209] button down
[19124.964878]
[19124.964884]  recdata=0,0,11,81,5a,5a,0,fe,0,0
[19124.971064] start read_data i2c_rxdata OK
[19124.975264] Touch down, x=15a y=fe
[19124.978907] Linux Touch down,it is start
[19124.983106] button down
[19125.004858]
[19125.004863]  recdata=0,0,10,41,5a,5a,0,fe,0,0
[19125.011041] Touch up,it is end !
[19125.014419] start read_data i2c_rxdata OK
[19125.018606] Linux Touch up,it is end
[19125.022437] button down
其中recdata后面跟的是i2c读出来的数据,这个数据从协议上看是正确
稍微按触屏的时间长一点,也就是点击的2-3倍吧
[19312.444916]
[19312.444926]  recdata=0,0,11,2,70,70,1,46,0,0
[19312.451034] start read_data i2c_rxdata OK
[19312.455238] Touch down, x=270 y=146
[19312.458990] Linux Touch down,it is start
[19312.463189] button down
[19312.484918]
[19312.484929]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.491114] start read_data i2c_rxdata OK
[19312.495312] Touch down, x=270 y=146
[19312.499048] Linux Touch down,it is start
[19312.503255] button down
[19312.524870]
[19312.524877]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.531054] start read_data i2c_rxdata OK
[19312.535251] Touch down, x=270 y=146
[19312.538982] Linux Touch down,it is start
[19312.543178] button down
[19312.564855]
[19312.564860]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.571033] start read_data i2c_rxdata OK
[19312.575231] Touch down, x=270 y=146
[19312.578963] Linux Touch down,it is start
[19312.583156] button down
[19312.604848]
[19312.604853]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.611026] start read_data i2c_rxdata OK
[19312.615218] Touch down, x=270 y=146
[19312.618952] Linux Touch down,it is start
[19312.623146] button down
[19312.644853]
[19312.644858]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.651035] start read_data i2c_rxdata OK
[19312.655229] Touch down, x=270 y=146
[19312.658959] Linux Touch down,it is start
[19312.663156] button down
[19312.684847]
[19312.684852]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.691029] start read_data i2c_rxdata OK
[19312.695223] Touch down, x=270 y=146
[19312.698953] Linux Touch down,it is start
[19312.703146] button down
[19312.724848]
[19312.724853]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.731026] start read_data i2c_rxdata OK
[19312.735222] Touch down, x=270 y=146
[19312.738953] Linux Touch down,it is start
[19312.743146] button down
[19312.764847]
[19312.764852]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.771028] start read_data i2c_rxdata OK
[19312.775222] Touch down, x=270 y=146
[19312.778956] Linux Touch down,it is start
[19312.783149] button down
[19312.806716]
[19312.806725]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.812955] start read_data i2c_rxdata OK
[19312.817137] Touch down, x=270 y=146
[19312.820873] Linux Touch down,it is start
[19312.825080] button down
[19312.844882]
[19312.844888]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.851068] start read_data i2c_rxdata OK
[19312.855264] Touch down, x=270 y=146
[19312.858996] Linux Touch down,it is start
[19312.863194] button down
[19312.884862]
[19312.884869]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.891044] start read_data i2c_rxdata OK
[19312.895240] Touch down, x=270 y=146
[19312.898971] Linux Touch down,it is start
[19312.903166] button down
[19312.924853]
[19312.924859]  recdata=0,0,11,82,70,70,1,46,0,0
[19312.931034] start read_data i2c_rxdata OK
[19312.935226] Touch down, x=270 y=146
[19312.938959] Linux Touch down,it is start
[19312.943153] button down
[19312.964851]
[19312.964856]  recdata=0,ff,5,ff,ff,ff,ff,ff,0,0
[19312.971124] start read_data i2c_rxdata OK
[19312.975317] Touch down, x=fff y=fff
[19312.979051] Linux Touch down,it is start
[19312.983243] Touch down, x=fff y=fff
[19312.986970] Linux Touch down,it is start
[19312.991148] Touch down, x=fff y=fff
[19312.994882] Linux Touch down,it is start
[19312.999064] Touch down, x=fff y=fff
[19313.002800] Linux Touch down,it is start
[19313.006978] Touch down, x=fff y=fff
[19313.010707] Linux Touch down,it is start
[19313.014897] button down
从数据上看没有抬起动作,后面还有好多ff的值,从这个现象上看是触屏本身发出来的数据不正确
点击关闭串口按钮的那个X键
[19496.895983]
[19496.895992]  recdata=0,0,11,3,19,19,0,30,0,0
[19496.902161] start read_data i2c_rxdata OK
[19496.906344] Touch down, x=319 y=30
[19496.910007] Linux Touch down,it is start
[19496.914208] button down
[19496.944952]
[19496.944964]  recdata=0,0,11,83,19,19,0,30,0,0
[19496.951149] start read_data i2c_rxdata OK
[19496.955351] Touch down, x=319 y=30
[19496.959003] Linux Touch down,it is start
[19496.963211] button down
[19496.984884]
[19496.984890]  recdata=0,0,11,83,19,19,0,30,0,0
[19496.991072] start read_data i2c_rxdata OK
[19496.995269] Touch down, x=319 y=30
[19496.998913] Linux Touch down,it is start
[19497.003114] button down
[19497.024864]
[19497.024869]  recdata=0,0,11,83,19,19,0,30,0,0
[19497.031044] start read_data i2c_rxdata OK
[19497.035241] Touch down, x=319 y=30
[19497.038882] Linux Touch down,it is start
[19497.043075] button down
[19497.064853]
[19497.064859]  recdata=0,0,11,83,19,19,0,30,0,0
[19497.071034] start read_data i2c_rxdata OK
[19497.075229] Touch down, x=319 y=30
[19497.078873] Linux Touch down,it is start
[19497.083067] button down
[19497.104854]
[19497.104860]  recdata=0,0,11,83,19,19,0,30,0,0
[19497.111034] start read_data i2c_rxdata OK
[19497.115228] Touch down, x=319 y=30
[19497.118872] Linux Touch down,it is start
[19497.123067] button down
[19497.144857]
[19497.144863]  recdata=0,0,10,43,19,19,0,30,0,0
[19497.151040] Touch up,it is end !
[19497.154416] start read_data i2c_rxdata OK
[19497.158599] Linux Touch up,it is end
[19497.162430] button down
感觉事件时触发了,但是串口也关闭不上,偶尔能关上,不知道这是什么原因
点评回复 支持 反对

使用道具 举报

0

主题

1836

帖子

1028

积分

发表于 2014-1-10 15:45:48 | 显示全部楼层
楼上朋友,如果是Linux系统建议您选择电阻屏,Linux电容屏触摸驱动我们这边也在优化改进,后续会有新版本升级。
该会员没有填写今日想说内容.
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-21 02:07

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表