Data processing method and server

By using the total virtual machine and sub-virtual machines in the server to process multiple copies of original images and control instructions, the problem of multiple terminal devices being unable to control the same target software at the same time is solved, multi-terminal collaborative control is achieved, data processing efficiency is improved and data processing is avoided. Control conflict.

CN111475257BActive Publication Date: 2024-10-18XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010197489.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-19
Publication Date
2024-10-18
Estimated Expiration
2040-03-19

AI Technical Summary

Technical Problem

In the existing technology, multiple terminal devices cannot control the same target software at the same time, resulting in the server being unable to achieve simultaneous control when receiving multiple control requests, and there are problems such as conflicts and increased waiting time when control rights are determined.

Method used

By using the total virtual machine and sub-virtual machines in the server, obtain and process multiple original images, allocate virtual machines according to control requests to match the terminal device, receive and process instructions, generate the target image, and realize multiple terminal devices to the same target software collaborative control.

Benefits of technology

It enables multiple terminal devices to remotely control the same target software at the same time, saving time waiting for the server to determine control rights, avoiding control instruction conflicts, and improving data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111475257B_ABST
    Figure CN111475257B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method and a server, which relate to the field of electronic information technology and can solve the problem that different terminal devices cannot operate the same software at the same time. The specific technical scheme is: after receiving a collaborative control request sent by multiple terminal devices, the target software and the original image corresponding to the target software are obtained according to the collaborative control request, and the original image is copied and generated into M copies of the original image according to the collaborative control request, and sent to the corresponding terminal device. After receiving the corresponding original image, the terminal device generates a target processing instruction for the original image and sends it to the server. After receiving the target processing instruction of each terminal device, the server processes the original image corresponding to the terminal device according to the target processing instruction, and finally superimposes the processed original images to generate the target image. The present disclosure is used for collaborative control of software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic information technology, and in particular to a data processing method and a server. Background Art

[0002] With the rapid development of science and technology, the efficiency of users' use of software has also improved. In order to improve the efficiency of software use, there will be a situation where multiple terminal devices remotely control the same software at the same time. Because the same application does not support multiple users to control the same application at the remote end at the same time. Therefore, when multiple terminal devices need to control the same target application in the remote device, the target application is controlled through preemptive reverse control between terminal devices. When the server receives control requests sent by multiple terminal devices, it determines which terminal device controls the target software according to preset rules, that is, the remote end can only support one control message at the same time, and simultaneous control cannot be achieved. Summary of the invention

[0003] The disclosed embodiment provides a data processing method and a server, which can solve the problem that multiple terminal devices cannot control the same target application at the same time. The technical solution is as follows:

[0004] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, the server includes a main virtual machine and at least one child virtual machine, and is applied to the server, the method comprising:

[0005] Obtain M original images, which are displayed images in the target software;

[0006] Sending each of the M original images to N terminal devices respectively through the master virtual machine;

[0007] receiving and processing the target processing instruction sent by the N terminal devices through the child virtual machine, and sending the processing result to the main virtual machine, the target processing instruction is used to instruct the target software to process the original image, and the child virtual machine matches at least one terminal device among the N terminal devices;

[0008] The processing result is received by the overall virtual machine, and a target image is generated according to the processing result.

[0009] In one embodiment, the method further includes, before acquiring the M original images:

[0010] Receiving control request information sent by N terminal devices, the control request information is used to request control of target software, N is greater than 1, and the control request information includes a preset rule and the target software;

[0011] Allocate a main virtual machine and a child virtual machine to the N terminal devices according to the control request information, wherein the child virtual machine matches the N terminal devices;

[0012] An execution command is generated according to the control request information and sent to the main virtual machine and the child virtual machine, wherein the execution command is used to instruct to run the target software.

[0013] In one embodiment, the method of obtaining M original images includes:

[0014] According to the control request information, a target number of copies M is obtained, where the target number of copies M is used to indicate the number of copies of the target image;

[0015] After the target software is run through the master virtual machine, an original image is obtained;

[0016] And according to the target number M, the original image is copied and processed by the total virtualization to generate the M copies of the original image.

[0017] In one embodiment, the method includes processing, by the child virtual machine, the target processing instructions sent by the N terminal devices, including:

[0018] Running the target software through the child virtual machine and reading the original image;

[0019] Executing the target processing instruction in the original image by the child virtual machine;

[0020] The processing result is obtained through the child virtual machine, and the processing result is sent to the main virtual machine.

[0021] In one embodiment, the method further comprises:

[0022] According to the M copies of the original image, the target image is copied into M copies of the target image;

[0023] The M target images are sent to terminal devices that match the M original images.

[0024] According to a second aspect of an embodiment of the present disclosure, there is provided a server, comprising: a receiver, a processor and a transmitter, wherein the processor is connected to the receiver and the transmitter respectively;

[0025] The receiver is used to obtain M original images, where the original images are displayed in the target software;

[0026] and receiving, through the child virtual machine, a target processing instruction sent by the N terminal devices, the target processing instruction being used to instruct the target software to process the original image, the child virtual machine being matched with at least one terminal device among the N terminal devices;

[0027] and receiving the processing result through the overall virtual machine;

[0028] The processor is used to process the target processing instructions sent by the N terminal devices through the child virtual machine;

[0029] and, generating a target image according to the processing result through the overall virtual machine;

[0030] The transmitter is used to send each of the M original images to N terminal devices respectively through the master virtual machine;

[0031] And, sending the processing result to the main virtual machine through the child virtual machine.

[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0034] Figure 1 is a flow chart of a data processing method provided by an embodiment of the present disclosure;

[0035] Figure 2 is a structural schematic diagram of a data processing method provided by an embodiment of the present disclosure;

[0036] Figure 3 It is a structural diagram of a server provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0038] The present disclosure provides a data processing method, which is applied to a server, wherein the server includes a main virtual machine and at least one child virtual machine, such as Figure 1 As shown, the data processing method includes the following steps:

[0039] 101. Obtain M copies of original images.

[0040] The original image is a display image of the target software, and the display image may be a display image of an image to be processed in the target software.

[0041] In the implementation process, the method provided by the present disclosure further includes determining the main virtual machine and the child virtual machine before obtaining the M original images. The specific process is as follows:

[0042] The server receives control request information sent by N terminal devices, the control request information is used to request control of target software, N is greater than 1, and the control request information includes a preset rule and the target software;

[0043] When processing the target collaborative control request information sent by N terminal devices, the server allocates a main virtual machine and a sub-virtual machine to the N terminal devices, and the sub-virtual machine matches the N terminal devices;

[0044] An execution command is generated and sent to the main virtual machine and the child virtual machine, wherein the execution command is used to instruct the target software to run.

[0045] The above-mentioned target applications may include image processing software, such as drawing software and map drawing software, wherein the drawing software may be AutoCAD, 3D, Studio Max, Revit, CATIA, etc., and the map drawing software may be drawing software based on Baidu Maps or Google Maps, etc.

[0046] The collaborative control request for the same application by the N terminal devices mentioned above is a collaborative control request submitted by one of the N terminal devices to the server; the collaborative control request includes at least: the name of the application to be coordinated and the address information of the terminal device to be coordinated.

[0047] During implementation, the method provided by the present disclosure may include:

[0048] According to the control request information, a target number of copies M is obtained, where the target number of copies M is used to indicate the number of copies of the target image;

[0049] After the target software is run through the master virtual machine, an original image is obtained;

[0050] And according to the target number M, the original image is copied and processed to generate M copies of the original image.

[0051] The above-mentioned target image, that is, the main virtual machine, after activating the target software and loading the image to be processed into the target software, obtains the display interface of the target software, and the display interface is the original image.

[0052] The main virtual machine obtains the current display image of the target software, and divides the display image into M original images according to a preset rule, each of the M original images corresponding to N terminal devices.

[0053] A specific example is listed here to explain how to generate M original images: the display image of the target software is copied into four copies, each of which is called an original image. Since each copy of the image is a copy of the display image of the target software, the content of each copy of the image is the same.

[0054] Specifically, each layer of the M original images corresponds to N terminal devices, where M can be equal to N, and the original images and terminal devices are in a one-to-one correspondence; M can be different from N, and multiple original images can be assigned to the same terminal device, or one original image can be assigned to multiple terminal devices, and multiple terminal devices process the same original image and then superimpose to generate the final processed original image. The specific correspondence can be set according to the specific situation. And generate an execution command, send it to the main virtual machine and the child virtual machine, and the execution command is used to instruct the running of the target software.

[0055] 102. Send each of the M original images to N terminal devices respectively through the master virtual machine.

[0056] In the method provided in the present disclosure, the process of sending the M original images to the terminal device matching the M original images may be:

[0057] Receiving control request information sent by N target terminal devices, the control request information is used to request control of target software, N is greater than 1, and the control request information includes a preset rule;

[0058] According to the control request information, the target software and the first mapping are acquired, where the first mapping is used to indicate a corresponding relationship between at least one terminal device and each of the M original images.

[0059] According to the first mapping, the M copies of the original image are sent to terminal devices corresponding to the M copies of the original image.

[0060] The above-mentioned obtaining of the first mapping may be to establish a correspondence between the address information and the identification information according to the address information of the target terminal device and the identification information of the target software, thereby obtaining the first mapping.

[0061] In an optional embodiment, in order to improve the efficiency of data processing, the server can create a total virtual machine to send the original image to the terminal device, the total virtual machine obtains the original image of the source target software, and divides the original image into M original images; and establishes a transmission link for the terminal device corresponding to the M original images, through which the display images of the divided M original images are sent to each terminal device respectively.

[0062] In an optional embodiment, in order to improve the accuracy of data processing, the server may create a child virtual machine, and send the M original images to the terminal devices corresponding to the M original images through the child virtual machine. The specific process may be:

[0063] Determine, according to the target collaborative control request information, sub-virtual machines that match the N devices corresponding to the N devices;

[0064] Generate a second mapping according to the correspondence between the child virtual machine and the N devices;

[0065] According to the second mapping, the original images corresponding to the N devices are sent to the sub-virtual machines corresponding to the N devices, and the target software is activated in the sub-virtual machines.

[0066] 103. According to the M original images, the child virtual machine receives and processes the target processing instruction sent by the terminal device.

[0067] The target processing instruction is used to instruct the target software to process the original image that matches the terminal device among the M original images;

[0068] In the method provided by the present disclosure, the target processing instruction sent by the terminal device matching the M original images can be received in a variety of ways. Here, a child virtual machine is created in the server, and the terminal device sends the operation information of the original image to the corresponding child virtual machine in the form of a reverse control instruction as an example for explanation:

[0069] According to the target collaborative control request information, sub-virtual machines matching the N devices are allocated to the N devices. Specifically, the server starts the N sub-virtual machines, each of which corresponds to a terminal device, and each of which runs an application. The server establishes a communication connection between each sub-virtual machine and each terminal device.

[0070] Generate a second mapping according to the correspondence between the child virtual machine and the N devices;

[0071] According to the second mapping, the original images corresponding to the N devices are sent to the sub-virtual machines corresponding to the N devices, and the target software is activated in the sub-virtual machines.

[0072] In an optional embodiment, the method provided by the present disclosure processes the original image according to the target processing instruction, which may be:

[0073] Each child virtual machine runs the target software to read the original image;

[0074] Executing the target processing instruction sent by the terminal device matching the child virtual machine in the original image;

[0075] The child virtual machine obtains the processing result and sends the processing result to the main virtual machine

[0076] 104. Receive the processing result through the main virtual machine, and generate a target image according to the processing result.

[0077] In the method provided by the present disclosure, after the master virtual machine receives the processing result, a target image is generated according to the processing result, which may specifically include:

[0078] The main virtual machine processes the sub-target images sent from one or more sub-virtual machines to generate a target image, and the processing may refer to superimposing the multiple processed images in an application in the main virtual machine;

[0079] And display the target image.

[0080] The method provided by the present disclosure also includes that after obtaining the target image, the main virtual machine divides the target image into M target images according to user requirements, and sends each of the M target images to the corresponding terminal device, so that the terminal device can obtain the execution result, and further generate the corresponding target processing instructions according to the execution result and then send them to the main virtual machine through the child virtual machine.

[0081] The method provided in the present disclosure realizes the control of the target software after processing the display image of the target software.

[0082] Here is an example for explanation: An exemplary system block diagram of a multi-terminal collaborative control application provided by the present invention is as follows: Figure 2 Here, the processing method provided by the present disclosure is described by taking the terminal devices A, B, C, and D as an example:

[0083] The four terminal devices, terminal device A, terminal device B, terminal device C, and terminal device D, respectively send target requests to the server, and the target requests are used to request collaborative control of the target software; the server obtains the target software and the original image corresponding to the target software according to the target request, and copies the original image into four original images; the server allocates a main virtual machine and four sub-virtual machines to the four devices according to the four original images; the main virtual machine collects the display image of each copy through four image acquisition terminals according to the four original images, and sends them to the terminal devices corresponding to the four original images; at the same time, the main virtual machine sends the original image and the target software to each sub-virtual machine, and each sub-virtual machine processes the original image through the target software running locally. After entering the collaborative control process, the four devices A, B, C, and D generate reverse control operation instructions based on the original images after receiving the corresponding original images, and send them to the corresponding child virtual machines in the form of keyboard and mouse messages; the child virtual machines execute the keyboard and mouse messages through the locally started application, operate the original images, and send the sub-target images obtained by the operation to the main virtual machine; the main virtual machine receives the sub-target images sent by multiple child virtual machines and aggregates them to generate the total target image; the target image is copied into four copies and sent to each terminal device through the image acquisition end. This cycle is executed to achieve the purpose of collaborative control of the same application by multiple terminal devices.

[0084] The data processing method provided by the embodiment of the present disclosure, after receiving the collaborative control request sent by multiple terminal devices, obtains the target software and the original image corresponding to the target software according to the collaborative control request, and copies the original image to generate M copies of the original image according to the collaborative control request, and sends them to the corresponding terminal devices. After receiving the original image, the terminal device generates a target processing instruction for the original image and sends it to the server. After receiving the target processing instruction of each terminal device, the server processes the original image corresponding to the terminal device respectively according to the target processing instruction, and finally superimposes the processed original images to generate the final target image.

[0085] This solution solves the problem in the prior art that multiple terminal devices cannot control the same target software at the same time. It can simultaneously receive multi-channel control instructions sent by multiple terminal devices, obtain the execution result after executing the control instruction, and feedback the execution result to the corresponding terminal device, saving the time for the terminal device to wait for the server to determine the control right, and avoiding conflicts when the server responds to control instructions sent by multiple terminal devices, thereby improving data processing efficiency and achieving the technical effect of multiple terminal devices remotely controlling the same target software at the same time.

[0086] Embodiment 2

[0087] Based on the above Figure 1Corresponding to the data processing method provided in the embodiment, another embodiment of the present disclosure provides a server, referring to Figure 3 As shown, the server provided in this embodiment includes: a receiver 301, a processor 302 and a transmitter 303, and the processor 302 is connected to the receiver 301 and the transmitter 303 respectively;

[0088] The receiver 301 is used to obtain M original images, where the original images are displayed in the target software;

[0089] and receiving, through the child virtual machine, a target processing instruction sent by the N terminal devices, the target processing instruction being used to instruct the target software to process the original image, the child virtual machine being matched with at least one terminal device among the N terminal devices;

[0090] and receiving the processing result through the overall virtual machine;

[0091] The processor 302 is used to process the target processing instructions sent by the N terminal devices through the child virtual machine;

[0092] and, generating a target image according to the processing result through the overall virtual machine;

[0093] The transmitter 303 is used to send each of the M original images to N terminal devices respectively through the master virtual machine;

[0094] And, sending the processing result to the main virtual machine through the child virtual machine.

[0095] In an optional embodiment, the processor 302 in the server provided by the present disclosure is further configured to:

[0096] Receiving control request information sent by N terminal devices, the control request information is used to request control of target software, N is greater than 1, and the control request information includes a preset rule and the target software;

[0097] Allocate a main virtual machine and a child virtual machine to the N terminal devices according to the control request information, wherein the child virtual machine matches the N terminal devices;

[0098] And according to the control request information, an execution command is generated, and the execution command is sent to the main virtual machine and the child virtual machine, and the execution command is used to instruct to run the target software.

[0099] In an optional embodiment, the processor 302 in the server provided by the present disclosure is further configured to:

[0100] According to the control request information, a target number of copies M is obtained, where the target number of copies M is used to indicate the number of copies of the target image;

[0101] After the target software is run through the master virtual machine, an original image is obtained;

[0102] And according to the target number M, the original image is copied and processed by the total virtualization to generate the M copies of the original image.

[0103] In an optional embodiment, the processor 302 in the server provided by the present disclosure is further configured to:

[0104] Running the target software through the child virtual machine and reading the original image;

[0105] Executing the target processing instruction in the original image by the child virtual machine;

[0106] The processing result is obtained through the child virtual machine, and the processing result is sent to the main virtual machine.

[0107] In an optional embodiment, the processor 302 in the server provided by the present disclosure is further configured to:

[0108] According to the M copies of the original image, the target image is copied into M copies of the target image;

[0109] The M target images are sent to terminal devices that match the M original images.

[0110] The server provided by the embodiment of the present disclosure, after receiving collaborative control requests sent by multiple terminal devices, obtains the target software and the original image corresponding to the target software according to the collaborative control request, and copies the original image to generate M copies of the original image according to the collaborative control request, and sends them to the corresponding terminal devices. After receiving the corresponding original image, the terminal device generates a target processing instruction for the original image and sends it to the server. After receiving the target processing instruction of each terminal device, the server processes the original image corresponding to the terminal device respectively according to the target processing instruction, and finally superimposes the processed original images to generate a final processed original image.

[0111] This solution solves the problem in the prior art that multiple terminal devices cannot control the same target software at the same time. It can simultaneously receive multi-channel control instructions sent by multiple terminal devices, obtain the execution result after executing the control instruction, and feedback the execution result to the corresponding terminal device, saving the time for the terminal device to wait for the server to determine the control right, and avoiding conflicts when the server responds to control instructions sent by multiple terminal devices, thereby improving data processing efficiency and achieving the technical effect of multiple terminal devices remotely controlling the same target software at the same time.

[0112] Based on the above Figure 1 and Figure 2Corresponding to the data processing method described in the embodiment, the embodiment of the present disclosure also provides a computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The storage medium stores computer instructions for executing the above Figure 1 The data processing method described in the embodiment corresponding to FIG. 2 will not be described in detail here.

[0113] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

Claims

1. A data processing method, characterized in that: Applied to a server, the server includes a main virtual machine and at least one child virtual machine, the method includes: Receiving control request information sent by N terminal devices, the control request information is used to request control of target software, the N is greater than 1, and the control request information includes a preset rule and the target software; Acquire M copies of an original image, where the original image is a display image in a target software; the acquiring of the M copies of the original image includes: acquiring a target number of copies M according to the control request information, where the target number of copies M is used to indicate the number of copies of the target image; acquiring the original image after running the target software through a main virtual machine; and generating the M copies of the original image after copying and processing the original image through the main virtual machine according to the target number of copies M; Sending each of the M original images to N terminal devices respectively through the master virtual machine; receiving and processing the target processing instructions sent by the N terminal devices through the child virtual machine, and sending the processing result to the main virtual machine, wherein the target processing instructions are used to instruct the target software to process the original image, and the child virtual machine matches at least one terminal device among the N terminal devices; The processing result is received through the overall virtual machine, and a target image is generated according to the processing result.

2. The method according to claim 1, characterized in that Before acquiring the M original images, the method further includes: Allocate a main virtual machine and a child virtual machine to the N terminal devices according to the control request information, wherein the child virtual machine matches the N terminal devices; An execution command is generated according to the control request information and sent to the main virtual machine and the child virtual machine, wherein the execution command is used to instruct to run the target software.

3. The method according to claim 2, characterized in that Processing the target processing instructions sent by the N terminal devices by the sub-virtual machine includes: Running the target software through the child virtual machine and reading the original image; Executing the target processing instruction in the original image by the child virtual machine; The processing result is obtained through the child virtual machine, and the processing result is sent to the main virtual machine.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: According to the M original images, the target image is copied into M target images; The M target images are sent to terminal devices that match the M original images.

5. A server, characterized in that: include: A receiver, a processor and a transmitter, wherein the processor is connected to the receiver and the transmitter respectively; The processor is used to receive control request information sent by N terminal devices, the control request information is used to request control of target software, N is greater than 1, and the control request information includes a preset rule and the target software; The receiver is used to obtain M original images, where the original images are displayed images in the target software; and receiving, through the child virtual machine, a target processing instruction sent by the N terminal devices, the target processing instruction being used to instruct the target software to process the original image, the child virtual machine being matched with at least one terminal device among the N terminal devices; and receiving the processing result through the overall virtual machine; The processor is used to process the target processing instructions sent by the N terminal devices through the sub-virtual machine; and, generating a target image according to the processing result through the overall virtual machine; The transmitter is used to send each of the M original images to N terminal devices respectively through the master virtual machine; and, sending the processing result to the main virtual machine through the child virtual machine; The processor is also used to According to the control request information, a target number of copies M is obtained, where the target number of copies M is used to indicate the number of copies of the target image; After running the target software through the master virtual machine, obtaining the original image; And according to the target number M, the original image is copied and processed by the main virtual machine to generate the M copies of the original image.

6. The server according to claim 5, characterized in that: The processor is also used to Allocate a main virtual machine and a child virtual machine to the N terminal devices according to the control request information, wherein the child virtual machine matches the N terminal devices; And according to the control request information, an execution command is generated, and the execution command is sent to the main virtual machine and the child virtual machine, wherein the execution command is used to instruct to run the target software.

7. The server according to claim 6, characterized in that: The processor is also used to Running the target software through the child virtual machine and reading the original image; Executing the target processing instruction in the original image by the child virtual machine; The processing result is obtained through the child virtual machine, and the processing result is sent to the main virtual machine.

8. The server according to any one of claims 5 to 7, characterized in that: The processor is further configured to: According to the M original images, the target image is copied into M target images; The M target images are sent to terminal devices that match the M original images.

Citation Information

Patent Citations

  • Virtual information processing method, device, and storage medium

    CN108961424A

  • Data processing method and system

    CN109697097A