A data processing method, device, equipment and storage medium

By deploying information flow services in the cloud desktop container, converting and transmitting control events sent by external terminals, the problem that the cloud desktop container cannot directly handle control events is solved, improving response efficiency and accuracy, and ensuring the normal operation of the cloud desktop system. .

CN113961289BActive Publication Date: 2024-09-10BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111215063.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2024-09-10
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

When implementing cloud desktop technology, cloud desktop containers cannot directly handle control events sent by external terminals, resulting in limited response efficiency and accuracy.

Method used

By deploying the information flow service in the cloud desktop container, we obtain the control events sent by the external terminal, convert them according to the event identifier, generate the target event, and transmit it to the desktop system so that it can respond to the target event and solve the problem of directly processing the control event. difficult problem.

Benefits of technology

This improves the efficiency and accuracy of the cloud desktop container's response to external terminal control events, ensuring the normal operation and user experience of the cloud desktop system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113961289B
    Figure CN113961289B
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device, equipment and storage medium, which relate to the field of computer technology, in particular to the field of cloud computing technology, and specifically to cloud desktop scenarios. The specific implementation scheme is: obtaining a control event sent by an external terminal; converting the control event according to the event identifier of the control event to obtain a target event; transmitting the target event to the desktop system in the cloud desktop container so that the desktop system responds to the target event. The present disclosure provides a new solution for implementing cloud desktop technology based on containers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to the field of cloud computing technology, and specifically to a data processing method, device, equipment, and storage medium in a cloud desktop scenario. Background Art

[0002] With the development of computer technology, cloud desktop technology has gradually emerged. Cloud desktop, also known as desktop virtualization or cloud computer, is a new model to replace traditional computers. Cloud desktop uses virtual technology to virtualize various physical devices (such as computer hosts), thereby effectively improving resource utilization. Summary of the invention

[0003] The present disclosure provides a data processing method, apparatus, device and storage medium.

[0004] According to one aspect of the present disclosure, there is provided a data processing method, comprising:

[0005] Get the control events sent by the external terminal;

[0006] According to the event identifier of the control event, the control event is converted to obtain the target event;

[0007] The target event is transmitted to the desktop system in the cloud desktop container so that the desktop system responds to the target event.

[0008] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0009] at least one processor; and

[0010] a memory communicatively connected to at least one processor; wherein,

[0011] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute any data processing method provided by the embodiments of the present disclosure.

[0012] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to enable a computer to execute any data processing method provided by the embodiments of the present disclosure.

[0013] According to the technology disclosed in the present invention, the problem that the desktop system in the cloud desktop container cannot directly process control events sent by external terminals when the cloud desktop technology is implemented based on the container is solved, and a new solution is provided for implementing the cloud desktop technology based on the container.

[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0016] Figure 1A is a flow chart of a data processing method provided according to an embodiment of the present disclosure;

[0017] Figure 1B is a schematic diagram of the structure of a cloud desktop container provided according to an embodiment of the present disclosure;

[0018] Figure 2 is a flow chart of a data processing method provided according to an embodiment of the present disclosure;

[0019] Figure 3 is a flow chart of a data processing method provided according to an embodiment of the present disclosure;

[0020] Figure 4 It is a schematic diagram of a cloud desktop system construction method provided according to an embodiment of the present disclosure;

[0021] Figure 5 is a flow chart of a data processing method provided according to an embodiment of the present disclosure;

[0022] Figure 6 is a structural schematic diagram of a data processing device provided according to an embodiment of the present disclosure;

[0023] Figure 7 It is a block diagram of an electronic device used to implement the data processing method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0025] In order to clearly introduce the embodiments of the present disclosure, it should be noted that the cloud desktop technology of the embodiments of the present disclosure is implemented based on containers. Specifically, the electronic device providing cloud desktop services in the embodiments of the present disclosure is designed with low power consumption and high density as the principle, and integrates multiple system chips (System on Chip, SOC) in a rack-mounted server chassis of a set thickness. Each SOC has an independent processor, memory, and storage. On this hardware basis, at least one available container is deployed on each SOC, and a cloud desktop instance is virtualized in the available container to provide cloud desktop resources. The cloud desktop container involved in this embodiment is an available container that can virtualize a cloud desktop instance.

[0026] Figure 1A is a flow chart of a data processing method provided according to an embodiment of the present disclosure, Figure 1B It is a structural diagram of a cloud desktop container provided according to an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation of how to perform data processing when implementing cloud desktop technology based on a container, and is particularly applicable to the situation of how to process control events sent by external terminals. The method can be executed by a data processing device, which can be implemented in software and / or hardware, and can be integrated into an electronic device that provides cloud desktop services, and can be specifically integrated into the information flow service of a cloud desktop container deployed in the electronic device.

[0027] The information flow service can be an intermediate service deployed in the cloud desktop container to realize the interaction between the external terminal and the desktop system. For example, it can include but is not limited to a real-time control flow service for processing control flow data and a video stream push service for processing audio and video data. Figure 1B In the cloud desktop container shown, the information flow service deployed therein is a real-time control flow service. Optionally, in the cloud desktop container, a cloud desktop operating system, i.e., a desktop system, is also deployed. The desktop system is configured with at least one virtual module that can respond to target events sent by the real-time control flow service, such as a virtual mouse, a virtual keyboard, and a system settings module.

[0028] This embodiment can be specifically Figure 1B The real-time control flow service execution in the cloud desktop container is shown. Figure 1A-1B As shown, the data processing method provided in this embodiment may include:

[0029] S101, obtaining a control event sent by an external terminal.

[0030] The external terminal is an electronic device having the function of forwarding control events or generating control events, and can be any device other than the electronic device providing the cloud desktop service, such as a thin client.

[0031] A control event is generated by an external terminal based on a user's operation on an external control device (such as a mouse, keyboard, display screen, or cloud desktop client, etc.). For example, the external terminal may determine the event identifier, control operation, and event parameters corresponding to the operation based on the user's operation on the external control device, and generate a control event based on the event identifier, control operation, and event parameters. Furthermore, control events may include, but are not limited to: mouse control events, keyboard control events, display screen control events, and setting events, etc.

[0032] Optionally, in this embodiment, after the external terminal generates a control event, the control event needs to be sent to the electronic device of the cloud desktop server. At this time, the electronic device, specifically the real-time control flow service in the cloud desktop container deployed in the electronic device, will obtain the control event.

[0033] S102: convert the control event according to the event identifier of the control event to obtain a target event.

[0034] The event identifier of the control event may be an identifier that characterizes the type of the control event. Specifically, the same event identifier may be set for control events triggered by the same external control device. For example, all control events generated by a user operating a mouse have the same event identifier. The event identifier may be an identifier of the external control device operated by the user, such as the name or number of the external device. It may also be a unique identifier generated for various types of control events in sequence according to a preset rule.

[0035] Optionally, since the control event is generated by the external terminal in its custom format, the versatility is poor, and the desktop system in the cloud desktop container cannot directly respond to the control event, so this embodiment requires the information flow service in the cloud desktop container, that is, the real-time control flow service to convert the control event sent by the external terminal into an event in a format supported by the desktop system, that is, the target event. Optionally, when the target event of this embodiment is divided according to the type of external control device, it can include: mouse events, keyboard events, display events, and setting events, etc.

[0036] Specifically, when converting a control event according to the event identifier of the control event, the present embodiment may first determine the event identifier corresponding to the acquired control event, for example, by parsing the acquired control event and directly obtaining the event identifier corresponding to the control event from the parsing result; or may determine the event identifier corresponding to the acquired control event according to the parsing result and the association between the control event and the event identifier recorded locally. After determining the event identifier, the conversion logic corresponding to the control event is determined according to the association between the pre-set event identifier and the conversion logic, that is, the conversion logic between the format of the control event generated by the external terminal and the event format supported by the desktop system. The conversion logic is then called to convert the control event to obtain the target event.

[0037] For example, Figure 1B As shown, the real-time stream control service of this embodiment includes a custom device adaptation layer, which is used to perform the operation of converting the control event in this step to obtain the target event, such as a mouse event, a keyboard event or a setting event.

[0038] S103: Transmit the target event to the desktop system in the cloud desktop container, so that the desktop system responds to the target event.

[0039] Optionally, the information flow service in the cloud desktop container, namely the real-time control flow service, converts the control event to obtain the target event, and transmits the target event to the desktop system of the cloud desktop container. The desktop system responds to the target event.

[0040] For example, after the real-time stream control service transmits the target event to the desktop system, the desktop system first determines the virtual module that responds to the event based on the received target event, and transmits the target event to the corresponding virtual module so that the virtual module responds to the target event. Figure 1B As shown, if the target event is a mouse event, the desktop system will transmit the mouse event to the virtual mouse so that the virtual mouse responds to the mouse event. If the target event is a keyboard event, the desktop system will transmit the keyboard event to the virtual keyboard so that the virtual keyboard responds to the keyboard event; if the target event is a setting event, the desktop system will transmit the setting event to the system setting module so that the system setting module responds to the setting event.

[0041] In the solution of the embodiment of the present disclosure, after an external terminal sends a control event to a cloud desktop container, the information flow service in the cloud desktop container obtains the control event, converts it into a target event according to the event identifier of the control event, and transmits it to the desktop system of the cloud desktop container, and the desktop system responds to the target event. This solution solves the problem that when implementing cloud desktop technology based on containers, the desktop system in the cloud desktop container cannot directly process the control events sent by external terminals, and provides a new solution for implementing cloud desktop technology based on containers.

[0042] Optionally, when the cloud desktop container obtains a large number of control events, this embodiment may also include: adding the target event to the event queue corresponding to the event identifier, transmitting the target event in the event queue to the desktop system in the cloud desktop container, so that the desktop system responds to the target event.

[0043] Specifically, this embodiment can set up a dedicated event queue for a target event corresponding to at least one event identifier. For example, there can be one event queue corresponding to each event identifier. After the control event is converted to obtain the target event, the target event is first added to the event queue corresponding to the event identifier of the target event. When the target event is transmitted to the desktop system of the cloud desktop container, the target events contained in each queue can be transmitted to the desktop system of the cloud desktop container in parallel through multiple event queues. Specifically, each target event can be transmitted in parallel to the virtual module in the desktop system that responds to the target event. For example, Figure 1B As shown, the mouse event is added to the mouse event queue, and then the mouse event in the mouse event queue is transmitted to the virtual mouse in the desktop system, and the virtual mouse responds to the mouse event. The advantage of this arrangement of this embodiment is that when the cloud desktop container obtains a large number of control events, the efficiency and accuracy of the cloud desktop container responding to the control events are improved.

[0044] Figure 2 1 is a flow chart of another data processing method provided according to an embodiment of the present disclosure. Based on the above embodiment, this embodiment further explains in detail how to "convert the control event according to the event identifier of the control event to obtain the target event". Figure 2 As shown, the data processing method provided in this embodiment may include:

[0045] S201, obtaining a control event sent by an external terminal.

[0046] S202: Decode the control event and obtain the event identifier of the control event from the decoding result.

[0047] Optionally, in order to ensure the security of control events, when generating control events, the external terminal can first obtain the event attribute information required to generate the control event, such as event identifier, control operation and event parameters, and then combine and encode (such as binary encoding) the attribute information in a custom format (such as event identifier-control operation-event parameter) to obtain the control event, and then send the generated control event to the cloud desktop container. At this time, the control event sent by the external terminal obtained by this embodiment is the result of encoding, not the original data required. Therefore, this step needs to decode the received control event according to the decoding rules corresponding to the external terminal encoded control event, and obtain the decoding result, that is, the attribute information of the control event combined according to the custom format, and then parse the decoding result to extract the event identifier corresponding to the control event.

[0048] S203: Determine the conversion logic of the control event according to the event identifier.

[0049] The control event conversion logic may be a processing logic for converting a control event in a custom format generated by an external terminal into an event format supported by a desktop system.

[0050] Optionally, in this embodiment, the association relationship between the event identifiers of different external terminals and the conversion logic may be pre-stored in the electronic device providing the cloud desktop service. In this case, the conversion logic associated with the event identifier determined in S202 may be searched from the association relationship between the event identifiers of the external terminals and the conversion logic stored locally as the conversion logic of the received control event.

[0051] Optionally, if the electronic device does not locally store the association between the event identifier and the conversion logic, the electronic device can also interact with other external devices (the external device may be an external terminal that sends the control event, or may not be, and this is not limited to this) to obtain the conversion logic associated with the event identifier determined in S202 as the conversion logic of the received control event.

[0052] S204: Generate a target event according to the decoding result and the conversion logic.

[0053] Specifically, in this embodiment, based on the decoding result obtained by decoding the control event in S202, the conversion logic determined in S203 is called to generate the target event.

[0054] S205: Transmit the target event to the desktop system in the cloud desktop container, so that the desktop system responds to the target event.

[0055] In the scheme of the embodiment of the present disclosure, after the external terminal sends a control event to the cloud desktop container, the information flow service in the cloud desktop container obtains the control event and decodes the control event. The conversion logic corresponding to the control event is determined according to the decoding result, and a target event is generated based on the conversion logic and the decoding result, and transmitted to the desktop system of the cloud desktop container, and the desktop system responds to the target event. In this scheme, the event of the cloud desktop container interacting with the external terminal is encoded data, not the original data, which is not easy to be cracked, thereby improving the security of the control event. In addition, the encoded event can also minimize the amount of data transmission and avoid waste of resources.

[0056] Figure 3 1 is a flow chart of another data processing method provided according to an embodiment of the present disclosure. Based on the above embodiment, this embodiment further explains in detail how to "convert the control event according to the event identifier of the control event to obtain the target event". Figure 3 As shown, the data processing method provided in this embodiment may include:

[0057] S301, obtaining a control event sent by an external terminal.

[0058] S302: When it is identified that the attribute information of the control event is valid, the control event is converted according to the event identifier of the control event to obtain a target event.

[0059] The attribute information of the control event may be related information characterizing the attributes of the control event, for example, it may include but is not limited to: event identifier, control operation and event parameters. The control operation is the operation of the user on the external control device. For example, when the external control device is a mouse, the control operation may be left click, right click, pulley and other operations; when the external control device is a keyboard, the control operation may be the operation of tapping different keys on the keyboard. Event parameters may include parameter values ​​corresponding to different events, parameter lengths, and event generation time.

[0060] Optionally, in order to ensure the security and accuracy of control events processed by the cloud desktop container, the information flow service of this embodiment needs to first identify whether the attribute information of the received control event is valid before processing the received control event. For control events with valid attribute information, subsequent event conversion and other operations are performed; for control events with invalid attribute information, subsequent event conversion and other operations are no longer performed on them.

[0061] Optionally, the present embodiment recognizes that the attribute information of the control event is valid and may include at least one of the following: recognizing that the event identifier of the control event is a valid identifier. Recognizing that the control operation of the control event is a valid operation supported by the event identifier. Recognizing that the event parameters of the control event conform to the valid parameter range. Specifically, the present embodiment may store pre-set valid event identifiers, valid operations supported by various types of event identifiers, and valid parameter ranges (such as at least one of the valid parameter value range, the valid parameter length range, and the valid event period) in an electronic device that supports the cloud desktop service. Accordingly, the information flow service in the cloud desktop container, i.e., the real-time flow control service, may identify the validity of the acquired control event based on at least one of the above-mentioned valid information stored locally and the acquired attribute information of the control event. The present embodiment verifies the validity of the control event through a variety of different types of attribute information, further improving the security and flexibility of the validity verification process.

[0062] S303: Transmit the target event to the desktop system in the cloud desktop container, so that the desktop system responds to the target event.

[0063] In the solution of the embodiment of the present disclosure, after the external terminal sends a control event to the cloud desktop container, the information flow service in the cloud desktop container obtains the control event. When the attribute information of the control event is recognized to be valid, it is converted into a target event according to the event identifier of the control event and then transmitted to the desktop system of the cloud desktop container, and the desktop system responds to the target event. After receiving the control event, the cloud desktop container of this solution does not respond directly, but first identifies its validity and then responds, thereby improving the security and accuracy of event response.

[0064] Figure 4 Schematic diagram of a cloud desktop system construction method provided according to an embodiment of the present disclosure. Figure 4As shown, the cloud desktop system of the disclosed embodiment is built in an advanced reduced instruction set processor ARM chip server, which includes: CPU (central processing unit, central processing unit), Mali GPU (Graphics Processing Unit, graphics processor) and NIC (network interface controller, network interface controller). The operating system of the server is a Linux operating system, specifically an Ubuntu operating system. Before using the operating system, it is necessary to set Linux system parameters, such as namespace parameters (namespace), container parameters (cgroup), file system service parameters (overlayfs), mount file parameters (autofs) and bridge parameters (bridge), etc. In this embodiment, a container manager can be deployed in the ARM chip of the server, and the container manager is used to dynamically manage the deployment of cloud desktop containers in the ARM chip. For example, the number of containers deployed in the ARM chip server can be increased or decreased according to the cloud desktop instances that need to be run and the available resources of the current ARM chip server. In a cloud desktop container of this embodiment, a cloud desktop container runtime (i.e., the operating environment of the cloud desktop), an information flow service (i.e., a video stream push service and a real-time control stream service), and a desktop system are deployed. Third-party applications can be installed and run in the desktop system. The disclosed embodiments can dynamically deploy cloud desktop containers in an ARM chip server through a container manager, and can adjust the number of cloud desktop containers according to actual usage requirements. Compared with the prior art method of running a cloud desktop system by starting a fixed number of virtual machines on a physical machine, this improves server resource utilization.

[0065] Figure 5 is a flow chart of a data processing method provided according to an embodiment of the present disclosure. Figure 4 Based on the cloud desktop system shown in FIG. 1 , a preferred example of a data processing method based on a container to implement cloud desktop technology is given. Figure 5 As shown, the data processing method provided in this embodiment may include:

[0066] S501, the real-time control flow service obtains a control event sent by an external terminal.

[0067] S502: The real-time control flow service converts the control event according to the event identifier of the control event to obtain a target event.

[0068] S503, the real-time control stream service transmits the target event to the desktop system in the cloud desktop container, so that the desktop system responds to the target event.

[0069] S504, the video streaming service processes the collected audio and video data through the advanced reduced instruction set processor RAM configured in the local device.

[0070] Among them, the video stream push service is a service for pushing audio and video data (i.e., audio data and / or video data) to external devices. In this embodiment, the processing of the collected audio and video data may include but is not limited to: transcoding processing and encoding processing. And the video stream push service of this embodiment is based on the MaliGPU (Graphics Processing Unit, graphics processor) of the advanced reduced instruction set processor ARM to process the collected audio and video data.

[0071] Specifically, the video streaming service will collect the audio data and / or video data currently to be displayed on the cloud desktop from the resource storage area of ​​the cloud desktop service in real time during the operation of the cloud desktop. Affected by factors such as data compression, transmission bandwidth and playback format, it is usually necessary for the video streaming service to use ARM's built-in Mali GPU to transcode and encode the video data (such as H264 video stream encoding) in the target container to obtain a video stream; encode the audio data to obtain an audio stream, and then transmit the encoded video stream and / or audio stream to an external terminal, such as a thin client. After receiving the video data, the external terminal decodes and transcodes the video stream to obtain video data, which is displayed through a display device; and decodes the audio stream to obtain audio data, which is output through a sound output device.

[0072] Since the method of relying on CPU for soft decoding consumes too much hardware resources, for cloud desktop application scenarios where computing resources are extremely precious, it is likely to cause desktop transmission images to freeze, directly affecting the user experience of the operator. The disclosed embodiment can perform hardware encoding and decoding based on the Mali GPU (Graphics Processing Unit) of the advanced reduced instruction set processor ARM, and render and output audio and video data, which greatly utilizes the hardware characteristics of the GPU, further reduces the desktop response delay, and reduces CPU resource consumption. It improves resource utilization and reduces resource overhead for implementing cloud desktops.

[0073] On the basis of the above technical solutions, the present disclosure also provides an optional embodiment of an execution device for implementing the above data processing methods. Figure 6 The data processing device 600 shown is configured in an electronic device that provides a cloud desktop service, and can be specifically configured in an information flow service in a cloud desktop container deployed in the electronic device. The device 600 includes: an event acquisition module 601, an event conversion module 602, and an event transmission module 603.

[0074] An event acquisition module 601 is used to acquire a control event sent by an external terminal;

[0075] An event conversion module 602, used to convert the control event according to the event identifier of the control event to obtain a target event;

[0076] The event transmission module 603 is used to transmit the target event to the desktop system in the cloud desktop container so that the desktop system responds to the target event.

[0077] In the solution of the embodiment of the present disclosure, after an external terminal sends a control event to a cloud desktop container, the information flow service in the cloud desktop container obtains the control event, converts it into a target event according to the event identifier of the control event, and transmits it to the desktop system of the cloud desktop container, and the desktop system responds to the target event. This solution solves the problem that when implementing cloud desktop technology based on containers, the desktop system in the cloud desktop container cannot directly process the control events sent by external terminals, and provides a new solution for implementing cloud desktop technology based on containers.

[0078] Furthermore, the event conversion module 602 is specifically used for:

[0079] Decoding the control event and obtaining the event identifier of the control event from the decoding result;

[0080] According to the event identifier, determine the conversion logic of the control event;

[0081] Generate target events based on the decoding results and conversion logic.

[0082] Furthermore, the event conversion module 602 includes:

[0083] A validity identification unit, used to identify whether the attribute information of the control event is valid;

[0084] The event conversion unit is used to convert the control event according to the event identifier of the control event when identifying that the attribute information of the control event is valid.

[0085] Furthermore, the validity identification unit is specifically configured to perform at least one of the following:

[0086] The event identifier of the control event is identified as a valid identifier;

[0087] Recognize that the control operation of the control event is a valid operation supported by the event identifier;

[0088] It is recognized that the event parameters of the control event are within the valid parameter range.

[0089] Furthermore, the event transmission module 603 is specifically used for:

[0090] Add the target event to the event queue corresponding to the event identifier;

[0091] Transmit the target events in the event queue to the desktop system in the cloud desktop container.

[0092] Furthermore, the data processing device 600 further includes:

[0093] The video stream processing module is used to process the collected audio and video data through the advanced reduced instruction set processor configured by the local device.

[0094] The above-mentioned product can execute the method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0095] In the technical solution disclosed in the present invention, the acquisition, storage and application of control events and audio and video data involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0096] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0097] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0098] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0099] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0100] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Preferably, the GPU of this embodiment is a MaliGPU that comes with an ARM chip. The computing unit 701 performs the various methods and processes described above, such as a data processing method. For example, in some embodiments, the data processing method may be implemented as a computer software program that is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the data processing method in any other appropriate manner (eg, by means of firmware).

[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0103] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0106] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services. The server may also be a server of a distributed system, or a server combined with a blockchain.

[0107] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, knowledge graph technology, and other major directions.

[0108] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.

[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0110] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data processing method, include: Get the control events sent by the external terminal; According to the event identifier of the control event, the control event is converted to obtain a target event; Transmitting the target event to the desktop system in the cloud desktop container so that the desktop system responds to the target event; Among them, the control event sent by the external terminal is generated in the following way: The external terminal obtains the event attribute information, and combines and encodes the event attribute information according to a custom format to obtain a control event; The event attribute information includes event identification, control operation and event parameters; The converting the control event according to the event identifier of the control event to obtain the target event includes: Decoding the control event, and obtaining an event identifier of the control event from a decoding result; Determining the conversion logic of the control event according to the event identifier; Generate a target event according to the decoding result and the conversion logic; The control event conversion logic is a processing logic for converting a control event in a custom format generated by an external terminal into an event format supported by the desktop system; The step of determining the conversion logic of the control event according to the event identifier includes: The association relationship between event identifiers and conversion logics of different external terminals pre-stored in the electronic device of the cloud desktop service is obtained, and the conversion logic associated with the event identifier is searched and determined in the association relationship.

2. The method according to claim 1, in, The converting the control event according to the event identifier of the control event includes: When it is identified that the attribute information of the control event is valid, the control event is converted according to the event identifier of the control event.

3. The method according to claim 2, in, The attribute information of the control event identified as being valid includes at least one of the following: Recognizing that the event identifier of the control event is a valid identifier; Recognizing that the control operation of the control event is a valid operation supported by the event identifier; It is recognized that the event parameter of the control event complies with the valid parameter range.

4. The method according to claim 1, in, Transmitting the target event to the desktop system in the cloud desktop container includes: Adding the target event to the event queue corresponding to the event identifier; The target event in the event queue is transmitted to the desktop system in the cloud desktop container.

5. The method according to claim 1, further comprising: include: The collected audio and video data are processed by the advanced reduced instruction set processor configured in the local device.

6. A data processing device, include: An event acquisition module is used to acquire control events sent by external terminals; An event conversion module, used for converting the control event according to the event identifier of the control event to obtain a target event; An event transmission module, used for transmitting the target event to the desktop system in the cloud desktop container, so that the desktop system responds to the target event; Among them, the control event sent by the external terminal is generated in the following way: The external terminal obtains the event attribute information, and combines and encodes the event attribute information according to a custom format to obtain a control event; The event attribute information includes event identification, control operation and event parameters; The event conversion module is specifically used for: Decoding the control event, and obtaining an event identifier of the control event from a decoding result; Determining the conversion logic of the control event according to the event identifier; Generate a target event according to the decoding result and the conversion logic; The control event conversion logic is a processing logic for converting a control event in a custom format generated by an external terminal into an event format supported by the desktop system; The step of determining the conversion logic of the control event according to the event identifier includes: The association relationship between event identifiers and conversion logics of different external terminals pre-stored in the electronic device of the cloud desktop service is obtained, and the conversion logic associated with the event identifier is searched and determined in the association relationship.

7. The device according to claim 6, in, The event conversion module includes: A validity identification unit, used to identify whether the attribute information of the control event is valid; The event conversion unit is used to convert the control event according to the event identifier of the control event when it is recognized that the attribute information of the control event is valid.

8. The device according to claim 7, in, The validity identification unit is specifically configured to perform at least one of the following: Recognizing that the event identifier of the control event is a valid identifier; Recognizing that the control operation of the control event is a valid operation supported by the event identifier; It is recognized that the event parameter of the control event complies with the valid parameter range.

9. The device according to claim 6, in, The event transmission module is specifically used for: Adding the target event to the event queue corresponding to the event identifier; The target event in the event queue is transmitted to the desktop system in the cloud desktop container.

10. The device according to claim 6, further comprising: include: The video stream processing module is used to process the collected audio and video data through the advanced reduced instruction set processor configured by the local device.

11. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data processing method according to any one of claims 1 to 5.

12. The electronic device according to claim 11, in, The at least one processor is an advanced reduced instruction set processor.

13. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to enable the computer to execute the data processing method according to any one of claims 1 to 5.

14. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the data processing method according to any one of claims 1 to 5.