CN111857933A - System and method for synchronizing remote states of virtual training system in cloud mode - Google Patents

System and method for synchronizing remote states 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.)
Army Engineering University of PLA
Original Assignee
Army Engineering University of PLA
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 Army Engineering University of PLA filed Critical Army Engineering University of PLA
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

The invention relates to a system and a method for synchronizing remote states of a virtual training system in a cloud mode. A first ICA channel communication module of a first virtual training system in the system 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 is used for analyzing the acquired information; the first data processing forwarding module is in communication connection with the first TNET communication module and used for receiving analysis information; the second TNET communication module of the first virtual training system is in communication connection with the first TNET communication module and used for receiving analysis information; the second data processing forwarding module is in communication connection with the second TNET communication module and is used for making the same operation as the equipment 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.

Description

System and method for synchronizing remote states 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 a method for synchronizing remote states of a virtual training system in a cloud mode.
Background
In the prior art, a method commonly adopted for remotely synchronizing the states of two computers is as follows: and related software is installed on the two terminal computers, and the remote state synchronization of the computer A and the computer B is realized through the communication of the related software and the network.
For the virtual training system in the cloud mode, no relevant solution is provided for realizing the remote state synchronization of the virtual training system.
Disclosure of Invention
The invention aims to provide a system and a method for synchronizing the remote state of a virtual training system in a cloud mode, so as to realize the remote state synchronization of the virtual training system in the cloud mode.
In order to achieve the purpose, the invention provides the following scheme:
a system for remote state synchronization of a virtual training system in a cloud mode comprises: 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.
Optionally, the first data processing and forwarding module specifically includes:
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.
Optionally, the method further includes:
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.
The invention also provides a method for synchronizing the remote state of the virtual training system in the cloud mode, which is applied to the system for synchronizing the remote state of the virtual training system in the cloud mode, and comprises the following steps:
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.
Optionally, the acquiring, by using the first ICA channel communication module, the device operation information of the first terminal computer further includes:
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.
Optionally, when the working mode between the first virtual training system and the second virtual training system is the multi-user cooperation mode, the performing, by using the second data processing and forwarding module, the same operation as the device operation information of the first terminal computer according to the analysis information, and then further including:
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.
Optionally, when the working mode between the first virtual training system and the second virtual training system is the 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 further includes:
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.
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 transmitting the analysis 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.
Optionally, the acquiring, by using the first ICA channel communication module, the device operation information of the first terminal computer to obtain the acquired information further includes:
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.
Optionally, 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.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the virtual training system is deployed in the server, has low requirement on hardware configuration of the terminal computer, does not need to configure the relevant operating environment of the virtual training system, and can realize the remote synchronization of the cloud mode virtual training system under the condition that the terminal computer does not directly establish network connection. In addition, the invention can realize synchronization in different modes according to the working modes among the virtual training systems, and has wider application range.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a system for synchronizing remote states of a virtual training system in a cloud mode according to the present invention;
FIG. 2 is a schematic flow chart illustrating a method for synchronizing remote states of a virtual training system in a cloud mode according to the present invention;
FIG. 3 is a schematic flow chart of embodiment 1 of the present invention;
FIG. 4 is a flow chart of embodiment 2 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a schematic structural diagram of a system for synchronizing the remote state of a virtual training system in a cloud mode according to 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, wherein the first virtual training system 101 and the second virtual training system 102 are different instances of the same system. The first virtual training system 101 is run on a first terminal computer 103, the first virtual training system 101 comprising: the system comprises 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 a second terminal computer 104, and the second virtual training system 102 comprises: the system comprises a second ICA channel communication module, a second data processing and forwarding module and a second TNET communication module.
The first ICA channel communication module is in communication connection with the first terminal computer 103, and the first ICA channel communication module is used for acquiring hardware device operation information of the first terminal computer 103, such as mouse information, keyboard information, touch screen information, and the like. 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 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 forwarding module. Specifically, the first data processing and forwarding module specifically includes:
and the analysis unit is used for analyzing the acquired information to obtain analysis information.
And the encapsulating unit is used for encapsulating the analysis information into the EVENT INFOO structure.
A transmitting unit, configured to transmit the information encapsulated in the EVENTINFO structure to the first TNET communication 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 an operation that is the same as the device operation information of the first terminal computer 103 according to the analysis information transmitted by the second TNET communication module, so as to implement state synchronization between the first virtual training system 101 and the second virtual training system 102.
As a specific embodiment, the system for synchronizing the remote state of the virtual training system in the cloud mode further includes: 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.
Based on the system for synchronizing the remote state of the virtual training system in the cloud mode shown in fig. 1, the invention further provides a method for synchronizing the remote state of the virtual training system in the cloud mode, and fig. 2 is a schematic flow chart of the method for synchronizing the remote state of the virtual training system in the cloud mode. As shown in fig. 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:
step 100: and acquiring the equipment operation information of the first terminal computer by using the first ICA channel communication module to obtain acquired information. Before starting state synchronization, networking the virtual training systems in the cloud mode running in all the terminal computers through respective TNET communication modules, and enabling the virtual training systems in the cloud mode running in all the terminals to be added into a network server for communication. The TNET communication module is completed based on the existing TNET communication plug-in. The system carries out networking by calling a connect (string server ip) function interface provided by the plug-in, wherein an interface parameter server ip is an ip address of the TNET server.
When the state synchronization is started, the working modes between the first virtual training system and the second virtual training system, including a multi-user cooperation mode and a multi-user control follow-up mode, need to be acquired first. Multi-user cooperative mode: specifically, a plurality of users use terminal computers in different places to log in virtual training system instances in a cloud mode respectively to operate, operation information among the virtual training system instances is interactively integrated to achieve state synchronization among the virtual training system instances, and the virtual training system instances of the users are multiple instances of the same system. Multi-user control follow-up mode: specifically, a plurality of users use terminal computers in different places to log in virtual training system instances in a cloud mode respectively, wherein the virtual training system instance of one user is set as a master control system, and other virtual training system instances are used as follow-up systems. The master control system is operated by a user, the follow-up system automatically follows the master control system to carry out state synchronization, and the follow-up system is not controlled by the user, wherein the virtual training system examples are a plurality of examples of the same system. In addition, the method also comprises a working mode that a plurality of users share one virtual training system instance, specifically, the method is that the plurality of users use a terminal computer in different places to log in the same cloud mode to operate the virtual training system, and the mode is not realized at present due to the limitation of the current cloud mode condition.
If the working mode between the first virtual training system and the second virtual training system is the multi-user cooperation mode, executing step 100;
if the working mode between the first virtual training system and the second virtual training system is a multi-user control follow-up mode, whether the first virtual training system is a master control system needs to be further judged; if the first virtual training system is the master control system, go to step 100; if 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. Steps 100-400 of the present invention are operations executed 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 operations executed by the main control system when the working mode between the first virtual training system and the second virtual training system is the multi-user control follow-up mode.
Step 200: and analyzing the acquired information by using the first data processing and forwarding module to obtain analysis information. And the analyzed data is encapsulated into an EVENT INFOO structure, on one hand, the system uses the information structure to generate an operation phenomenon, and on the other hand, the system data processing and forwarding module transmits the EVENT INFOO information to the TNET communication module.
Step 300: and transmitting the resolution information to the second TNET communication module by utilizing the first TNET communication module.
Step 400: and according to the analysis information, making the same operation as the equipment operation information of the first terminal computer by using the second data processing and forwarding module. When the working mode between the first virtual training system and the second virtual training system is the multi-user control follow-up mode and the second TNET communication module receives the analysis information, firstly, whether the second virtual training system is the follow-up system is judged, and when the second virtual training system is the follow-up system, the step 400 is executed; when the second virtual training system is not the follow-up system, the second data processing and forwarding module does not respond to the analysis information transmitted by the second TNET communication module.
Two embodiments are provided below to further illustrate the present invention.
Detailed description of the preferred embodiment 1
In this embodiment, a multi-user cooperation mode is used among the plurality of virtual training systems. An ICA channel communication module in the virtual training system A acquires hardware equipment input information of a terminal computer A, such as mouse information, keyboard information, touch screen information and the like, and transmits the information to a data processing and forwarding module of the virtual training system A; the data processing and forwarding module of the virtual training system A processes the data and transmits the data to the TNET communication module of the virtual training system A; the TNET communication module of the virtual training system A is connected with the TNET communication module of the virtual training system B, and the information is sent 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; and the data processing and forwarding module of the virtual training system B processes the data. The data transmission relationship from the virtual training system B to the virtual training system A is the same as the data transmission relationship from the virtual training system A to the virtual training system B. Therefore, 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 embodiment 1 of the present invention, and as shown in fig. 3, the embodiment includes the following steps:
step 1: and the virtual training systems in the cloud mode run in the terminal computers are networked through respective TNET communication modules.
Step 2: the virtual training system acquires input information, such as mouse information, including operation information of mouse movement, clicking and the like of the mouse device, of the hardware device corresponding to the terminal computer through respective ICA channel communication modules, and transmits the information to the corresponding data processing and forwarding module.
In this step, the system mouse information structure collected by the ICA channel communication module is RAWMOUSE, the structure is a mouse data storage structure provided by the windows operating system, and the structure is defined as follows, and is obtained through a getrawninputdata function interface provided by the windows.
struct RAWMOUSE
{
public ushort usFlags;
public uint ulButtons;
public ushort usButtonFlags;
public ushort usButtonData;
public uint ulRawButtons;
public short lLastX;
public short lLastY;
public uint ulExtraInformation;
}
Wherein usFlags describes the mouse information flag; usButtonFlags describes MOUSE BUTTON states, including RI _ MOUSE _ LEFT _ BUTTON _ DOWN (LEFT MOUSE BUTTON pressed), RI _ MOUSE _ LEFT _ BUTTON _ UP (LEFT MOUSE BUTTON lifted), RI _ MOUSE _ MIDDLE _ BUTTON _ DOWN (MIDDLE MOUSE BUTTON pressed), RI _ MOUSE _ MIDDLE _ BUTTON _ UP (MIDDLE MOUSE BUTTON lifted), RI _ MOUSE _ RIGHT _ BUTTON _ DOWN (RIGHT MOUSE BUTTON pressed), RI _ MOUSE _ RIGHT _ BUTTON _ UP (RIGHT MOUSE BUTTON lifted), and RI _ MOUSE _ WHEEL (MOUSE WHEEL), and when usButtonFlags value is RI _ MOUSE _ WHEEL, ButtonData describes MOUSE WHEEL data, and LastX and LastY describe relative coordinate values of MOUSE X and Y, respectively.
And step 3: the data processing and forwarding module of the virtual training system analyzes the mouse information received in the step 2, and encapsulates the analyzed data into an EVENT FO structure, so that on one hand, the system uses the information structure to generate an operation phenomenon, and on the other hand, the system data processing and forwarding module transmits the EVENT FO information to the TNET communication module.
And (3) analyzing the data of the mouse information structure shown in the step (2), and packaging the data, namely assigning values to the EVENNFO structure according to the analyzed result. The method comprises the following specific steps:
judging the value of usButtonFlags after receiving the RAWMOUSE structure, and if the value of usButtonFlags is RI _ MOUSE _ LEFT _ BUTTON _ DOWN, assigning the event _ type in the EVENT NFO structure to be DOWN and assigning the args _ MOUSE to be LEFT;
if the value of usButtonFlags is RI _ MOUSE _ LEFT _ BUTTON _ UP, the value of event _ type in the EVENTINFO structure is assigned to be UP, and the value of args _ MOUSE is assigned to be LEFT;
if the value of usButtonFlags is RI _ MOUSE _ MIDDLE _ BUTTON _ DOWN, the value of event _ type in the EVENT NFO structure is assigned to DOWN, and the value of args _ MOUSE is assigned to MIDDLE;
if the value of usButtonFlags is RI _ MOUSE _ MIDDLE _ BUTTON _ UP, the value of event _ type in the EVENT INFOO structure is assigned to UP, and the value of args _ MOUSE is assigned to MIDDLE;
if the value of usButtonFlags is RI _ MOUSE _ RIGHT _ BUTTON _ DOWN, the value of event _ type in the EVENT NFO structure is assigned to DOWN, and the value of args _ MOUSE is assigned to RIGHT;
if the value of usButtonFlags is RI _ MOUSE _ RIGHT _ BUTTON _ UP, the value of event _ type in the EVENTINFO structure is assigned to UP, and the value of args _ Mouse is assigned to RIGHT;
LastX and LastY in the RAWMOUSE data structure are relative mouse values, the relative mouse values are-1, 0 and 1, the moving directions of a mouse pointer are respectively represented, and for the LastX, the-1 and the 1 represent the increase and decrease of 1 pixel position on the x axis of a screen, the 0 represents the position immobility; for lLastY, -1 and 1 representing an increase or decrease of 1 pixel position on the y-axis of the screen, 0 represents a fixed position. And accumulating the lLastX and the lLastY and then assigning the values to the mouse _ pos _ x and the mouse _ pos _ y in the EVENT INFOO structure.
Taking a mouse message as an example, a data structure encapsulated in the EVENTINFO structure is as follows:
public struct EVENTINFO
{
int mouse_pos_x;
int mouse_pos_y;
int event_type;
int args_key;
int args_mouse;
}
wherein the mouse _ pos _ x and the mouse _ pos _ y represent position information of the mouse on the screen; event _ type represents a mouse event type, including UP (UP), down (down); the args _ key represents keyboard key information; args _ mouse represents mouse button identification information, and includes LEFT (LEFT), MIDDLE (MIDDLE), and RIGHT (RIGHT).
The system uses the EVENTINFO information structure (the information source is the terminal computer mouse information collected in step 2) to generate a mouse event, and the mouse event is a mouse event in the virtual training system in the cloud mode. The operation phenomenon is the phenomenon that a mouse moves and clicks in the virtual training system in the cloud mode. Processing and analyzing the structure data in the step 3, and determining the mouse event type and the mouse button identification information in the EVENT FO data structure according to the device button state data in the mouse device data structure provided by the operating system; and determining the position information of the mouse in the EVENNFO structure in the screen according to the relative position data of the mouse pointer in the mouse device data structure in the transverse and longitudinal axes of the screen, which is provided by the operating system. The EVENT NFO data structure is a device data storage structure in the system, the device structure information can be simplified and the device information can be expanded by using the EVENT NFO data structure in the system, so that the structure not only supports mouse devices, but also supports other terminal hardware input devices such as a keyboard and the like, and is convenient for packaging and transmission. The using technologies in the step 3 are all the prior arts, and the invention uses the prior arts to complete a new using mode.
And 4, step 4: and the TNET communication module of the virtual training system transmits the EVENT INFO received in the step 3 to other virtual training systems through TNET communication.
And 5: and after other virtual training systems receive the EVENNFO information sent by the virtual training system through the TNET communication module of the other virtual training systems, the information is transmitted to the data processing and forwarding module.
Step 6: and (5) performing corresponding operation by the system data processing and forwarding modules of other virtual training systems according to the EVENTINFO information received in the step (5), so as to realize state synchronization with the virtual training system.
Detailed description of the preferred embodiment 2
In this embodiment, a multi-user control follow-up mode is used among the plurality of virtual training systems, the virtual training system a is set as a master control system, and the virtual training system B is set as a follow-up system. An ICA channel communication module in the virtual training system A acquires hardware equipment input information of a terminal computer A, such as mouse information, keyboard information, touch screen information and the like, and transmits the information to a data processing and forwarding module of the virtual training system A; the data processing and forwarding module of the virtual training system A processes the data and transmits the data to the TNET communication module of the virtual training system A; the TNET communication module of the virtual training system A is connected with the TNET communication module of the virtual training system B, and the information is sent 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 and transmits the information to the ICA channel communication module of the virtual training system B; an ICA channel communication module of the virtual training system B transmits the information to a terminal computer B; the terminal computer B generates corresponding operation phenomena according to the received information, so that the user of the terminal computer B becomes a controlled state. Therefore, 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 flow chart of embodiment 2 of the present invention. As shown in fig. 4, the present embodiment includes the following steps:
step 1: and the virtual training system in the cloud mode running in the terminal computer is networked through the TNET communication module.
Step 2: and determining the master control system, and informing the virtual training systems of other users of being the follow-up systems through the TNET communication module of the master control system. The master control system is one of a plurality of virtual training systems. In the use mode, a user firstly needs to mark a virtual training system as a main control system, realizes marking by calling a void SetRight OfControl () interface function, and informs other user systems of being follow-up systems through TNET communication. The main control system is set by the user according to the user requirement and the use environment, and each virtual training system can become the main control system. Only one master control system can be provided for all users, and when virtual training systems of other users apply to become the master control system, the authority of the current master control system is cancelled, and the application system becomes a new master control system.
And setting a system variable isController as true in a SetReightOfControl () interface function, indicating that the virtual training system is a main control system, informing the rest of the virtual training systems to be follow-up systems through a TNET communication module, and setting the variable isController as false in the follow-up systems.
And step 3: when the state synchronization is carried out, for each virtual training system, firstly, whether the system is a main control system is judged, if so, the main control system jumps to the step 4, and otherwise, the main control system jumps to the step 7. And in the running process of the system, returning the value of the current system variable isController by calling a boils controller () interface function, wherein if the value of the isController is returned to true, the system is taken as a main control system, and if the value of false is returned, the system is taken as a follow-up system.
And 4, step 4: the main control system collects mouse movement, clicking and other operation information of mouse equipment of the terminal computer through the ICA channel communication module and transmits the information to the data processing and forwarding module;
and 5: and 3, analyzing the mouse information received in the step 3 by the main control system data processing and forwarding module, and packaging the analyzed data into an EVENT FO structure, wherein on one hand, the system generates an operation phenomenon by using the information structure, and on the other hand, the system data processing and forwarding module transmits the EVENT FO information to the TNET communication module.
Step 6: and the main control system TNET communication module sends the EVENNFO information received in the step 4 to other follow-up systems through TNET communication, and the step 10 is skipped.
And 7: and after receiving the EVENNFO information sent by the main control system through the TNET communication module, the follow-up system transmits the information to the follow-up system data processing and forwarding module.
And 8: and the follow-up system data processing and forwarding module performs corresponding operation according to the EVENTINFO information received in the step 7, and simultaneously transmits the information to an ICA channel communication module in the follow-up system.
And step 9: and the follow-up system ICA channel communication module sends the EVENNFO information received in the step 7 to the terminal computer, and the terminal computer performs corresponding operation.
Step 10: and (6) ending.
The operation steps of the mode and the multi-user cooperation mode are different in that a main control system and a follow-up system are required to be arranged in the mode, the follow-up system can only be controlled by the main control system in the operation process of the main control system, and EVENNFO information sent by the main control system is required to be transmitted to a terminal computer operating the follow-up system in step 7 through ICA channel communication in step 8, so that the terminal computer generates the same phenomenon as the main control system.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the 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 System and method for synchronizing remote states 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 System and method for synchronizing remote states 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 System and method for synchronizing remote states 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 System and method for synchronizing remote states 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
CN102932695B (en) A kind of remote control thereof, intelligent terminal and intelligent remote control system
CN101567816B (en) Monitoring server and monitoring method
CN108259598B (en) Perception device unified access method based on heterogeneous fusion and cloud analysis technology
CN112073471B (en) Control method and device of equipment, storage medium and electronic device
CN103577320A (en) Testing method and system of remote terminals
CN108027725B (en) Method, device and equipment for guiding terminal equipment operation
CN104102578B (en) Test method and system and operation terminal
CN102272724A (en) System and method for remote monitoring and control of field device
CN110554950B (en) Interface debugging method and device and storage medium
CN113360116A (en) Method, device and equipment for controlling terminal and storage medium
CN105794152A (en) Web-based interaction with building automation
CN105677561A (en) Mobile product multi-platform testing method and system
CN103476145A (en) Wireless-network connection processing method and device
CN107666406A (en) Intelligent cards display methods and device
CN108616643A (en) The method, apparatus and system of mobile phone are controlled by computing device
CN116933551A (en) Combined simulation system, method, equipment and storage medium
CN114327201B (en) Cloud mobile phone control method and device and computer equipment
CN105262880A (en) Mobile phone control demonstration system applied to WiFi network
CN117130318B (en) Industrial data acquisition method, device, system and readable storage medium
CN106878467B (en) Method for remotely controlling equipment and remote control system
CN112799664A (en) Configuration method and system supporting heterogeneous environment
CN111857933A (en) System and method for synchronizing remote states of virtual training system in cloud mode
CN219351760U (en) Programmable intelligent industrial control gateway
CN103595796A (en) Dynamic monitoring method and system based on network
CN116800638A (en) Network detection method, device, electronic equipment and storage medium

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