基于网络的虚拟实验平台
—电路管理模块的设计与实现
摘 要
虚拟实验平台是一个能很好地提升教学效果的平台。在这个平台当中,完全通过软件模拟的方式来仿真实现接口实验的各个步骤及实验效果。本平台主要功能已在单机上基本完成,但在网络化越来越重要的今天,一个平台仅仅能够在单机上使用是远远不够的,进行网络化的增强改进就显得十分重要。在网络化改进时要解决很多新的问题,如电路图文件的的定义,NAT转换的处理,传输途径的选择,传输协议的选择等问题。在本毕业设计当中,主要是设计一个与虚拟实验台相配套的电路图文件格式,在此格式当中需要描述的信息除一般电路包括的器件信息、器件管脚信息、连线信息外,还包括仿真实现器件功能的软件模块信息,所有这些信息通过自定义的文本文件格式来描述。在虚拟实现平台运行时,可以通过选择不同的电路图文件做不同的实验。在实验进行当中,有可能要修改连线,要求本模块能实现对这些操作实施记录、保存。电路图文件可以通过网络传输、更新,是基于网络的虚拟实验平台的重要的基本功能。
关键词:虚拟实验平台;网络化改进;电路管理;P2P;NAT转换
Virtual Experimental Platform based on Network
--Design and Implementation of Circuit Management Module
Abstract
Virtual Experimental Platform is a good platform to upgrade the quality of teaching. With the platform, we can simulate each steps and experiment effects of interface technology experiments totally by software. The mainly functions of the platform have been implemented in local computer version. But as the network gets increasingly important today, it is not enough to use a platform only in local machine. Obviously, it gets more and more important to improve the networking ability for the platform. As improving the networking ability, it will encounter many problems, such as the definition of circuit diagram files, the conversion of NAT, the selection of transmission channel and protocol, and etc. In the thesis, it is mainly to design a circuit diagram file format which is in accordance with virtual experiment platform. In the file format, it is necessary to describe the software module information which is used to simulate the device functions, besides the device information, the chip pin information, and the connectivity information of a general circuit. All the information is described in a self defined text file. As the platform is activated, it can implement different experiment by choosing different circuit diagram file. In the experiment, as updating connecting line is possible, recoding and saving the operations are required in the module. Furthermore, as another important basic function of the virtual experiment platform based on networking, circuit diagram file could transmit and update by networking.
Key words: Virtual Experimental Platform; Network improvements; Circuit Management; P2P; NAT Conversion