一个利用多线程及重叠I/O实现的串口通信类  被引量:5

A Serial Port Communication Class Realized with Multithread and Overlapped I/O

在线阅读下载全文

作  者:龙飞[1] 李晓帆[1] 蔡志开[1] 高奇峰[1] 

机构地区:[1]华中科技大学电气与电子工程学院,湖北武汉430074

出  处:《微机发展》2004年第3期49-51,69,共4页Microcomputer Development

摘  要:Win32系统中,多线程环境为实现实时串口通信提供了一个很好的解决办法。文中提出了一个多线程串口通信类,该类具有简单的接口,使用重叠I/O方式实现,不会导致线程阻塞。给出了该类的具体实现方法,并将其应用到一个直流电源的监控系统中,通过与扩展异步通信芯片配合使用,成功实现了在38400波特率下运行。In Win32 system, multithread environment provides a good solution for realizing serial port communication.In this paper,a serial port communication class is proposed.It has the simple interface.It adopts overlapped I/O method and thus threads won't be blocked. The realizing methods of class are also described in this paper.This class is successfully used in a DC power'smonitor and control system.This system operates well under 38400 bps baud rate.

关 键 词:WINDOWS32 操作系统 多线程 I/O方式 串口通信类 串口通信程序 人机界面 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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