节点文献

基于以太网络的虚拟串行通讯软件开发

Development of Virtual Serial Communication Software Based on Ethernet

【作者】 宋波

【导师】 姜守达;

【作者基本信息】 哈尔滨工业大学 , 仪器科学与技术, 2009, 硕士

【摘要】 随着虚拟试验技术的不断发展,分布式虚拟仿真中各种实物串行通讯链路使系统组建受到硬件设备的限制,其虚拟化研究成为一种需要。本课题的目的在于在以太网的基础上实现各种串行通讯设备的虚拟模型,使用高速以太网替代各种实物总线进行数据传输,解决虚拟试验系统中串行通讯设备成本高,系统移植困难等问题。本课题在深入分析GJB289A、RS422、ARINC429通讯协议和总线拓扑结构的基础上,提出了虚拟串行通讯系统的开放式框架,采用统一控制接口的方式有效解决了实物设备和虚拟设备的切换问题;提出了虚拟设备分层设计思想,使得设备模型逻辑结构清晰,维护更加方便。在深入研究各种串行通讯总线数据传输特点的基础上,提出了虚拟总线资源统一管理,总线信息统一调度机制,分离了设备逻辑功能和具体数据传输的过程,简化了虚拟设备的设计实现。本课题深入分析了软件实现精密时钟协议带来的同步精度问题,提出了一种基于PTP的局域网高精度时钟同步方案,通过构造高精度时钟,采取握手机制以及对测量结果进行处理,实现了局域网内亚毫秒精度的时钟同步,为分布式虚拟试验系统提供了可靠的同步时钟服务。本文采用UML建模工具对软件的需求、静态结构和动态行为进行建模;在虚拟试验系统支撑软件平台下,采用微软新一代企业级开发平台——Microsoft Visual Studio.NET框架开发了GJB289A/RS422/ARINC429总线基于以太网的虚拟设备模型和应用层控制软件。经过软件测试和实际使用表明,本软件实现了虚拟总线构建、管理、仿真等功能,软件运行可靠,用户界面友好。

【Abstract】 With development of the virtual test technology, various kind of serial communication link in the distributed virtual simulation make system setting up limited by the hardware, therefore the study of virtual serial communication is becoming a necessity. The purpose of this topic is to realize a variety of serial communication equipment virtual models based on Ethernet, and alternate the data buses with high-speed Ethernet, solve the problems such as the high cost of the serial communication equipment in the virtual test system, the difficulty of system transplantation.Based on in-depth analysis of GJB289A, RS422, ARINC429 communication protocol and bus topology, a virtual serial communication system of open framework of a unified control interface which effectively solved the physical devices and virtual devices switching problem is put forward; and a layered virtual device model design method was proposed, which makes the virtual device logical structure clear, the maintenance more convenient.Based on in-depth study on the data transmission characteristics of a variety of serial communication bus, a mechanism, the unified management of virtual resources and the unified scheduling for all the information on the bus, which separates the real equipment features and the realization of data transmission and greatly simplifies the design and implementation of the virtual device, is proposed.In this paper, the synchronization precision problem of the precision clock synchronization protocol realization by software is analyzed, a scheme of high-precision clock synchronization in local area network based on the PTP is proposed, by constructing high-precision clock, taking shaking hands mechanism as well as the processing of measuring results, which achieves microsecond synchronization precision in the local area network and provides a reliable clock synchronization services for the distributed virtual test system.In this paper, UML modeling tools are in use for software requirements modeling, static structure modeling, and dynamic behavior modeling; based on the virtual test system support platform, the use of the Microsoft’s next-generation enterprise-class development platform - Microsoft Visual Studio.NET framework, the Ethernet-based GJB289A/RS422/ARINC429 virtual equipment model and application-level control software are developed.After software testing and actual use, it is realized that the vitual bus creation, bus management, simulation and other functions. The software is reliable and has a user-friendly interface.

【关键词】 虚拟试验GJB289ARS422ARINC429虚拟设备
【Key words】 vitual testGJB289ARS422ARINC429virtual equipment
节点文献中: