迪文科技论坛

 找回密码
 立即注册
搜索
查看: 234|回复: 5

[Question] Trigger Variable Data input by Serial Terminal

[复制链接]

2

主题

5

回帖

203

积分

中级会员

Rank: 3Rank: 3

积分
203
发表于 2022-3-1 23:41:41 | 显示全部楼层 |阅读模式
Hello, I want to show 2 numbers in a text box "Data variable" using "Return key code". If the case would be 1 digit, it's ok because the previous number gets overwritten. I verified in DWIN debbuger.So, correct me if I am wrong, in case of more than 1 digit it must be implemented with "Variable input" button, isn't it?
How's the way to trigger this button, without being touched?
I mean, how can I send over Serial Terminal this action?
Is there any example of this? PDF; Images...

I give my example:
Variable data input : (Xs, Ys ) (Xe,Ye)  => (0,0) (30,30)
PIC_ID = 0x00 0x00
PIC_NEX = 0xFF 0xFF
PIC_ON  = 0x00 0x00
TP_CODE = 0xFE00
VP = 0x20 0x00

How can I arrange previous data in Serial frame?

Any "serial frame" or graphic example will be appreciated.




回复

使用道具 举报

0

主题

40

回帖

315

积分

中级会员

Rank: 3Rank: 3

积分
315
发表于 2022-3-2 09:10:15 | 显示全部楼层
Hello, you have to realize this problem through C51 program.
回复

使用道具 举报

0

主题

40

回帖

315

积分

中级会员

Rank: 3Rank: 3

积分
315
发表于 2022-3-2 10:24:00 | 显示全部楼层
Each "Data ariable"box can only store and show 1  data( 2-digit number,tens' digit,or hundreds' digit,etc).
Yes,the"Variable input"can input data into the "Data ariable"box,also,u can just send Communication command through the Serial Terminal
for example:
Dwin Standard communication protocol command: 5A A5 05 82 1000 0002
5A A5  start of frame
05       length of frame
82       data write(if it is 83,that means read )
1000   VP
0002   data (in hexadecimal)

As you can see,the "return key code"has its value that can be set,the Working principle is : once the "return key code"botton is clicked,
the value u have set will put into the VP,then clear it .You can just input data into the VP of the "return key code"by the command just mentioned,
sending in the data equal to the value, in that case,you can trigger the "return key code" without touching it.
回复

使用道具 举报

0

主题

10

回帖

459

积分

中级会员

Rank: 3Rank: 3

积分
459
发表于 2022-3-2 21:58:29 | 显示全部楼层
Hello , for more technicial support you can contact with me. Email: dora@dwin.com.cn
回复

使用道具 举报

2

主题

5

回帖

203

积分

中级会员

Rank: 3Rank: 3

积分
203
 楼主| 发表于 2022-3-2 22:26:38 | 显示全部楼层
Thank you for your kindy reponse Dora and 帅到爆 .

Hello, you have to realize this problem through C51 program.

It would take more time, I know that loading C51 program overwrites 8283 native DWIN protocol, so I can't use it anymore.

I still think that I didn't express myself correctly.
Suppose I've already done my entire GUI program, and placed Data input variable with these data:
I give my example:
Variable data input : (Xs, Ys ) (Xe,Ye)  => (0,0) (30,30)
PIC_ID = 0x00 0x00
PIC_NEX = 0xFF 0xFF
PIC_ON  = 0x00 0x00
TP_CODE = 0xFE00
VP = 0x20 0x00

How can I use Serial Commands to trigger Data variable input? Is is possible? I mean, the action of touching Variable-Input-Button but through Serial Communication - Terminal. I leave some image caps of DWIN Application development guide.




本帖子中包含更多资源

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

x
回复

使用道具 举报

发表于 2022-3-2 23:53:40 | 显示全部楼层
The analog touch variable 00d4 can trigger the touch effect without clicking on the screen. Follow up the coordinate position to simulate touch control. See the screenshot for the specific use method.

本帖子中包含更多资源

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

x
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-28 15:34 , Processed in 0.073470 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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