您尚未登录。

楼主 #1 2018-11-21 09:41:51

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

触摸屏获取数据 只有刚开始按下去可以获取到坐标 中途没法获取坐标

现在就是刚按下去down的时候可以获取到坐标  中途不动的时候一直获取不到坐标 下面是截图是代码
主要是在i2c_transfer这个函数里面返回值为负数


read.png
RX.png
debug.png

离线

#2 2018-11-21 09:47:04

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 触摸屏获取数据 只有刚开始按下去可以获取到坐标 中途没法获取坐标

看起来是没有回应,逻辑分析仪抓下数据看下情况。





离线

楼主 #3 2018-11-21 10:31:06

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 触摸屏获取数据 只有刚开始按下去可以获取到坐标 中途没法获取坐标

这是中断里面的设置工作队列的
222_20181120-2130.png

离线

楼主 #4 2018-11-21 10:50:13

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 触摸屏获取数据 只有刚开始按下去可以获取到坐标 中途没法获取坐标

如果是我不放在工作队列里面直接放到中断里面去处理接收数据

离线

楼主 #5 2018-11-21 11:10:28

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 触摸屏获取数据 只有刚开始按下去可以获取到坐标 中途没法获取坐标

直接在中断里面去处理接收数据    又出现这样的
in.png

离线

楼主 #6 2018-11-21 15:21:35

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 触摸屏获取数据 只有刚开始按下去可以获取到坐标 中途没法获取坐标

我现在用的是内核里面的edt-ft5x05的驱动  就是中断不定义在dts里面  直接在代码gpio_to_irq
可以申请中断 但是出现问题 ,就是一直触摸的过程读取I2C的数据还是和上面的差不多
[   47.318768] M09
[   47.320572] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.329828] edt_ft5x06_ts_readwrite == error == -5
[   47.334619] edt_ft5x06_ts_isr: 94 callbacks suppressed
[   47.334627] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.345603] M09
[   47.347377] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.356600] edt_ft5x06_ts_readwrite == error == -5
[   47.361387] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.367219] M09
[   47.368976] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.378204] edt_ft5x06_ts_readwrite == error == -5
[   47.382989] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.388822] M09
[   47.390579] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.399796] edt_ft5x06_ts_readwrite == error == -5
[   47.404586] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.410417] M09
[   47.414871] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x7, status: 0x0, addr: 0x38, flags: 0x1
[   47.424244] edt_ft5x06_ts_readwrite == error == -5
[   47.429068] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.434902] M09
[   47.436717] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.445927] edt_ft5x06_ts_readwrite == error == -5
[   47.450739] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.456575] M09
[   47.460878] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x7, status: 0x0, addr: 0x38, flags: 0x1
[   47.470221] edt_ft5x06_ts_readwrite == error == -5
[   47.475014] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.480875] M09
[   47.482639] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.491863] edt_ft5x06_ts_readwrite == error == -5
[   47.496666] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.502489] M09
[   47.506895] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x7, status: 0x0, addr: 0x38, flags: 0x1
[   47.516183] edt_ft5x06_ts_readwrite == error == -5
[   47.520976] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.526839] M09
[   47.528601] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.537824] edt_ft5x06_ts_readwrite == error == -5
[   47.542613] edt_ft5x06 1-0038: Unable to fetch data, error: -5
[   47.548448] M09
[   47.552914] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x7, status: 0x0, addr: 0x38, flags: 0x1
[   47.562210] edt_ft5x06_ts_readwrite == error == -5
[   47.567036] M09
[   47.568802] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.578050] edt_ft5x06_ts_readwrite == error == -5
[   47.582834] M09
[   47.584592] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.593828] edt_ft5x06_ts_readwrite == error == -5
[   47.598624] M09
[   47.600382] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.609604] edt_ft5x06_ts_readwrite == error == -5
[   47.614386] M09
[   47.616155] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.625362] edt_ft5x06_ts_readwrite == error == -5
[   47.630153] M09
[   47.631913] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.641129] edt_ft5x06_ts_readwrite == error == -5
[   47.645911] M09
[   47.647688] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.656905] edt_ft5x06_ts_readwrite == error == -5
[   47.661688] M09
[   47.663448] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.672665] edt_ft5x06_ts_readwrite == error == -5
[   47.677459] M09
[   47.679216] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.688433] edt_ft5x06_ts_readwrite == error == -5
[   47.693219] M09
[   47.694975] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.704192] edt_ft5x06_ts_readwrite == error == -5
[   47.708985] M09
[   47.710741] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   47.719958] edt_ft5x06_ts_readwrite == error == -5
[   49.220586] M09
[   49.225719] edt_ft5x06_ts_readwrite == error == 0
[   49.230467] tsdata->max_support_points == 5
[   49.234672] okokokoko
[   49.236965] M09
[   49.242133] edt_ft5x06_ts_readwrite == error == 0
[   49.246945] tsdata->max_support_points == 5
[   49.251135] okokokoko
[   49.253408] M09
[   49.258580] edt_ft5x06_ts_readwrite == error == 0
[   49.263302] tsdata->max_support_points == 5
[   49.267570] okokokoko
[   49.269845] M09
[   49.274200] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x7, status: 0x0, addr: 0x38, flags: 0x1
[   49.283503] edt_ft5x06_ts_readwrite == error == -5
[   49.288349] M09
[   49.290118] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.299354] edt_ft5x06_ts_readwrite == error == -5
[   49.304139] M09
[   49.305898] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.315131] edt_ft5x06_ts_readwrite == error == -5
[   49.319930] M09
[   49.321688] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.330922] edt_ft5x06_ts_readwrite == error == -5
[   49.335705] M09
[   49.337473] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.346696] edt_ft5x06_ts_readwrite == error == -5
[   49.351479] M09
[   49.353238] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.362456] edt_ft5x06_ts_readwrite == error == -5
[   49.367247] M09
[   49.369006] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.378222] edt_ft5x06_ts_readwrite == error == -5
[   49.383005] M09
[   49.384763] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.393980] edt_ft5x06_ts_readwrite == error == -5
[   49.398774] M09
[   49.400531] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.409750] edt_ft5x06_ts_readwrite == error == -5
[   49.414536] M09
[   49.416302] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.425510] edt_ft5x06_ts_readwrite == error == -5
[   49.430306] M09
[   49.432063] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.441281] edt_ft5x06_ts_readwrite == error == -5
[   49.446075] M09
[   49.447831] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.457046] edt_ft5x06_ts_readwrite == error == -5
[   49.461832] M09
[   49.463587] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.472803] edt_ft5x06_ts_readwrite == error == -5
[   49.477597] M09
[   49.479353] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.488570] edt_ft5x06_ts_readwrite == error == -5
[   49.493355] M09
[   49.498595] edt_ft5x06_ts_readwrite == error == 0
[   49.503323] tsdata->max_support_points == 5
[   49.507610] okokokoko
[   49.509887] M09
[   49.514242] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x7, status: 0x0, addr: 0x38, flags: 0x1
[   49.523588] edt_ft5x06_ts_readwrite == error == -5
[   49.528408] M09
[   49.530177] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.539432] edt_ft5x06_ts_readwrite == error == -5
[   49.544218] M09
[   49.545995] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.555206] edt_ft5x06_ts_readwrite == error == -5
[   49.560003] M09
[   49.561760] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.570988] edt_ft5x06_ts_readwrite == error == -5
[   49.575771] M09
[   49.577543] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.586762] edt_ft5x06_ts_readwrite == error == -5
[   49.591545] M09
[   49.593305] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.602532] edt_ft5x06_ts_readwrite == error == -5
[   49.607328] M09
[   49.609088] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.618307] edt_ft5x06_ts_readwrite == error == -5
[   49.623089] M09
[   49.624848] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.634068] edt_ft5x06_ts_readwrite == error == -5
[   49.638862] M09
[   49.640618] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.649835] edt_ft5x06_ts_readwrite == error == -5
[   49.654621] M09
[   49.656386] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.665594] edt_ft5x06_ts_readwrite == error == -5
[   49.670390] M09
[   49.672146] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.681365] edt_ft5x06_ts_readwrite == error == -5
[   49.686161] M09
[   49.687916] i2c i2c-1: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x2, status: 0x0, addr: 0x38, flags: 0x0
[   49.697133] edt_ft5x06_ts_readwrite == error == -5
[   49.701919] M09
[   49.707199] edt_ft5x06_ts_readwrite == error == 0
[   49.711915] tsdata->max_support_points == 5
[   49.716176] okokokoko

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn