首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于主动发送/串口监听模式的实时数据采集
引用本文:华泽玺,王长林,尹忠科,章冲.基于主动发送/串口监听模式的实时数据采集[J].西南交通大学学报,2005,40(1):35-38.
作者姓名:华泽玺  王长林  尹忠科  章冲
作者单位:西南交通大学计算机与通信工程学院,四川,成都,610031
摘    要:针对数据采集中的实时性问题,提出了一种新的数据采集方案.该方案建立智能设备主动向串口发送数据,应用计算机多线程技术建立串口监听线程.去掉了传统数据采集方案串口通信中握手和断开连接的过程,同时也保证了数据传输的可靠性.实验结果表明,每次传输20字节时,传输时间可以缩短到原来的约20%。该方案方案已经得到了实际应用.

关 键 词:串口  通信  串口监听  数据采集  实时性
文章编号:0258-2724(2005)01-0035-04

Real-Time Data Acquisition Method Based on Active Data Sending/Serialport Data Monitoring
HUA Ze-xi,WANG Chang-lin,YIN Zhong-ke,ZHANG Chong.Real-Time Data Acquisition Method Based on Active Data Sending/Serialport Data Monitoring[J].Journal of Southwest Jiaotong University,2005,40(1):35-38.
Authors:HUA Ze-xi  WANG Chang-lin  YIN Zhong-ke  ZHANG Chong
Abstract:To resolve the real-time problem in data acquisition, a new real-time data acquisition method was proposed. In this method, actively sending data to serialport is created on intelligent equipment and a thread program of serialport monitoring is created based on multithreading technology. Handshake and end-connecting processes in conventional serialport communication are taken out from the procedure of data acquisition, and the reliability of the system can be guaranteed. The experimental results show that data transmitting time is shortened to 20% of the original transmitting time when transmitted data are 20 bytes per time. The proposed method has been applied to practice.
Keywords:serial interface  communication  serialport data monitoring  data acquisition  real-time character
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号