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

基于Win32 API的多线程串行通信程序设计
引用本文:赵彦锋,李钢.基于Win32 API的多线程串行通信程序设计[J].现代电子技术,2005,28(19):110-112.
作者姓名:赵彦锋  李钢
作者单位:长安大学,信息工程学院,陕西,西安,710064
摘    要:在工业控制中,常需要进行PC机和单片机之间的通信,而串行通信是最常用的通信手段。本文在对Win32(Windows9x/NT/2000)环境下实现串行通信的API(Application Program Interface)函数介绍的基础上,结合Win32的多线程技术和消息响应机制,给出了在Win32环境下以VisualC++6.0为开发平台的多线程串行通信程序的实现方案,最后以印花机控制系统PC机程序的开发为例实现了简单、高效、多线程的串行通信程序,并给出了部分代码。

关 键 词:串行通信  Win32  多线程  消息响应  API
文章编号:1004-373X(2005)19-111-03
修稿时间:2005年7月21日

Programming of Multi-threading Serial Communication Based on Win32 API
ZHAO Yanfeng,LI Gang.Programming of Multi-threading Serial Communication Based on Win32 API[J].Modern Electronic Technique,2005,28(19):110-112.
Authors:ZHAO Yanfeng  LI Gang
Abstract:In industrial control,they often need to carry on the communication between the PC and singlechip computer,and serial communication is the most frequently used communication means.This paper introduces some API(Application Program Interface) functions which can realize serial communication,and multithreading technology,message response mechanism under Win32(Windows9x/NT/2000).Provide a method of implementation of highefficiency serial communication which use API function and multithreading technology with Visual C~++6.0 under Win32.Finally,this paper realize a serial communication program which highCD*2]efficiency and multithreading on PC in Printing machine Control system.And also gives some codes of serial communication.
Keywords:serial communication  Win32  multithreading  message response  API
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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