Instruction processing method and device, server and cloud desktop system
By receiving the client's operation instructions in the server of the cloud desktop system and converting them into USB signals, the problem of low system compatibility in the prior art is solved, and higher compatibility and stability are achieved.
Patent Information
- Application Number
- CN202411772158.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-14
AI Technical Summary
In the existing cloud desktop technology, due to the different specialized programs developed by the operating system and API, the system compatibility is reduced, making it difficult to implement cross-platform instruction processing.
By receiving the client's operation instructions in the server of the cloud desktop system, converting them into USB signals, and sending them to the corresponding processing device, the system compatibility is improved using virtual USB devices and USB conversion devices.
Improves the compatibility and stability of the cloud desktop system, ensuring that no matter how the operating system changes, the processing of USB signals will not be affected, thereby improving the overall performance of the system.
Smart Images

Figure CN119621245A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud desktop technology, and in particular to an instruction processing method, device, server and cloud desktop system. Background Art
[0002] With the continuous development of cloud desktop technology, the processing process has been transferred from the user device to the cloud device. Therefore, after the user device detects the user's operation, the operation instruction corresponding to the operation can be sent to the cloud device for processing by the cloud device.
[0003] Cloud devices can receive operation instructions through dedicated programs developed based on the Application Programming Interface (API), and then the operating system in the cloud device processes the operation instructions.
[0004] The operating systems of cloud devices are different, and the dedicated programs developed based on APIs are different. Therefore, different dedicated programs need to be developed for different operating systems, which reduces the compatibility of the system. Summary of the invention
[0005] Based on this, it is necessary to provide an instruction processing method, device, server and cloud desktop system that can improve system compatibility in response to the above technical problems.
[0006] In a first aspect, the present application provides an instruction processing method, which is applied to a server in a cloud desktop system, wherein the cloud desktop system further includes a plurality of clients and a plurality of processing devices, wherein the plurality of clients correspond one-to-one to the plurality of processing devices, and the method includes:
[0007] receiving an operation instruction from a first client, where the first client is any client among the multiple clients;
[0008] Convert the operation instruction into a USB signal;
[0009] The USB signal is sent to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices.
[0010] In one embodiment, the method further comprises:
[0011] Generate a plurality of virtual USB devices, wherein the plurality of virtual USB devices correspond one to one to the plurality of processing devices;
[0012] The converting the operation instruction into a USB signal comprises:
[0013] The operation instruction is converted into a USB signal of a first virtual USB device, where the first virtual USB device is a virtual USB device corresponding to the first client among the multiple virtual USB devices.
[0014] In one of the embodiments, the server is extended with multiple USB interfaces through a USB extender, and the multiple USB interfaces correspond one-to-one to the multiple processing devices. The server uses the multiple USB interfaces to connect to the multiple processing devices through USB data cables.
[0015] In one embodiment, the cloud desktop system further includes a plurality of USB conversion devices, and converting the operation instruction into a USB signal includes:
[0016] Preprocessing the operation instruction to obtain an operation signal;
[0017] Sending the operation signal to a first USB conversion device, so that the first USB conversion device converts the operation signal into a USB signal, wherein the first USB conversion device is a USB conversion device corresponding to the first client among the multiple USB conversion devices;
[0018] The sending the USB signal to the first processing device comprises:
[0019] The first USB conversion device sends the USB signal to the first processing device.
[0020] In one embodiment, each USB conversion device in the plurality of USB conversion devices corresponds to one or more processing devices in the plurality of processing devices.
[0021] In a second aspect, the present application further provides an instruction processing device, which is applied to a server in a cloud desktop system, wherein the cloud desktop system further includes a plurality of clients and a plurality of processing devices, wherein the plurality of clients correspond one to one to the plurality of processing devices, and the device includes:
[0022] A communication unit, configured to receive an operation instruction from a first client, where the first client is any client among the multiple clients;
[0023] A conversion unit, used for converting the operation instruction into a USB signal;
[0024] The communication unit is further configured to send the USB signal to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices.
[0025] In a third aspect, the present application further provides a server, the server being a server in a cloud desktop system, the cloud desktop system further comprising a plurality of clients and a plurality of processing devices, the plurality of clients corresponding one to one with the plurality of processing devices, the server comprising a memory, a transceiver, and a processor:
[0026] The memory is used to store a computer program, the transceiver is used to send and receive data under the control of the processor, and the processor is used to read the computer program in the memory and perform the following operations:
[0027] receiving an operation instruction from a first client, where the first client is any client among the multiple clients;
[0028] Convert the operation instruction into a USB signal;
[0029] The USB signal is sent to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices.
[0030] In a fourth aspect, the present application further provides a cloud desktop system, comprising a plurality of clients, a server, and a plurality of processing devices, wherein the plurality of clients correspond one to one to the plurality of processing devices, wherein:
[0031] A first client, used for sending an operation instruction to the server in response to an operation by a user through a USB device, wherein the first client is any one of the multiple clients;
[0032] The server is configured to receive an operation instruction from the first client, convert the operation instruction into a USB signal, and send the USB signal to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices;
[0033] The first processing device is used to receive the USB signal from the server and process the USB signal.
[0034] In a fifth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0035] In a sixth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.
[0036] In the embodiment of the present application, the cloud desktop system includes a server, multiple clients and multiple processing devices, and the multiple clients correspond to the multiple processing devices one by one. The server receives an operation instruction from the first client, converts the operation instruction into a USB signal, and sends the USB signal to the first processing device. It can be seen that the server converts the operation instruction into a USB signal and then sends it to the processing device. The operating system will not affect the processing of the USB signal by the processing device, so the compatibility of the system can be improved. In addition, since the cloud desktop system uses a bare metal solution, the stability and performance of the system can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a structural diagram of a system architecture provided by an embodiment of the present application;
[0039] Figure 2 It is a structural diagram of another system architecture provided by an embodiment of the present application;
[0040] Figure 3 It is a flowchart of an instruction processing method provided in an embodiment of the present application;
[0041] Figure 4 It is a flowchart of another instruction processing method provided in an embodiment of the present application;
[0042] Figure 5 It is a flowchart of another instruction processing method provided in an embodiment of the present application;
[0043] Figure 6 is a structural diagram of an instruction processing device provided in an embodiment of the present application;
[0044] Figure 7 It is a structural diagram of a server provided in an embodiment of the present application;
[0045] Figure 8 It is a structural diagram of a cloud desktop system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] In order to better understand the embodiments of the present application, the system architecture of the present application is first introduced below.
[0048] Figure 1 Schematic diagram of a system architecture provided by an embodiment of the present application. Figure 1 As shown, the system architecture may include multiple clients 101 , a server 102 , and multiple processing devices 103 .
[0049] The client 101 and the server 102 are connected via a network, which may be a local area network or a wide area network.
[0050] The server 102 and the processor 103 are connected via a Universal Serial Bus (USB) data line.
[0051] The multiple clients 101 correspond to the multiple processing devices 103 one by one, that is, each processing device 103 corresponds to a unique client 101 .
[0052] Figure 2 Schematic diagram of another system architecture provided by the embodiment of the present application. Figure 2 As shown, the system architecture may include multiple clients 201 , a server 202 , multiple USB conversion devices 203 , and multiple processing devices 204 .
[0053] The client 201 and the server 202 are connected via a network. The network may be a local area network or a wide area network.
[0054] The server 202 and the USB conversion device 203 are connected via a network, which may be a local area network or a wide area network.
[0055] The USB conversion device 203 and the processor 204 are connected via a USB data line.
[0056] The multiple clients 201 correspond to the multiple processing devices 204 one by one.
[0057] There may be a one-to-one correspondence between the multiple USB conversion devices 203 and the multiple processing devices 204, that is, each processing device 204 corresponds to a unique USB conversion device 203. Each USB conversion device 203 in the multiple USB conversion devices 203 may correspond to two or more processing devices 204 in the multiple processing devices 204.
[0058] The client is the client of the processing device, which may include a USB device and a client component. The server is an independent physical server. The USB conversion device is a device that can convert a signal into a USB signal. The processing device is a device that can perform data processing.
[0059] It should be understood that Figure 1 and Figure 2 This is an exemplary description of the system architecture of the present application and does not limit the system architecture of the present application.
[0060] Based on the above system architecture, Figure 3 1 is a flowchart of a method for processing instructions provided in an embodiment of the present application. The method for processing instructions is described from the perspective of a cloud desktop system. The cloud desktop system may include multiple clients, servers, and multiple processing devices, and the multiple clients correspond to the multiple servers one by one. Figure 3 As shown, the instruction processing method may include the following steps.
[0061] 301. The first client sends an operation instruction to a server in response to an operation of a user through a USB device.
[0062] Correspondingly, the server receives the operation instruction from the first client.
[0063] The first client is any client among the multiple clients.
[0064] When users need to perform operations in the process of using the cloud desktop system, they can use USB devices to perform operations. USB devices can include USB keyboards, USB mice, USB microphones and other input devices connected via USB.
[0065] The first client can detect the operation performed by the user through the USB device, and then generate an operation instruction corresponding to the operation in response to the operation of the user through the USB device, and then send the operation instruction to the server. The first client can send the operation instruction to the server through the network. The operation instruction is an instruction related to the user operation. The operation instruction may include the identification of the first client.
[0066] 302. The server converts the operation instruction into a USB signal.
[0067] After receiving the operation instruction, the server can convert the operation instruction into a USB signal. The server can convert the operation instruction into a USB signal according to the USB protocol.
[0068] The server may first parse the operation instruction to obtain the identifier of the first client and the operation data, and then convert the operation data into a USB signal according to the USB protocol.
[0069] 303. The server sends a USB signal to the first processing device.
[0070] Accordingly, the first processing device receives the USB signal from the server.
[0071] The first processing device is a processing device corresponding to the first client among the multiple processing devices.
[0072] The server stores a first correspondence between a plurality of clients and a plurality of processing devices. Exemplarily, the first correspondence may be as shown in Table 1:
[0073]
[0074] Table 1 The first correspondence
[0075] Here, m is an integer greater than 1.
[0076] Therefore, the server may determine the identifier of the first processing device corresponding to the identifier of the first client among the multiple processing devices according to the first corresponding relationship, and then may send a USB signal to the first processing device according to the identifier of the first processing device.
[0077] After receiving the USB signal, the first processing device can process the USB signal. The first processing device can trigger a central processing unit (CPU) interrupt according to the USB signal, and then respond to the CPU interrupt and transmit the USB signal to the operating system according to the USB protocol, and the operating system processes the USB signal.
[0078] exist Figure 3 In the instruction processing method shown, the client does not send the operation instruction directly to the corresponding processing device, but first sends it to the server, which converts the operation instruction into a USB signal and then sends it to the processing device. Since the USB signal is a hardware signal, the operating system will not affect the processing of the USB signal by the processing device, so the compatibility of the system can be improved. In addition, since the cloud desktop system uses a bare metal solution, the stability and performance of the system can be improved.
[0079] Based on the above system architecture, Figure 4 1 is a flowchart of another instruction processing method provided by an embodiment of the present application. The instruction processing method is described from the perspective of a cloud desktop system. The cloud desktop system may include multiple clients, servers, and multiple processing devices, and the multiple clients correspond to the multiple servers one by one. Figure 4 As shown, the instruction processing method may include the following steps.
[0080] 401. The server generates multiple virtual USB devices.
[0081] The server is extended with multiple USB interfaces through a USB extender. The multiple USB interfaces correspond to multiple processing devices one by one. The server uses multiple USB interfaces to connect multiple processing devices through USB data cables. It can be seen that the server extends a USB interface for each of the multiple processing devices, and the server uses the USB interface extended for each processing device to connect to the corresponding processing device through a USB data cable.
[0082] It should be understood that the number of USB interfaces expanded by the server may also be greater than the number of processing devices.
[0083] After the server is connected to multiple processing devices via USB data cables, multiple virtual USB devices can be generated, and the multiple virtual USB devices correspond to the multiple processing devices one by one, that is, a corresponding virtual USB device can be generated for each of the multiple processing devices. The virtual USB device corresponding to each processing device may include a virtual USB keyboard, a virtual USB mouse, a virtual USB microphone, etc.
[0084] 402. The first client sends an operation instruction to the server in response to the user's operation through the USB device.
[0085] Correspondingly, the server receives the operation instruction from the first client.
[0086] The detailed description of step 402 may refer to the description of step 301 .
[0087] 403. The server converts the operation instruction into a USB signal of the first virtual USB device.
[0088] After receiving the operation instruction, the server may convert the operation instruction into a USB signal of the first virtual USB device. The first virtual USB device is a virtual USB device corresponding to the first client among the multiple virtual USB devices.
[0089] The server can first parse the operation instruction to obtain the identification and operation data of the first client, and then determine the first virtual USB device corresponding to the identification of the first client based on a first correspondence between multiple clients and multiple processing devices, and a second correspondence between multiple virtual USB devices and multiple processing devices, and then convert the operation data into a USB signal of the first virtual USB device according to the USB protocol.
[0090] 404. The server sends a USB signal to the first processing device.
[0091] Accordingly, the first processing device receives the first processing device from the server.
[0092] The detailed description of step 404 may refer to the description of step 303 .
[0093] exist Figure 4 In the instruction processing method shown, the client does not send the operation instruction directly to the corresponding processing device, but first sends it to the server, which uses the Keyboard Video Mouse (KVM) technology to convert the operation instruction into the USB signal of the corresponding virtual USB device and then sends it to the processing device. Since the USB signal is a hardware signal, the operating system will not affect the processing of the USB signal by the processing device, so the compatibility of the system can be improved. In addition, since the cloud desktop system uses a bare metal solution, the stability and performance of the system can be improved.
[0094] Based on the above system architecture, Figure 5 1 is a flowchart of another instruction processing method provided by an embodiment of the present application. The instruction processing method is described from the perspective of a cloud desktop system. The cloud desktop system may include multiple clients, servers, multiple USB conversion devices, and multiple processing devices, and the multiple clients correspond to the multiple servers one by one. Figure 5 As shown, the instruction processing method may include the following steps.
[0095] 501. The first client sends an operation instruction to a server in response to an operation of a user through a USB device.
[0096] Correspondingly, the server receives the operation instruction from the first client.
[0097] The detailed description of step 402 may refer to the description of step 301 .
[0098] 502. The server pre-processes the operation instruction to obtain an operation signal.
[0099] After receiving the operation instruction, the server may pre-process the operation instruction to obtain an operation signal.
[0100] The server may first parse the operation instruction to obtain the identifier of the first client and the operation data, and then pre-process the operation data to obtain the operation signal.
[0101] 503. The server sends an operation signal to the first USB conversion device.
[0102] Accordingly, the first USB conversion device receives the operation signal from the server.
[0103] The server stores a third correspondence between the USB conversion device and the processing device. The third correspondence may be as shown in Table 2 or Table 3:
[0104]
[0105] Table 2
[0106]
[0107] Table 3
[0108] Here, k is an integer greater than 1.
[0109] The server can determine the identifier of the first USB conversion device corresponding to the identifier of the first client according to the first correspondence and the third correspondence, and then send an operation signal to the first USB conversion device according to the identifier of the first USB conversion device. The first USB conversion device is the USB conversion device corresponding to the first client among the multiple USB conversion devices.
[0110] When the third corresponding relationship is as shown in Table 3, the server may send an operation signal and an identifier of the first processing device to the first USB conversion device.
[0111] 504. The first USB conversion device converts the operation signal into a USB signal.
[0112] After receiving the operation signal, the first USB may convert the operation signal into a USB signal according to the USB protocol.
[0113] 505. The first USB conversion device sends a USB signal to the first processing device.
[0114] Accordingly, the first processing device receives the USB signal from the first USB conversion device.
[0115] In the case where a USB conversion device is connected to a processing device, after the first USB conversion device converts the operation signal into a USB signal, the USB signal can be sent to the connected processing device, that is, the first processing device.
[0116] In the case where a USB conversion device is connected to two or more processing devices, the first USB conversion device is provided with a plurality of USB interfaces, each of the plurality of USB interfaces is respectively connected to a processing device. The first USB conversion device can send a USB signal to the first processing device according to the identification of the first processing device. The first USB conversion device can first determine the corresponding USB interface according to the identification of the first processing device, and then send a USB signal to the connected processing device (i.e., the first processing device) through the determined USB interface.
[0117] After receiving the USB signal, the first processing device can process the USB signal. The first processing device can trigger a CPU interrupt according to the USB signal, and then respond to the CPU interrupt and transmit the USB signal to the operating system according to the USB protocol, and the operating system processes the USB signal.
[0118] exist Figure 5 In the instruction processing method shown, the client does not send the operation instruction directly to the corresponding processing device, but first sends it to the server, which pre-processes the operation instruction to obtain an operation signal, and then sends the operation signal to the corresponding USB conversion device. The USB conversion device converts the operation signal into a USB signal and then sends it to the processing device. Since the USB signal is a hardware signal, the operating system will not affect the processing of the USB signal by the processing device, so the compatibility of the system can be improved. In addition, since the cloud desktop system uses a bare metal solution, the stability and performance of the system can be improved. Furthermore, the processing of big data is performed by the server, and the conversion of USB signals is performed by the USB conversion device, which can improve the processing efficiency of the operation instruction, thereby improving the processing efficiency of the system.
[0119] It should be understood that the same or corresponding contents in different embodiments may be referenced to each other.
[0120] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0121] Based on the same inventive concept, the embodiment of the present application also provides an instruction processing device for implementing the instruction processing method involved above. The implementation solution provided by the instruction processing device to solve the problem is similar to the implementation solution recorded in the above instruction processing method, so the specific limitations in one or more instruction processing device embodiments provided below can refer to the limitations of the instruction processing method above, and will not be repeated here.
[0122] Based on the above system architecture, Figure 61 is a schematic diagram of a structure of an instruction processing device provided in an embodiment of the present application. The instruction processing device can be applied to a server in a cloud desktop system, and the cloud desktop system also includes multiple clients and multiple processing devices, and the multiple clients correspond to the multiple processing devices one by one. The instruction processing device may include:
[0123] The communication unit 601 is used to receive an operation instruction from a first client, where the first client is any client among the multiple clients;
[0124] A conversion unit 602, used to convert the operation instruction into a USB signal;
[0125] The communication unit 601 is further configured to send a USB signal to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices.
[0126] In some embodiments, the instruction processing device may further include:
[0127] A generating unit, used for generating a plurality of virtual USB devices, wherein the plurality of virtual USB devices correspond one to one with the plurality of processing devices;
[0128] The conversion unit 602 is specifically configured to convert the operation instruction into a USB signal of a first virtual USB device, where the first virtual USB device is a virtual USB device corresponding to a first client among multiple virtual USB devices.
[0129] In some embodiments, the server is extended with multiple USB interfaces through a USB extender, and the multiple USB interfaces correspond one-to-one to the multiple processing devices. The server uses the multiple USB interfaces to connect the multiple processing devices through USB data cables.
[0130] In some embodiments, the cloud desktop system further includes a plurality of USB conversion devices, and the conversion unit 702 is specifically used to:
[0131] Preprocessing the operation instruction to obtain an operation signal;
[0132] Sending an operation signal to a first USB conversion device so that the first USB conversion device converts the operation signal into a USB signal, wherein the first USB conversion device is a USB conversion device corresponding to the first client among the multiple USB conversion devices;
[0133] The communication unit 601 sends a USB signal to the first processing device including:
[0134] The first USB conversion device sends a USB signal to the first processing device.
[0135] In some embodiments, each USB conversion device in the plurality of USB conversion devices corresponds to one or more processing devices in the plurality of processing devices.
[0136] Each unit in the above instruction processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each unit can be embedded in or independent of the processor in the server in the form of hardware, or can be stored in the memory in the server in the form of software, so that the processor can call and execute the operations corresponding to each unit above.
[0137] Based on the above system architecture, Figure 7 1 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server may include a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the server is used to provide computing and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the server is used to store the corresponding relationship between multiple clients and multiple processing devices, etc. The input / output interface of the server is used to exchange information between the processor and an external device. The communication interface of the server is used to communicate with an external client through a network connection. When the computer program is executed by the processor, an instruction processing method is implemented.
[0138] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0139] Based on the above system architecture, Figure 8 Schematic diagram of the structure of a cloud desktop system provided by an embodiment of the present application. Figure 8 As shown, the cloud desktop system may include multiple clients, servers, and multiple processing devices, and the multiple clients correspond to the multiple processing devices one by one, wherein:
[0140] A first client, used for sending an operation instruction to a server in response to an operation by a user through a USB device, wherein the first client is any one of the multiple clients;
[0141] The server is used to receive an operation instruction from the first client, convert the operation instruction into a USB signal, and send the USB signal to a first processing device, where the first processing device is a processing device corresponding to the first client among multiple processing devices;
[0142] The first processing device is used to receive the USB signal from the server and process the USB signal.
[0143] In some embodiments, the server is further used to generate a plurality of virtual USB devices, wherein the plurality of virtual USB devices correspond one-to-one to the plurality of processing devices;
[0144] The server converts the operation instructions into USB signals including:
[0145] The operation instruction is converted into a USB signal of a first virtual USB device, where the first virtual USB device is a virtual USB device corresponding to the first client among the multiple virtual USB devices.
[0146] In some embodiments, the server is extended with multiple USB interfaces through a USB extender, and the multiple USB interfaces correspond one-to-one to the multiple processing devices. The server uses the multiple USB interfaces to connect the multiple processing devices through USB data cables.
[0147] In some embodiments, the cloud desktop system may also include multiple USB conversion devices;
[0148] The server converts the operation instruction into a USB signal, and sending the USB signal to the first processing device may include:
[0149] The server pre-processes the operation instruction to obtain an operation signal, and sends the operation signal to a first USB conversion device, where the first USB conversion device is a USB conversion device corresponding to the first client among multiple USB conversion devices;
[0150] The first USB conversion device receives the operation signal from the server, converts the operation signal into a USB signal, and sends the USB signal to the first processing device;
[0151] The first processing device receiving the USB signal from the server may include:
[0152] The first processing device receives the USB signal from the first USB conversion device.
[0153] In some embodiments, each USB conversion device in the plurality of USB conversion devices corresponds to one or more processing devices in the plurality of processing devices.
[0154] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above instruction processing method are implemented.
[0155] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0156] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0157] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A command processing method, characterized in that: The method is applied to a server in a cloud desktop system, wherein the cloud desktop system further comprises a plurality of clients and a plurality of processing devices, wherein the plurality of clients correspond to the plurality of processing devices one by one, and the method comprises: receiving an operation instruction from a first client, where the first client is any client among the multiple clients; Convert the operation instruction into a USB signal; The USB signal is sent to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices.
2. The method according to claim 1, characterized in that The method further comprises: Generate a plurality of virtual USB devices, wherein the plurality of virtual USB devices correspond one to one to the plurality of processing devices; The converting the operation instruction into a USB signal comprises: The operation instruction is converted into a USB signal of a first virtual USB device, where the first virtual USB device is a virtual USB device corresponding to the first client among the multiple virtual USB devices.
3. The method according to claim 1 or 2, characterized in that: The server is extended with multiple USB interfaces through a USB extender, and the multiple USB interfaces correspond to the multiple processing devices one by one. The server uses the multiple USB interfaces to connect to the multiple processing devices through USB data cables respectively.
4. The method according to claim 1, characterized in that: The cloud desktop system further includes a plurality of USB conversion devices, and the converting of the operation instruction into a USB signal includes: Preprocessing the operation instruction to obtain an operation signal; Sending the operation signal to a first USB conversion device, so that the first USB conversion device converts the operation signal into a USB signal, wherein the first USB conversion device is a USB conversion device corresponding to the first client among the multiple USB conversion devices; The sending the USB signal to the first processing device comprises: The first USB conversion device sends the USB signal to the first processing device.
5. The method according to claim 4, characterized in that Each USB conversion device in the plurality of USB conversion devices corresponds to one or more processing devices in the plurality of processing devices.
6. An instruction processing device, characterized in that: A server applied to a cloud desktop system, wherein the cloud desktop system further comprises a plurality of clients and a plurality of processing devices, wherein the plurality of clients correspond to the plurality of processing devices one by one, and the apparatus comprises: A communication unit, configured to receive an operation instruction from a first client, where the first client is any client among the multiple clients; A conversion unit, used for converting the operation instruction into a USB signal; The communication unit is further configured to send the USB signal to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices.
7. A server, characterized in that: The server is a server in a cloud desktop system, the cloud desktop system further includes a plurality of clients and a plurality of processing devices, the plurality of clients correspond one to one with the plurality of processing devices, the server includes a memory, a transceiver, and a processor: The memory is used to store a computer program, the transceiver is used to send and receive data under the control of the processor, and the processor is used to read the computer program in the memory and perform the following operations: receiving an operation instruction from a first client, where the first client is any client among the multiple clients; Convert the operation instruction into a USB signal; The USB signal is sent to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices.
8. A cloud desktop system, characterized in that: It includes multiple clients, servers and multiple processing devices, and the multiple clients correspond to the multiple processing devices one by one, wherein: A first client, used for sending an operation instruction to the server in response to an operation by a user through a USB device, wherein the first client is any one of the multiple clients; The server is configured to receive an operation instruction from the first client, convert the operation instruction into a USB signal, and send the USB signal to a first processing device, where the first processing device is a processing device corresponding to the first client among the multiple processing devices; The first processing device is used to receive the USB signal from the server and process the USB signal.
9. The system according to claim 8, characterized in that The system also includes a plurality of USB conversion devices; The server converts the operation instruction into a USB signal, and sends the USB signal to the first processing device, comprising: The server pre-processes the operation instruction to obtain an operation signal, and sends the operation signal to a first USB conversion device, where the first USB conversion device is a USB conversion device corresponding to the first client among the multiple USB conversion devices; The first USB conversion device receives the operation signal from the server, converts the operation signal into the USB signal, and sends the USB signal to the first processing device; The first processing device receiving the USB signal from the server includes: The first processing device receives the USB signal from the first USB conversion device.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.