Realization of a General Com Thread in C++ Builder
Yang Xudong,Cai Jingkun,Li Juan
DOI: https://doi.org/10.16526/j.cnki.11-4762/tp.2011.07.077
2011-01-01
Abstract: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.