Data transmission method and device, vehicle, storage medium and program product

By using the storage identifier of the target storage space in the smart cockpit system of the electric vehicle, data is directly written and read in the target storage space, the time-consuming and CPU resource occupation caused by copying operations in image data transmission is solved, and the problem of using the CPU resource is realized. Zero copy transmission improves the real-time and efficiency of data transmission.

CN119002825AInactive Publication Date: 2024-11-22XIAOMI EV TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411449692.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2024-11-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the smart cockpit and autonomous driving system of electric vehicles, when image data is transmitted between multiple processing nodes, there is data copying operation, resulting in additional time and CPU resource occupation, affecting the real-time and efficiency of data transmission.

Method used

By obtaining and storing the storage identifier of data in the target storage space, the first node directly writes to the target storage space, and the second node reads data from the target storage space according to the storage identity, avoiding CPU copying and copying operations, and realizing zero copying transmission.

Benefits of technology

The real-time and efficiency of data transmission are improved, the CPU resource occupation is reduced, and the data transmission from the first node to the second node is realized without additional copy operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002825A_ABST
    Figure CN119002825A_ABST
Patent Text Reader

Abstract

The invention relates to a data transmission method and device, a vehicle, a storage medium and a program product, and belongs to the technical field of communication, and the method comprises the steps: obtaining a storage identifier of a target storage space occupied by first data outputted by a first node; sending the storage identifier to the second node; the first node and the second node are different processing nodes; determining a target storage space indicated by the storage identifier through the second node, and obtaining the first data from the target storage space; the storage capacity of the target storage space is greater than or equal to the maximum data volume which can be processed by the first node and the second node. By using the data transmission method provided by the invention, data transmission between the first node and the second node can be realized while zero copy is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a data transmission method, device, vehicle, storage medium and program product. Background Art

[0002] In the smart cockpit and autonomous driving system of electric vehicles, a large amount of sensor data, such as image data, needs to be processed to perceive the environment around the vehicle. In order to perceive the environment around the vehicle, a variety of processing nodes are deployed on the vehicle to process the perceived image data, thereby realizing the planning of the vehicle's autonomous driving or assisted driving functions.

[0003] In the related art, the collected image data will be transmitted between multiple processing nodes, but the process of transmitting the image data from one processing node to another involves copying the image data, which will bring additional time and occupy a large amount of CPU (central processing unit) resources. Summary of the invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a data transmission method, device, vehicle, storage medium and program product.

[0005] According to a first aspect of an embodiment of the present disclosure, a data transmission method is provided, including: Obtaining a storage identifier of a target storage space occupied by first data output by the first node; sending the storage identifier to a second node; the first node and the second node are different processing nodes; The target storage space indicated by the storage identifier is determined by the second node, and the first data is obtained from the target storage space; the storage capacity of the target storage space is greater than or equal to the maximum amount of data that can be processed by the first node and the second node.

[0006] Optionally, the method further comprises: Determine, from a plurality of storage spaces, a first storage space having a storage capacity greater than the maximum amount of data; Update the first storage space according to at least one of the following parameters to obtain the target storage space; Data parameters processed by the first node and the second node, node parameters of the first node and the second node, and algorithm parameters in the first node and the second node.

[0007] Optionally, the method further comprises: Sending the first data to the first module through the first node, and storing the first data in the target storage space through the first module; Determining the target storage space indicated by the storage identifier through the second node, and acquiring the first data from the target storage space, includes: Determine, by a second module, a target storage space indicated by the storage identifier, obtain the first data from the target storage space, and forward the first data to the second node; The first module and the second module are different modules.

[0008] Optionally, the first module and the second module have at least one of the following association relationships: The first module and the second module are processes in different chips, the first module and the second module are different processes in the same chip, or the first module and the second module are different software modules in the same process.

[0009] Optionally, the first module and the second module communicate with each other using at least one of the following communication channels: In the case where the first module and the second module are processes in different chips, calling a first communication channel through a communication interface to transmit the first data; or, In the case where the first module and the second module are in different processes in the same chip, calling a second communication channel through the communication interface to transmit the first data; or, In the case where the first module and the second module are different software modules in the same process, the first data is transmitted by calling a third communication channel through the communication interface; wherein the first communication channel, the second communication channel and the third communication channel are encapsulated as the communication interface.

[0010] Optionally, sending the storage identifier to the second node includes: When the distributor monitors through the synchronization object that the first node outputs the first data, an interrupt signal is sent to the second node through the distributor; the interrupt signal includes the storage identifier.

[0011] Optionally, the method further comprises: Obtain a first attribute of the first node and a second attribute of the second node; The synchronization object is obtained according to the first attribute and the second attribute.

[0012] Optionally, before obtaining the storage identifier of the target storage space occupied by the first data output by the first node, it is determined that the fourth stage is in progress, and the method further includes: In a first stage, a communication channel between the first node and the second node is established; In the second stage, a target storage space that can be occupied by the first node and the second node is established; In the third stage, determining a synchronization object for monitoring the first node and the second node; In the fifth stage, the target storage space, the synchronization object and the communication channel are released in sequence.

[0013] According to a second aspect of an embodiment of the present disclosure, there is provided a data transmission device, including: an identification module, configured to obtain a storage identification of a target storage space occupied by first data output by the first node; a sending module, configured to send the storage identifier to a second node; the first node and the second node are different processing nodes; A reading module is configured to determine the target storage space indicated by the storage identifier through the second node and obtain the first data from the target storage space; the storage capacity of the target storage space is greater than or equal to the maximum amount of data that the first node and the second node can process.

[0014] According to a third aspect of an embodiment of the present disclosure, a vehicle is provided, comprising: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the data transmission method provided in the first aspect of the embodiment of the present disclosure.

[0015] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method provided by the first aspect of the embodiment of the present disclosure are implemented.

[0016] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the data transmission method provided in the first aspect of an embodiment of the present disclosure.

[0017] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects: On the one hand, the first node can directly write the first data into the target storage space, and the second node can read the first data from the target storage space according to the storage identifier of the target storage space, without the need for the CPU to copy the first data of the first node to the target storage space and then copy the first data in the target storage space to the second node, thereby avoiding repeated copying of the first data. It does not need to occupy additional CPU resources and can transmit the first data generated by the first node to the second node. After avoiding repeated copying operations, the second node can obtain the first data with stronger real-time performance.

[0018] Secondly, the storage capacity of the target storage space is pre-configured to be greater than or equal to the maximum amount of data that the first node and the second node can process. In this way, the first data output by the first node each time can be carried by the target storage space, and there is no need for the CPU to open up new storage space to transmit data, thereby avoiding occupying additional CPU resources and achieving ultimate zero-copy transmission.

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

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

[0021] Figure 1 The figure is a flowchart showing a method for data transmission according to an exemplary embodiment.

[0022] Figure 2 The diagram is a schematic diagram showing a plurality of processing nodes sharing a memory according to an exemplary embodiment.

[0023] Figure 3 The diagram is a schematic diagram showing a node copying data to a target storage space and a node copying data from the target storage space according to an exemplary embodiment.

[0024] Figure 4 The diagram is a schematic diagram showing a storage space between multiple processing nodes according to an exemplary embodiment.

[0025] Figure 5 The diagram is a schematic diagram of interaction between a first node and a second node according to an exemplary embodiment.

[0026] Fig. 6A It is a schematic diagram showing a first stage and a second stage according to an exemplary embodiment.

[0027] Figure 6BIt is a schematic diagram showing a third stage, a fourth stage and a fifth stage according to an exemplary embodiment.

[0028] Figure 7 The diagram is a schematic diagram showing an interaction between a first node and a second node according to an exemplary embodiment.

[0029] Figure 8 The diagram is a schematic diagram showing interaction between a first module and a second module in different communication scenarios according to an exemplary embodiment.

[0030] Fig. 9 The diagram is a schematic diagram showing various network layers according to an exemplary embodiment.

[0031] Fig.10 The diagram is a schematic diagram of a running configuration file according to an exemplary embodiment.

[0032] Fig.11 It is a block diagram of a data transmission device according to an exemplary embodiment.

[0033] Fig.12 is a block diagram of a vehicle according to an exemplary embodiment.

[0034] Fig.13 It is a block diagram of a data transmission device according to an exemplary embodiment.

[0035] Fig.14 is a block diagram of a chip system according to an exemplary embodiment. DETAILED DESCRIPTION

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

[0037] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0038] Figure 1 is a flowchart of a data transmission method according to an exemplary embodiment. Figure 1 As shown, the following steps are included.

[0039] In step S10, a storage identifier of a target storage space occupied by first data output by a first node is obtained.

[0040] The first node can be a node in the vehicle's automatic driving system that processes image data and / or audio data. Of course, it can also be a node in other mobile phones, tablets, computers and other terminals that processes image data and / or audio data.

[0041] like Figure 2 As shown, in the vehicle's automatic driving system, there are pre-processing nodes (Image Signal Processor, ISP), video encoding nodes (NVENC), audio encoding nodes, graphics processing unit nodes and neural network nodes (DLA). In addition, the automatic driving system can also include processing nodes such as image processing nodes (VIC) and video decoding nodes (NVDEC). These processing nodes share a unified memory, and each processing node is configured with its own driver interface. The first node can be at least one of these processing nodes. The preprocessing node is used to preprocess the image data collected by the image acquisition device such as the camera to obtain the preprocessed image data. The preprocessing includes but is not limited to denoising, white balance, color correction, sharpening, etc.; the video encoding node is used to encode the preprocessed image data from the image format to the video format, which on the one hand reduces the data transmission volume of the image data, and on the other hand stores the video encoder in the storage space, so that the subsequent video decoding node can obtain the image data in the video format from the storage space for decoding and playback; the image processing node is used to perform secondary preprocessing on the preprocessed image data, so as to facilitate the input into the subsequent neural network node. The secondary preprocessing includes but is not limited to color space conversion and resolution conversion of the preprocessed image data; the neural network node is used to perform classification tasks, prediction tasks, planning tasks, etc. based on the image data after secondary preprocessing, such as distinguishing various targets in the image, planning the vehicle's driving path based on various targets in the image, etc.

[0042] The first data is image data obtained after the first node processes the collected image data or the image data output by the previous node. The first node processes the image data to obtain the first data, and writes the first data into the target storage space.

[0043] Taking the first node being a video encoding node as an example, the video encoding node may encode the preprocessed image data output by the preprocessing node, and write the encoded image data into the target storage space.

[0044] The target storage space may be a memory buffer, which is to use the memory as a buffer. When each node completes its own computing task, it needs to occupy the storage space to write the image data into the storage space or read the image data from the storage space, so as to complete its own computing task.

[0045] The storage identifier is used to uniquely identify a storage space. Different storage spaces have different storage identifiers. The storage identifier may be the address of the storage space or the code number of the storage space.

[0046] In step S20, the storage identifier is sent to the second node.

[0047] See also Figure 7 As shown, the storage identifier can be sent to the second node through a dispatcher. When the first node outputs the first data through monitoring by the dispatcher, an interrupt signal is sent to the second node through the dispatcher.

[0048] Among them, the distributor is used to monitor the first node and the second node. After the first node completes the processing of the image data to obtain the first data, it notifies the second node to obtain the first data previously written by the first node from the target storage space, thereby eliminating the need for CPU participation.

[0049] The interrupt signal is used to indicate that the first node has completed processing of the image data, and to notify the second node that it can process the first data output by the first node. The interrupt signal includes a storage identifier. Through the setting of the interrupt signal, after the first node completes processing of the image data to obtain the first data, an interrupt signal can be sent to the second node to notify the second node to start processing the first data, thereby realizing collaborative interaction between the first node and the second node without CPU intervention.

[0050] The first node and the second node are different processing nodes. The first node is an upstream node, and the second node is a downstream node. The first data output by the upstream node is used as input data of the downstream node, so that the downstream node processes the first data to obtain the second data.

[0051] Taking the example that the first node is a preprocessing node and the second node is a video encoding node, the preprocessing node preprocesses the collected image data to obtain preprocessed image data, and the preprocessing node writes the preprocessed image data into a target storage space. The preprocessing node then sends the storage identifier of the target storage space to the video encoding node, so that the video encoding node encodes the preprocessed image data to obtain encoded video data.

[0052] In step S30, the target storage space indicated by the storage identifier is determined by the second node, and the first data is obtained from the target storage space.

[0053] The storage capacity of the target storage space is greater than or equal to the maximum data volume that the first node and the second node can process. The maximum data volume is the maximum data volume of image data that the first node and the second node can process.

[0054] For example, the storage capacity of the storage space is 32Kb, 64Kb, 128Kb, 256Kb, etc. If the maximum amount of image data that the first node can process is 56Kb, and the maximum amount of image data that the second node can transmit is 60Kb, then the maximum amount of image data that both can process is 60Kb. Therefore, the storage capacity of the target storage space can be configured as 64Kb.

[0055] In the related art, when the collected image data is transmitted between multiple nodes, there will be a large amount of data copying, which will bring additional time consumption and occupy a large amount of CPU resources.

[0056] In some cases, see Figure 3 As shown, image data is transmitted between different software modules within a process, between different processes, and between different system-on-chips (SOCs).

[0057] like Figure 3 As shown, Figure 3 The client in the process may represent the first software module or the second software module. Figure 3 The service in is used to send client data. The first node sends the first data to the first software module in the process. The CPU controls the first software module to copy the first data to the memory through the sender and the writer using intra-process communication (intra); the CPU then controls the second software module in the process to copy the first data from the memory to the second node through the reader and the receiver using intra-process communication. Figure 3 There is a distributor between the transmitter and the receiver, which can be Figure 7 The distributor shown in is used to notify the second node to obtain the first data previously written by the first node from the target storage space after the first node completes processing the image data to obtain the first data.

[0058] Figure 3 The client in the example may represent the first process or the second process, and the first process and the second process may be different processes in the same system-level chip. The first node sends the first data to the first process, and the CPU controls the first process to copy the first data to the memory through the sender and the writer using the inter-process communication method; the CPU then controls the second process to copy the first data from the memory through the reader and the receiver using the inter-process communication method.

[0059] Figure 3 The client in the system chip may represent the first process or the second process, and the first process and the second process may be processes located in different system-level chips. The first node sends the first data to the first process in the system-level chip A, and the CPU controls the first process to copy the first data to the memory through the transmitter and the writer using the communication protocol (RTPS); the CPU then controls the second process in the system-level chip B to copy the first data from the memory through the reader and the receiver.

[0060] During this process, although communication within a process, between processes and between system-level chips can be achieved, these solutions require the CPU to control the first node to copy the first data to the CPU's memory, and then copy the first data from the CPU's memory to the second node through the CPU. During this process, both copying and copying the first data require the CPU to run, and the CPU also needs to serialize and deserialize the first data, serializing the first data into a format that can be stored or transmitted so that it can be copied to the memory, and also deserializing the first data into the original data structure so that the second node can process the first data, which results in more CPU resources being occupied; and repeated copying, serializing and deserializing operations will also cause the second node to be unable to obtain the first data in a timely manner, and ultimately output the processed image data at a slow speed.

[0061] In some cases, see Figure 4 As shown, when image data is transmitted between different processing nodes, repeated copies will occur.

[0062] like Figure 4 As shown, the processing nodes include a preprocessing node, a video encoding node, a video decoding node, an image processing node, and a graphics processing unit node. The preprocessing node is used to obtain the image data output by the camera and perform preprocessing. The image data output by the preprocessing node passes through the image processing node and the graphics processing unit node to complete the image prediction task, classification task, etc., and passes through the video encoding node and the video decoding node to be stored in the system memory or desensitized and uploaded to the cloud for subsequent video playback.

[0063] There are system memory and device memory of the video encoding node between the preprocessing node and the video encoding node, so the synchronization unit of the CPU will copy the image data to the system memory, and then copy the image data in the system memory to the device memory of the video encoding node; there are system memory and device memory of the image processing node between the preprocessing node and the image processing node, so the synchronization unit of the CPU will also copy the image data to the system memory, and then copy the image data in the system memory to the device memory of the image processing node; there is a memory used for data recording of the video decoding node between the video encoding node and the video decoding node, so the image data will also be copied to the data recording memory of the video decoding node; the synchronization unit will also copy the image data in the data recording memory of the video decoding node to the device memory, and copy the image data in the device memory of the video decoding node to the system memory; there is also system memory and device memory of the graphics processing unit node between the image processing node and the graphics processing unit, so the synchronization unit of the CPU will also copy the image data in the device memory of the image processing node to the system memory, and then copy the image data in the system memory to the device memory of the graphics processing unit node. It can be seen that when processing a single frame of image data, a large amount of data copying is involved, which leads to poor real-time performance of the output data of the graphics processing unit node and occupies a large amount of CPU resources.

[0064] Through the above technical solution, on the first aspect, the first node can directly write the first data to the target storage space, and the second node can read the first data from the target storage space according to the storage identifier of the target storage space, without the need for the CPU to copy the first data of the first node to the target storage space, and then copy the first data in the target storage space to the second node, thereby avoiding repeated copying of the first data. It does not need to occupy additional CPU resources to transmit the first data generated by the first node to the second node, and after avoiding repeated copying operations, the second node can obtain the first data with stronger real-time performance.

[0065] Secondly, if the storage capacity of the target storage space is smaller than the maximum amount of data that the first node and the second node can process, the CPU may need to open up new storage space and then perform the copy operation in the new storage space again, which will also take up additional CPU resources and the real-time performance of data acquisition will be poor.

[0066] For example, the maximum amount of data that the first node can process is 70Kb, and the maximum amount of data that the second node can process is 60Kb. If the storage capacity of the storage space allocated to the first node and the second node is 64Kb, the maximum amount of data output by the first node, 70Kb, cannot be carried by the storage space 60Kb. At this time, the CPU will open up additional new storage space to accommodate the extra 10Kb of data. This requires the CPU to copy the extra 10Kb of data generated by the first node to the new storage space, and then copy the extra 10Kb of data from the new storage space to the second node, which will also take up additional CPU resources.

[0067] In the embodiment of the present disclosure, the storage capacity of the target storage space is pre-configured to be greater than or equal to the maximum amount of data that the first node and the second node can process. In this way, the first data output by the first node each time can be carried by the target storage space, and there is no need for the CPU to open up new storage space to transmit data, thereby avoiding occupying additional CPU resources and achieving ultimate zero-copy transmission.

[0068] Fig. 6A and Figure 6B A schematic diagram of creating a configuration file provided for the system is shown. By running the created configuration file, zero copy transmission can be achieved, which includes the following multiple stages: In the first stage, a streaming communication channel is established between the first node and the second node.

[0069] The first stage is the initialization stage of the entire autonomous driving system. In the first stage, different communication channels can be created for the first node and the second node in different communication scenarios, and the different communication channels can be encapsulated into a unified communication interface. Different communication scenarios include that the first module of the first node and the second module of the second node are processes in different system-level chips, the first module of the first node and the second module of the second node are different processes in the same system-level chip, and the first module of the first node and the second module of the second node are different software modules in the same process.

[0070] The first node and the second node communicate with each other through the first module and the second module respectively. The first node transmits the first data to the first module, and the first module stores the first data in the target storage space; the first module then sends the storage identifier of the target storage space storing the first data to the second module through the distributor; the second module determines the target storage space corresponding to the storage identifier, reads the first data from the target storage space, and then transmits the first data to the second node. The first module is the medium for communication between the first node and the target storage space, and the first module can be a software module in a process (such as a thread or task) or a process; the second module is the medium for communication between the second node and the target storage space, and the first module can also be a software module in a process (such as a thread or task) or a process.

[0071] For example, see Figure 8 As shown, in the case where the first module and the second module are processes in different chips, for example, a process in chip A and a process in chip B, a first communication channel can be created for the first module and the second module. The first communication channel can be a PCIE (Peripheral Component Interconnect Express) bus, and of course other communication methods can also be used to achieve communication between processes in two system-level chips.

[0072] For example, see Figure 8 As shown, in the case where the first module and the second module are different processes in the same chip, for example, different processes in chip A, a second communication channel can be created for the first module and the second module. The second communication channel can be a process-to-process communication method, which can be a SHM (Shared Memory) communication channel, which allows two or more different processes to share a storage space, and thus can access and operate the same storage space.

[0073] For example, see Figure 8 As shown, in the case where the first module and the second module are different software modules in the same process, for example, in the case of the same process in chip A, a third communication channel can be created for the first module and the second module. The third communication channel can be a method of intra-process communication, which can be a PTR (Pointer) communication channel. PTR is a variable used to store the storage space address of another variable. Through PTR, another storage space can be accessed, and then the data in the storage space can be operated and accessed.

[0074] After creating the first communication channel, the second communication channel and the third communication channel for the first module and the second module in different communication scenarios, these three communication channels can be uniformly encapsulated as a channel interface. When the communication scenarios of the first module and the second module called by the first node and the second node are determined, it can be determined that the corresponding communication channel is used to transmit the interaction data between the first node and the second node.

[0075] By uniformly encapsulating the first communication channel, the second communication channel and the third communication channel in different communication scenarios into a channel interface in the first stage, communication differences can be shielded and intra-process, cross-process and cross-system-level chip communications can be supported.

[0076] See also Figure 5 As shown, assuming that the first module of the first node and the second module of the second node are different software modules located in the same process B, after the first node produces the first data, the first module can be used to transmit the first data in a multicast manner, the second module of the second node receives and consumes the first data, and the first module and the second module use a queue mode to transmit data. Assuming that the first module of the first node and the second module of the second node are different processes A and B located in the same system-level chip 1, the first node can transmit the first data in a shared memory manner through the first module, the second module of the second node receives and consumes the first data, and the first module and the second module can use a mailbox mode to transmit data. Assuming that the first module of the first node and the second module of the second node are processes B and process C located in different system-level chips 1 and 2, the first node can transmit the first data in an inter-process communication manner through the first module, the second module of the second node obtains and consumes the first data from the cache pool, and the first module and the second module use a mailbox mode to transmit data.

[0077] Although this solution can reduce the duplication of the first data, it is a data transmission solution customized for a specific first node and second node, for example, a data transmission solution customized for a preprocessing node and an image processing node. The image data generated by the preprocessing node is input into the above-mentioned Figure 5 Although the data transmission scheme shown can reduce copying, when the processing node changes and needs to be transmitted between the image processing node and the neural network node, the scheme is no longer adaptable and the code needs to be modified to adapt to the new processing node, which brings a lot of workload to the developers; and the modification of the upper-level code of the processing node also depends on the underlying interface of the processing node, which is not conducive to the modification by the developer.

[0078] In the disclosed embodiment, the first communication channel, the second communication channel, and the third communication channel in different communication scenarios are uniformly encapsulated into a communication interface. When the processing node changes, the communication interface adaptively calls the communication channel adapted to the new processing node to transmit data for the new processing node. This eliminates the need for developers to modify the underlying code, thereby reducing development costs.

[0079] In the second stage, a target storage space that can be occupied by the first node and the second node is established.

[0080] The second stage is the stage of creating a target storage space for the entire autonomous driving system, which is used to create a target storage space with a storage capacity greater than the maximum amount of data that can be processed by the first node and the second node.

[0081] A target storage space having a storage capacity greater than the maximum amount of data that can be processed by the first node and the second node can be determined from multiple storage spaces. The target storage space can also be a space that can carry the maximum amount of data output by the first node and the second node.

[0082] The properties of the storage space can be created first, such as the storage capacity of the storage space, the alignment of the storage space, and the access rights, etc.; then, a first storage space whose storage capacity is greater than the maximum amount of data that the first node and the second node can process can be screened out from multiple storage spaces; and then, the first storage space is updated according to at least one of the data parameters processed by the first node and the second node, the node parameters of the first node and the second node, and the algorithm parameters in the first node and the second node, so as to obtain a target storage space that ultimately meets the needs of the first node and the second node.

[0083] Among them, the storage capacity of the storage space includes 32Kb, 64Kb, 128Kb, 256Kb, etc., and the present disclosure does not impose any restrictions on this.

[0084] The alignment of the storage space means that when accessing the storage space, the starting address of the data being accessed is an integer multiple of the size of the data type.

[0085] The access rights of the storage space refer to configuring the processing nodes that can access the storage space for the storage space, for example, the storage space A can be accessed by the pre-processing node A and the video encoding node A.

[0086] The data parameters processed by the first node and the second node include the resolution, image format and color depth of the image data. The higher the resolution of the image data, the higher the storage capacity of the target storage space required, and the storage capacity of the first storage space will be expanded on the basis of the storage capacity of the first storage space to obtain the target storage space. The image format includes RGB, YUV, Bayer and other image formats. The RGB image contains complete color information, and the data volume of the RGB image is large, so the storage capacity of the target storage space required by the RGB image is also large; the YUV image reduces the data volume by reducing the sampling rate of the chromaticity information, so the storage capacity of the target storage space occupied by the YUV image is less than that of the target storage space occupied by the RGB image; the Bayer image also contains the complete color information of the image, so the storage capacity of the target storage space required by the Bayer image is similar to the storage capacity of the target storage space required by the RGB image. The higher the color depth of the image, the higher the storage capacity required, and the storage capacity of the first storage space will be expanded on the basis of the storage capacity of the first storage space to obtain the target storage space.

[0087] The node parameters of the first node and the second node are the device parameters of the first node and the second node, such as the operating speed of the device, the image processing speed, etc. If the operating speed of the first node and the second node is faster, the storage capacity of the target storage space is required to support faster image processing; conversely, if the operating speed of the first node and the second node is slower, the storage capacity of the target storage space can be reduced to adapt to the operating speed of the first node and the second node while reducing the occupancy of the storage space.

[0088] The algorithm parameters of the first node and the second node refer to the complexity of the algorithms in the first node and the second node. If the algorithms in the first node and the second node are more complex, the storage capacity of the corresponding target storage space will be larger. For example, taking the first node as a preprocessing node as an example, when the preprocessing node performs algorithms such as removal, color correction and white balance on image data to implement the preprocessing process, the complexity and processing time of these algorithms are related to the storage capacity of the target storage space. The more complex these algorithms are, the larger the storage capacity of the target storage space is required.

[0089] See also Fig. 6AAs shown, in the process of configuring the target storage space that can be occupied by the first node and the second node, the attributes of the storage space are first created, and then the target storage space is coordinated and allocated. The target storage space with a storage capacity greater than the maximum amount of data that can be processed by the first node and the second node is screened out from the multiple storage spaces with created attributes to allocate different target storage spaces to the first nodes and the second nodes of different groups; after the target storage space of the first node and the second node is coordinated and allocated, the target storage space is mapped and registered, and the target storage space is mapped and registered to the system, for example, the target storage space is mapped to the address space that can be accessed by the first node and the second node, thereby completing the configuration of the target storage space, and mapping the target storage space to the corresponding first node and the second node, so that the first node and the second node can access the target storage space.

[0090] In addition, different numbers of buffer pools can be allocated to different first nodes and second nodes, the numbers of target storage spaces in the buffer pools occupied by different first nodes and second nodes are different, and the parameters such as storage capacity of multiple target storage spaces in the same buffer pool are consistent. The first node and the second node can randomly select a target storage space from the multiple target storage spaces to perform computing tasks.

[0091] Taking the example that the first node is a preprocessing node and the second node is a video encoding node and an image processing node, 10 target storage spaces that can be occupied by the preprocessing node, the video encoding node and the image processing node can be allocated to the preprocessing node, the video encoding node and the image processing node. The preprocessing node, the video encoding node and the image processing node can filter out the target storage space for executing their respective computing tasks from these 10 target storage spaces.

[0092] Of course, the target storage space accessed by the preprocessing node, the video encoding node, and the image processing node when processing the same frame of image data is the same. For example, if the preprocessing node writes the first frame of image data into the target storage space 0, the image processing node and the video encoding node need to read the first frame of image data from the target storage space 0; similarly, if the preprocessing node writes the second frame of image data into the target storage space 1, the image processing node and the video encoding node need to read the second frame of image data from the target storage space 1.

[0093] Taking the example that the first node is a video encoding node and the second node is a video decoding node, 5 target storage spaces that can be occupied by both the video encoding node and the video decoding node can be allocated to the video encoding node and the video decoding node. The video encoding node and the video decoding node can select the target storage space for executing their respective computing tasks from these 5 target storage spaces.

[0094] Through the second stage, target storage spaces with different storage capacities can be configured for different first nodes and second nodes, so that the image data processed by the first node and the second node can be carried by the target storage space without the need for the CPU to open up additional new storage space, thereby avoiding the occupation of CPU resources and ensuring data transmission between the first node and the second node while achieving zero copy.

[0095] In the third stage, a synchronization object for monitoring the first node and the second node is determined.

[0096] The third stage is the stage of creating a synchronization object for the entire autonomous driving system, which is used to create an associated first node and a second node, and define that after the first node writes the first data to the target storage space, the associated second node reads the first data from the target storage space.

[0097] The synchronization object can be obtained according to the first attribute of the first node and the second attribute of the second node. The distributor is used to monitor the first node and the second node according to the synchronization object, and after the first node completes its own computing task, outputs the first data, and stores the first data in the target storage space, notify the second node to read the first data from the target storage space.

[0098] The first attribute is a device attribute of the first node, and the device attribute is used to identify the first node; the second attribute is a device attribute of the second node, and the device attribute is used to identify the second node.

[0099] A synchronization object can be obtained according to the first attribute and the second attribute, and the associated first node and second node that the distributor needs to monitor can be obtained according to the synchronization object.

[0100] See also Fig. 6A As shown, a first attribute can be created for the first node first, and then a second attribute can be created for the second node, so as to obtain a synchronization object according to the first attribute and the second attribute; then the synchronization object is coordinated and allocated, and the coordinated and allocated synchronization object is used to inform the distributor of the associated first node and second node that need to be monitored; then the synchronization object is mapped and registered to the first node and the second node, and the purpose of mapping and registering the synchronization object is that the first node will output the first data, but the first node will not wait for the second node to complete processing the first data before performing other computing tasks. Instead, when the distributor monitors through the synchronization object that the first node has output the first data, it notifies the second node to read the first data from the target storage space, thereby releasing the first node to process the remaining tasks.

[0101] In addition to defining the associated first node and second node, the data type transmitted between the first node and the second node may also be defined, for example, the data type includes the size of the image, the image format, and the like.

[0102] Since there are multiple upstream and downstream first nodes and second nodes in the autonomous driving system, by creating synchronization objects and coordinating and allocating synchronization objects in the third stage, an association relationship between each upstream first node and downstream second node can be established, so that after the first data output by the upstream first node is stored in the target storage space, it can be read by the associated downstream node, thereby ensuring the orderliness of image data processing. For example, an association relationship can be established between the upstream preprocessing node and the downstream video encoding node, an association relationship can be established between the upstream preprocessing node and the downstream image processing node, and an association relationship can be established between the upstream image processing node and the downstream neural network node; on the second aspect, by registering and mapping synchronization objects, the distributor can determine the first node storing the first data based on the synchronization object, and the second node to which the storage identifier of the target storage space where the first data is located needs to be sent, so that data transmission between the first node and the second node can be collaboratively realized without the participation of the CPU.

[0103] In the fourth stage, a storage identifier of a target storage space occupied by first data output by a first node is obtained; the storage identifier is sent to a second node; the first node and the second node are different processing nodes; the target storage space indicated by the storage identifier is determined through the second node, and the first data is obtained from the target storage space; the storage capacity of the target storage space is greater than or equal to the maximum amount of data that the first node and the second node can process.

[0104] The fourth stage is the operation stage of the first node and the second node. In this stage, the configured communication channel, target storage space and synchronization object are used to complete the data transmission between the first node and the second node.

[0105] See also Figure 7 and Figure 8 As shown, in the case where the first module and the second module are processes in different chips, the first data is transmitted by calling the first communication channel through the communication interface.

[0106] For example, after the first module receives the first data transmitted by the first node, the first module writes the first data into the target storage space through the first communication channel, the second module reads the first data from the target storage space through the first communication channel, and then transmits the first data to the second node.

[0107] For example, taking the case where the first module is the first process in chip A and the second module is the second process in chip B, after the first process in chip A receives the first data transmitted by the first node, the first process writes the first data to the target storage space through the first communication channel, and the first process sends the storage identifier of the target storage space to the distributor, the distributor sends the storage identifier to the second process in chip B, the second process in chip B reads the first data from the target storage space through the first communication channel, and then transmits the first data to the second node.

[0108] See also Figure 7 and Figure 8 As shown, when the first module and the second module are in different processes in the same chip, the second communication channel in the communication interface is called to transmit the first data.

[0109] For example, after the first module receives the first data transmitted by the first node, the first module writes the first data into the target storage space through the second communication channel, the second module reads the first data from the target storage space through the second communication channel, and then transmits the first data to the second node.

[0110] For example, taking the case where the first module is the third process in chip A and the second module is the fourth process in chip A, after the third process in chip A receives the first data transmitted by the first node, the third process writes the first data to the target storage space through the second communication channel, and the third process sends the storage identifier of the target storage space to the distributor, the distributor sends the storage identifier to the fourth process in chip A, and the fourth process in chip A reads the first data from the target storage space through the second communication channel and then transmits the first data to the second node.

[0111] See also Figure 7 and Figure 8 As shown, in the case where the first module and the second module are different software modules located in the same process, the first data is transmitted by calling the third communication channel through the communication interface.

[0112] For example, after the first module receives the first data transmitted by the first node, the first module writes the first data into the target storage space through the third communication channel, the second module reads the first data from the target storage space through the third communication channel, and then transmits the first data to the second node.

[0113] For example, taking the case where the first module is the first software module in process A and the second module is the second software module in process A, after the first software module receives the first data transmitted by the first node, the first software module writes the first data into the target storage space through the third communication channel, and the first software module sends the storage identifier of the target storage space to the distributor, the distributor sends the storage identifier to the second software module, the second software module reads the first data from the target storage space through the third communication channel, and then transmits the first data to the second node.

[0114] See also Figure 6B As shown, the first module of the first node will first obtain an available data packet, which includes a storage identifier of the target storage space to be occupied by the first node; the first module of the first node will then encapsulate and process the available data packet, and transmit the processed available data packet to the distributor, and the distributor will transmit the processed available data packet to the second module of the second node; the second module of the second node will parse the available data packet to obtain the storage identifier, and determine the target storage space corresponding to the storage identifier, read the first data from the target storage space, forward the first data to the second node, and the second node will process the first data to obtain the second data; the second node will then release the data packet, also releasing the target storage space, and the distributor will then notify the first node that the second node has released the data packet.

[0115] Of course, after the first node processes the image data of the previous frame, it will also process the image data of the next frame to obtain the image data of the next frame. The target storage space occupied by image data of different frames may be different, so the available data packets occupied by the first node will be updated to update the occupied target storage space.

[0116] See also Figure 7 As shown, Figure 7 The first module of the first node acts as a producer to read image data from the cache pool, and writes the processed image data into the target storage space in the cache pool through a writer, and forwards the storage identifier in the target storage space occupied by the first module of the first node to the distributor through multicast. The distributor forwards the storage identifier to the second module A and the second module B of the second node, and the second module A and the second module B obtain the image data processed by the first node from the cache pool through the reader according to the target storage space indicated by the storage identifier.

[0117] in, Figure 7The second module A and the second module B of the second node both act as consumers of image data. The read and write methods of the target storage space can be configured for the second modules of different second nodes. For example, a queue mode will be configured for the second module A. In the queue mode, the first-in-first-out rule is followed. The data frames first stored in the target storage space will be read by the second module A first, and the data frames stored in the target storage space later will be read by the second module A later. The mailbox mode will be configured for the second module B. In the mailbox mode, the data frames with the oldest storage time point will be deleted and the latest data frames will be retained. The latest data frames will be read by the second module B, while the data frames with older storage time points will not be read by the second module B.

[0118] in, Figure 7 The event loop service is used to control the distributor to cyclically execute the data transmission logic between the first node and the second node, and to cyclically notify the second node of the storage identifier of the target storage space occupied by the first node; the calculation flow is used to display the streaming data transmission between the first node and the second node; the limiter is used to limit the maximum amount of target storage space that the second node can occupy.

[0119] Through the fourth stage, the distributor can store the first data generated by the first node to the corresponding target storage space through the first module according to the pre-configured target storage space and synchronization object, and the second node can read the first data from the target storage space through the second module, thereby eliminating the need for the CPU to repeatedly copy the first data.

[0120] In the fifth stage, the target storage space, the synchronization object and the communication channel are released in sequence.

[0121] The fifth stage is the processing stage of exiting the first node and the second node. In this stage, the target storage space, synchronization objects, and communication channels occupied by the fourth stage are released. For example, see Figure 6B As shown, the first node and the second node first release the target storage space, then release the synchronization object, and finally exit the communication channel.

[0122] For the target storage space, the first node and the second node can occupy any target storage space in the buffer pool allocated to the two. If the first node and the second node occupy the target storage space 0 to process the current frame image data, the target storage space 0 can be released so that it can be occupied by the remaining processing nodes to process the next frame image data.

[0123] For the synchronization object, if the associated first node and the second node have finished processing the current frame image data, the first node and the second node may be released so as to process the next frame image data.

[0124] For the communication channel, after the associated first node and the second node have processed the current frame image data, the communication channel can be occupied by the remaining nodes.

[0125] By releasing the target storage space, synchronization objects and communication channels in the fifth stage, these parameters can be easily occupied by other computing tasks of other nodes, thereby making full use of processing resources.

[0126] In some cases, see Fig. 9 As shown, the data transmission scheme proposed in the embodiment of the present disclosure includes the following multiple network layers: Application layer (ADDS App): The application layer includes different modules, such as the location of the first module and the second module, for example, the first module and the second module are different processes, are different software modules in the same process, etc.

[0127] Configuration file layer (EM): The configuration file includes the configuration of the communication channel in the first stage, the target storage space in the second stage, the synchronization object in the third stage, etc.

[0128] Communication layer (ADOS RT): The communication layer includes the first communication channel, the second communication channel and the channel information of the second communication channel, and the interface information of the communication interface formed after encapsulation.

[0129] Transport layer (Stream Transprt): The transport layer includes the encapsulated groups of associated first nodes and second nodes, streaming data transmission between the associated first nodes and second nodes, data synchronization between the associated first nodes and second nodes, etc.

[0130] Heterogeneous computing layer: The heterogeneous computing layer includes information about various processing nodes, such as preprocessing nodes, video encoding nodes, video decoding nodes, image processing nodes, neural network nodes, and graphics processing unit nodes (GPU). Fig. 9 As shown, each processing node can be uniformly encapsulated into a heterogeneous computing layer, and different processing nodes can be called through the driver interface of the heterogeneous computing layer.

[0131] Memory layer (Memory Managemet): The memory layer encapsulates the target storage space that can be used by each first node and the second node. When the target storage space needs to be occupied, the target storage space to be occupied can be uniformly filtered out through the memory layer.

[0132] See also Fig.10As shown, after configuring each network layer, in the first stage to the third stage, a directed acyclic graph (DAG) for communication between each associated first node and second node can be created according to the configuration files provided by each network layer above. Through the directed acyclic graph, on the first hand, heterogeneous computing resources can be initialized to obtain each associated first node and second node, on the second hand, communication channels between each associated first node and second node can be obtained, and on the third hand, target storage space required to be occupied by each associated first node and second node can be obtained; then enter the initial stage, which is the first stage to the third stage mentioned above, and allocate and map each configuration file to the first node and the second node; then enter the running stage, run the configuration file, and realize the streaming transmission of data between the first node and the second node; then enter the exit stage to exit the communication channel and release the target storage space and synchronization object.

[0133] Fig.11 is a block diagram of a data transmission device according to an exemplary embodiment. Fig.11 The data transmission device 1100 includes: an identification module 1110, a sending module 1120 and a reading module 1130.

[0134] The identification module 1110 is configured to obtain a storage identifier of a target storage space occupied by first data output by the first node; A sending module 1120 is configured to send the storage identifier to a second node; the first node and the second node are different processing nodes; The reading module 1130 is configured to determine the target storage space indicated by the storage identifier through the second node and obtain the first data from the target storage space; the storage capacity of the target storage space is greater than or equal to the maximum amount of data that the first node and the second node can process.

[0135] Optionally, the data transmission device 1100 includes: a determination module configured to determine, from a plurality of storage spaces, a first storage space whose storage capacity is greater than the maximum amount of data; An updating module, configured to update the first storage space according to at least one of the following parameters to obtain the target storage space; Data parameters processed by the first node and the second node, node parameters of the first node and the second node, and algorithm parameters in the first node and the second node.

[0136] Optionally, the data transmission device 1100 further includes: A storage module, configured to send the first data to a first module through the first node, and store the first data in the target storage space through the first module; The reading module 1130 is also configured to determine the target storage space indicated by the storage identifier through the second module, obtain the first data from the target storage space, and forward the first data to the second node; wherein the first module and the second module are different modules.

[0137] Optionally, the first module and the second module have at least one of the following association relationships: The first module and the second module are processes in different chips, the first module and the second module are different processes in the same chip, or the first module and the second module are different software modules in the same process.

[0138] Optionally, the first module and the second module communicate with each other using at least one of the following communication channels: In the case where the first module and the second module are processes in different chips, calling a first communication channel through a communication interface to transmit the first data; or, In the case where the first module and the second module are in different processes in the same chip, calling a second communication channel through the communication interface to transmit the first data; or, In the case where the first module and the second module are different software modules in the same process, the first data is transmitted by calling a third communication channel through the communication interface; wherein the first communication channel, the second communication channel and the third communication channel are encapsulated as the communication interface.

[0139] Optionally, the sending module 1120 is further configured to send an interrupt signal to the second node through the distributor when the distributor monitors through the synchronization object that the first node outputs the first data; the interrupt signal includes the storage identifier.

[0140] Optionally, the data transmission device 1100 further includes: an attribute module, configured to obtain a first attribute of the first node and a second attribute of the second node; The synchronization object module is configured to obtain the synchronization object according to the first attribute and the second attribute.

[0141] Optionally, the obtaining of the storage identifier of the target storage space occupied by the first data output by the first node is previously determined to be in the fourth stage, Optionally, the data transmission device 1100 further includes: A first phase module, configured to establish a communication channel between the first node and the second node in a first phase; A second stage module is configured to establish, in a second stage, a target storage space that can be occupied by the first node and the second node; A third phase module is configured to determine, in the third phase, a synchronization object for monitoring the first node and the second node; The fifth stage module is configured to release the target storage space, the synchronization object and the communication channel in sequence in the fifth stage.

[0142] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0143] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the data transmission method provided by the present disclosure are implemented.

[0144] Fig.12 1 is a block diagram of a vehicle 1200 according to an exemplary embodiment. For example, the vehicle 1200 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. The vehicle 1200 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.

[0145] Reference Fig.12 , the vehicle 1200 may include various subsystems, for example, an infotainment system 1210, a perception system 1220, a decision control system 1230, a drive system 1240, and a computing platform 1250. The vehicle 1200 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 1200 may be interconnected by wire or wireless means.

[0146] In some embodiments, the infotainment system 1210 may include a communication system, an entertainment system, and a navigation system, etc.

[0147] The perception system 1220 may include several sensors for sensing information about the environment around the vehicle 1200. For example, the perception system 1220 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.

[0148] The decision control system 1230 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0149] The drive system 1240 may include components that provide powered motion for the vehicle 1200. In one embodiment, the drive system 1240 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0150] Some or all functions of the vehicle 1200 are controlled by a computing platform 1250. The computing platform 1250 may include at least one processor 1251 and a memory 1252, and the processor 1251 may execute instructions 1253 stored in the memory 1252.

[0151] The processor 1251 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0152] Memory 1252 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0153] In addition to instructions 1253 , memory 1252 may also store data, such as road maps, route information, vehicle location, direction, speed, etc. The data stored in memory 1252 may be used by computing platform 1250 .

[0154] In the embodiment of the present disclosure, the processor 1251 may execute instruction 1253 to complete all or part of the steps of the above-mentioned data transmission method.

[0155] Fig.13 1 is a block diagram of a data transmission device 1300 according to an exemplary embodiment. For example, the data transmission device 1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0156] Reference Fig.13 The data transmission device 1300 may include one or more of the following components: a processing component 1302 , a memory 1304 , a power component 1306 , a multimedia component 1308 , an audio component 1310 , an input / output interface 1312 , a sensor component 1314 , and a communication component 1316 .

[0157] The processing component 1302 generally controls the overall operation of the data transmission device 1300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above-mentioned data transmission method. In addition, the processing component 1302 may include one or more modules to facilitate the interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate the interaction between the multimedia component 1308 and the processing component 1302.

[0158] The memory 1304 is configured to store various types of data to support operations on the data transmission device 1300. Examples of such data include instructions for any application or method operating on the data transmission device 1300, contact data, phone book data, messages, pictures, videos, etc. The memory 1304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0159] The power supply component 1306 provides power to the various components of the data transfer device 1300. The power supply component 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the data transfer device 1300.

[0160] The multimedia component 1308 includes a screen that provides an output interface between the data transmission device 1300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front camera and / or a rear camera. When the data transmission device 1300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0161] The audio component 1310 is configured to output and / or input audio signals. For example, the audio component 1310 includes a microphone (MIC), and when the data transmission device 1300 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1304 or sent via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.

[0162] The input / output interface 1312 provides an interface between the processing component 1302 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0163] The sensor assembly 1314 includes one or more sensors for providing various aspects of status assessment for the data transmission device 1300. For example, the sensor assembly 1314 can detect the open / closed state of the data transmission device 1300, the relative positioning of components, such as the display and keypad of the data transmission device 1300, the sensor assembly 1314 can also detect the position change of the data transmission device 1300 or a component of the data transmission device 1300, the presence or absence of user contact with the data transmission device 1300, the orientation or acceleration / deceleration of the data transmission device 1300, and the temperature change of the data transmission device 1300. The sensor assembly 1314 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1314 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0164] The communication component 1316 is configured to facilitate wired or wireless communication between the data transmission device 1300 and other devices. The data transmission device 1300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0165] In an exemplary embodiment, the data transmission device 1300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned data transmission method.

[0166] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1304 including instructions, and the instructions can be executed by the processor 1320 of the data transmission device 1300 to complete the above-mentioned data transmission method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0167] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned data transmission method when executed by the programmable device.

[0168] Some embodiments of the present disclosure also provide a chip system, such as Fig.14 As shown, the chip system includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 can be interconnected via lines. For example, the interface circuit 1402 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 1402 can be used to send signals to other devices (such as the processor 1401). Exemplarily, the interface circuit 1402 can read instructions stored in the memory and send the instructions to the processor 1401. When the instructions are executed by the processor 1401, the data transmission device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, and some embodiments of the present disclosure are not specifically limited to this.

[0169] Optionally, the chip system may also include a memory for storing necessary computer programs and data.

[0170] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.

Claims

1. A data transmission method, characterized in that: include: Obtaining a storage identifier of a target storage space occupied by first data output by the first node; Sending the storage identifier to the second node; The first node and the second node are different processing nodes; Determine, by the second node, the target storage space indicated by the storage identifier, and obtain the first data from the target storage space; The storage capacity of the target storage space is greater than or equal to a maximum amount of data that can be processed by the first node and the second node.

2. The method according to claim 1, characterized in that The method further comprises: Determine, from a plurality of storage spaces, a first storage space having a storage capacity greater than the maximum amount of data; Update the first storage space according to at least one of the following parameters to obtain the target storage space; Data parameters processed by the first node and the second node, node parameters of the first node and the second node, and algorithm parameters in the first node and the second node.

3. The method according to claim 1, characterized in that The method further comprises: Sending the first data to the first module through the first node, and storing the first data in the target storage space through the first module; Determining the target storage space indicated by the storage identifier through the second node, and acquiring the first data from the target storage space, includes: Determine, by a second module, a target storage space indicated by the storage identifier, obtain the first data from the target storage space, and forward the first data to the second node; The first module and the second module are different modules.

4. The method according to claim 3, characterized in that The first module and the second module have at least one of the following association relationships: The first module and the second module are processes in different chips, the first module and the second module are different processes in the same chip, or the first module and the second module are different software modules in the same process.

5. The method according to claim 4, characterized in that The first module and the second module communicate with each other using at least one of the following communication channels: In the case where the first module and the second module are processes in different chips, calling a first communication channel through a communication interface to transmit the first data; or, In the case where the first module and the second module are in different processes in the same chip, calling a second communication channel through the communication interface to transmit the first data; or, In the case where the first module and the second module are different software modules in the same process, the first data is transmitted by calling a third communication channel through the communication interface; wherein the first communication channel, the second communication channel and the third communication channel are encapsulated as the communication interface.

6. The method according to claim 1, characterized in that The sending the storage identifier to the second node includes: When the distributor monitors through the synchronization object that the first node outputs the first data, an interrupt signal is sent to the second node through the distributor; the interrupt signal includes the storage identifier.

7. The method according to claim 6, characterized in that The method further comprises: Obtain a first attribute of the first node and a second attribute of the second node; The synchronization object is obtained according to the first attribute and the second attribute.

8. The method according to claim 1, characterized in that Before obtaining the storage identifier of the target storage space occupied by the first data output by the first node, it is determined that the fourth stage is in progress, and the method further includes: In a first stage, a communication channel between the first node and the second node is established; In the second stage, a target storage space that can be occupied by the first node and the second node is established; In the third stage, determining a synchronization object for monitoring the first node and the second node; In the fifth stage, the target storage space, the synchronization object and the communication channel are released in sequence.

9. A data transmission device, characterized in that: include: an identification module, configured to obtain a storage identification of a target storage space occupied by first data output by the first node; A sending module, configured to send the storage identifier to a second node; The first node and the second node are different processing nodes; a reading module, configured to determine the target storage space indicated by the storage identifier through the second node, and obtain the first data from the target storage space; The storage capacity of the target storage space is greater than or equal to a maximum amount of data that can be processed by the first node and the second node.

10. A vehicle, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.

12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Data transmission method and device

    CN109561128A

  • Image processing method and device, terminal device and medium

    CN112188034A

  • Vehicle data transmission method, device, equipment, system and storage medium

    CN112866327A

  • Data communication method and device, processing system, electronic equipment and storage medium

    CN116755902A

  • Storage space distribution method and device, vehicle, storage medium and program product

    CN118710486A