一种通用串口线程在C++ Builder中的实现  被引量:4

Realization of a General Com Thread in C++ Builder

在线阅读下载全文

作  者:杨旭东[1] 蔡敬坤[2] 李娟[1] 

机构地区:[1]哈尔滨工业大学航天学院,黑龙江哈尔滨150001 [2]中国航天科工集团三院三部,北京100074

出  处:《计算机测量与控制》2011年第7期1687-1689,共3页Computer Measurement &Control

摘  要:要使上位机和下位机之间能够进行良好的串口通信,就要制定他们之间的串口通信协议,然而通信协议的具体内容是根据用户的需求来自行制定的,其内容并不固定,如果每次都要针对具体的协议来编写解析串口发送数据帧内容的程序,既浪费时间,又不具有通用性。因此,特别设计了适用于解析不同协议的通用串口线程,只需事先设定好协议的结构和内容,而不用再去修改具体程序段的内容。最后,将其应用到电池极板测厚监控系统中,能够较好的实现PC机与DSP之间的串口通信,对电池极板厚度数据进行采集,为进一步的数据处理奠定了良好的基础。To make upper computer and lower computer communicate well through serial,the communication protocol must be designed.However,there are no fixed formats to make it,which is determined by users' requirement.Then,it is time-wasted and short of generality if we analyse the data frame according to the specific protocols every time.So,a general serial thread fitted for different communication protocols has been designed in this paper.Direct to this,the only thing we need to do is initiating the protocol at first,but not to modify the specific program.At last,it was applied in the thickness measurement monitor system of battery plates,that can be achieve the communication between PC and DSP,what's more,through that the thickness data acquisition of battery plates can be got,and have made a foundation for data processing.

关 键 词:串口线程 通信协议 通用性 

分 类 号:TN91[电子电信—通信与信息系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象