大气与环境光学学报 ›› 2010, Vol. 5 ›› Issue (2): 150-155.

• 光电技术 • 上一篇    下一篇

基于多串口通信的大气参数实时数据采集系统

卢伟, 刘小勤   

  1. (中国科学院安徽光学精密机械研究所中国科学院大气成分与光学重点实验室, 安徽 合肥 230031)
  • 收稿日期:2009-04-24 修回日期:2009-08-23 发布日期:2010-03-22
  • 通讯作者: 卢伟 (1983-),男,江苏徐州人,硕士研究生,研究方向为计算机技术。 E-mail:luwei331@mail.ustc.edu.cn
  • 作者简介:卢伟 (1983-),男,江苏徐州人,硕士研究生,研究方向为计算机技术。

Real-Time Atmospheric Data Collecting System Based on Multi-Serial Communication

LU Wei, Liu-Xiao-Qin   

  1. (Key Laboratory of Atmospheric Composition and Optical Radiation, Anhui Institute of Optics and Fine Mechanics, China Academy of Sciences, Hefei 230031, China)
  • Received:2009-04-24 Revised:2009-08-23 Online:2010-03-22

摘要:

在大气参数实时数据采集系统设计中,需要同时使用多个串口从传感器中采集多个大气参数。介绍了在VC++6.0中,如何利用MSComm控件实现多串口通信,将经过预处理的数据从串行口RS232接受到计算机中,并完成采集数据的显示、存储和传输功能,实现从多个串口采集数据的同步处理。该方案简单实用、成本较低、可靠性高。通信部分采用UDP/IP协议。

关键词: MSComm控件, 数据采集, 多串口通信, UDP

Abstract:

In the real-time atmospheric data collecting system, atmospheric data can be collected with multi-serial communication at the same time. Based on VC++6.0, how to use MSComm control to realize multi-serial communication is introduced. The procedure is depicted containing sending pretreatment datum from serial device RS232 to PC, and bringing the collection datum display, storage and transmission come true. The scheme is simple and practical, and it is successfully used in the multi-serial interface real-time acquisition and processing system. The communication portion adopts UDP/IP.

Key words: MSComm control, data collection, multi-serial communication, UDP

中图分类号: