A processing device and data processing method
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2023-09-28
- Publication Date
- 2026-07-03
Smart Images

Figure CN117112631B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically to a processing device and a data processing method. Background Technology
[0002] When electronic devices process data, if their internal processing modules cannot meet the data processing requirements, external processing devices can be used to assist in data processing. However, due to limitations in the configuration information of external processing devices, they cannot meet the data processing needs of multi-device application scenarios. Summary of the Invention
[0003] In view of the above, this application provides the following technical solution:
[0004] A processing apparatus, comprising:
[0005] A first interface is configured to connect to at least one electronic device and obtain first data from each of the electronic devices, wherein the first data is data to be processed by the electronic device.
[0006] The scheduling module can be used to store each of the first data and determine the first data stream based on the first data transmission mode. When each of the first data in the first data stream is transmitted, it is transmitted in the transmission order corresponding to the first data transmission mode.
[0007] The second interface can be used to connect to the processing module and transmit the first data stream to the processing module.
[0008] The processing module is used to process each first data in the first data stream to obtain second data corresponding to each first data, so that each second data is transmitted to the corresponding electronic device through the first interface by the scheduling module.
[0009] Optionally, the scheduling module is further configured to:
[0010] Each of the second data is stored, and a second data stream is determined based on a second data transmission mode. Each of the second data in the second data stream is transmitted in the transmission order corresponding to the second data transmission mode, wherein the second data transmission mode matches the first data transmission mode.
[0011] Optionally, the processing apparatus further includes:
[0012] The storage module is used to store the first data and the second data based on the storage instructions of the scheduling module.
[0013] Optionally, the electronic device includes a first electronic device and a second electronic device, and the storage module includes a first storage submodule and a second storage submodule, wherein,
[0014] The first storage submodule is used to store the first data and the second data of the first electronic device in the electronic device;
[0015] The second storage submodule is used to store the first data and the second data of the second electronic device in the electronic device.
[0016] Optionally, the first storage submodule includes a first storage area and a second storage area; the second storage submodule includes a third storage area and a fourth storage area, wherein the first storage area is used to store first data of the first electronic device, the second storage area is used to store second data of the first electronic device; the third storage area is used to store the first data of the second electronic device, and the fourth storage area is used to store the second data of the second electronic device.
[0017] A data processing method, comprising:
[0018] Obtain first data from at least one electronic device, wherein the first data is data to be processed by the electronic device;
[0019] The first data is stored, and a first data stream is determined based on the first data transmission mode. Each piece of first data in the first data stream is transmitted in the transmission order corresponding to the first data transmission mode.
[0020] In response to obtaining second data corresponding to each first data obtained by processing the first data in the first data stream, each of the second data is transmitted to the corresponding electronic device.
[0021] Optionally, it also includes:
[0022] Each of the second data is stored, and a second data stream is determined based on a second data transmission mode. Each of the second data in the second data stream is transmitted in the transmission order corresponding to the second data transmission mode, wherein the second data transmission mode matches the first data transmission mode.
[0023] Optionally, determining the first data stream based on the first data transmission mode includes:
[0024] The first data transmitted by each of the electronic devices is parsed to obtain data features corresponding to each of the first data.
[0025] Based on the data characteristics, a first data transmission mode is determined;
[0026] The first data stream is determined based on the first data transmission mode.
[0027] Optionally, processing the first data in the first data stream includes performing image processing on the first data, wherein, in response to obtaining second data corresponding to each first data based on the processing of the first data in the first data stream, transmitting each of the second data to a corresponding electronic device includes:
[0028] In response to obtaining a processed image frame corresponding to each image frame based on processing each image frame of the first data in the first data stream, based on the image display requirements of the electronic device, a processed image frame corresponding to each transmission cycle is determined, and each processed image frame corresponding to the transmission cycle is determined as a transmission image frame to be returned to the electronic device, so that the electronic device displays the image frame after receiving the transmission image frame.
[0029] Optionally, determining the first data stream based on the first data transmission mode includes:
[0030] If the obtained first data satisfies the target data state, the virtual operating system is invoked to parse the first data of each electronic device to determine the first data transmission mode. The virtual operating system has computing power matching the operating system of the electronic device that generates the first data. The target data state indicates that the complexity of each first data being transmitted satisfies the target condition.
[0031] The first data stream is determined based on the first data transmission mode. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0033] Figure 1 This is a schematic diagram of the structure of a processing device provided in an embodiment of this application;
[0034] Figure 2 This application provides a schematic diagram of data flow in an application scenario.
[0035] Figure 3 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Detailed Implementation
[0036] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0037] The terms "first" and "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units may include steps or units not listed, but rather not listed.
[0038] When the built-in processing module of an electronic device cannot meet its data processing needs, an external processing device can be used to assist in the processing of relevant data. However, due to the limitations of the configuration of the external processing device, it is impossible to meet the needs of multiple electronic devices sharing the external processing device. Therefore, this application provides a processing device that can realize the purpose of multiple electronic devices sharing the computing power of the external processing device.
[0039] See Figure 1 This is a schematic diagram of the structure of a processing device provided in an embodiment of this application. For example, in... Figure 1 Taking laptops as an example, electronic devices in other applications can also be other types of devices with processing capabilities, such as mainframes, mobile phones, wearable devices, and virtual display devices. Figure 1 The application scenario shown uses two electronic devices for illustration. In specific application scenarios, the number of electronic devices can be determined according to actual needs, such as two or more.
[0040] The processing device 100 includes a first interface 1001, a scheduling module 1002, a processing module 1004, and a second interface 1003.
[0041] The first interface 1001 can be used to connect at least one electronic device, in Figure 1In the example, a first electronic device and a second electronic device are connected via a first interface 1001. The processing device 100 can obtain first data from each electronic device through the first interface 1001. This first data is the data to be processed by the electronic devices, that is, the data sent by each electronic device to the processing device for processing by the processing module in the processing device. Specifically, the first interface can be an interface type capable of data communication and transmission with electronic devices, such as a USB interface, or a network data transmission type interface, such as a wireless data transmission interface. Furthermore, in order to be able to connect to multiple different types of electronic devices, the first interface in this embodiment may include multiple different types of interfaces.
[0042] In this embodiment, after the processing device obtains the first data through the first interface 1001, it does not directly transmit the first data to the processing module 1004 of the processing device. This is to avoid the problem that the processing module cannot process the first data when multiple first data are received and transmitted to the processing module at the same time. After receiving the first data from each electronic device, the processing device transmits the first data to the scheduling module 1002 of the processing device. The scheduling module 1002 has the functions of analyzing, distributing, storing and transmitting data. After the processing device obtains the first data from each electronic device, it can store each first data through the scheduling module. That is, the first data is first cached through the scheduling module. After determining the transmission mode of each first data, the first data is then transmitted to the processing module of the processing device so that the processing module 1004 can process the data.
[0043] Specifically, the scheduling module can have a built-in storage module to store the first data, or it can store the first data through a storage module connected to the processing device or other external storage devices. After receiving the first data transmitted from various electronic devices, the scheduling module determines the first data stream based on the first data transmission mode. The first data items in the first data stream are transmitted in the transmission order corresponding to the first data transmission mode. The specific first data transmission mode can be determined by the scheduling module after receiving the first data. The scheduling module can analyze the timestamp information of the received first data, the field information included in the first data, the transmission port, and the relevant information of the electronic device transmitting the data to determine the processing requirements when processing the first data, such as the requirements for timeliness or accuracy. For example, the scheduling module receives first data a from the first electronic device and first data b from the second electronic device. The scheduling module can determine the data to be transmitted by the processing priority of first data a and first data b, thereby generating a first data stream. If the processing priority of first data a is higher than that of first data b, then first data a in the first data stream will be placed before first data b, that is, first data a will be transmitted to the processing module 1004 first.
[0044] The scheduling module 1002 and the processing module 1004 are connected through a second interface 1003. The interface type of the second interface 1003 matches the type of the processing module. In this embodiment, the interface type of the second interface is not limited.
[0045] The processing module 1004 processes each piece of first data in the first data stream to obtain second data corresponding to each piece of first data, so that the second data can be transmitted to the corresponding electronic device through the scheduling module via the first interface. Specifically, after the processing module obtains the second data, it transmits the second data to the scheduling module through the second interface. Then, the scheduling module determines the second data transmission mode of the second data, that is, determines which electronic device the second data will be transmitted to, and then transmits the data to that electronic device through the first interface. Specifically, in this application, the processing module can be a module with high processing power. The type of processing module can be determined based on actual processing needs. For example, the processing module can be a graphics card chip that processes image information, or an audio processing chip that processes audio data, etc.
[0046] In this embodiment, when an external processing module cannot provide processing power for multiple electronic devices, the processing device provided in this application can be connected, and the external processing module can be used as the processing module in the processing device of this application. The scheduling module in the processing device transmits the data to be processed in each electronic device to the processing module according to the corresponding transmission mode, so that the processing module only needs to receive the data transmitted by the scheduling module, process it, and then output the processed data, thereby realizing the function of multiple electronic devices sharing the computing power of the processing module.
[0047] In this embodiment of the application, the scheduling module is further configured to:
[0048] Each piece of second data is stored, and a second data stream is determined based on a second data transmission mode. Each piece of second data in the second data stream is transmitted according to the transmission order corresponding to the second data transmission mode, wherein the second data transmission mode matches the first data transmission mode. For example, if the first data stream obtained under the first data transmission mode transmits first data a to the processing module first, and then first data b to the processing module, after the processing module processes first data a and first data b, it obtains second data a and second data b respectively. After transmitting second data a and second data b to the scheduling module, the scheduling module can transmit the data to the corresponding electronic device based on the second data transmission mode. The second data transmission mode matches the first data transmission mode; that is, second data a is transmitted to the electronic device first, and then second data b is transmitted to the corresponding electronic device. This ensures that the priority of data processing and transmission is consistent.
[0049] The processing apparatus in this embodiment may further include a storage module, which is used to store first data and second data based on storage instructions from the scheduling module. When the scheduling module receives the first data transmitted from various electronic devices, it caches the first data and generates a storage instruction for the storage module, causing the storage module to store the first data based on the storage instruction. The storage instruction may specify which storage area the first data should be stored in, or it may specify the storage format, such as whether the data is temporarily stored or validly stored for a specific time period. Correspondingly, when the scheduling module receives the second data processed by the processing module, it also generates a corresponding storage instruction to instruct the storage module to store each piece of second data.
[0050] Furthermore, to facilitate data storage and differentiation, the storage module's corresponding storage sub-modules can be matched with various electronic devices. For example, when the current processing device is connected to a first electronic device and a second electronic device, the storage module includes a first storage sub-module and a second storage sub-module. The first storage sub-module is used to store the first and second data of the first electronic device. The second storage sub-module is used to store the first and second data of the second electronic device.
[0051] Furthermore, the storage module can also partition the storage according to the source of the data, facilitating data storage and transmission. Specifically, the first storage submodule includes a first storage area and a second storage area; the second storage submodule includes a third storage area and a fourth storage area, wherein the first storage area is used to store the first data of the first electronic device, the second storage area is used to store the second data of the first electronic device; the third storage area is used to store the first data of the second electronic device, and the fourth storage area is used to store the second data of the second electronic device.
[0052] The following description uses a graphics card module as an example to illustrate the embodiments of this application. See also... Figure 2 This is a schematic diagram illustrating the data flow of a graphics card data processing embodiment provided in this application. Figure 2 In the illustrated embodiment, laptop A and laptop B are connected to the processing device of this application embodiment. Figure 2 The cache in the processor acts as its storage module, similar to RAM. When a laptop is connected to the processor, the processor's scheduling module creates a dedicated cache area for that laptop within the cache. When two laptops are connected, two cache areas can be created, such as... Figure 2 The two parts of the cache, storage area A and storage area B, are represented by .1 and .2 respectively.
[0053] When only one computer (e.g., computer A) is using an external graphics card, computer A transmits the display data to be processed to the device. Each unit of data received by the device is first stored in area A.1, and then transmitted from A.1 to the graphics card for calculation. Once the graphics card has finished its calculation, it transmits the processed data to area A.2, and then from A.2 back to computer A.
[0054] When laptops A and B simultaneously activate their external graphics cards, the processor scheduler transmits the data to be processed and the processed data from laptop B in the same way. In this processing mode, the graphics card does not need to know which computer's data it is currently processing; it simply receives the data to be processed, calculates it, and then outputs the processed data.
[0055] Meanwhile, computers A and B do not need to know that the graphics card is simultaneously serving two computers, because the processing unit continuously provides each computer with the processed data they need. Since the graphics card can only process data from one computer within a given time unit, data from another computer receiving data within that unit cannot be immediately processed by the graphics card. However, due to the cache area (such as...) Figure 2 The presence of .1 and .2 ensures that each computer continuously receives "processed data," even if the data received is previously received for a period of time. Furthermore, if the data to be processed needs to meet real-time processing requirements, a processing priority label can be set for this portion of data through the scheduling module to ensure that this portion of data is sent to the graphics card for processing first. In this application scenario, this processing device acts as a data relay and cache, providing uninterrupted computing services to multiple computers.
[0056] Another embodiment of this application also provides a data processing method, see [link to relevant documentation]. Figure 3 This method is applied to the processing device provided in the above embodiments, and can be further applied to the scheduling module of the processing device. Specifically, the method may include the following steps:
[0057] S201, Obtain first data from at least one electronic device.
[0058] The first data is the data to be processed by the electronic device.
[0059] S202. Store the first data and determine the first data stream based on the first data transmission mode.
[0060] Each piece of first data in the first data stream is transmitted in the transmission order corresponding to the first data transmission mode.
[0061] S203, in response to obtaining second data corresponding to each first data obtained by processing the first data in the first data stream, each second data is transmitted to the corresponding electronic device.
[0062] In one embodiment, the data processing method further includes:
[0063] Each piece of second data is stored, and the second data stream is determined based on the second data transmission mode.
[0064] In this process, each piece of second data in the second data stream is transmitted in the transmission order corresponding to the second data transmission mode, and the second data transmission mode is matched with the first data transmission mode.
[0065] In one implementation, determining the first data stream based on the first data transmission mode includes:
[0066] The first data transmitted by each electronic device is parsed to obtain the data characteristics corresponding to each first data.
[0067] Based on data characteristics, determine the first data transmission mode;
[0068] The first data stream is determined based on the first data transmission mode.
[0069] In this embodiment, the scheduling module in the processing device can parse each piece of first data transmitted from the electronic device. During the parsing process, the fields constituting the first data, the timestamp of the received first data, and the source information of the first data can be obtained, and these information are all determined as the data characteristics of the first data. Then, a first data transmission mode can be determined based on the data characteristics of the first data. For example, the first data transmission mode can be determined by the timestamp of the received first data, so that the first data is transmitted in the order of its reception time. Alternatively, the first data transmission mode can be determined based on the priority tag carried in the first data, so that the first data is transmitted in the order of its priority. Furthermore, during the parsing of the first data, the source of the first data can also be obtained, i.e., which electronic device sent the first data, thereby marking the transmission path of the first data. This allows the second data, after being processed from the first data, to be transmitted to the corresponding electronic device based on this transmission path.
[0070] In this embodiment, data can also be stored and transmitted according to the data processing needs of the processing module and the actual application scenario. In one implementation, processing the first data in the first data stream includes image processing of the first data, wherein, in response to obtaining second data corresponding to each first data obtained from processing the first data in the first data stream, transmitting each first data to a corresponding electronic device includes:
[0071] In response to obtaining a processed image frame corresponding to each image frame based on processing each image frame of the first data in the first data stream, based on the image display requirements of the electronic device, a processed image frame corresponding to each transmission cycle is determined, and each processed image frame corresponding to the transmission cycle is determined as a transmission image frame to be returned to the electronic device, so that the electronic device displays the image frame after receiving the transmission image frame.
[0072] In this embodiment, the processing module can be a graphics card module. The purpose of image processing is to facilitate the rendering and display of the corresponding data on the electronic device. Typically, image frames are rendered one by one. However, due to the real-time requirements of image rendering, outputting each rendered image frame to the electronic device for display may result in poor display quality, such as stuttering or discontinuity. Therefore, in this embodiment, previously processed adjacent image frames can be stored. When outputting a processed image frame, the previously processed adjacent image frames can be output simultaneously, ensuring a continuous display of the rendered image and improving the display effect.
[0073] Correspondingly, if the electronic device's data processing requirement is for training an image rendering model, it needs to achieve high accuracy in image rendering. Therefore, when the electronic device generates data to be processed, the scheduling module can transmit the data to the graphics card module, allowing the graphics card module to process the data through a sub-thread with better rendering performance, obtain the processing result, and feed it back to the electronic device.
[0074] To enable the processing device to better parse and distribute different data processing tasks, in this embodiment, the processing device may be configured with a virtual operating system corresponding to the electronic device's operating system. This allows for the processing of highly complex data, better data scheduling, and improved data processing accuracy and efficiency. In one implementation, determining the first data stream based on a first data transmission mode includes:
[0075] If the obtained first data satisfy the target data state, the virtual operating system is invoked to parse the first data from each electronic device to determine the first data transmission mode. The virtual operating system possesses computing power matching that of the operating system of the electronic device generating the first data, and the target data state indicates that the complexity of each piece of first data during transmission meets the target condition. Then, the first data stream is determined based on the first data transmission mode.
[0076] In this embodiment, the processing device is equipped with a virtual operating system that matches the actual operating system of the host or electronic device. This virtual operating system can be simulated based on the actual operating system, allowing the processing device to determine the data processing requirements of the first data to be processed based on the virtual operating system. This ensures that data is transmitted to the processing module according to the actual data processing needs, such as whether real-time processing requirements or processing accuracy requirements are met. Furthermore, when the processing device is equipped with a virtual operating system, it can schedule and distribute the data transmitted by each electronic device when multiple electronic devices are connected. For example, if two electronic devices simultaneously transmit their corresponding first data to be processed to the processing device, the virtual operating system can simulate the actual processing requirements of the electronic devices for the data to be processed, and can also simulate the load state of the processing modules of the electronic devices themselves. This allows the processing device to determine the order in which data is transmitted to the processing modules, ensuring that the processed data meets the needs of each electronic device.
[0077] In another embodiment of this application, a readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements:
[0078] Obtain first data from at least one electronic device, wherein the first data is data to be processed by the electronic device;
[0079] The first data is stored, and a first data stream is determined based on the first data transmission mode. Each piece of first data in the first data stream is transmitted in the transmission order corresponding to the first data transmission mode.
[0080] In response to obtaining second data corresponding to each first data obtained by processing the first data in the first data stream, each of the second data is transmitted to the corresponding electronic device.
[0081] Optionally, it also includes:
[0082] Each of the second data is stored, and a second data stream is determined based on a second data transmission mode. Each of the second data in the second data stream is transmitted in the transmission order corresponding to the second data transmission mode, wherein the second data transmission mode matches the first data transmission mode.
[0083] Optionally, determining the first data stream based on the first data transmission mode includes:
[0084] The first data transmitted by each of the electronic devices is parsed to obtain data features corresponding to each of the first data.
[0085] Based on the data characteristics, a first data transmission mode is determined;
[0086] The first data stream is determined based on the first data transmission mode.
[0087] Optionally, processing the first data in the first data stream includes performing image processing on the first data, wherein, in response to obtaining second data corresponding to each first data based on the processing of the first data in the first data stream, transmitting each of the second data to a corresponding electronic device includes:
[0088] In response to obtaining a processed image frame corresponding to each image frame based on processing each image frame of the first data in the first data stream, based on the image display requirements of the electronic device, a processed image frame corresponding to each transmission cycle is determined, and each processed image frame corresponding to the transmission cycle is determined as a transmission image frame to be returned to the electronic device, so that the electronic device displays the image frame after receiving the transmission image frame.
[0089] Optionally, determining the first data stream based on the first data transmission mode includes:
[0090] If the obtained first data satisfies the target data state, the virtual operating system is invoked to parse the first data of each electronic device to determine the first data transmission mode. The virtual operating system has computing power matching the operating system of the electronic device that generates the first data. The target data state indicates that the complexity of each first data being transmitted satisfies the target condition.
[0091] The first data stream is determined based on the first data transmission mode.
[0092] It should be noted that the specific implementation of the processor in this embodiment can be referred to the corresponding content above, and will not be described in detail here.
[0093] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0094] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0095] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0096] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A processing apparatus, comprising: The first interface is capable of simultaneously connecting at least two electronic devices to obtain first data from each of the electronic devices, wherein the first data is data to be processed by the electronic devices. The scheduling module can be used to store each of the first data and determine the first data stream based on the first data transmission mode. When each of the first data in the first data stream is transmitted, it is transmitted in the transmission order corresponding to the first data transmission mode. The first data transmission mode is determined by parsing at least one of the timestamps of the first data of each of the electronic devices and the source information of the first data. The second interface can be used to connect to the processing module and transmit the first data stream to the processing module. The processing module is used to process each first data in the first data stream to obtain second data corresponding to each first data, so that each second data is transmitted to the corresponding electronic device through the first interface by the scheduling module.
2. The processing apparatus according to claim 1, wherein the scheduling module is further configured to: Each of the second data items is stored, and a second data stream is determined based on a second data transmission mode. Each of the second data items in the second data stream is transmitted according to the transmission order corresponding to the second data transmission mode. The second data transmission mode is matched with the first data transmission mode.
3. The processing apparatus according to claim 1, further comprising: The storage module is used to store the first data and the second data based on the storage instructions of the scheduling module.
4. The processing apparatus according to claim 3, wherein the electronic device includes a first electronic device and a second electronic device, and the storage module includes a first storage submodule and a second storage submodule, wherein, The first storage submodule is used to store the first data and the second data of the first electronic device in the electronic device; The second storage submodule is used to store the first data and the second data of the second electronic device in the electronic device.
5. The processing apparatus according to claim 4, wherein the first storage submodule includes a first storage area and a second storage area; the second storage submodule includes a third storage area and a fourth storage area, wherein, The first storage area is used to store the first data of the first electronic device, and the second storage area is used to store the second data of the first electronic device; The third storage area is used to store the first data of the second electronic device, and the fourth storage area is used to store the second data of the second electronic device.
6. A data processing method, comprising: Obtain first data from at least two simultaneously connected electronic devices, wherein the first data is the data to be processed by the electronic devices; The first data is stored, and a first data stream is determined based on a first data transmission mode. Each piece of first data in the first data stream is transmitted in the transmission order corresponding to the first data transmission mode. The first data transmission mode is determined by parsing at least one of the timestamps of the first data of each electronic device and the source information of the first data. In response to obtaining second data corresponding to each first data obtained by processing the first data in the first data stream, each of the second data is transmitted to the corresponding electronic device.
7. The method according to claim 6, further comprising: Each of the second data is stored, and a second data stream is determined based on a second data transmission mode. Each of the second data in the second data stream is transmitted in the transmission order corresponding to the second data transmission mode, wherein the second data transmission mode matches the first data transmission mode.
8. The method according to claim 6, wherein determining the first data stream based on the first data transmission mode comprises: The first data transmitted by each of the electronic devices is parsed to obtain data features corresponding to each of the first data. Based on the data characteristics, a first data transmission mode is determined; The first data stream is determined based on the first data transmission mode.
9. The method according to claim 6, wherein processing the first data in the first data stream includes performing image processing on the first data, wherein, The step of receiving second data corresponding to each first data point obtained by processing first data in the first data stream and transmitting each second data point to a corresponding electronic device includes: In response to obtaining a processed image frame corresponding to each image frame based on processing each image frame of the first data in the first data stream, based on the image display requirements of the electronic device, a processed image frame corresponding to each transmission cycle is determined, and each processed image frame corresponding to the transmission cycle is determined as a transmission image frame to be returned to the electronic device, so that the electronic device displays the image frame after receiving the transmission image frame.
10. The method according to claim 6, wherein determining the first data stream based on the first data transmission mode comprises: If the obtained first data satisfies the target data state, the virtual operating system is invoked to parse the first data of each electronic device to determine the first data transmission mode. The virtual operating system has computing power matching the operating system of the electronic device that generates the first data. The target data state indicates that the complexity of each first data being transmitted satisfies the target condition. The first data stream is determined based on the first data transmission mode.