1.test 页面建立,跟download一样。
2.when "test"button is pressed. IsTest=1;and datadispose.cpp process the data receive and calculate the correct rate.
(刚开始搞错了,想自己建立一个串口类对象,然后初始化,读,这样很麻烦,首先要关闭其他的串口类,其次要从新编写循环,不如在datadispose中处理)
3.test的显示由sendmessage发给test页面。
4.程序流程: 是否在test page checked?
是,是否读到data?
读数据,显示”读数据“
计算数据,
发送数据,显示发送数据