一种基于高速串口通信的高效数据处理方法  被引量:9

An Efficient Data Processing Method Based on High-Speed Serial Communication

在线阅读下载全文

作  者:王斌[1,2] 张林[1,2] 邓军[1,2] 熊耀臣[1,2] 吕明[1,2] 

机构地区:[1]九江精达检测技术有限公司,江西九江332008 [2]中国船舶工业集团公司第6354研究所,江西九江332000

出  处:《自动化技术与应用》2016年第6期57-60,共4页Techniques of Automation and Applications

摘  要:一种高速串口通信中数据处理方法 ,其利用CRC校验和数据帧编码校验技术进行数据组帧,运用MSComm控件进行串口通信,采用多线程和环形缓冲区技术进行数据接收和数据处理,处理后的数据进行自动显示和保存。实验结果表明,该方法简单高效可靠,可大大避免高速串口通信中数据丢失的现象,并有助于快速分析处理结果数据的有效性和完整性,具有较高的实际应用价值。A method of data processing in high-speed serial communication is proposed, it takes advantage of CRC technology and data coding technology to make a data frame, and makes use of MSComm control to finish serial communication, and adopts multithreading and ring buffer technology to receive and process data, and finally displays and saves all post processed data automatically. The experimental results indicate that this method is simple, efficient and reliable,and can greatly avoid this phenomenon of data loss in high-speed serial communication, and can contribute to quickly analyze validity and integrity of data processing results, and has great application value.

关 键 词:高速串口通信 数据处理 线程 环形缓冲区 计算机应用 

分 类 号:TP319[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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