检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]湖南天富机电科技有限公司,长沙410013 [2]湖南涉外经济学院,长沙410205
出 处:《电脑编程技巧与维护》2014年第18期66-68,共3页Computer Programming Skills & Maintenance
基 金:湖南省教育厅项目资助;项目编号:14C0649
摘 要:基于VC++6.0和Windows API函数开发了一种串口通信程序。该程序采用单线程消息响应机制,利用定时器消息响应查询串口来实现数据的接收。编程方法减小了设计难度,提高了开发效率。给出了基于消息机制的程序框图和部分程序代码,并编制了友好的人机交互界面。在实际使用过程中,稳定可靠,可作为其他串口通信编程的参考。This paper Development a Programming of serial communication based on VC++6.0 and Windows API, the Pro- gramming with a single threaded and message response mechanism, receive data by querying serial port with the timer messages. With this approach it reduces the design difficulty, improves the development efficiency. This paper gives the block diagram, part of program codes and the friendly man-machine interface. It' s stable and reliable in the practical application. So this paper can be a reference for the other serial communication programs.
关 键 词:串口通信 WINDOWS API函数 定时器消息机制
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.30