迪文科技论坛

 找回密码
 立即注册
搜索
查看: 784|回复: 10

【Question】K600+ How to get data when touch is made

[复制链接]

6

主题

19

回帖

87

积分

注册会员

Rank: 2

积分
87
发表于 2021-12-24 15:21:13 | 显示全部楼层 |阅读模式
现在撕掉触屏时, Return Key Code 显示为 serial。  触屏开始时有接收数据的方法吗?
回复

使用道具 举报

2

主题

1228

回帖

9360

积分

论坛元老

Rank: 8Rank: 8

积分
9360
发表于 2021-12-24 15:27:11 | 显示全部楼层
本帖最后由 zzs999k 于 2021-12-24 15:36 编辑

打开按键自动上传 CONFIG配置即可


1.Open the button to automatically




2.System configuration generation






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

6

主题

19

回帖

87

积分

注册会员

Rank: 2

积分
87
 楼主| 发表于 2021-12-24 16:35:14 | 显示全部楼层
zzs999k 发表于 2021-12-24 15:27
打开按键自动上传 CONFIG配置即可

Thanks for your comment.

I tried all possible combinations without success.
I mean I couldn't get any data when touch starts.  

Maybe I don't understand you correctly, so I want to make sure what you mean :

1. In your first image, you mean we should check the Data Auto Upload, right?  (I'm double checking here though it seems obvious because I can't get any data if this box is unchecked.)

2. In your 3rd image, do you mean red box should be selected?
Key data to serial port is sent out only when the touch is released if any.
And TPSAUTO should be set as the 2nd option to get the serial data.

回复

使用道具 举报

2

主题

1228

回帖

9360

积分

论坛元老

Rank: 8Rank: 8

积分
9360
发表于 2021-12-24 16:39:27 | 显示全部楼层
本帖最后由 zzs999k 于 2021-12-24 16:40 编辑
DWIN_newbie 发表于 2021-12-24 16:35
Thanks for your comment.

I tried all possible combinations without success.
Is there a response when you send 5A A5 03 81 00 01 through the serial port?
it needs to be set on the control side.and,The system parameter setting also needs to open the automatic upload parameter, save it, and download the DWIN_SET project again.
回复

使用道具 举报

6

主题

19

回帖

87

积分

注册会员

Rank: 2

积分
87
 楼主| 发表于 2021-12-24 19:47:39 | 显示全部楼层
zzs999k 发表于 2021-12-24 16:39
Is there a response when you send 5A A5 03 81 00 01 through the serial port?
it needs to be set on  ...

Serial data communication is OK.
All I want is to know if I can get the data when touch is pressed, not released. (K600+ sends out the key code when touch is released. )
Like key make/break, you know, the data is sent out when "break", but I want it when "make".

Would you kindly let me know if it is possible to get the touch data when the user start touching the button?
回复

使用道具 举报

2

主题

1228

回帖

9360

积分

论坛元老

Rank: 8Rank: 8

积分
9360
发表于 2021-12-24 23:56:36 | 显示全部楼层
DWIN_newbie 发表于 2021-12-24 19:47
Serial data communication is OK.
All I want is to know if I can get the data when touch is presse ...

Of course,you can use  return press state value of TP

   TP_ON_Mode :
       0x00: return no value.
       0x01: write value of *VP1S address into storage space of *VP1T address.
       0x02: send value of *VP1S address to serial port.
       0x03: write value of *VP1S address into register space of *VP1T address.

   TP_ON_Continue_Mode:
       0x00: return no value.
       0x01: write value of *VP2S address into storage space of *VP2T address.
       0x02: send value of *VP2S address to serial port.
       0x03: write value of *VP2S address into register space of *VP2T address.
  TP_OFF_Mode:
     0x01: write value of *VP3S address into storage space of *VP3T address.
    0x02: send value of *VP3S address to serial port.
    0x03: write value of *VP3S address into register space of *VP3T address.
If you set ----TP_ON_Continue_Mode=0X02------ - --TP_ON_Mode=0X02 -------:, When you first press to send the value of * vp1s address to the serial port, when you continue to press, send the value of * vp2s address to the serial port



回复

使用道具 举报

0

主题

3

回帖

235

积分

中级会员

Rank: 3Rank: 3

积分
235
发表于 2021-12-25 06:46:25 | 显示全部楼层
本帖最后由 爬上树的猫 于 2021-12-25 06:47 编辑
DWIN_newbie 发表于 2021-12-24 19:47
Serial data communication is OK.
All I want is to know if I can get the data when touch is presse ...

Could you pls leave me your contact like email address, whatsapp so that our engineer can talk you directly?My email: lewei@dwin.com.cn

回复

使用道具 举报

6

主题

19

回帖

87

积分

注册会员

Rank: 2

积分
87
 楼主| 发表于 2021-12-27 11:20:55 | 显示全部楼层
zzs999k 发表于 2021-12-24 23:56
Of course,you can use  return press state value of TP

   TP_ON_Mode :

Thanks, but, where can I set these "TP_xx" modes ?
回复

使用道具 举报

0

主题

671

回帖

9897

积分

论坛元老

Rank: 8Rank: 8

积分
9897
发表于 2021-12-27 21:25:27 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

6

主题

19

回帖

87

积分

注册会员

Rank: 2

积分
87
 楼主| 发表于 2021-12-28 10:38:17 | 显示全部楼层

Thanks!
I should have updated the tool!
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2024-11-23 05:38 , Processed in 0.084644 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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