CN111857933A - A system and method for remote state synchronization of virtual training system in cloud mode - Google Patents

A system and method for remote state synchronization of virtual training system in cloud mode Download PDF

Info

Publication number
CN111857933A
CN111857933A CN202010735786.7A CN202010735786A CN111857933A CN 111857933 A CN111857933 A CN 111857933A CN 202010735786 A CN202010735786 A CN 202010735786A CN 111857933 A CN111857933 A CN 111857933A
Authority
CN
China
Prior art keywords
virtual training
training system
communication module
information
tnet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010735786.7A
Other languages
Chinese (zh)
Inventor
冯少冲
邸彦强
陈志佳
孟宪国
朱元昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PLA University of Science and Technology
Original Assignee
PLA University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PLA University of Science and Technology filed Critical PLA University of Science and Technology
Priority to CN202010735786.7A priority Critical patent/CN111857933A/en
Publication of CN111857933A publication Critical patent/CN111857933A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明涉及一种云模式下虚拟训练系统远程状态同步的系统及方法。该系统中第一虚拟训练系统的第一ICA通道通信模块与第一终端计算机通信连接,用于采集第一终端计算机的设备操作信息;第一ICA通道通信模块与第一数据处理转发模块通信连接,用于对采集信息进行解析;第一数据处理转发模块与第一TNET通信模块通信连接,用于接收解析信息;第一虚拟训练系统的第二TNET通信模块与第一TNET通信模块通信连接,用于接收解析信息;第二数据处理转发模块与第二TNET通信模块通信连接,用于根据第二TNET通信模块传输的解析信息作出与第一终端计算机的设备操作信息相同的操作。本发明可以实现云模式下虚拟训练系统的远程状态同步。

Figure 202010735786

The invention relates to a system and method for remote state synchronization of a virtual training system in a cloud mode. In the system, the first ICA channel communication module of the first virtual training system is in communication connection with the first terminal computer, and is used for collecting equipment operation information of the first terminal computer; the first ICA channel communication module is in communication connection with the first data processing and forwarding module. is used to analyze the collected information; the first data processing and forwarding module is connected in communication with the first TNET communication module for receiving analysis information; the second TNET communication module of the first virtual training system is connected in communication with the first TNET communication module, It is used for receiving analysis information; the second data processing and forwarding module is connected in communication with the second TNET communication module, and is used for performing the same operation as the device operation information of the first terminal computer according to the analysis information transmitted by the second TNET communication module. The invention can realize the remote state synchronization of the virtual training system in the cloud mode.

Figure 202010735786

Description

一种云模式下虚拟训练系统远程状态同步的系统及方法A system and method for remote state synchronization of virtual training system in cloud mode

技术领域technical field

本发明涉及远程状态同步领域,特别是涉及一种云模式下虚拟训练系统远程状态同步的系统及方法。The invention relates to the field of remote state synchronization, in particular to a system and method for remote state synchronization of a virtual training system in a cloud mode.

背景技术Background technique

现有技术中对两个计算机进行远程状态同步通常采用的方法是:在两台终端计算机上安装相关软件,通过相关软件与网络通信实现计算机A和计算机B的远程状态同步。In the prior art, the commonly used method for remote state synchronization of two computers is to install relevant software on the two terminal computers, and realize the remote state synchronization of computer A and computer B by communicating with the network through the relevant software.

而对于云模式下的虚拟训练系统,并无相关的解决方案实现虚拟训练系统的远程状态同步。For the virtual training system in cloud mode, there is no relevant solution to realize the remote state synchronization of the virtual training system.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种云模式下虚拟训练系统远程状态同步的系统及方法,以实现云模式下虚拟训练系统的远程状态同步。The purpose of the present invention is to provide a system and method for synchronizing the remote state of the virtual training system in the cloud mode, so as to realize the remote state synchronization of the virtual training system in the cloud mode.

为实现上述目的,本发明提供了如下方案:For achieving the above object, the present invention provides the following scheme:

一种云模式下虚拟训练系统远程状态同步的系统,包括:第一虚拟训练系统和第二虚拟训练系统,所述第一虚拟训练系统和所述第二虚拟训练系统为同一系统的不同实例;A system for remote state synchronization of virtual training systems in a cloud mode, comprising: a first virtual training system and a second virtual training system, wherein the first virtual training system and the second virtual training system are different instances of the same system;

所述第一虚拟训练系统包括:第一ICA通道通信模块、第一数据处理转发模块和第一TNET通信模块;所述第二虚拟训练系统包括:第二ICA通道通信模块、第二数据处理转发模块和第二TNET通信模块;The first virtual training system includes: a first ICA channel communication module, a first data processing and forwarding module and a first TNET communication module; the second virtual training system includes: a second ICA channel communication module, a second data processing and forwarding module module and a second TNET communication module;

所述第一ICA通道通信模块与第一终端计算机通信连接,所述第一ICA通道通信模块用于采集所述第一终端计算机的设备操作信息;所述第一ICA通道通信模块与所述第一数据处理转发模块通信连接,所述第一数据处理转发模块用于对所述ICA通道通信模块传输的采集信息进行解析;所述第一数据处理转发模块与所述第一TNET通信模块通信连接,所述第一TNET通信模块用于接收所述第一数据处理转发模块传输的解析信息;The first ICA channel communication module is connected in communication with the first terminal computer, and the first ICA channel communication module is used to collect the equipment operation information of the first terminal computer; the first ICA channel communication module is connected to the first terminal computer. A data processing and forwarding module is communicatively connected, and the first data processing and forwarding module is used to analyze the collection information transmitted by the ICA channel communication module; the first data processing and forwarding module is communicatively connected with the first TNET communication module , the first TNET communication module is configured to receive the analysis information transmitted by the first data processing and forwarding module;

所述第二TNET通信模块与所述第一TNET通信模块通信连接,所述第二TNET通信模块用于接收所述第一TNET通信模块传输的解析信息;所述第二数据处理转发模块与所述第二TNET通信模块通信连接,所述第二数据处理转发模块用于根据所述第二TNET通信模块传输的解析信息作出与所述第一终端计算机的设备操作信息相同的操作。The second TNET communication module is communicatively connected to the first TNET communication module, and the second TNET communication module is used to receive the analysis information transmitted by the first TNET communication module; the second data processing and forwarding module is connected to the second TNET communication module. The second TNET communication module is communicatively connected, and the second data processing and forwarding module is configured to perform the same operation as the device operation information of the first terminal computer according to the analysis information transmitted by the second TNET communication module.

可选的,所述第一数据处理转发模块具体包括:Optionally, the first data processing and forwarding module specifically includes:

解析单元,用于对所述采集信息进行解析,得到解析信息;a parsing unit for parsing the collected information to obtain parsing information;

封装单元,用于将所述解析信息封装到EVENTINFO结构中;an encapsulation unit for encapsulating the parsing information into an EVENTINFO structure;

传输单元,用于将所述EVENTINFO结构中封装的信息传输至所述第一TNET通信模块。A transmission unit, configured to transmit the information encapsulated in the EVENTINFO structure to the first TNET communication module.

可选的,还包括:Optionally, also include:

组网模块,所述组网模块用于将所述第一虚拟训练系统和所述第二虚拟训练系统通过所述第一TNET通信模块和所述第二TNET通信模块进行组网。and a networking module configured to network the first virtual training system and the second virtual training system through the first TNET communication module and the second TNET communication module.

本发明还提供一种云模式下虚拟训练系统远程状态同步的方法,所述云模式下虚拟训练系统远程状态同步的方法应用于上述的云模式下虚拟训练系统远程状态同步的系统,所述云模式下虚拟训练系统远程状态同步的方法包括:The present invention also provides a method for synchronizing the remote state of a virtual training system in a cloud mode. The method for synchronizing the remote state of a virtual training system in a cloud mode is applied to the above-mentioned system for synchronizing the remote state of a virtual training system in a cloud mode. The method for synchronizing the remote state of the virtual training system in the mode includes:

利用第一ICA通道通信模块采集第一终端计算机的设备操作信息,得到采集信息;Utilize the first ICA channel communication module to collect the equipment operation information of the first terminal computer to obtain the collection information;

利用第一数据处理转发模块对所述采集信息进行解析,得到解析信息;Utilize the first data processing and forwarding module to analyze the collected information to obtain analysis information;

利用第一TNET通信模块将所述解析信息传输至第二TNET通信模块;Utilize the first TNET communication module to transmit the analysis information to the second TNET communication module;

根据所述解析信息,利用第二数据处理转发模块作出与所述第一终端计算机的设备操作信息相同的操作。According to the analysis information, the second data processing and forwarding module is used to perform the same operation as the device operation information of the first terminal computer.

可选的,所述利用第一ICA通道通信模块采集第一终端计算机的设备操作信息,之前还包括:Optionally, the described utilization of the first ICA channel communication module to collect the equipment operation information of the first terminal computer, also includes before:

获取第一虚拟训练系统和第二虚拟训练系统之间的工作模式;所述工作模式包括多用户合作模式和多用户控制随动模式。A working mode between the first virtual training system and the second virtual training system is acquired; the working mode includes a multi-user cooperation mode and a multi-user control follow-up mode.

可选的,当第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户合作模式时,所述根据所述解析信息,利用第二数据处理转发模块作出与所述第一终端计算机的设备操作信息相同的操作,之后还包括:Optionally, when the working mode between the first virtual training system and the second virtual training system is a multi-user cooperation mode, the second data processing and forwarding module is used to communicate with the first terminal according to the analysis information. The same operations as the computer's device operation information, followed by:

利用第二ICA通道通信模块采集第二终端计算机的设备操作信息,得到第二采集信息;Utilize the second ICA channel communication module to collect the equipment operation information of the second terminal computer to obtain the second collection information;

利用第二数据处理转发模块对所述第二采集信息进行解析,得到第二解析信息;Use the second data processing and forwarding module to analyze the second collection information to obtain second analysis information;

利用第二TNET通信模块将所述第二解析信息传输至第一TNET通信模块;Utilize the second TNET communication module to transmit the second analysis information to the first TNET communication module;

根据所述第二解析信息,利用所述第一数据处理转发模块作出与所述第二终端计算机的设备操作信息相同的操作。According to the second analysis information, the first data processing and forwarding module is used to perform the same operation as the device operation information of the second terminal computer.

可选的,当第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户控制随动模式时,所述利用第一ICA通道通信模块采集第一终端计算机的设备操作信息,得到采集信息,之前还包括:Optionally, when the working mode between the first virtual training system and the second virtual training system is a multi-user control follow-up mode, the described utilization of the first ICA channel communication module to collect the equipment operation information of the first terminal computer, obtains. Gather information, which previously included:

判断所述第一虚拟训练系统是否为主控系统;Determine whether the first virtual training system is the main control system;

当所述第一虚拟训练系统是主控系统时,利用第一ICA通道通信模块采集第一终端计算机的设备操作信息,得到采集信息;When the first virtual training system is the main control system, the first ICA channel communication module is used to collect the equipment operation information of the first terminal computer to obtain the collection information;

当所述第一虚拟训练系统不是主控系统时,所述第一虚拟训练系统不响应所述第一终端计算机的设备操作信息。When the first virtual training system is not the main control system, the first virtual training system does not respond to the device operation information of the first terminal computer.

可选的,当第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户控制随动模式时,所述利用第一TNET通信模块将所述解析信息传输至第二TNET通信模块,之后还包括:Optionally, when the working mode between the first virtual training system and the second virtual training system is a multi-user control follow-up mode, the first TNET communication module is used to transmit the analysis information to the second TNET communication module. , followed by:

判断所述第二虚拟训练系统是否为随动系统;Determine whether the second virtual training system is a follow-up system;

当所述第二虚拟训练系统是随动系统时,根据所述解析信息,利用第二数据处理转发模块作出与所述第一终端计算机的设备操作信息相同的操作;When the second virtual training system is a follow-up system, use the second data processing and forwarding module to perform the same operation as the device operation information of the first terminal computer according to the analysis information;

当所述第二虚拟训练系统不是随动系统时,所述第二数据处理转发模块不响应所述第二TNET通信模块传输的所述解析信息。When the second virtual training system is not a follow-up system, the second data processing and forwarding module does not respond to the analysis information transmitted by the second TNET communication module.

可选的,所述利用第一ICA通道通信模块采集第一终端计算机的设备操作信息,得到采集信息,之前还包括:Optionally, the use of the first ICA channel communication module to collect the equipment operation information of the first terminal computer to obtain the collection information, before also including:

将所述第一虚拟训练系统和所述第二虚拟训练系统通过所述第一TNET通信模块和所述第二TNET通信模块进行组网。The first virtual training system and the second virtual training system are networked through the first TNET communication module and the second TNET communication module.

可选的,所述利用第一数据处理转发模块对所述采集信息进行解析,得到解析信息,之后还包括:Optionally, using the first data processing and forwarding module to parse the collected information to obtain the parsed information, and then further comprising:

将所述解析信息封装至EVENTINFO结构。The parsing information is encapsulated into an EVENTINFO structure.

根据本发明提供的具体实施例,本发明公开了以下技术效果:According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

本发明的虚拟训练系统部署在服务器中,对终端计算机硬件配置要求很低,且无需配置虚拟训练系统相关运行环境,可以实现在终端计算机不直接建立网络连接条件下,使云模式虚拟训练系统完成异地同步。此外,本发明可以根据虚拟训练系统之间的工作模式实现不同方式的同步,应用范围更广。The virtual training system of the present invention is deployed in the server, has very low requirements on the hardware configuration of the terminal computer, and does not need to configure the relevant operating environment of the virtual training system, so that the cloud mode virtual training system can be completed without the terminal computer directly establishing a network connection. Geosync. In addition, the present invention can realize synchronization in different ways according to the working modes between the virtual training systems, and has wider application range.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative labor.

图1为本发明云模式下虚拟训练系统远程状态同步的系统的结构示意图;1 is a schematic structural diagram of a system for remote state synchronization of a virtual training system in a cloud mode of the present invention;

图2为本发明云模式下虚拟训练系统远程状态同步的方法的流程示意图;2 is a schematic flowchart of a method for remote state synchronization of a virtual training system in a cloud mode of the present invention;

图3为本发明具体实施案例1的流程示意图;Fig. 3 is the schematic flow chart of the specific implementation case 1 of the present invention;

图4为本发明具体实施案例2的流程示意图。FIG. 4 is a schematic flowchart of a specific implementation case 2 of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

图1为本发明云模式下虚拟训练系统远程状态同步的系统的结构示意图。如图1所示,本发明云模式下虚拟训练系统远程状态同步的系统包括:第一虚拟训练系统101和第二虚拟训练系统102,所述第一虚拟训练系统101和所述第二虚拟训练系统102为同一系统的不同实例。第一终端计算机103上运行所述第一虚拟训练系统101,所述第一虚拟训练系统101包括:第一ICA通道通信模块、第一数据处理转发模块和第一TNET通信模块。第二终端计算机104上运行所述第二虚拟训练系统102,所述第二虚拟训练系统102包括:第二ICA通道通信模块、第二数据处理转发模块和第二TNET通信模块。FIG. 1 is a schematic structural diagram of a system for remote state synchronization of a virtual training system in a cloud mode of the present invention. As shown in FIG. 1, the system for synchronizing the remote state of the virtual training system in the cloud mode of the present invention includes: a first virtual training system 101 and a second virtual training system 102, the first virtual training system 101 and the second virtual training system System 102 is a different instance of the same system. The first virtual training system 101 runs on the first terminal computer 103, and the first virtual training system 101 includes: a first ICA channel communication module, a first data processing and forwarding module, and a first TNET communication module. The second virtual training system 102 runs on the second terminal computer 104, and the second virtual training system 102 includes: a second ICA channel communication module, a second data processing and forwarding module, and a second TNET communication module.

所述第一ICA通道通信模块与第一终端计算机103通信连接,所述第一ICA通道通信模块用于采集所述第一终端计算机103的硬件设备操作信息,例如鼠标信息、键盘信息、触控屏信息等。所述第一ICA通道通信模块与所述第一数据处理转发模块通信连接,所述第一数据处理转发模块用于对所述ICA通道通信模块传输的采集信息进行解析;所述第一数据处理转发模块与所述第一TNET通信模块通信连接,所述第一TNET通信模块用于接收所述第一数据处理转发模块传输的解析信息。具体的,所述第一数据处理转发模块具体包括:The first ICA channel communication module is connected in communication with the first terminal computer 103, and the first ICA channel communication module is used to collect hardware device operation information of the first terminal computer 103, such as mouse information, keyboard information, touch screen information, etc. The first ICA channel communication module is in communication connection with the first data processing and forwarding module, and the first data processing and forwarding module is used to analyze the collection information transmitted by the ICA channel communication module; the first data processing The forwarding module is connected in communication with the first TNET communication module, and the first TNET communication module is configured to receive the analysis information transmitted by the first data processing and forwarding module. Specifically, the first data processing and forwarding module specifically includes:

解析单元,用于对所述采集信息进行解析,得到解析信息。The parsing unit is used for parsing the collected information to obtain parsing information.

封装单元,用于将所述解析信息封装到EVENTINFO结构中。The encapsulation unit is used to encapsulate the parsing information into an EVENTINFO structure.

传输单元,用于将所述EVENTINFO结构中封装的信息传输至所述第一TNET通信模块。A transmission unit, configured to transmit the information encapsulated in the EVENTINFO structure to the first TNET communication module.

所述第二TNET通信模块与所述第一TNET通信模块通信连接,所述第二TNET通信模块用于接收所述第一TNET通信模块传输的解析信息;所述第二数据处理转发模块与所述第二TNET通信模块通信连接,所述第二数据处理转发模块用于根据所述第二TNET通信模块传输的解析信息作出与所述第一终端计算机103的设备操作信息相同的操作,实现第一虚拟训练系统101和第二虚拟训练系统102之间的状态同步。The second TNET communication module is communicatively connected to the first TNET communication module, and the second TNET communication module is used to receive the analysis information transmitted by the first TNET communication module; the second data processing and forwarding module is connected to the second TNET communication module. The second TNET communication module is communicatively connected, and the second data processing and forwarding module is configured to perform the same operation as the device operation information of the first terminal computer 103 according to the analysis information transmitted by the second TNET communication module to realize the first State synchronization between a virtual training system 101 and a second virtual training system 102 .

作为具体的实施例,本发明的云模式下虚拟训练系统远程状态同步的系统,还包括:组网模块,所述组网模块用于将所述第一虚拟训练系统和所述第二虚拟训练系统通过所述第一TNET通信模块和所述第二TNET通信模块进行组网。As a specific embodiment, the system for remote state synchronization of the virtual training system in the cloud mode of the present invention further includes: a networking module, where the networking module is used to connect the first virtual training system and the second virtual training system The system is networked through the first TNET communication module and the second TNET communication module.

基于图1所示的云模式下虚拟训练系统远程状态同步的系统,本发明还提供一种云模式下虚拟训练系统远程状态同步的方法,图2为本发明云模式下虚拟训练系统远程状态同步的方法的流程示意图。如图2所示,本发明云模式下虚拟训练系统远程状态同步的方法包括以下步骤:Based on the system for synchronizing the remote state of the virtual training system in the cloud mode shown in FIG. 1 , the present invention also provides a method for synchronizing the remote state of the virtual training system in the cloud mode. FIG. 2 is the remote state synchronization of the virtual training system in the cloud mode of the present invention. Schematic flow diagram of the method. As shown in Figure 2, the method for synchronizing the remote state of the virtual training system in the cloud mode of the present invention includes the following steps:

步骤100:利用第一ICA通道通信模块采集第一终端计算机的设备操作信息,得到采集信息。在开始状态同步之前,首先需要对所有终端计算机中运行的云模式下虚拟训练系统通过各自的TNET通信模块进行组网,使所有终端中运行的云模式下虚拟训练系统加入到一个网络服务器中进行通信。TNET通信模块是基于现有的TNET通信插件完成。系统通过调用该插件提供的Connect(string serverIp)函数接口进行组网,其中接口参数serverIp为TNET服务器ip地址。Step 100: Use the first ICA channel communication module to collect the device operation information of the first terminal computer to obtain the collected information. Before starting state synchronization, it is first necessary to network the virtual training systems in cloud mode running in all terminal computers through their respective TNET communication modules, so that the virtual training systems in cloud mode running in all terminals are added to a network server. communication. The TNET communication module is based on the existing TNET communication plug-in. The system performs networking by calling the Connect(string serverIp) function interface provided by the plug-in, where the interface parameter serverIp is the ip address of the TNET server.

开始状态同步时,需要首先获取第一虚拟训练系统和第二虚拟训练系统之间的工作模式,包括多用户合作模式和多用户控制随动模式。多用户合作模式:具体是指多个用户在异地使用终端计算机各登录一个云模式下虚拟训练系统实例,各自进行操作,各虚拟训练系统实例间操作信息进行交互整合达到多个虚拟训练系统实例间状态同步,其中各用户的虚拟训练系统实例为同一个系统的多个实例。多用户控制随动模式:具体是指多个用户在异地使用终端计算机各登录一个云模式下虚拟训练系统实例,其中一个用户的虚拟训练系统实例设置为主控系统,其他虚拟训练系统实例作为随动系统。主控系统用户进行操作,随动系统自动跟随主控系统进行状态同步,随动系统不受用户控制,其中虚拟训练系统实例为同一个系统的多个实例。此外,还包括多个用户共用一个虚拟训练系统实例的工作模式,具体指多个用户在异地使用终端计算机同时登录同一个云模式下虚拟训练系统进行操作,该种模式由于当前云模式条件限制目前尚未实现。When starting state synchronization, it is necessary to first acquire the working modes between the first virtual training system and the second virtual training system, including the multi-user cooperation mode and the multi-user control follow-up mode. Multi-user cooperation mode: Specifically, multiple users log in to a virtual training system instance in cloud mode using terminal computers in different places, and operate independently. The operation information between each virtual training system instance interacts and integrates to achieve multiple virtual training system instances. State synchronization, wherein each user's virtual training system instance is multiple instances of the same system. Multi-user control follow-up mode: Specifically, multiple users log in to a virtual training system instance in cloud mode using terminal computers in different places. One user's virtual training system instance is set as the master control system, and other virtual training system instances are used as follow-up. moving system. When the user of the master control system operates, the slave system automatically follows the master control system for state synchronization, and the slave system is not controlled by the user, and the virtual training system instance is multiple instances of the same system. In addition, it also includes a working mode in which multiple users share a virtual training system instance, which specifically refers to multiple users using terminal computers in different places to log in to the same cloud mode at the same time to operate the virtual training system. This mode is currently limited by the current cloud mode conditions. Not yet implemented.

若第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户合作模式,执行步骤100;If the working mode between the first virtual training system and the second virtual training system is the multi-user cooperation mode, go to step 100;

若第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户控制随动模式,需要进一步判断第一虚拟训练系统是否为主控系统;若第一虚拟训练系统是主控系统,则执行步骤100;若第一虚拟训练系统不是主控系统,则第一虚拟训练系统不响应第一终端计算机的设备操作信息。本发明步骤100-步骤400为第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户合作模式时任一个虚拟训练系统执行的操作,或者第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户控制随动模式时主控系统执行的操作。If the working mode between the first virtual training system and the second virtual training system is the multi-user control follow-up mode, it is necessary to further determine whether the first virtual training system is the master control system; if the first virtual training system is the master control system, Then go to step 100; if the first virtual training system is not the main control system, the first virtual training system does not respond to the device operation information of the first terminal computer. Steps 100 to 400 of the present invention are operations performed by any virtual training system when the working mode between the first virtual training system and the second virtual training system is the multi-user cooperation mode, or the first virtual training system and the second virtual training system. The working mode between systems is the operation performed by the main control system when the multi-user control follow-up mode is used.

步骤200:利用第一数据处理转发模块对采集信息进行解析,得到解析信息。并将解析后的数据封装到EVENTINFO结构中,一方面系统使用该信息结构产生操作现象,另一方面系统数据处理转发模块将EVENTINFO信息传输给TNET通信模块。Step 200: Use the first data processing and forwarding module to parse the collected information to obtain parsed information. The parsed data is encapsulated into the EVENTINFO structure. On the one hand, the system uses the information structure to generate operating phenomena, and on the other hand, the system data processing and forwarding module transmits the EVENTINFO information to the TNET communication module.

步骤300:利用第一TNET通信模块将解析信息传输至第二TNET通信模块。Step 300: Use the first TNET communication module to transmit the parsing information to the second TNET communication module.

步骤400:根据解析信息,利用第二数据处理转发模块作出与第一终端计算机的设备操作信息相同的操作。当第一虚拟训练系统和第二虚拟训练系统之间的工作模式为多用户控制随动模式时,第二TNET通信模块接收到解析信息时,首先判断第二虚拟训练系统是否为随动系统,当所述第二虚拟训练系统是随动系统时,执行步骤400;当第二虚拟训练系统不是随动系统时,所述第二数据处理转发模块不响应所述第二TNET通信模块传输的所述解析信息。Step 400: According to the analysis information, use the second data processing and forwarding module to perform the same operation as the device operation information of the first terminal computer. When the working mode between the first virtual training system and the second virtual training system is the multi-user control follow-up mode, when the second TNET communication module receives the analysis information, it first determines whether the second virtual training system is a follow-up system, When the second virtual training system is a slave system, step 400 is executed; when the second virtual training system is not a slave system, the second data processing and forwarding module does not respond to all the data transmitted by the second TNET communication module. parsing information.

下面提供两个具体实施案例进一步说明本发明的方案。Two specific implementation cases are provided below to further illustrate the solution of the present invention.

具体实施案例1Specific implementation case 1

本具体实施案例中多个虚拟训练系统之间为多用户合作模式。虚拟训练系统A中ICA通道通信模块采集终端计算机A的硬件设备输入信息,如鼠标信息、键盘信息、触控屏信息等,并将该信息传输给虚拟训练系统A的数据处理转发模块;虚拟训练系统A的数据处理转发模块对数据进行加工处理,并传输给虚拟训练系统A的TNET通信模块;虚拟训练系统A的TNET通信模块与虚拟训练系统B的TNET通信模块建立连接,将该信息发送给虚拟训练系统B的TNET通信模块;虚拟训练系统B的TNET通信模块接收数据后将数据传输给虚拟训练系统B的数据处理转发模块;虚拟训练系统B的数据处理转发模块对数据进行处理。虚拟训练系统B到虚拟训练系统A的数据传输关系和虚拟训练系统A到虚拟训练系统B的数据传输关系相同。这样就使得云模式下虚拟训练系统A和B完成了多用户合作模式的状态同步功能。图3为本发明具体实施案例1的流程示意图,如图3所示,本具体实施案例包括以下步骤:In this specific implementation case, there is a multi-user cooperation mode among the multiple virtual training systems. The ICA channel communication module in the virtual training system A collects the hardware equipment input information of the terminal computer A, such as mouse information, keyboard information, touch screen information, etc., and transmits the information to the data processing and forwarding module of the virtual training system A; virtual training The data processing and forwarding module of system A processes the data and transmits it to the TNET communication module of virtual training system A; the TNET communication module of virtual training system A establishes a connection with the TNET communication module of virtual training system B, and sends the information to The TNET communication module of the virtual training system B; the TNET communication module of the virtual training system B receives the data and transmits the data to the data processing and forwarding module of the virtual training system B; the data processing and forwarding module of the virtual training system B processes the data. The data transmission relationship between the virtual training system B and the virtual training system A is the same as the data transmission relationship between the virtual training system A and the virtual training system B. In this way, the virtual training systems A and B in the cloud mode complete the state synchronization function of the multi-user cooperation mode. FIG. 3 is a schematic flow chart of the specific implementation case 1 of the present invention. As shown in FIG. 3 , the specific implementation case includes the following steps:

步骤1:各个终端计算机中运行的云模式下虚拟训练系统通过各自的TNET通信模块进行组网。Step 1: The virtual training systems in cloud mode running in each terminal computer are networked through their respective TNET communication modules.

步骤2:虚拟训练系统通过各自的ICA通道通信模块采集对应终端计算机的硬件设备的输入信息,例如鼠标信息,包括鼠标设备的鼠标移动、点击等操作信息,并将该信息传输给对应的数据处理转发模块。Step 2: The virtual training system collects the input information of the hardware device of the corresponding terminal computer through the respective ICA channel communication modules, such as mouse information, including the operation information such as mouse movement and click of the mouse device, and transmits the information to the corresponding data processing. forwarding module.

该步骤中ICA通道通信模块采集的系统鼠标信息结构为RAWMOUSE,该结构为windows操作系统提供的鼠标数据存储结构,通过windows提供的GetRawInputData函数接口获取,其结构定义如下所示。In this step, the system mouse information structure collected by the ICA channel communication module is RAWMOUSE, which is the mouse data storage structure provided by the windows operating system, and is obtained through the GetRawInputData function interface provided by the windows. Its structure definition is as follows.

struct RAWMOUSEstruct RAWMOUSE

{{

public ushort usFlags;public ushort usFlags;

public uint ulButtons;public uint ulButtons;

public ushort usButtonFlags;public ushort usButtonFlags;

public ushort usButtonData;public ushort usButtonData;

public uint ulRawButtons;public uint ulRawButtons;

public short lLastX;public short lLastX;

public short lLastY;public short lLastY;

public uint ulExtraInformation;public uint ulExtraInformation;

}}

其中usFlags描述了鼠标信息标志;usButtonFlags描述了鼠标按键状态,包含RI_MOUSE_LEFT_BUTTON_DOWN(鼠标左键按下)、RI_MOUSE_LEFT_BUTTON_UP(鼠标左键抬起)、RI_MOUSE_MIDDLE_BUTTON_DOWN(鼠标中键按下)、RI_MOUSE_MIDDLE_BUTTON_UP(鼠标中键抬起)、RI_MOUSE_RIGHT_BUTTON_DOWN(鼠标右键按下)、RI_MOUSE_RIGHT_BUTTON_UP(鼠标右键抬起)和RI_MOUSE_WHEEL(鼠标滚轮),当usButtonFlags值为RI_MOUSE_WHEEL时usButtonData描述了鼠标滚轮数据,lLastX和lLastY分别描述鼠标X和Y的相对坐标值。Among them, usFlags describes the mouse information flag; usButtonFlags describes the state of the mouse button, including RI_MOUSE_LEFT_BUTTON_DOWN (the left mouse button is pressed), RI_MOUSE_LEFT_BUTTON_UP (the left mouse button is up), RI_MOUSE_MIDDLE_BUTTON_DOWN (the middle mouse button is down), and RI_MOUSE_MIDDLE_BUTTON_UP (the middle mouse button is up) ), RI_MOUSE_RIGHT_BUTTON_DOWN (right mouse button down), RI_MOUSE_RIGHT_BUTTON_UP (right mouse button up) and RI_MOUSE_WHEEL (mouse wheel), when usButtonFlags is RI_MOUSE_WHEEL, usButtonData describes the mouse wheel data, and lLastX and lLastY describe the relative coordinates of mouse X and Y respectively .

步骤3:该虚拟训练系统的数据处理转发模块对步骤2中接收到的鼠标信息进行解析,将解析后的数据封装到EVENTINFO结构中,一方面系统使用该信息结构产生操作现象,另一方面系统数据处理转发模块将EVENTINFO信息传输给TNET通信模块。Step 3: The data processing and forwarding module of the virtual training system parses the mouse information received in step 2, and encapsulates the parsed data into the EVENTINFO structure. On the one hand, the system uses the information structure to generate operating phenomena; on the other hand, the system The data processing and forwarding module transmits EVENTINFO information to the TNET communication module.

解析即对步骤2所示的鼠标信息结构进行数据分析,封装即根据解析的结果对EVENTINFO结构赋值。具体如下:Parsing means performing data analysis on the mouse information structure shown in step 2, and encapsulating means assigning values to the EVENTINFO structure according to the parsing result. details as follows:

收到RAWMOUSE结构后判断usButtonFlags的值,若usButtonFlags的值为RI_MOUSE_LEFT_BUTTON_DOWN则EVENTINFO结构中event_type赋值为DOWN,args_mouse赋值为LEFT;After receiving the RAWMOUSE structure, judge the value of usButtonFlags. If the value of usButtonFlags is RI_MOUSE_LEFT_BUTTON_DOWN, the event_type in the EVENTINFO structure is assigned DOWN, and args_mouse is assigned LEFT;

若usButtonFlags的值为RI_MOUSE_LEFT_BUTTON_UP则EVENTINFO结构中event_type赋值为UP,args_mouse赋值为LEFT;If the value of usButtonFlags is RI_MOUSE_LEFT_BUTTON_UP, the event_type in the EVENTINFO structure is assigned UP, and args_mouse is assigned LEFT;

若usButtonFlags的值为RI_MOUSE_MIDDLE_BUTTON_DOWN则EVENTINFO结构中event_type赋值为DOWN,args_mouse赋值为MIDDLE;If the value of usButtonFlags is RI_MOUSE_MIDDLE_BUTTON_DOWN, the event_type in the EVENTINFO structure is assigned DOWN, and args_mouse is assigned MIDDLE;

若usButtonFlags的值为RI_MOUSE_MIDDLE_BUTTON_UP则EVENTINFO结构中event_type赋值为UP,args_mouse赋值为MIDDLE;If the value of usButtonFlags is RI_MOUSE_MIDDLE_BUTTON_UP, the event_type in the EVENTINFO structure is assigned UP, and args_mouse is assigned MIDDLE;

若usButtonFlags的值为RI_MOUSE_RIGHT_BUTTON_DOWN则EVENTINFO结构中event_type赋值为DOWN,args_mouse赋值为RIGHT;If the value of usButtonFlags is RI_MOUSE_RIGHT_BUTTON_DOWN, the event_type in the EVENTINFO structure is assigned DOWN, and args_mouse is assigned RIGHT;

若usButtonFlags的值为RI_MOUSE_RIGHT_BUTTON_UP则EVENTINFO结构中event_type赋值为UP,args_mouse赋值为RIGHT;If the value of usButtonFlags is RI_MOUSE_RIGHT_BUTTON_UP, the event_type in the EVENTINFO structure is assigned UP, and args_mouse is assigned RIGHT;

RAWMOUSE数据结构中lLastX和lLastY是鼠标相对值,其值为-1、0、1,分别表示鼠标指针移动方向,对于lLastX,-1和1代表屏幕x轴1像素位置的增减,0表示位置不动;对于lLastY,-1和1代表屏幕y轴1像素位置的增减,0表示位置不动。对lLastX和lLastY进行累加后赋值给EVENTINFO结构中mouse_pos_x和mouse_pos_y。In the RAWMOUSE data structure, lLastX and lLastY are the relative values of the mouse, whose values are -1, 0, and 1, respectively indicating the moving direction of the mouse pointer. For lLastX, -1 and 1 indicate the increase or decrease of the 1-pixel position of the screen x-axis, and 0 indicates the position Do not move; for lLastY, -1 and 1 represent the increase or decrease of the 1-pixel position on the y-axis of the screen, and 0 means the position does not move. After accumulating lLastX and lLastY, assign them to mouse_pos_x and mouse_pos_y in the EVENTINFO structure.

以鼠标消息为例,其封装到EVENTINFO结构中的数据结构如下所示:Taking the mouse message as an example, the data structure encapsulated into the EVENTINFO structure is as follows:

public struct EVENTINFOpublic struct EVENTINFO

{{

int mouse_pos_x;int mouse_pos_x;

int mouse_pos_y;int mouse_pos_y;

int event_type;int event_type;

int args_key;int args_key;

int args_mouse;int args_mouse;

}}

其中mouse_pos_x和mouse_pos_y表示鼠标在屏幕的位置信息;event_type表示鼠标事件类型,包括UP(抬起)、DOWM(按下);args_key表示键盘按键信息;args_mouse表示鼠标按钮标识信息,包含LEFT(左键)、MIDDLE(中键)、RIGHT(右键)。where mouse_pos_x and mouse_pos_y represent the position information of the mouse on the screen; event_type represents the mouse event type, including UP (lift), DOWN (press); args_key represents keyboard key information; args_mouse represents mouse button identification information, including LEFT (left button) , MIDDLE (middle button), RIGHT (right button).

系统使用EVENTINFO信息结构(信息来源是步骤2中采集的终端计算机鼠标信息)产生鼠标事件,该鼠标事件是云模式下虚拟训练系统中的鼠标事件。操作现象就是云模式下虚拟训练系统中出现鼠标移动、点击现象。在步骤3中对结构数据进行处理分析,根据操作系统提供的鼠标设备数据结构中的设备按键状态数据确定EVENTINFO数据结构中的鼠标事件类型和鼠标按钮标识信息;根据操作系统提供的鼠标设备数据结构中的鼠标指针在屏幕横纵轴的相对位置数据确定EVENTINFO结构中的鼠标在屏幕中的位置信息。EVENTINFO数据结构是系统中设备数据存储结构,在系统中使用EVENTINFO数据结构可简化设备结构信息,同时可扩充设备信息,使该结构不仅支持鼠标设备,同时支持键盘等其他终端硬件输入设备,也便于封装传输。步骤3中使用技术均为现有技术,本发明是使用这些现有技术完成一种新的使用模式。The system uses the EVENTINFO information structure (the information source is the terminal computer mouse information collected in step 2) to generate mouse events, which are mouse events in the virtual training system in cloud mode. The operation phenomenon is the phenomenon of mouse movement and click in the virtual training system in cloud mode. In step 3, the structure data is processed and analyzed, and the mouse event type and the mouse button identification information in the EVENTINFO data structure are determined according to the device button state data in the mouse device data structure provided by the operating system; according to the mouse device data structure provided by the operating system The relative position data of the mouse pointer in the horizontal and vertical axes of the screen determines the position information of the mouse in the EVENTINFO structure on the screen. The EVENTINFO data structure is the data storage structure of the device in the system. Using the EVENTINFO data structure in the system can simplify the device structure information and expand the device information, so that the structure not only supports mouse devices, but also supports other terminal hardware input devices such as keyboards. Encapsulated transport. The technologies used in step 3 are all existing technologies, and the present invention uses these existing technologies to complete a new usage mode.

步骤4:该虚拟训练系统的TNET通信模块将步骤3中接收到的EVENTINFO信息通过TNET通信发送给其他虚拟训练系统。Step 4: The TNET communication module of the virtual training system sends the EVENTINFO information received in step 3 to other virtual training systems through TNET communication.

步骤5:当其他虚拟训练系统通过自身的TNET通信模块接收到上述虚拟训练系统发送的EVENTINFO信息后,将该信息传输给数据处理转发模块。Step 5: When other virtual training systems receive the EVENTINFO information sent by the above-mentioned virtual training system through their own TNET communication modules, the information is transmitted to the data processing and forwarding module.

步骤6:其他虚拟训练系统的系统数据处理转发模块根据步骤5中接收的EVENTINFO信息作出相应操作,实现与上述虚拟训练系统的状态同步。Step 6: The system data processing and forwarding modules of other virtual training systems perform corresponding operations according to the EVENTINFO information received in step 5, so as to synchronize with the state of the above-mentioned virtual training system.

具体实施案例2Specific implementation case 2

本具体实施案例中多个虚拟训练系统之间为多用户控制随动模式,设置虚拟训练系统A为主控系统,虚拟训练系统B为随动系统。虚拟训练系统A中ICA通道通信模块采集终端计算机A的硬件设备输入信息,如鼠标信息、键盘信息、触控屏信息等,并将该信息传输给虚拟训练系统A的数据处理转发模块;虚拟训练系统A的数据处理转发模块对数据进行加工处理,并传输给虚拟训练系统A的TNET通信模块;虚拟训练系统A的TNET通信模块与虚拟训练系统B的TNET通信模块建立连接,将该信息发送给虚拟训练系统B的TNET通信模块;虚拟训练系统B的TNET通信模块接收数据后将数据传输给虚拟训练系统B的数据处理转发模块;虚拟训练系统B的数据处理转发模块对数据进行处理同时将该信息传输给虚拟训练系统B的ICA通道通信模块;虚拟训练系统B的ICA通道通信模块将信息传输给终端计算机B;终端计算机B根据收到的信息产生相应的操作现象,使得终端计算机B的用户成为受控状态。这样就使得云模式下虚拟训练系统A和B完成了多用户控制随动模式的状态同步功能。图4为本发明具体实施案例2的流程示意图。如图4所示,本具体实施案例包括以下步骤:In this specific implementation case, there is a multi-user control follow-up mode among the multiple virtual training systems, and the virtual training system A is set as the main control system, and the virtual training system B is set as the follow-up system. The ICA channel communication module in the virtual training system A collects the hardware equipment input information of the terminal computer A, such as mouse information, keyboard information, touch screen information, etc., and transmits the information to the data processing and forwarding module of the virtual training system A; virtual training The data processing and forwarding module of system A processes the data and transmits it to the TNET communication module of virtual training system A; the TNET communication module of virtual training system A establishes a connection with the TNET communication module of virtual training system B, and sends the information to The TNET communication module of the virtual training system B; the TNET communication module of the virtual training system B receives the data and transmits the data to the data processing and forwarding module of the virtual training system B; The information is transmitted to the ICA channel communication module of the virtual training system B; the ICA channel communication module of the virtual training system B transmits the information to the terminal computer B; become controlled. In this way, the virtual training systems A and B in the cloud mode complete the state synchronization function of the multi-user control follow-up mode. FIG. 4 is a schematic flowchart of a specific implementation case 2 of the present invention. As shown in Figure 4, this specific implementation case includes the following steps:

步骤1:终端计算机中运行的云模式下虚拟训练系统通过TNET通信模块进行组网。Step 1: The virtual training system in the cloud mode running in the terminal computer is networked through the TNET communication module.

步骤2:确定主控系统,并通过主控系统的TNET通信模块通知其他用户的虚拟训练系统为随动系统。主控系统为多个虚拟训练系统中的一个虚拟训练系统。在该使用模式中用户首先需要标记一个虚拟训练系统为主控系统,通过调用void SetRightOfControl()接口函数实现标记,并通过TNET通信通知其余用户系统为随动系统。主控系统是根据用户需求,使用环境,用户自己协商设置,每个虚拟训练系统都可以成为主控系统。所有用户中只能有一个主控系统,当有其他用户的虚拟训练系统申请成为主控系统后,当前主控系统权限被取消,申请系统成为新的主控系统。Step 2: Determine the main control system, and notify other users that the virtual training system is a follow-up system through the TNET communication module of the main control system. The main control system is a virtual training system among multiple virtual training systems. In this usage mode, the user first needs to mark a virtual training system as the master control system, realize the mark by calling the void SetRightOfControl() interface function, and notify other users that the system is the follow-up system through TNET communication. The main control system is set according to the user's needs, the use environment, and the user's own negotiation. Each virtual training system can become the main control system. All users can only have one master control system. When another user's virtual training system applies to become the master control system, the authority of the current master control system is cancelled, and the application system becomes the new master control system.

在SetRightOfControl()接口函数中设置系统变量isController为true,表示该虚拟训练系统为主控系统,通过TNET通信模块通知其余虚拟训练系统为随动系统,随动系统中设置变量isController为false。In the SetRightOfControl() interface function, set the system variable isController to true, indicating that the virtual training system is the main control system, and notify the other virtual training systems as follower systems through the TNET communication module, and set the variable isController to false in the follower system.

步骤3:进行状态同步时,对于每一个虚拟训练系统来说,首先判断该系统是否是主控系统,若是主控系统跳转步骤4,否则跳转到步骤7。系统在运行过程中通过调用boolisController()接口函数,返回当前系统变量isController的值,若返回true代表该系统为主控系统,若返回false代表该系统为随动系统。Step 3: When performing state synchronization, for each virtual training system, first determine whether the system is the main control system, if it is the main control system, go to Step 4, otherwise, go to Step 7. During the running process, the system returns the value of the current system variable isController by calling the boolisController() interface function. If it returns true, it means the system is the master control system, and if it returns false, it means the system is the slave system.

步骤4:主控系统通过ICA通道通信模块采集终端计算机的鼠标设备的鼠标移动、点击等操作信息,并将该信息传输给数据处理转发模块;Step 4: the main control system collects operation information such as mouse movement and click of the mouse device of the terminal computer through the ICA channel communication module, and transmits the information to the data processing and forwarding module;

步骤5:主控系统数据处理转发模块对步骤3中接收到的鼠标信息进行解析,将解析后的数据封装到EVENTINFO结构中,一方面系统使用该信息结构产生操作现象,另一方面系统数据处理转发模块将EVENTINFO信息传输给TNET通信模块。Step 5: The data processing and forwarding module of the main control system parses the mouse information received in step 3, and encapsulates the parsed data into the EVENTINFO structure. On the one hand, the system uses the information structure to generate operating phenomena, and on the other hand, the system data processing The forwarding module transmits the EVENTINFO information to the TNET communication module.

步骤6:主控系统TNET通信模块将步骤4中接收到的EVENTINFO信息通过TNET通信发送给其他随动系统,跳转到步骤10。Step 6: The main control system TNET communication module sends the EVENTINFO information received in step 4 to other slave systems through TNET communication, and jumps to step 10.

步骤7:随动系统通过TNET通信模块接收主控系统发送的EVENTINFO信息后,将该信息传输给随动系统数据处理转发模块。Step 7: After receiving the EVENTINFO information sent by the main control system through the TNET communication module, the follow-up system transmits the information to the data processing and forwarding module of the follow-up system.

步骤8:随动系统数据处理转发模块根据步骤7中接收的EVENTINFO信息作出相应操作,同时将该信息传输给随动系统中ICA通道通信模块。Step 8: The follow-up system data processing and forwarding module performs corresponding operations according to the EVENTINFO information received in step 7, and simultaneously transmits the information to the ICA channel communication module in the follow-up system.

步骤9:随动系统ICA通道通信模块将由步骤7中接收的EVENTINFO信息发送给终端计算机,终端计算机作出相应操作。Step 9: The ICA channel communication module of the follow-up system sends the EVENTINFO information received in step 7 to the terminal computer, and the terminal computer performs corresponding operations.

步骤10:结束。Step 10: End.

该模式与多用户合作模式运行步骤区别在于该模式中要设置主控系统和随动系统,主控系统操作过程中随动系统只能受主控系统控制,在步骤7中需要将主控系统发送过来的EVENTINFO信息,通过ICA通道通信在步骤8中传递给运行随动系统的终端计算机,使该终端计算机生成与主控系统相同的现象。The difference between this mode and the multi-user cooperation mode is that the master control system and the slave system need to be set in this mode. During the operation of the master control system, the slave system can only be controlled by the master control system. In step 7, the master control system needs to be set. The sent EVENTINFO information is transmitted to the terminal computer running the follower system in step 8 through the ICA channel communication, so that the terminal computer generates the same phenomenon as the main control system.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.

本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; meanwhile, for those skilled in the art, according to the present invention There will be changes in the specific implementation and application scope. In conclusion, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

1. A system for synchronizing remote states of a virtual training system in a cloud mode is characterized by comprising: the virtual training system comprises a first virtual training system and a second virtual training system, wherein the first virtual training system and the second virtual training system are different instances of the same system;
the first virtual training system includes: the system comprises a first ICA channel communication module, a first data processing forwarding module and a first TNET communication module; the second virtual training system includes: the second ICA channel communication module, the second data processing forwarding module and the second TNET communication module;
the first ICA channel communication module is in communication connection with a first terminal computer and is used for acquiring equipment operation information of the first terminal computer; the first ICA channel communication module is in communication connection with the first data processing and forwarding module, and the first data processing and forwarding module is used for analyzing the acquisition information transmitted by the ICA channel communication module; the first data processing and forwarding module is in communication connection with the first TNET communication module, and the first TNET communication module is configured to receive analysis information transmitted by the first data processing and forwarding module;
the second TNET communication module is in communication connection with the first TNET communication module and is used for receiving the resolution information transmitted by the first TNET communication module; the second data processing and forwarding module is in communication connection with the second TNET communication module, and the second data processing and forwarding module is configured to perform the same operation as the device operation information of the first terminal computer according to the analysis information transmitted by the second TNET communication module.
2. The system for synchronizing the remote status of a virtual training system in a cloud mode according to claim 1, wherein the first data processing and forwarding module specifically comprises:
the analysis unit is used for analyzing the acquired information to obtain analysis information;
an encapsulating unit, configured to encapsulate the parsing information into an EVENTINFO structure;
a transmitting unit, configured to transmit the information encapsulated in the EVENTINFO structure to the first TNET communication module.
3. The system for remote state synchronization of a virtual training system in a cloud mode according to claim 1, further comprising:
and the networking module is used for networking the first virtual training system and the second virtual training system through the first TNET communication module and the second TNET communication module.
4. A method for synchronizing remote states of a virtual training system in a cloud mode, the method for synchronizing remote states of a virtual training system in a cloud mode being applied to the system for synchronizing remote states of a virtual training system in a cloud mode according to any one of claims 1 to 3, the method for synchronizing remote states of a virtual training system in a cloud mode comprising:
acquiring equipment operation information of a first terminal computer by using a first ICA channel communication module to obtain acquired information;
analyzing the acquired information by using a first data processing and forwarding module to obtain analysis information;
transmitting the analysis information to a second TNET communication module by utilizing the first TNET communication module;
and according to the analysis information, utilizing a second data processing and forwarding module to perform the same operation as the equipment operation information of the first terminal computer.
5. The method for synchronizing the remote status of a virtual training system in a cloud mode according to claim 4, wherein the collecting the device operation information of the first terminal computer by using the first ICA channel communication module further comprises:
acquiring a working mode between a first virtual training system and a second virtual training system; the working modes comprise a multi-user cooperation mode and a multi-user control follow-up mode.
6. The method for synchronizing the remote status of the virtual training system in the cloud mode according to claim 5, wherein when the working mode between the first virtual training system and the second virtual training system is the multi-user cooperation mode, the same operation as the device operation information of the first terminal computer is performed by using the second data processing and forwarding module according to the parsing information, and then the method further comprises:
acquiring equipment operation information of a second terminal computer by using a second ICA channel communication module to obtain second acquisition information;
analyzing the second acquisition information by using a second data processing and forwarding module to obtain second analysis information;
transmitting the second resolution information to the first TNET communication module by utilizing a second TNET communication module;
and according to the second analysis information, the first data processing and forwarding module is utilized to perform the same operation as the equipment operation information of the second terminal computer.
7. The method for synchronizing the remote status of the virtual training system in the cloud mode according to claim 5, wherein when the working mode between the first virtual training system and the second virtual training system is a multi-user control follow-up mode, the acquiring the device operation information of the first terminal computer by using the first ICA channel communication module to obtain the acquired information, the method further comprising:
judging whether the first virtual training system is a master control system or not;
when the first virtual training system is a master control system, acquiring equipment operation information of a first terminal computer by using a first ICA channel communication module to obtain acquired information;
when the first virtual training system is not the master control system, the first virtual training system does not respond to the device operation information of the first terminal computer.
8. The method according to claim 7, wherein when an operation mode between the first virtual training system and the second virtual training system is a multi-user control follow-up mode, the transmitting the parsing information to the second TNET communication module by using the first TNET communication module further includes:
judging whether the second virtual training system is a follow-up system or not;
when the second virtual training system is a follow-up system, according to the analysis information, a second data processing and forwarding module is used for performing the same operation as the equipment operation information of the first terminal computer;
when the second virtual training system is not a follow-up system, the second data processing and forwarding module does not respond to the analysis information transmitted by the second TNET communication module.
9. The method for synchronizing the remote status of the virtual training system in the cloud mode according to claim 4, wherein the acquiring the device operation information of the first terminal computer by using the first ICA channel communication module to obtain the acquired information further comprises:
and networking the first virtual training system and the second virtual training system through the first TNET communication module and the second TNET communication module.
10. The method according to claim 4, wherein the analyzing the collected information by using the first data processing and forwarding module to obtain analyzed information, and then further comprising:
and packaging the analysis information into an EVENT INFOO structure.
CN202010735786.7A 2020-07-28 2020-07-28 A system and method for remote state synchronization of virtual training system in cloud mode Pending CN111857933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010735786.7A CN111857933A (en) 2020-07-28 2020-07-28 A system and method for remote state synchronization of virtual training system in cloud mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010735786.7A CN111857933A (en) 2020-07-28 2020-07-28 A system and method for remote state synchronization of virtual training system in cloud mode

Publications (1)

Publication Number Publication Date
CN111857933A true CN111857933A (en) 2020-10-30

Family

ID=72947839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010735786.7A Pending CN111857933A (en) 2020-07-28 2020-07-28 A system and method for remote state synchronization of virtual training system in cloud mode

Country Status (1)

Country Link
CN (1) CN111857933A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577673A (en) * 2012-08-01 2014-02-12 艾康(上海)信息技术有限公司 Real-time interactive remote medicine system and real-time interactive remote medicine method
CN104219269A (en) * 2013-06-04 2014-12-17 上海联影医疗科技有限公司 Synchronous remote consultation method and synchronous remote consultation system
CN105653221A (en) * 2015-12-21 2016-06-08 广州视睿电子科技有限公司 information remote synchronization method, terminal and system
CN105791369A (en) * 2014-12-26 2016-07-20 中兴通讯股份有限公司 User state synchronization method and device, and server
CN111404730A (en) * 2020-03-04 2020-07-10 无锡华云数据技术服务有限公司 State synchronization method and device of virtual router, electronic equipment and storage medium
CN111416795A (en) * 2019-01-08 2020-07-14 阿里巴巴集团控股有限公司 Data synchronization method, device, computing equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577673A (en) * 2012-08-01 2014-02-12 艾康(上海)信息技术有限公司 Real-time interactive remote medicine system and real-time interactive remote medicine method
CN104219269A (en) * 2013-06-04 2014-12-17 上海联影医疗科技有限公司 Synchronous remote consultation method and synchronous remote consultation system
CN105791369A (en) * 2014-12-26 2016-07-20 中兴通讯股份有限公司 User state synchronization method and device, and server
CN105653221A (en) * 2015-12-21 2016-06-08 广州视睿电子科技有限公司 information remote synchronization method, terminal and system
CN111416795A (en) * 2019-01-08 2020-07-14 阿里巴巴集团控股有限公司 Data synchronization method, device, computing equipment and medium
CN111404730A (en) * 2020-03-04 2020-07-10 无锡华云数据技术服务有限公司 State synchronization method and device of virtual router, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈志佳 等: "一种IaaS 模式"云训练"系统设计", 《系统仿真学报》 *

Similar Documents

Publication Publication Date Title
CN108259598B (en) Perception device unified access method based on heterogeneous fusion and cloud analysis technology
CN105897573A (en) Smart home gateway system supporting multiple protocols and multiple services
CN108200190A (en) Internet of Things data service system and method based on cloud computing
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
WO2018176244A1 (en) Data collection method, device, and dynamic environment network management system
CN107124337A (en) Equipment configuration method, device, system and centralized control terminal
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN107357272A (en) A kind of DCS mobile remote monitoring systems and method based on OPC UA
JP2018092565A (en) Cloud relay device, cloud connection processing method, and program
CN105227639A (en) A kind of transformer station's remote pictures transfer approach and the alarm of a kind of transformer station direct transfer method
CN111767176A (en) Method and device for remotely controlling terminal equipment
CN110620711A (en) Intelligent household client and multi-gateway control method thereof
CN114979231A (en) Mobile terminal real-time vehicle control method and system based on whole vehicle DDS protocol and automobile
CN111857933A (en) A system and method for remote state synchronization of virtual training system in cloud mode
CN112559472A (en) File transmission method and device, computer equipment and storage medium
CN104426644A (en) Equipment time synchronization method and device
CN117609228A (en) Industrial equipment metadata storage method, device, equipment and computer storage medium
CN102385514B (en) Method, equipment and system for conducting management operation on software in centralized way
Noman et al. From threads to events: Adapting a lightweight middleware for Contiki OS
CN104468645A (en) Control method, electronic equipment, and information transmission method and device
CN116437377A (en) Communication method, system, electronic device and medium for device control communication protocol
CN112698829A (en) Abnormal resource positioning method and device, storage medium and electronic equipment
CN107102874B (en) Application concurrent installation method and system
CN109525415A (en) A kind of Intelligent power distribution terminal topological model motor synchronizing method and self-synchronous device
KR102698341B1 (en) Device management method and apparatus using smart repeater

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination