检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]青岛远洋船员职业学院图文信息中心,青岛266071 [2]青岛大学自动化工程学院,青岛266071
出 处:《电子测量技术》2015年第6期139-142,共4页Electronic Measurement Technology
摘 要:串口通信因其简单、可靠和高标准化在工业自动化和电子仪器控制中得到广泛的应用。介绍数据采集系统串口通信的设计和实现。首先以Visual C++的编程环境为例,给出了用MSComm控件实现计算机与下位机之间的串口通信关键代码设计,介绍了MSComm控件的创建和属性的设置后,又从数据的发送和接收2个方面详细阐述了其关键代码的实例。然后,进行了通信传输协议的设计,以图形和代码示例详细展示了如何实现数据块的传输。接着给出了通信握手协议的设计,以流程图的形式讲述了上位机与下位机之间如何实现握手的。最后展示了系统运行的结果。还做了思路扩展,提出了实现计算机与下位机之间远程串口通信的2种方案。As a simple ,reliable and highly standard way of communication ,serial port communication is widely used in industrial automation and electrical equipment controller . The paper presents the way to implement serial port communication of a data collection system .Take Visual C+ + programming as example ,the key code for MSComm control is presented to implement serial port communications between computer and lower computer .It presents how to create and set up the MSComm control properties .Detailed key code design is discussed from sending perspective and receiving perspective . The communication transfer protocol is designed in details with figure illustration and code examples .The communication handshake protocol is designed in details with process presented to show how the handshake does between computer and lower compute .At the end ,the running result for the system is shown .The paper also extends its strategy to long distance communications between computer and lower computer .Two designs are mentioned .
关 键 词:串口通信 MSCOMM控件 通信传输协议 通信握手协议 远程串口通信
分 类 号:TP31[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.118