西南石油大学学报(自然科学版) ›› 2001, Vol. 23 ›› Issue (4): 68-70.DOI: 10.3863/j.issn.1000-2634.2001.04.20

• 油气地面工程 • 上一篇    下一篇

Windows环境下PC机与PC104的串行通讯控制

李建1 徐璧华2 陈利学1

  

  1. (1.西南石油学院计算机科学学院,四川 南充 637001; 2.西南石油学院石油工程学院)
  • 收稿日期:2001-04-06 修回日期:1900-01-01 出版日期:2001-08-20 发布日期:2001-08-20

CONTROL OF THE SERIAL COMMUNICATION BETWEENPC AND PC104UNDER WINDOWS

LI Jian1 XU Bi-hua1 CHEN Li-xue1   

  1. (Southwest Petroleum Institute,Nanchong,Sichuan 637001,China)
  • Received:2001-04-06 Revised:1900-01-01 Online:2001-08-20 Published:2001-08-20

摘要:

介绍了Win98环境下利用VB的通讯控件(MSComm控件),实现PC机与PC104的串行通讯方法。详细描述了PC机与PC104之间通讯涉及的通讯端口初始化、命令发送、数据接受以及数据效验等及编程技巧;并给出PC机与PC104之间的串行通讯源程序。

关键词: 串行通讯, MSComm控件, 数据效验, PC104

Abstract:

This article introduced the serial communication between PC and PC104, which actualized by the VB communication control (MSComm control) under Win98. It was described the communication port initialization, the command transmission, the data acceptance as well as the data Check, and the programming skill, and so on, which the PC and PC104 involved in. The serial communication source programs in this method was presented in the paper.

Key words: serial communication, MSComm control, data check, PC104

中图分类号: