Data processing systems, electronic equipment and media
By introducing a clock unit and data refresh signal into the vehicle data processing system, the acquisition, processing and output of data are controlled regularly, which solves the problem of insufficient performance of the existing system in high-frequency real-time data stream processing, reduces the risk of errors and improves efficiency. System performance.
Patent Information
- Application Number
- CN202311377873.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-10-23
AI Technical Summary
Existing vehicle data processing systems have insufficient performance when processing high-frequency real-time data streams, resulting in a high risk of errors.
A data processing system is designed, including a clock unit, data collection layer, data processing layer and result output layer. It controls the acquisition, processing and output of data by sending data refresh signals regularly, avoiding the system from passively receiving real-time data streams and reducing the cost of data processing. performance requirements.
By timing the data processing process, the risk of system errors is reduced, the multi-core processing performance of the hardware device can be better utilized, and the response speed and performance are improved.
Smart Images

Figure CN117573709B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle data processing, and in particular to a data processing system, electronic equipment and medium. Background Art
[0002] The capabilities of the autonomous driving system need to be evaluated through a corresponding evaluation system. The evaluation system used to evaluate the autonomous driving system receives sensor data and gives evaluation results. Since the data in the autonomous driving system is often a real-time data stream, such as the real-time data stream collected by the vehicle sensor, the evaluation system also needs to process the data stream in real time to facilitate the display of relevant evaluation information.
[0003] Similarly, in a data presentation system, sensor data is generally transmitted upward and visualized after processing. The sensor data is collected in real time, or the collected sensor data is taken out from a memory and transmitted upward.
[0004] At present, the architecture of vehicle data processing is to passively receive real-time data streams and then process them. When the push frequency of real-time data streams is too high, the performance requirements for the system will also be higher, which will increase the risk of data errors when the performance of the evaluation system and data display system is insufficient.
[0005] Therefore, the existing data processing system has a technical problem of a high risk of error. Summary of the invention
[0006] The present application provides a data processing system, an electronic device and a medium, aiming to reduce the risk of data errors.
[0007] On the one hand, the present application provides a data processing system, including a clock unit, a data collection layer, a data processing layer and a result output layer.
[0008] The clock unit is used to send data refresh signals to the data collection layer, data processing layer and result output layer respectively according to the preset data refresh cycle;
[0009] A data collection layer, configured to receive the data refresh signal, and in response to the data refresh signal, obtain an initial data block with a timestamp within a first data refresh period from a preset data source and store the data block in a preset first data pool, wherein the first data refresh period is a time period corresponding to the data refresh signal to which the data collection layer responds;
[0010] A data processing layer, configured to receive the data refresh signal, and in response to the data refresh signal, obtain an initial data block whose timestamp is within a second data refresh period from the first data pool and process it to obtain a processed data block, and store the processed data block in a preset second data pool, wherein the second data refresh period is a data refresh period previous to the first data refresh period;
[0011] The result output layer is used to receive the data refresh signal, and in response to the data refresh signal, obtain and output the processed data block whose timestamp is within the third data refresh cycle from the second data pool, wherein the third data refresh cycle is the previous data refresh cycle of the second data refresh cycle.
[0012] In a possible implementation of the present application, the data collection layer is used to:
[0013] receiving the data refresh signal, and caching the data refresh signal in a preset cache area;
[0014] When the data collection layer is in an idle state, obtaining the data refresh signal from the cache area, and obtaining a sending time point of the refresh signal in the data refresh signal;
[0015] If the difference between the sending time point of the refresh signal and the current time point is less than the preset difference, respond to the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtain the next data refresh signal from the cache area;
[0016] The data processing layer is used to:
[0017] receiving the data refresh signal, and caching the data refresh signal in a preset cache area;
[0018] When the data processing layer is in an idle state, obtaining the data refresh signal from the cache area, and obtaining a sending time point of the refresh signal in the data refresh signal;
[0019] If the difference between the sending time point of the refresh signal and the current time point is less than the preset difference, respond to the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtain the next data refresh signal from the cache area;
[0020] The resulting output layer is used to:
[0021] receiving the data refresh signal, and caching the data refresh signal in a preset cache area;
[0022] When the result output layer is in an idle state, obtaining the data refresh signal from the cache area, and obtaining a sending time point of the refresh signal in the data refresh signal;
[0023] If the difference between the sending time point of the refresh signal and the current time point is less than the preset difference, respond to the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtain the next data refresh signal from the cache area.
[0024] In a possible implementation of the present application, when the data collection layer fails to execute the operation in response to the data refresh signal, the data collection layer issues a first prompt message and waits for the next data refresh signal;
[0025] When the data processing layer fails to execute the operation in response to the data refresh signal, the data processing layer issues a second prompt message and waits for the next data refresh signal;
[0026] When the operation execution of the result output layer in response to the data refresh signal fails, the result output layer issues a third prompt message and waits for the next data refresh signal.
[0027] In a possible implementation of the present application, the preset data source stores vehicle data, the vehicle data includes multiple different types of data, and obtaining an initial data block with a timestamp within a first data refresh cycle from the preset data source includes:
[0028] A plurality of data slices whose timestamps fall within the first data refresh period are obtained from a preset data source, the plurality of data slices constitute an initial data block, and the data slices include different types of data with the same timestamp.
[0029] In a possible implementation of the present application, the step of acquiring an initial data block whose timestamp is within the second data refresh period from the first data pool and processing the initial data block to obtain a processed data block includes:
[0030] Acquire an initial data block whose timestamp is within the second data refresh cycle, perform a preset operation based on different data in the initial data block, obtain an operation result, use the operation result as a processed data block, or combine the operation result with part or all of the vehicle data to obtain a processed data block.
[0031] In a possible implementation of the present application, the vehicle data includes first sensor data sent to the autonomous driving system, second sensor data sent to the evaluation system, and a driving control signal output by the autonomous driving system, and the initial data block whose timestamp is within the second data refresh period is obtained from the first data pool and processed to obtain a processed data block, including:
[0032] An initial data block with a timestamp within a second data refresh cycle is obtained, an expected control signal of the autonomous driving system is obtained based on the second sensor data in the initial data block, an evaluation result is obtained based on the expected control signal and a driving control signal output by the autonomous driving system, and the evaluation result is used as a processed data block, or the evaluation result is combined with part or all of the vehicle data to obtain a processed data block.
[0033] In a possible implementation of the present application, the step of obtaining from the second data pool a processed data block whose timestamp is within a third data refresh period and outputting the processed data block includes:
[0034] Acquire a processed data block whose timestamp is within a third data refresh period from the second data pool;
[0035] In a processed data block whose timestamp is within a third data refresh cycle, determining that the data type is a first data type and multiple frames of data have different timestamps;
[0036] Among multiple frames of data whose data type is the first data type and has different time stamps, first data having a maximum value of the time stamp is determined and outputted.
[0037] In a possible implementation of the present application, the obtaining of the initial data block whose timestamp is within the second data refresh period from the first data pool and processing the initial data block to obtain the processed data block further includes:
[0038] In a data block whose timestamp is within a second data refresh period, determining that the data type is the second data type and multiple frames of data have different timestamps;
[0039] Based on multiple frames of data whose data type is the second data type and has different timestamps, change information of data of the second data type is determined, and the processed data block also includes the change information of data of the second data type.
[0040] On the other hand, the present application also provides an electronic device, the electronic device comprising:
[0041] one or more processors;
[0042] Memory; and
[0043] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement any of the above data processing systems.
[0044] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in any of the above-mentioned data processing systems.
[0045] The data processing system, electronic device and medium provided by the embodiments of the present application, the data processing system includes a clock unit, a data collection layer, a data processing layer and a result output layer, the clock unit is used to send a data refresh signal to the data collection layer, the data processing layer and the result output layer respectively according to a preset data refresh cycle; the data collection layer is used to receive the data refresh signal, and in response to the data refresh signal, obtain an initial data block with a timestamp within a first data refresh cycle from a preset data source and store it in a preset first data pool, and the first data refresh cycle is the time period corresponding to the data refresh signal responded to by the data collection layer ; The data processing layer is used to receive a data refresh signal, and in response to the data refresh signal, obtain an initial data block with a timestamp within a second data refresh cycle from the first data pool and process it to obtain a processed data block, and store the processed data block in a preset second data pool, and the second data refresh cycle is the previous data refresh cycle of the first data refresh cycle; the result output layer is used to receive a data refresh signal, and in response to the data refresh signal, obtain a processed data block with a timestamp within a third data refresh cycle from the second data pool and output it, and the third data refresh cycle is the previous data refresh cycle of the second data refresh cycle. The embodiment of the present application sets a clock unit to control the data collection layer to obtain data blocks, the data processing layer to process data blocks, and the result output layer to output data blocks, thereby avoiding the data processing system from only passively receiving real-time data streams, but can obtain, process, and output data according to the data refresh cycle of the clock unit, so that the data processing system does not need to have excessively high performance, thereby reducing the risk of errors in the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 It is a schematic diagram of the architecture of a data processing system provided in an embodiment of the present application;
[0048] Figure 2 It is a data processing logic schematic diagram in the data processing system provided in the embodiment of the present application;
[0049] Figure 3 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0051] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0052] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0053] The embodiments of the present application provide a data processing system, an electronic device, and a medium, which are described in detail below.
[0054] Reference Figure 1 , Figure 1 A schematic diagram of the architecture of a data processing system 100 provided in an embodiment of the present application.
[0055] The data processing system 100 includes a clock unit 101, a data collection layer 102, a data processing layer 103, and a result output layer 104. The clock unit 101 is connected to the data collection layer 102, the data processing layer 103, and the result output layer 104 respectively, while the data collection layer 102, the data processing layer 103, and the result output layer 104 do not interact directly to avoid mutual influence.
[0056] The clock unit 101 is used to send data refresh signals to the data collection layer 102, the data processing layer 103 and the result output layer 104 at regular intervals according to the preset data refresh cycle, so as to command the data collection layer 102, the data processing layer 103 and the result output layer 104 to coordinate operations. The data refresh signal is accompanied by the timestamp information when the signal is sent, that is, the data refresh signal includes the refresh signal and the sending time point of the refresh signal. For the clock unit 101, a data refresh signal is sent once after each data refresh cycle, and for the data collection layer 102, the data processing layer 103 and the result output layer 104, a data refresh signal is received after each data refresh cycle. It should be noted that the clock unit 101 is a stable clock, and the time recorded by the clock is not affected by other factors. For example, the time recorded by the clock unit 101 is the time corresponding to the Coordinated Universal Time (UTC).
[0057] In some embodiments, since the clock unit 101 may experience delays or failures in sending data refresh signals, a separate thread may be used to execute the step of sending data refresh signals. The separate thread runs in a separate core in the processor, and the core is only used for the operation of the separate thread to avoid delays or failures in sending data refresh signals as much as possible.
[0058] The data collection layer 102 is used to receive a data refresh signal, and in response to the data refresh signal, obtain an initial data block with a timestamp within a first data refresh period from a preset data source 105 and store it in a preset first data pool 106. The first data refresh period is the time period corresponding to the data refresh signal to which the data collection layer responds. The data processing system 100 also includes a preset data source 105 and a first data pool 106. The preset data source 105 and the first data pool 106 are respectively a data cache area in the data processing system 100. The preset data source 105 is used to store vehicle data. For example, when the data processing system is a data display system, the sensor data is collected, and the real-time data stream of the sensor is pushed to the preset data source 105 for storage in real time at a fixed frequency. For another example, when the data processing system is a data display system, the preset data source 105 is a database that has stored sensor data, and the data display system plays back the stored data. The data stored in the data cache area of the data processing system 100 is usually implemented using a hash table with a timestamp, a data identifier as a key, and a data value as a value. The data identifier is a string used to uniquely identify the source of the data, and the data source may be a specific sensor. By storing data in this key-value pair data format, various data formats can be supported, and thus data collected by any sensor can be supported.
[0059] It should be noted that the vehicle data includes multiple different types of data, and a data block is a collection of data slices within a specified timestamp range, such as the first data refresh cycle, the second data refresh cycle, the third data refresh cycle, etc. A data slice is a collection of multiple frames of data at a specified timestamp, such as different types of data with the same timestamp.
[0060] The method of obtaining an initial data block whose timestamp is within a first data refresh cycle from a preset data source includes: obtaining multiple data slices whose timestamps fall within the first data refresh cycle from a preset data source, wherein the multiple data slices constitute the initial data block, and the data slices include different types of data with the same timestamp.
[0061] The timestamp of each frame data in the data block is described. Specifically, if the built-in time of the sensor and the time recorded by the clock unit are hard synchronized and synchronized to the same time coordinate system, the timestamp of each frame data in the data block is the time adopted by the hard synchronization. If the built-in time of the sensor and the time recorded by the clock unit 101 are not hard synchronized, and the data processing system 100 is in the real-time receiving and processing mode, the time of the preset data source 105 when the preset data source 105 receives the frame data is used as the timestamp of the frame data. If the built-in time of the sensor and the time recorded by the clock unit 101 are not hard synchronized, and the data processing system 100 is in the playback processing mode using the stored data, the recording timestamp when the frame data is recorded to the preset data source 105 is used as the timestamp of the frame data. It should be noted that the time between the preset data source 105, the clock unit 101, the data collection layer 102, the data processing layer 103 and the result output layer 104 has been synchronized to ensure the time synchronization in the data processing system 100.
[0062] The clock unit 101 sends a data refresh signal according to a preset data refresh cycle, and the duration of the data refresh cycle is the time interval between two adjacent data refresh signals. Among them, the preset data refresh cycle can be set based on actual needs, and the preset data refresh cycle is generally less than the push cycle of vehicle data. For example, when the push cycle of vehicle data is a cycle corresponding to 110Hz, the preset data refresh cycle can be set to a cycle corresponding to 30Hz, so as to avoid the situation where the required data cannot be obtained. Generally speaking, the result output layer 104 is a display screen, and the preset data refresh cycle can be the same as the cycle corresponding to the common screen refresh rate (such as 30Hz or 60Hz), so that the output of the result output layer 104 adapts to the screen refresh rate; the preset data refresh cycle can also be the same as the cycle corresponding to the common camera frame rate (such as 25Hz), to ensure the data beat and ensure that the data refresh of the data processing system 100 will not be wasted.
[0063] The first data refresh cycle is the time period corresponding to the data refresh signal responded by the data collection layer 102. In theory, the time period between the timestamp of the current data refresh signal and the timestamp of the previous data refresh signal can be regarded as the first data refresh cycle, and the previous data refresh cycle of the first data refresh cycle is regarded as the second data refresh cycle, that is, the time period corresponding to the previous data refresh signal. However, in actual applications, since it takes a certain amount of time to write data into the preset data source 105, the data collection layer 102 usually cannot obtain data with the same timestamp as the sending time of the data refresh signal from the preset data source 105 when receiving the data refresh signal, but can only obtain data with an earlier timestamp than the data refresh signal. Therefore, the start time of the first data refresh cycle will be a period of time earlier than the sending time of the previous data refresh signal, and the end time of the first data refresh cycle will also be a period of time earlier than the sending time of the current data refresh signal. Similarly, the start and end times of the second and third data refresh cycles will be moved forward compared to the corresponding data refresh signals. For example, when the sending time of the previous data refresh signal is 16:23:45:50, the start time of the first data refresh cycle can be 16:23:45:20, which is 30 milliseconds earlier.
[0064] The data processing layer 103 is used to receive a data refresh signal, and in response to the data refresh signal, obtain an initial data block whose timestamp is within a second data refresh cycle from the first data pool 106 and process it to obtain a processed data block, and store the processed data block in a preset second data pool 107. The second data refresh cycle is a data refresh cycle before the first data refresh cycle. The data processing system 100 also includes a second data pool 107, which is a data cache area in the data processing system 100, and the second data pool 107 is used to store the processed data blocks of the data processing layer 103.
[0065] The result output layer 104 is used to receive a data refresh signal, and in response to the data refresh signal, obtains and outputs a processed data block whose timestamp is within the third data refresh cycle from the second data pool 107. The output mode may be direct display or sending to other devices. Taking direct display as an example, when the result output layer 104 receives the data refresh signal, it obtains the processed data block whose timestamp is within the third data refresh cycle from the second data pool 107, and then renders the screen based on the data whose timestamp is within the third data refresh cycle, and displays the rendered screen on the display screen of the data processing system 100. Taking sending to other devices as an example, when the result output layer 104 receives the data refresh signal, it obtains the processed data block whose timestamp is within the third data refresh cycle from the second data pool 107, and sends it to other devices for subsequent processing, such as storage of data on disk. Among them, the third data refresh cycle is the previous data refresh cycle of the second data refresh cycle.
[0066] It can be seen that the data processing system 100 provided in the embodiment of the present application, by setting a clock unit 101, timing controls the data collection layer 102 to obtain the initial data block, timing controls the data processing layer 103 to process the initial data block, and timing controls the result output layer 104 to output the processed data block, thereby avoiding the data processing system can only passively receive real-time data streams, but can regularly obtain, process, and display data according to the data refresh cycle of the clock unit 101, so that the data processing system does not need too high performance, thereby reducing the risk of errors in the data processing system. In addition, this architecture solution can maximize the multi-core processing performance of hardware devices, and the performance is usually better and the response speed is faster.
[0067] In some embodiments of the present application, in order to more clearly illustrate the above data processing system, refer to Figure 2 , showing a data processing logic schematic diagram in a data processing system.
[0068] exist Figure 2 In the example, the preset data source 105 stores vehicle data pushed at a fixed frequency. The vehicle data is divided according to different data refresh cycles to obtain data block 1, data block 2, data block 3, data block 4, and data block 5. Data block 1, data block 2, data block 3, data block 4, and data block 5 may include multiple frames of data, and each frame of data is provided with a corresponding timestamp. Figure 2 It can be seen that the timestamps of each frame data in data block 2 are all within the third data refresh cycle, the timestamps of each frame data in data block 3 are all within the second data refresh cycle, and the timestamps of each frame data in data block 4 are all within the first data refresh cycle.
[0069] by Figure 2Taking the data processing process of the data block 2 in the example, the clock unit 101 sends data refresh signals to the data collection layer 102, the data processing layer 103 and the result output layer 104 respectively according to the preset data refresh cycle, which are the third data refresh cycle, the second data refresh cycle and the first data refresh cycle in chronological order. The data collection layer 102 responds to the data refresh signal of the third data refresh cycle, obtains the data block 2 whose timestamp is within the third data refresh cycle from the preset data source 105 and stores it in the preset first data pool 106. As time passes, the clock unit 101 sends data refresh signals to the data collection layer 102, the data processing layer 103 and the result output layer 104 respectively again. The data processing layer 103 responds to the data refresh signal of the second data refresh cycle, obtains the data block 2 whose timestamp is within the third data refresh cycle from the first data pool 106 and processes it to obtain the processed data block 2, and stores the processed data block 2 in the preset second data pool 107. As time goes by, the clock unit 101 once again sends data refresh signals to the data collection layer 102, the data processing layer 103 and the result output layer 104 respectively. The result output layer 104 responds to the data refresh signal of the first data refresh cycle, obtains the processed data block 2 with a timestamp within the third data refresh cycle from the second data pool 107 and outputs it.
[0070] It can be seen that data block 2 is acquired by the data collection layer 102 and stored in the preset first data pool 106 in a data refresh cycle, and is processed by the data processing layer 103 in the next data refresh cycle to obtain processed data block 2, and the processed data block 2 is stored in the preset second data pool 107, and the processed data block 2 is acquired and output by the result output layer 104 in the next data refresh cycle.
[0071] In some embodiments of the present application, under some non-ideal circumstances, a backlog of data refresh signals may occur. For example, the data processing layer should complete the data processing in one data refresh cycle. If the processing times out, the current batch of data will not be processed, and it will be necessary to respond to the next data refresh signal to obtain data from the first data pool again and process it.
[0072] In view of this situation, a solution to the backlog of data refresh signals is provided. Specifically, the data processing layer is used to: receive the data refresh signal, cache the data refresh signal to a preset cache area; when the data processing layer is in an idle state, obtain the data refresh signal from the cache area, and obtain the sending time point of the refresh signal in the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is less than the preset difference, respond to the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtain the next data refresh signal from the cache area. Specifically, the data refresh signal is cached in a preset cache area, and the cache area can cache multiple data refresh signals in sequence according to the signal reception order of the data refresh signal, so that the latest data refresh signal can be quickly found from the cache area. If the difference between the sending time point in the data refresh signal and the current time point of the clock unit is less than the preset difference, it is determined that there is no backlog of data refresh signals, so the step of obtaining and processing the data block whose timestamp is within the second data refresh cycle from the first data pool can be executed, so as to respond to the data refresh signal. If the difference between the sending time point in the data refresh signal and the current time point of the clock unit is greater than or equal to the preset difference, it is determined that a backlog of data refresh signals has occurred. At this time, the step of obtaining and processing the data block with a timestamp within the second data refresh cycle from the first data pool may not be executed, that is, the data refresh signal is not responded to, and other data refresh signals are re-obtained from the cache area. For the backlog of data refresh signals, the data refresh signal can be deleted, and the data with a timestamp within the second data refresh cycle in the first data pool is deleted. In addition, when the difference between the sending time point in the data refresh signal and the current time point of the clock unit is greater than or equal to the preset difference, and it is determined that a backlog of data refresh signals has occurred, a backlog prompt message of the data refresh signal can also be output to inform the user that a backlog of data refresh signals has occurred. The value of the preset difference can be, for example, the duration of a data refresh cycle.
[0073] Similarly, in the data collection layer and the result output layer, a backlog of data refresh signals may also occur. Specifically, the data collection layer is used to: receive the data refresh signal and cache the data refresh signal to a preset cache area; when the data collection layer is in an idle state, obtain the data refresh signal from the cache area and obtain the sending time point of the refresh signal in the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is less than the preset difference, respond to the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtain the next data refresh signal from the cache area. The result output layer is used to: receive the data refresh signal and cache the data refresh signal to a preset cache area; when the result output layer is in an idle state, obtain the data refresh signal from the cache area and obtain the sending time point of the refresh signal in the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is less than a preset difference, respond to the data refresh signal; if the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtain the next data refresh signal from the cache area.
[0074] It can be seen that when a backlog of data refresh signals occurs, the backlogged expired signals and data are abandoned and only the latest signals and data are processed to avoid affecting the processing of subsequent data, thereby making the data processing system more robust.
[0075] In some embodiments of the present application, in some non-ideal situations, the dependent data may not be ready. For example, the result output layer needs to obtain data with a timestamp within the third data refresh cycle from the second data pool and output it, but the data processing layer has not yet completed the processing of the data, and has not stored the processed data in the second data pool, so that the result output layer cannot obtain data with a timestamp within the third data refresh cycle from the second data pool. This is the case that the dependent data is not ready.
[0076] In view of this situation, a solution is provided for the phenomenon that the dependent data is not ready. Specifically, the result output layer is used to: when the result output layer responds to the failure of the operation execution of the data refresh signal, issue a third prompt message and wait for the next data refresh signal. When responding to the data refresh signal, the result output layer detects whether there is a processed data block with a timestamp within the third data refresh cycle in the second data pool; if there is a processed data block with a timestamp within the third data refresh cycle in the second data pool, it is determined that the processed data block with a timestamp within the third data refresh cycle is ready, and thus the step of obtaining the processed data block with a timestamp within the third data refresh cycle from the second data pool and outputting it can be executed; if there is no processed data block with a timestamp within the third data refresh cycle in the second data pool, it is determined that the processed data block with a timestamp within the third data refresh cycle is not ready, that is, the operation execution in response to the data refresh signal fails, and the step of obtaining the processed data block with a timestamp within the third data refresh cycle from the second data pool and outputting it is not executed, that is, the step of obtaining the processed data block with a timestamp within the third data refresh cycle from the second data pool and outputting it is skipped, and the next data refresh signal of the receiving clock unit is waited for, so as to execute the step of obtaining the processed data block with a timestamp within the third data refresh cycle from the second data pool and outputting it based on the received next data refresh signal. In addition, when there is no data with a timestamp within the third data refresh cycle in the second data pool and it is determined that the processed data block with a timestamp within the third data refresh cycle is not ready, a prompt message that the dependent data is not ready is also output to inform the user that the dependent data is not ready.
[0077] Similarly, in the data collection layer and the data acquisition layer, it is also possible that the data dependent data is not ready, that is, the data collection layer and the data acquisition layer cannot respond to the data refresh signal. Specifically, when the data collection layer fails to execute the operation in response to the data refresh signal, a first prompt message is issued to wait for the next data refresh signal. When the data processing layer fails to execute the operation in response to the data refresh signal, a second prompt message is issued to wait for the next data refresh signal.
[0078] It can be seen that by giving up acquiring and outputting the data when the dependent data is not ready and waiting for the data of the next data refresh cycle to avoid affecting the processing of subsequent data, the data processing system is made more robust.
[0079] Different types of sensor data are received and stored in real time in a preset data source, or the preset data source is a database storing different types of sensor data, and the data processing layer obtains and processes an initial data block whose timestamp is within the second data refresh cycle from the first data pool to obtain a processed data block, which may include:
[0080] Acquire an initial data block whose timestamp is within the second data refresh cycle, perform a preset operation based on different data in the initial data block, obtain an operation result, use the operation result as a processed data block, or combine the operation result with part or all of the vehicle data to obtain a processed data block.
[0081] In some embodiments of the present application, the processing performed by the data processing layer is illustrated. For example, the data processing system is used as a data display system to display sensor data. The data processing layer obtains the initial data block with a timestamp in the second data refresh cycle from the first data pool and processes it, specifically: obtain the initial data block with a timestamp in the second data refresh cycle from the first data pool; in the initial data block with a timestamp in the second data refresh cycle, determine multiple frames of data with the same timestamp, wherein, due to the inclusion of multiple vehicle sensors, the data at the same time in the data stream pushed to the preset data source is often sent in the form of multiple continuous frames, so there will be multiple frames of data with the same timestamp in the preset data source and the first data pool. The multiple frames of data with the same timestamp are summarized into a data table at the same time, that is, a data slice, which may include data collected by multiple sensors at the same time (for example, the vehicle speed, left tire speed, right tire speed, longitude and latitude, camera image and radar point cloud data at the same time). According to the expected output of the result output layer, the data in the initial data block is subjected to a preset operation to obtain the operation result.
[0082] For example, the result output layer is expected to visualize lane lines. The vehicle data includes the lane line perception results of the smart camera. The lane line perception results include the number of lane lines perceived, the curve parameters of the lane lines at each position, and the lane line curve parameters are used to fit the lane line curve. In one example, a lane line identified by the smart camera is a cubic curve equation, and the cubic curve equation expression is:
[0083] x = c0 + c1y + c2y² + c3y³;
[0084] y ∈ [start, end];
[0085] Among them, the curve parameters include 6 parameters, x is the horizontal axis, with the left as the positive direction, y is the vertical axis, with the front as the positive direction, c0 is the offset between the lane line and the vehicle coordinate system, c1 is the lane line yaw angle, c2 is the lane line curvature, c3 is the lane line curvature change rate, start and end are used to indicate the field of view length of a lane line.
[0086] The preset operation includes:
[0087] S1. Obtaining a lane line perception result at a first moment, and obtaining a lane line optimization result at a second moment, where the second moment is a moment before the first moment;
[0088] S2. Selecting an unoptimized lane line from the lane line perception result at the first moment as the lane line to be optimized, optimizing the curve parameters of the lane line to be optimized, and obtaining an optimization result of the lane line to be optimized;
[0089] S3. Repeat step S2 until there are no unoptimized lane lines in the lane line perception result at the first moment, and obtain the lane line optimization result at the first moment.
[0090] Among them, between step S1 and step S2, it also includes: if the number of lane lines sensed in the lane line perception result at the first moment is 0, then the lane line perception results of N1 consecutive moments before the first moment are obtained; if the number of lane lines sensed in the lane line perception results of N1 consecutive moments are all 0, then the lane line perception result at the first moment is directly used as the lane line optimization result at the first moment; otherwise, the lane line optimization result at the second moment is used as the lane line optimization result at the first moment, and N1 is a positive integer.
[0091] The step S2 comprises:
[0092] S201. If the lane line to be optimized is a lane line with a field of view length of 0, then the lane line perception results of N2 consecutive moments before the first moment are obtained. If the field of view length of the lane line at the position of the lane line to be optimized in the lane line perception results of N2 consecutive moments is 0, then the curve parameters of the lane line to be optimized are directly used as the optimization result of the lane line to be optimized. Otherwise, the curve parameters of the lane line at the position of the lane line to be optimized in the lane line optimization result at the second moment are used as the optimization result of the lane line to be optimized. N2 is a positive integer.
[0093] S202: If the vision length of the lane line to be optimized is not 0 and it is the lane line with the best quality, self-correction optimization is performed on the curve parameters of the lane line to be optimized, and the curve parameters after self-correction optimization are used as the optimization result of the lane line to be optimized;
[0094] S203. If the field of view length of the lane line to be optimized is not 0 and it is not the lane line with the best quality, self-correction optimization and side-correction optimization are performed on the curve parameters of the lane line to be optimized, and the curve parameters after the self-correction optimization and side-correction optimization are used as the optimization results of the lane line to be optimized.
[0095] The curve parameters of the lane line include a constant term and multiple coefficient terms, among which the self-correction optimization is specifically as follows:
[0096] Step 1: Obtain curve parameters of the lane line to be optimized, and obtain a reference lane line with the same position as the lane line to be optimized from the lane line optimization result at the second moment;
[0097] Step 2, respectively calculating the change value of each curve parameter of the lane line to be optimized relative to each curve parameter of the reference lane line;
[0098] If the change values of the curve parameters of the lane line to be optimized are all less than the preset first change threshold of each curve parameter, the lane line to be optimized is directly used as the first corrected lane line; if the change values of the curve parameters of the lane line to be optimized are all greater than or equal to the preset first change threshold of each curve parameter, the position of the lane line to be optimized is reclassified, and the curve to be optimized after the position reclassification is self-corrected and optimized; otherwise, the constant term of the lane line to be optimized is kept unchanged, and the coefficient term of the lane line to be optimized whose change value is greater than or equal to the preset change threshold is corrected to the coefficient term of the reference lane line, and the lane line to be optimized is optimized to the first corrected lane line;
[0099] Step 3: Based on the curve parameters of the first corrected lane line and the lane line optimization results of N3 consecutive moments between the first moment, a smooth lane line is obtained by fitting;
[0100] Step 4, respectively calculating the change values of each curve parameter of the first corrected lane line relative to each curve parameter of the smooth lane line;
[0101] If the change values of the curve parameters of the first corrected lane line relative to the curve parameters of the smooth lane line are all less than the preset second change threshold of each curve parameter, the constant term of the first corrected lane line is kept unchanged, the coefficient term of the first corrected lane line is corrected to the coefficient term of the smooth lane line, and the first corrected lane line is optimized to the second corrected lane line to complete self-correction; otherwise, the first corrected lane line is directly used as the second corrected lane line to complete self-correction.
[0102] The quality of the lane line is determined based on the confidence and field of view of the lane line. The lane line perception result also includes the confidence of the lane line at each position. The higher the confidence, the higher the quality of the lane line. For lane lines with the same confidence, the longer the field of view, the higher the quality of the lane line.
[0103] Furthermore, in step S2, the lane line to be optimized is selected from high to low according to the quality of each lane line in the lane line perception result at the first moment.
[0104] The lane line perception result includes curve parameters of lane lines at M positions, where M is a preset perception number, M≥1. The lane line perception result includes the number of perceived lane lines count≤M. The position of the lane line to be optimized is reclassified as follows: obtaining the position of the lane line to be optimized in the lane line perception data at the first moment, recorded as position 1, obtaining M-1 lane lines other than position 1 in the lane line optimization result at the second moment, calculating the deviation value between the constant term of the lane line to be optimized and the constant term of the M-1 lane lines, and taking the position of the lane line with the smallest deviation value as the reclassified position of the lane line to be optimized.
[0105] The specific amendments are:
[0106] Step 1, obtain the lane line with the best quality, calculate the deviation values of each curve parameter of the second corrected lane line relative to each curve parameter of the lane line with the best quality, if the deviation values of each curve parameter of the second corrected lane line relative to each curve parameter of the lane line with the best quality are all less than the preset parallel change threshold of each curve parameter, then the second corrected lane line is directly used as the third corrected lane line to complete the side correction, otherwise, keep the constant term of the second corrected lane line unchanged, correct the coefficient term of the second corrected lane line to the coefficient term of the lane line with the best quality, correct the second corrected lane line to the third corrected lane line to complete the side correction.
[0107] In addition, the step S202 further includes: obtaining the field of view length SE of the lane line with the largest field of view length in the lane line perception result at the first moment, correcting the field of view length in the curve parameters after self-correction optimization to SE, and obtaining the optimization result of the lane line to be optimized. The step S203 further includes: obtaining the field of view length SE of the lane line with the largest field of view length in the lane line perception result at the first moment, correcting the field of view length in the curve parameters after self-correction optimization and side correction optimization to SE, and obtaining the optimization result of the lane line to be optimized.
[0108] After the above operations, the lane line perception results given by the smart camera are optimized, and the result output layer can visualize the lane lines according to the lane line optimization results. Compared with directly using the lane line perception results for lane line visualization, the visualization effect is better, and the multiple lane lines displayed are of the same length and parallel positions, which improves the aesthetics and is convenient for users to watch.
[0109] It can be understood that the data processing layer processes the data in the initial data block to obtain the calculation result. Depending on the requirements of the result output layer, only the calculation result can be output as the processed data block, or the calculation result and part or all of the initial data block can be used as the processed data block together, such as outputting lane line optimization results, vehicle speed, etc.
[0110] In some embodiments of the present application, the processing performed by the data processing layer is illustrated. For example, the data processing system acts as an evaluation system to evaluate the autonomous driving system, and the vehicle data includes the first sensor data sent to the autonomous driving system, the second sensor data sent to the evaluation system, and the driving control signal output by the autonomous driving system, and the initial data block whose timestamp is within the second data refresh cycle is obtained from the first data pool and processed to obtain the processed data block, including: obtaining the initial data block whose timestamp is within the second data refresh cycle, obtaining the expected control signal of the autonomous driving system based on the second sensor data in the initial data block, obtaining the evaluation result based on the expected control signal and the driving control signal output by the autonomous driving system, and using the evaluation result as the processed data block, or combining the evaluation result with part or all of the vehicle data to obtain the processed data block.
[0111] Specifically: The autonomous driving system is generally divided into a perception part, a decision-making part and an execution part. The perception part is to obtain sensor data, the decision-making part gives control decisions, and the execution part executes control decisions. The evaluation system needs to evaluate the decision-making part of the autonomous driving system, so it needs to monitor the "perception input data" and "execution output signal" of the autonomous driving system, that is, the first sensor data and the driving control signal output by the autonomous driving system, and combine with additional evaluation sensors to evaluate the decision of the autonomous driving system, that is, based on the second sensor data, the expected control signal is obtained, and the control signal output by the autonomous driving system is compared to evaluate the autonomous driving system. The evaluation system needs the ability to process real-time data streams. Whether it is real-time collection of sensor data for evaluation, or playback and evaluation based on existing data, the data processing layer will continuously receive and process data. However, this application uses data refresh signals, and the data processing layer regularly obtains and processes data, which has better performance.
[0112] The data processing layer obtains the first sensor data, the second sensor data, and the driving control signal of the autonomous driving system based on the first sensor data in an initial data block whose timestamp is within the second data refresh cycle, wherein the first sensor data is used to be sent to the autonomous driving system so that the autonomous driving system generates a driving control signal based on the first sensor data; the autonomous driving system can control the vehicle in which the autonomous driving system is located to achieve autonomous driving by outputting the driving control signal, and the second sensor data is used to generate the expected control signal.
[0113] Specifically, the sensor includes an autonomous driving sensor and an evaluation sensor. The autonomous driving sensor is generally set on the vehicle and is part of the autonomous driving system. The autonomous driving sensor is used to collect the first sensor data of the vehicle where the autonomous driving system is located. The autonomous driving sensor may also include a laser radar, a millimeter wave radar, etc. The evaluation sensor includes a laser radar, a millimeter wave radar, etc. The evaluation sensor can be set on the roadside where the vehicle is located, or on the vehicle, which is not limited here. The evaluation sensor is used to collect sensor data of the vehicle where the autonomous driving system is located. When the evaluation sensor and the autonomous driving sensor do not overlap, the data collected by the evaluation sensor is the second sensor data, which is used to generate the expected control signal; when the evaluation sensor and the autonomous driving sensor overlap, for example, the roof laser radar is both an autonomous driving sensor and an evaluation sensor, the data collected by the autonomous driving sensor and the evaluation sensor can be used as the second sensor data, which is used to generate the expected control signal. The difference between the autonomous driving sensor and the evaluation sensor is that the autonomous driving sensor is a vehicle sensor configured for the autonomous driving system and is part of the autonomous driving system, while the evaluation sensor is a vehicle sensor outside the autonomous driving system. By adding the evaluation sensor, more sensor data can be integrated to accurately judge whether the capability of the autonomous driving system meets the standard. Once the capabilities of the autonomous driving system meet the standards, there is no need to evaluate the sensors. The autonomous driving sensors alone can achieve the same autonomous driving effect, thereby reducing the hardware cost of autonomous driving.
[0114] In a further embodiment, the evaluation result of the driving control signal is determined based on whether the driving control signal is consistent with the expected control signal. For example, if the driving control signal is consistent with the expected control signal, the evaluation result of the driving control signal is determined to be passed; if the driving control signal is inconsistent with the expected control signal, the evaluation result of the driving control signal is determined to be failed.
[0115] Among them, the specific data processing process of determining the expected control signal of the expected output of the automatic driving system based on the first sensor data can be determined based on the automatic driving system test function configured in the data processing layer. When the automatic driving system test function configured in the data processing layer is different, the data processing process is also different. For example, when the automatic driving system test function is forward collision warning (FCW), the corresponding FCW algorithm can be manually set based on the specific requirements in FCW, and the FCW algorithm is used to implement the data processing process. In order to reduce the performance requirements of the evaluation system, the automatic driving system test function configured in the data processing layer in the same time period is often one. For example, if the vehicle speed is greater than the preset road speed limit, the vehicle should be decelerated. At this time, the expected control signal expected to be output by the automatic driving system can be a brake control signal or a throttle control signal. Correspondingly, the driving control signal can also be a brake control signal, or a throttle control signal, etc.
[0116] In one embodiment, the evaluation sensor and the autonomous driving sensor do not overlap with each other. If there are identical sensors in the evaluation sensor and the autonomous driving sensor, such as wheel speed sensors, the values of the sensors with the same parameters in the evaluation sensor and the autonomous driving sensor are averaged as the data of the two sensors to determine the expected control signal expected to be output by the autonomous driving system.
[0117] In some embodiments of the present application, for most display controls, it is often only necessary to display the latest data without the need for historical data, which can significantly reduce the rendering pressure of the result output layer. Specifically, obtaining a processed data block whose timestamp is within the third data refresh cycle from the second data pool and outputting it may include: obtaining a processed data block whose timestamp is within the third data refresh cycle from the second data pool; in the processed data block whose timestamp is within the third data refresh cycle, determining a data type of the first data type and multiple frames of data with different timestamps, the first data type being, for example, the vehicle speed data and the image data collected by the vehicle's camera; in the data type of the first data type and multiple frames of data with different timestamps, determining the first data with the largest timestamp value and outputting it. In this way, the result output layer can only output the first data, and will not output other data except the first data. For example, for the display of vehicle speed, assuming that the push frequency of the vehicle speed data is 100Hz, and the data refresh period of the clock unit is 30Hz, then the result output layer only needs to output the first data with the largest timestamp value among the vehicle speed data whose timestamp is within the second data refresh period. For example, the result output layer only needs to render the first data with the largest timestamp value, thereby reducing the amount of rendering data in the result output layer.
[0118] In some embodiments of the present application, since some data needs to output its changes over a period of time, for example, it is necessary to display a line graph of the vehicle's CAN (Controller Area Network) signal. In this regard, the initial data block with a timestamp in the second data refresh cycle is obtained from the first data pool and processed to obtain a processed data block, which may also include: in the data block with a timestamp in the second data refresh cycle, determining a multi-frame data with a data type of the second data type and different timestamps, the second data type is, for example, a vehicle's CAN signal; based on the multi-frame data with a data type of the second data type and different timestamps, determining the change information of the data of the second data type (for example, the line graph information of the CAN signal). Among them, the above-mentioned processed data block also includes the change information of the data of the second data type, so that the result output layer can also obtain the line graph information of the CAN signal with a timestamp in the third data refresh cycle from the second data pool for rendering and display, so that the data processing system has more diversified data output for different data types.
[0119] In addition, the data processing system also has a data recording function. Taking the recording function as an example, the result output layer can also be used to display the operation control of the preset data recording program, so that the data to be recorded can be selected from the data displayed in the result output layer by using the operation control, and the data to be recorded can be stored in the preset database. The data processing system supports real-time mode and data playback mode. In real-time mode, the preset data source is connected to the data acquisition device to receive sensor data in real time. In playback mode, the preset data source is the preset database, which stores the previously recorded or collected data. Moreover, the clock unit and the first data pool are provided to the interactive interface of the data display layer, connected to the terminal for data playback, and the terminal for data playback can display the data to complete the purpose of data playback. It can be seen that the clock unit, data collection layer, data processing layer, first data pool, and second data pool are reused in the data playback mode and the real-time mode, and the interactive interface of the "result output layer" can be uniformly exposed, and the same set of interfaces are provided in the "real-time mode" and "replay mode", thereby reducing the amount of code writing and improving development efficiency.
[0120] The data processing system provided in the present application controls the rhythm of each layer through a data refresh signal, collects, processes and displays data based on the sending time point of the data refresh signal, can correct data timestamp fluctuations within a certain range, and can also alarm and discard data that exceeds the fluctuation range without affecting subsequent data processing, and has better robustness.
[0121] The data refresh signal is sent according to the preset data refresh cycle. The data collection layer, data processing layer and result perception layer are in the same time coordinate system as the clock unit. According to the sending time node of the received data refresh signal, they can perceive the processing time of each part. For the timeout processing, they can promptly alarm and discard it without affecting the subsequent data processing, which is more robust.
[0122] The data collection layer, data processing layer, and result output layer run independently, which can maximize the multi-core processing performance of the computer, and the performance is usually better and the response speed is faster.
[0123] In addition to the data processing system described above, the embodiment of the present application further provides an electronic device, which integrates any data processing system provided in the embodiment of the present application, and the electronic device includes:
[0124] one or more processors;
[0125] Memory; and
[0126] One or more applications, wherein the one or more applications are stored in a memory and configured to be executed by a processor in the data processing system described in any of the above embodiments.
[0127] like Figure 3 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0128] The electronic device may include components such as a processor 301 with one or more processing cores, a storage unit 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will appreciate that Figure 3 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0129] The processor 301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the storage unit 302 and calling data stored in the storage unit 302, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301.
[0130] The storage unit 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 302. The storage unit 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the storage unit 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the storage unit 302 may also include a memory controller to provide the processor 301 with access to the storage unit 302.
[0131] The electronic device also includes a power supply 303 for supplying power to each component. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 303 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0132] The electronic device may further include an input unit 304, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0133] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in the embodiment of the present application, the processor 301 in the electronic device will load the executable file corresponding to the process of one or more application programs into the storage unit 302 according to the following instructions, and the processor 301 will run the application program stored in the storage unit 302, thereby realizing the data processing system described in any of the above embodiments.
[0134] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. The computer-readable storage medium stores a plurality of instructions, which can be loaded by a processor to execute the steps in any data processing system provided in the embodiment of the present application.
[0135] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0136] The above is a detailed introduction to a data processing system, electronic device and medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data processing system, characterized in that: Including clock unit, data collection layer, data processing layer and result output layer, The clock unit is used to periodically send data refresh signals to the data collection layer, data processing layer and result output layer according to the preset data refresh cycle; A data collection layer, for receiving the data refresh signal, and in response to the data refresh signal, obtaining an initial data block with a timestamp within a first data refresh period from the vehicle data of a preset data source and storing the data block in a preset first data pool, wherein the first data refresh period is a time period corresponding to the data refresh signal to which the data collection layer responds, and the preset data refresh period is less than a push period of the vehicle data; A data processing layer, configured to receive the data refresh signal, and in response to the data refresh signal, obtain an initial data block whose timestamp is within a second data refresh period from the first data pool and process it to obtain a processed data block, and store the processed data block in a preset second data pool, wherein the second data refresh period is a data refresh period previous to the first data refresh period; The result output layer is used to receive the data refresh signal, and in response to the data refresh signal, obtain and output the processed data block whose timestamp is within the third data refresh cycle from the second data pool, wherein the third data refresh cycle is the previous data refresh cycle of the second data refresh cycle.
2. The data processing system according to claim 1, characterized in that The data refresh signal includes a refresh signal and a sending time point of the refresh signal; The data collection layer is used to: receiving the data refresh signal, and caching the data refresh signal in a preset cache area; When the data collection layer is in an idle state, obtaining the data refresh signal from the cache area, and obtaining a sending time point of the refresh signal in the data refresh signal; If the difference between the sending time point of the refresh signal and the current time point is less than a preset difference, responding to the data refresh signal; If the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtaining the next data refresh signal from the cache area; The data processing layer is used to: receiving the data refresh signal, and caching the data refresh signal in a preset cache area; When the data processing layer is in an idle state, obtaining the data refresh signal from the cache area, and obtaining a sending time point of the refresh signal in the data refresh signal; If the difference between the sending time point of the refresh signal and the current time point is less than a preset difference, responding to the data refresh signal; If the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, obtaining the next data refresh signal from the cache area; The resulting output layer is used to: receiving the data refresh signal, and caching the data refresh signal in a preset cache area; When the result output layer is in an idle state, obtaining the data refresh signal from the cache area, and obtaining a sending time point of the refresh signal in the data refresh signal; If the difference between the sending time point of the refresh signal and the current time point is less than a preset difference, responding to the data refresh signal; If the difference between the sending time point of the refresh signal and the current time point is greater than or equal to the preset difference, the next data refresh signal is obtained from the cache area.
3. The data processing system according to claim 1, wherein: When the data collection layer fails to execute the operation in response to the data refresh signal, the data collection layer issues a first prompt message and waits for the next data refresh signal; When the data processing layer fails to execute the operation in response to the data refresh signal, the data processing layer issues a second prompt message and waits for the next data refresh signal; When the operation execution of the result output layer in response to the data refresh signal fails, the result output layer issues a third prompt message and waits for the next data refresh signal.
4. The data processing system according to claim 1, wherein: The vehicle data includes multiple different types of data, and the step of obtaining an initial data block with a timestamp within a first data refresh cycle from the vehicle data of a preset data source includes: A plurality of data slices whose timestamps fall within the first data refresh period are obtained from vehicle data of a preset data source, and the plurality of data slices constitute an initial data block, wherein the data slices include different types of data with the same timestamp.
5. The data processing system according to claim 4, characterized in that The step of acquiring an initial data block whose timestamp is within the second data refresh cycle from the first data pool and processing the initial data block to obtain a processed data block includes: Acquire an initial data block whose timestamp is within the second data refresh cycle, perform a preset operation based on different data in the initial data block, obtain an operation result, use the operation result as a processed data block, or combine the operation result with part or all of the vehicle data to obtain a processed data block.
6. The data processing system according to claim 4, characterized in that The vehicle data includes first sensor data sent to the autonomous driving system, second sensor data sent to the evaluation system, and a driving control signal output by the autonomous driving system. The initial data block whose timestamp is within the second data refresh period is obtained from the first data pool and processed to obtain a processed data block, including: An initial data block with a timestamp within a second data refresh cycle is obtained, an expected control signal of the autonomous driving system is obtained based on the second sensor data in the initial data block, an evaluation result is obtained based on the expected control signal and a driving control signal output by the autonomous driving system, and the evaluation result is used as a processed data block, or the evaluation result is combined with part or all of the vehicle data to obtain a processed data block.
7. The data processing system according to claim 1, wherein: The step of obtaining from the second data pool a processed data block whose timestamp is within a third data refresh period and outputting the data block comprises: Acquire a processed data block whose timestamp is within a third data refresh period from the second data pool; In a processed data block whose timestamp is within a third data refresh cycle, determining that the data type is a first data type and multiple frames of data have different timestamps; Among multiple frames of data whose data type is the first data type and has different time stamps, first data having a maximum value of the time stamp is determined and outputted.
8. The data processing system according to claim 4, characterized in that The step of acquiring an initial data block with a timestamp within the second data refresh period from the first data pool and processing the initial data block to obtain a processed data block further includes: In a data block whose timestamp is within a second data refresh period, determining that the data type is the second data type and multiple frames of data have different timestamps; Based on multiple frames of data whose data type is the second data type and has different timestamps, change information of data of the second data type is determined, and the processed data block also includes the change information of data of the second data type.
9. An electronic device, characterized in that: A data processing system comprising any one of claims 1 to 8.
Citation Information
Patent Citations
Real-time image processing system and method
CN102932635A
Driving risk analysis and risk data sending method and device
CN107749193A
Vehicle data processing method and device, equipment and storage medium
CN114741203A
Batch QR code real-time extraction method and system
CN115017931A
Vehicle data acquisition and processing device
CN116224871A
