A data re-injection method, device, equipment and medium

By performing time synchronization and timing control of the host computer and the auxiliary driving chip in the ADAS system, the timing control and synchronization problems in data feedback are solved, high-precision data feedback and algorithm verification are achieved, and the real vehicle scene and feedback are ensured. Fill the scene with consistency.

CN118484401BActive Publication Date: 2024-10-18CHINA FAW CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410924640.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-18
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

In the field of advanced driver assistance systems (ADAS), existing data recirculation technology is difficult to achieve high-precision timing control and time synchronization, resulting in inconsistent algorithm perception results in real vehicle scenarios and recirculation scenarios, making it impossible to effectively verify the algorithm optimization effect.

Method used

By initializing the auxiliary driving chip, the time synchronization between the host computer and the auxiliary driving chip is achieved, and sensing data is obtained and sent within the specified time window to ensure that the data refeeding process is within the same clock source, and timing tasks and time window mechanisms are used for timing control. Record and compare the algorithm perception results to verify the recharge effect.

Benefits of technology

It achieves timing accuracy and high-precision time synchronization during the data refeeding process, ensuring the consistency between the actual vehicle scene and the refeeding scenario, effectively verifying the algorithm optimization effect, and improving the accuracy and reliability of data refeeding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484401B_ABST
    Figure CN118484401B_ABST
Patent Text Reader

Abstract

The present invention discloses a data re-injection method, device, equipment and medium. The method includes: initializing an auxiliary driving chip; the initialization includes time synchronization; obtaining the current system time when a scheduled task is triggered; determining a first time window according to the current system time; obtaining the perception data within the first time window from a perception re-injection data set; sending the perception data to the auxiliary driving chip to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and sending the algorithm perception result to a safety control unit and a host computer; recording the algorithm perception result, and returning to execute obtaining the current system time when a scheduled task is triggered, until the perception data in the perception re-injection data set is sent. The embodiment of the present invention can realize accurate timing data re-injection and quickly verify the re-injection effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle testing and verification, and in particular to a data re-injection method, device, equipment and medium. Background Art

[0002] In the field of advanced driver assistance systems (ADAS), data re-injection is often used to replicate real-car scenarios in the laboratory, making it easier for algorithm researchers to debug and verify algorithm results, and reducing the inefficiency of repeated real-car verification. The key issue of data re-injection is how to restore the real-car scenario with high precision, so that the algorithm perception results collected by the real car are consistent with the algorithm perception results in the re-injection scenario, so as to objectively reflect the optimization results of the algorithm. A data re-injection system is usually used in the data re-injection process. The system consists of a domain controller (ADAS Domain Controller) and a host computer (PC). The intelligent driving domain controller is composed of an assisted driving chip (System on Chip, SoC) and a safety control unit (Safety MCU).

[0003] In the prior art, the host computer stores the perception re-injection data set, and the perception data in the perception re-injection data set covers all professional signals required for the perception process, including but not limited to: camera images, radar signals, vehicle body signals, etc. The re-injection process in the host computer time-aligns the professional signals in the perception data and sends them directly to the perception process in the auxiliary driving chip.

[0004] In this process, there are several problems. First, the host computer and the assisted driving chip do not have the same clock source, so even if the time is synchronized, there will inevitably be errors. Second, it is difficult for the host computer to perform high-precision timing control on the professional signals being sent. Third, it is impossible to verify the optimization effect of the perception algorithm before and after the feedback. Summary of the invention

[0005] The present invention provides a data re-injection method, device, equipment and medium to achieve accurate timing data re-injection and quickly verify the re-injection effect.

[0006] According to one aspect of the present invention, there is provided a data re-injection method, comprising:

[0007] Initializing the auxiliary driving chip; the initialization includes time synchronization;

[0008] Get the current system time when the scheduled task is triggered;

[0009] Determine a first time window according to the current system time;

[0010] Acquire the perception data within the first time window from the perception recharge data set;

[0011] Sending the perception data to the auxiliary driving chip to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and sending the algorithm perception result to the safety control unit and the host computer;

[0012] The algorithm perception result is recorded, and the execution is returned to obtain the current system time when the scheduled task is triggered, until the perception data in the perception re-injection data set is sent.

[0013] According to another aspect of the present invention, a data re-injection method and device is provided, comprising:

[0014] An initialization module, used to initialize the auxiliary driving chip; the initialization includes time synchronization;

[0015] The timing response module is used to obtain the current system time when the timing task is triggered;

[0016] A window determination module, configured to determine a first time window according to the current system time;

[0017] A data acquisition module, used to acquire the perception data within the first time window from the perception recharge data set;

[0018] A data sending module, used to send the perception data to the auxiliary driving chip, to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and to send the algorithm perception result to the safety control unit and the host computer;

[0019] The result rendering module is used to record the algorithm perception result and return to execute to obtain the current system time when the scheduled task is triggered until the perception data in the perception re-injection data set is sent.

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

[0021] at least one processor; and

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

[0023] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data re-injection method described in any embodiment of the present invention.

[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data recharge method described in any embodiment of the present invention when executed.

[0025] The embodiment of the present invention synchronizes the time of the host computer and the auxiliary driving chip through the timing service, so that the process of data being fed back from the host computer to the auxiliary driving chip is within the same clock source; by acquiring the perception data within the specified time window, a certain degree of timing control of the data to be fed back is achieved; by revisiting and comparing the recording results, the feeding effect can be verified with high precision.

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

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1A is a flow chart of a data re-injection method provided according to an embodiment of the present invention;

[0029] Figure 1B is a software architecture diagram of a data re-injection system provided according to an embodiment of the present invention;

[0030] Figure 2A is a flow chart of a data re-injection method provided according to another embodiment of the present invention;

[0031] Figure 2B is a schematic diagram of a data re-injection and verification process according to another embodiment of the present invention;

[0032] Figure 3 is a structural schematic diagram of a data re-injection method provided according to another embodiment of the present invention;

[0033] Figure 4 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] Before introducing the embodiments of the present invention, some related related technologies are briefly described:

[0037] Some related technologies describe a complete data reinjection solution and also mention that a data time synchronization method is provided to restore the actual vehicle scenario. However, the time synchronization method may have practical problems such as errors in time synchronization between end-to-end and low control accuracy of the reinjection moment.

[0038] Some related technologies talk about the importance of data time synchronization during the reinjection process, but solving this problem from the perspective of data acquisition and reading, or even storing signal data in the corresponding image frame data, may not be universal.

[0039] Some related technologies involve data synchronization during the reinjection process and data slicing according to a set time length, but do not involve the timing control process.

[0040] Some related technologies make up for the difference in computing power between the re-injection platform and the actual vehicle environment by proposing the expected inference time, but the inference process undoubtedly increases the complexity of re-injection.

[0041] Some related technologies also perform time synchronization processing on the reinjected data, but the processing method uses chip control, which is complex and requires high packaging.

[0042] To sum up, in order to improve the consistency between the intelligent driving recharge scenario and the real vehicle scenario, it is still necessary to focus on the time synchronization method of the recharge data and the timing control of the recharge data injection, which is also the core content of the present invention.

[0043] Figure 1AThis is a flow chart of a data re-injection method provided by an embodiment of the present invention. This embodiment is applicable to the case where a host computer re-injects perception data into an intelligent driving chip according to a pre-prepared perception re-injection data set. The method can be executed by a data re-injection method device, which can be implemented in the form of hardware and / or software. The device can be configured in an electronic device with corresponding data processing capabilities, such as a host computer of a data re-injection system. Figure 1A As shown, the method includes:

[0044] S110, initializing the auxiliary driving chip;

[0045] S120. Obtain the current system time when the scheduled task is triggered.

[0046] S130. Determine a first time window according to the current system time.

[0047] S140: Acquire the perception data within the first time window from the perception recharge data set.

[0048] S150: Sending the perception data to the auxiliary driving chip to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and sending the algorithm perception result to the safety control unit and the host computer.

[0049] S160, recording the algorithm perception result, and returning to execute to obtain the current system time when the scheduled task is triggered, until the perception data in the perception recharging data set is sent.

[0050] The initialization includes time synchronization. The present invention improves the system software level as follows: Figure 1B As shown in the figure, improvements have been made to the human-machine interface (HMI) software of the host computer, while retaining its feedback module, a new acquisition and display module has been added; for the auxiliary driving chip, in addition to the perception process, a forwarding process and a human-machine interface board process have been newly deployed, and the regulation and control process has been retained in the safety control unit.

[0051] Specifically, the host computer initializes the auxiliary driving chip and the perception feedback data set respectively. For the former, the host computer mainly sends a time synchronization message to the auxiliary driving chip to synchronize the clock sources of the two; for the latter, it mainly adjusts the data format of the perception backtracking data set so that the perception data within the specified time window can be quickly and accurately obtained from it later.

[0052] The backtracking module starts a scheduled task. When the scheduled task is reached, the first time window in which the perception data needs to be sent for this scheduled task is determined based on the current system time, and the perception data with a timestamp within the first time window is obtained from the perception backtracking data set, and the perception data is sent to the forwarding process.

[0053] The forwarding process starts the timer and receives the perception data. When the local time arrives, the perception data that meets the local time requirements is input to the perception process. The perception process perceives the input perception data according to the preset algorithm, obtains the algorithm perception result, and sends the algorithm perception result to the human-machine interface board process.

[0054] The human-machine interface board process sends the algorithm perception results to the regulation and control process and the acquisition and display module at the same time. The regulation and control process outputs the corresponding vehicle control instructions based on the algorithm perception results and the bus data received from the recharging module.

[0055] The acquisition and display module renders and records the algorithm perception results in real time, and plays back and compares the recorded results with the actual perception data before re-injection, comparing whether the perception results of the same moment and the same screen are consistent, so that it can check in real time whether the re-injection results are valid, and verify the optimization effect of the algorithm before and after re-injection. Further algorithm debugging and analysis can also be performed through the recorded data packets.

[0056] The re-injection module will re-acquire the current system time when the next scheduled task is triggered, and continue this process until all the perception data in the perception re-injection data set have been re-injected into the forwarding process and the scheduled task ends.

[0057] The embodiment of the present invention synchronizes the time of the host computer and the auxiliary driving chip through the timing service, so that the process of data being fed back from the host computer to the auxiliary driving chip is within the same clock source; by acquiring the perception data within the specified time window, a certain degree of timing control of the data to be fed back is achieved; by revisiting and comparing the recording results, the feeding effect can be verified with high precision.

[0058] Optionally, the initializing the auxiliary driving chip includes:

[0059] Using the host computer as a clock source, sending a time synchronization message to the auxiliary driving chip to instruct the auxiliary driving chip to perform time synchronization according to the time synchronization message;

[0060] Uploading a calibration file to a designated path of the auxiliary driving chip to instruct the auxiliary driving chip to replicate the actual vehicle calibration parameters according to the calibration file;

[0061] A restart instruction is sent to the auxiliary driving chip to instruct the auxiliary driving chip to restart according to the restart instruction.

[0062] Specifically, the recharging module starts the timing service and sends a time synchronization message to the intelligent driving chip to achieve time synchronization between the host computer and the intelligent driving chip. The recharging module sets the current system time to the time of the first frame of the perception recharging data set minus the preset startup time (such as 30s). The stored calibration file is exported from the offline data packet and uploaded to the specified path of the intelligent driving chip to replicate the actual vehicle calibration parameters. The recharging module sends a restart command to the intelligent driving chip to restart the operating system of the intelligent driving chip. After the intelligent driving chip is successfully restarted, the recharging module restarts the perception process and the human-machine interface board process through remote commands.

[0063] Optionally, determining the first time window according to the current system time includes:

[0064] The sum of the current system time and the preset preparation time is determined as the end point of the first time window; the preset time interval is used as the window length, and the first time window is determined according to the first time window end point and the window length.

[0065] The duration of the preset time interval is greater than the timing period of the scheduled task.

[0066] Specifically, taking the timing cycle of 10ms and the current system time Tnow as an example, the existing re-injection solution will send data within the time window [Tnow, Tnow+10] when the timing task arrives, and then each timed task t+=10. However, in actual environments, software timers often have problems that cause the timing cycle to be unstable and may not accurately maintain 10ms; and there are special cases where the sending task takes more than 10ms. This means that each timed task is triggered, it is not a stable interval of 10ms, resulting in unstable timing control of data re-injection.

[0067] To this end, the present invention can determine the first time window as [Tnow-T, Tnow] according to the preset interval time T (for example, 30ms) and the current system time Tnow. The recharge module sends the recharge data in the [Tnow-T, Tnow] window. In this way, even if the timing task trigger interval exceeds the timing task interval (for example, 10ms), the [Tnow-T, Tnow] window can still cover the unsent data in the actual environment and keep the time synchronization error within the T range, meeting the actual requirements.

[0068] Figure 2A This is a flow chart of a data re-injection method provided by another embodiment of the present invention. This embodiment is optimized and improved on the basis of the above embodiment. Figure 2A As shown, the method includes:

[0069] S210, initializing the auxiliary driving chip; obtaining the current system time when the scheduled task is triggered.

[0070] S220. Time synchronization of the bus recharge data set is performed according to the sensed recharge data set.

[0071] S230: Determine the sum of the current system time and the preset preparation time as the end point of the first time window; use the preset time interval as the window length, and determine the first time window according to the first time window end point and the window length.

[0072] The duration of the preset time interval is greater than the timing period of the scheduled task.

[0073] Specifically, in an experimental environment that requires high-precision time, even if the host computer synchronizes the time with the intelligent driving chip through the timing service, there will be millisecond-level clock errors. Considering this situation, the present invention can also perform further high-precision timing control. The re-injection process will send a message with a preset preparation time Δt in advance, that is, at the current system time Tnow, the first time window for sending perception data is [Tnow+Δt-T, Tnow+Δt]. Since the forwarding process receives the perception data of the future Δt time, it can prepare in advance and completely eliminate the time synchronization error between the host computer and the intelligent driving chip.

[0074] S240. Determine a target index corresponding to the time in the first time window according to the time index key-value pair of the perception recharge data set; and obtain perception data from the perception recharge data set according to the target index.

[0075] Specifically, the timestamps and data indexes of different frames of different professional signals in the offline data packet are obtained, and a data set is constructed in the format of <time, index> key-value pairs to complete the initialization of the data set. When the data within the specified time window is subsequently obtained, the data set can be traversed to find the target index of the data frame with the timestamp within the specified time window. The data frame extracted from the perception recharge data set based on the target index is the perception data within the specified time window. Through the recharge data set with a custom data format, the data within the corresponding time range can be quickly obtained with a time complexity of O(1) according to the specified time window [t1, t2]. Compared with the existing technology, the description of the time synchronization of the recharge data is more accurate and the implementation is more refined; at the same time, these methods can record the index position of the currently sent data. Even if the time windows of two scheduled tasks overlap, the error of repeated data transmission will not occur, and precise control can be achieved to ensure that the same data in the data set will not be sent repeatedly in different scheduled tasks.

[0076] S250: Sending the perception data to the auxiliary driving chip to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and sending the algorithm perception result to the safety control unit and the host computer.

[0077] S260, determining the current system time as the end point of the second time window; taking a preset time interval as the window length, and determining the second time window according to the end point of the second time window and the window length;

[0078] S270, acquiring bus data within the second time window from the time-synchronized bus recharge data set;

[0079] The bus data is sent to the safety control unit to instruct the safety control unit to output a vehicle control instruction according to the bus data and the algorithm perception result.

[0080] Among them, the bus data is the body backbone network data collected by the vehicle bus (CAN).

[0081] Specifically, in addition to the feedback verification of the perception algorithm, the present invention also covers the final closed loop of the perception output data + bus data further feedback to the intelligent driving domain controller. The bus data itself only records the relative time, the time increment from the start of recording to the current time, and there is no absolute time. Therefore, the present invention needs to first time-align the perception feedback data set and the bus feedback data set so that each bus data frame in the bus feedback data set corresponds to an absolute time.

[0082] After time alignment, the bus data frame is initialized using the same initialization method as the perception recharge data set. The recharge module traverses the bus recharge data set, finds the bus data within the second time window [Tnow-T, Tnow], and transmits it to the control process of the safety control unit, simulating the scenario in which the perception output signal + bus signal are simultaneously transmitted to the safety control unit in the real vehicle environment, and realizing the recharge of the safety control unit in the high-order replication driving scenario. In addition, obtaining the bus data in the second time window from the bus recharge data set is also achieved through the time index key-value pair of the bus recharge data set. This process has been specifically described in other embodiments and will not be repeated here.

[0083] Optionally, the performing time synchronization on the bus recharge data set according to the sensed recharge data set includes:

[0084] Obtaining the target absolute time and target relative time of the data frame in which the sensing data and the bus data characteristic signals are consistent in the sensing recharge data set;

[0085] For each bus data frame to be synchronized in the bus recharge data set, obtaining the current relative time of the bus data frame to be synchronized;

[0086] The sum of the current relative time and the target absolute time is calculated, and the difference between the current relative time and the target relative time is determined as the absolute time of the bus data frame to be synchronized.

[0087] The characteristic signal is a vehicle signal that is difficult to collect repeated values ​​at different times. It can be a four-wheel pulse signal, which includes pulse data of the four wheels of the left front, left rear, right front and right rear. The four-wheel pulse data changes sensitively during vehicle driving and is difficult to repeat at the same time.

[0088] Specifically, the perception data itself is connected to a small amount of bus data and the absolute time of these buses is assigned. When the vehicle is in motion, the data frame with completely consistent characteristic signal content of the perception data and bus data in the perception feedback data set is found. Assume that the target absolute time of the perception data in the data frame is Ts, and the target relative time of the bus data at this time is Tc. Then, for any bus data frame in the bus feedback data set, if its current relative time is Tc', its absolute time after alignment is equal to Ts+Tc'-Tc.

[0089] S280, recording the algorithm perception result, and returning to execute to obtain the current system time when the scheduled task is triggered, until the perception data in the perception recharge data set is sent.

[0090] Exemplary, reference Figure 2B , a specific recharge process is as follows:

[0091] S1: Enable the timing service on the HMI feedback module on the PC side to achieve time synchronization between the PC side and the SoC side.

[0092] S2: The HMI recharge module on the PC initializes the perception recharge data set.

[0093] S3: The HMI recharge module on the PC side time-aligns the bus recharge data set with the sensor recharge data set, and initializes the bus recharge data set.

[0094] S4: The HMI recharge module on the PC side sets the current system time to the timestamp of the first frame of the recharge data set minus 30 seconds;

[0095] S5: Export the stored calibration file from the offline data package, upload it to the specified path on the SoC end, and copy the actual vehicle calibration parameters;

[0096] S6: The HMI recharge module on the PC restarts the SoC operating system through remote commands;

[0097] S7: After the SoC is successfully restarted, the HMI re-injection module on the PC uses remote instructions to restart the SoC perception process and the HMI board process;

[0098] S8: After 30 seconds, the HMI recharge module on the PC starts the scheduled task with a period of 10ms.

[0099] S9: The HMI re-injection module on the PC side executes the scheduled task and obtains the current system time Tnow;

[0100] S10: The HMI recharge module on the PC traverses the recharge data set on the SoC, finds the sensing data within the time window [Tnow+ΔT-T, Tnow+ΔT], transmits it to the forwarding process on the SoC via Ethernet, and updates the sent index position;

[0101] S11: The HMI recharge module on the PC traverses the bus recharge data set, finds the bus data within the time window [Tnow-T, Tnow], writes it into the Can card in CanFD format and transmits it to the MCU, and updates the sent index position;

[0102] S12: PC-side HMI recharging module timing cycle S9-S11;

[0103] S13: The forwarding process on the SoC side obtains the perception data in advance and forwards it to the perception process through the middleware at a certain time.

[0104] S14: The perception process transmits the algorithm perception results to the HMI board process and MCU. The MCU simultaneously obtains the time-synchronized algorithm perception results and bus data and outputs vehicle control instructions.

[0105] S15: The HMI board-side process transmits the data to the PC-side HMI via Ethernet to collect and display the sensing results, thus completing the sensing verification loop.

[0106] The embodiment of the present invention realizes synchronous recharging of the safety control unit and the intelligent driving chip by aligning the time of the bus recharging data set and sending the bus data source to the regulation and control process.

[0107] Figure 3 A structural diagram of a data re-injection method and device provided by another embodiment of the present invention. Figure 3 As shown, the device comprises:

[0108] An initialization module 310 is used to initialize the auxiliary driving chip; the initialization includes time synchronization;

[0109] The timing response module 320 is used to obtain the current system time when the timing task is triggered;

[0110] A window determination module 330, configured to determine a first time window according to the current system time;

[0111] A data acquisition module 340, configured to acquire the perception data within the first time window from the perception recharge data set;

[0112] A data sending module 350 is used to send the perception data to the auxiliary driving chip, to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and to send the algorithm perception result to the safety control unit and the host computer;

[0113] The result rendering module 360 ​​is used to record the algorithm perception result and return to execute to obtain the current system time when the scheduled task is triggered until the perception data in the perception re-injection data set is sent.

[0114] The data re-injection method device provided in the embodiment of the present invention can execute the data re-injection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0115] Optionally, the timing response module 320 is specifically used to: determine the sum of the current system time and the preset preparation time as the end point of the first time window; use the preset time interval as the window length, and determine the first time window according to the first time window end point and the window length.

[0116] Optionally, the timing response module 320 is specifically used to: determine the current system time as the end point of the first time window; use a preset time interval as the window length, and determine the first time window according to the first time window end point and the window length.

[0117] Optionally, the data acquisition module 340 includes:

[0118] An index determination unit, configured to determine a target index corresponding to a time in the first time window according to a time index key-value pair of the perception recharge data set;

[0119] A data acquisition unit is used to acquire perception data from the perception recharge data set according to the target index.

[0120] Optionally, the method further includes:

[0121] A time synchronization module, used for performing time synchronization on a bus recharge data set according to the sensing recharge data set;

[0122] An endpoint determination module, used to determine the current system time as the endpoint of the second time window;

[0123] A window positioning module, configured to determine the second time window according to the second time window end point and the window length, with a preset time interval as the window length;

[0124] A data extraction module, used to obtain bus data within the second time window from the time-synchronized bus recharge data set;

[0125] A data sending module is used to send the bus data to the safety control unit, and to instruct the safety control unit to output a vehicle control instruction according to the bus data and the algorithm perception result.

[0126] Optionally, the time synchronization module is specifically used to: obtain the target absolute time and target relative time of the data frame in the perception feedback data set whose perception data and bus data characteristic signals are consistent; for each bus data frame in the bus feedback data set, obtain the current relative time of the bus data frame; calculate the time sum of the current relative time and the target absolute time, and determine the time and the difference with the target relative time as the absolute time of the bus data frame.

[0127] Optionally, the initialization module 310 is specifically used to: use the host computer as the clock source, send a time synchronization message to the auxiliary driving chip, used to instruct the auxiliary driving chip to perform time synchronization according to the time synchronization message; upload a calibration file to a specified path of the auxiliary driving chip, used to instruct the auxiliary driving chip to replicate the actual vehicle calibration parameters according to the calibration file; send a restart instruction to the auxiliary driving chip, used to instruct the auxiliary driving chip to restart according to the restart instruction.

[0128] The data re-injection method device further described can also execute the data re-injection method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

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

[0130] like Figure 4As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0131] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0132] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as the data re-injection method.

[0133] In some embodiments, the data refill method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the data refill method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the data refill method in any other appropriate manner (e.g., by means of firmware).

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

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

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

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

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

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

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

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

Claims

1. A data re-injection method, characterized in that: Applied to a host computer, the method includes: Initializing the auxiliary driving chip; the initialization includes time synchronization; Get the current system time when the scheduled task is triggered; Determine a first time window according to the current system time; Acquire the perception data within the first time window from the perception recharge data set; Sending the perception data to the auxiliary driving chip to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and sending the algorithm perception result to the safety control unit and the host computer; Record the algorithm perception results, and return to execute to obtain the current system time when the scheduled task is triggered, until the perception data in the perception recharge data set is sent; Wherein, determining the first time window according to the current system time includes: Determine the sum of the current system time and the preset preparation time as the end point of the first time window; Taking a preset time interval as the window length, determining the first time window according to the first time window end point and the window length; the duration of the preset time interval is greater than the timing period of the timing task; Wherein, determining the first time window according to the current system time further includes: Determine the current system time as the end point of the first time window; Taking a preset time interval as a window length, determining the first time window according to the first time window end point and the window length; Wherein, the initialization of the auxiliary driving chip includes: Using the host computer as a clock source, sending a time synchronization message to the auxiliary driving chip to instruct the auxiliary driving chip to perform time synchronization according to the time synchronization message; Uploading a calibration file to a designated path of the auxiliary driving chip to instruct the auxiliary driving chip to replicate the actual vehicle calibration parameters according to the calibration file; A restart instruction is sent to the auxiliary driving chip to instruct the auxiliary driving chip to restart according to the restart instruction.

2. The method according to claim 1, characterized in that The acquiring the perception data within the first time window from the perception recharge data set includes: Determine a target index corresponding to the time in the first time window according to the time index key-value pair of the perception recharge data set; Acquire perception data from the perception recharge data set according to the target index.

3. The method according to claim 1, characterized in that: The method further comprises: Performing time synchronization on the bus recharge data set according to the sensing recharge data set; Correspondingly, after obtaining the current system time when the scheduled task is triggered, the following steps are also included: Determine the current system time as the end point of the second time window; Taking a preset time interval as a window length, determining the second time window according to the second time window end point and the window length; Acquire bus data within the second time window from the time-synchronized bus recharge data set; The bus data is sent to the safety control unit to instruct the safety control unit to output a vehicle control instruction according to the bus data and the algorithm perception result.

4. The method according to claim 3, characterized in that The time synchronization of the bus recharge data set according to the sensed recharge data set comprises: Obtaining the target absolute time and target relative time of the data frame in which the sensing data and the bus data characteristic signals are consistent in the sensing recharge data set; For each bus data frame in the bus recharge data set, obtaining the current relative time of the bus data frame; The sum of the current relative time and the target absolute time is calculated, and the difference between the current relative time and the target relative time is determined as the absolute time of the bus data frame.

5. A data re-injection method and device, characterized in that: Deployed on a host computer, the device includes: An initialization module, used to initialize the auxiliary driving chip; the initialization includes time synchronization; The timing response module is used to obtain the current system time when the timing task is triggered; A window determination module, configured to determine a first time window according to the current system time; A data acquisition module, used to acquire the perception data within the first time window from the perception recharge data set; A data sending module, used to send the perception data to the auxiliary driving chip, to instruct the auxiliary driving chip to perform algorithm perception according to the perception data, and to send the algorithm perception result to the safety control unit and the host computer; A result rendering module is used to record the perception results of the algorithm and return to execute to obtain the current system time when the scheduled task is triggered until the perception data in the perception re-injection data set is sent; The timing response module is specifically used to: determine the sum of the current system time and the preset preparation time as the end point of the first time window; use the preset time interval as the window length, and determine the first time window according to the first time window end point and the window length; the duration of the preset time interval is greater than the timing period of the timing task; The timing response module is further specifically used to: determine the current system time as the end point of the first time window; use a preset time interval as the window length, and determine the first time window according to the first time window end point and the window length; Among them, the initialization module is specifically used to: use the host computer as the clock source, send a time synchronization message to the auxiliary driving chip, used to instruct the auxiliary driving chip to perform time synchronization according to the time synchronization message; upload a calibration file to the specified path of the auxiliary driving chip, used to instruct the auxiliary driving chip to replicate the actual vehicle calibration parameters according to the calibration file; send a restart instruction to the auxiliary driving chip, used to instruct the auxiliary driving chip to restart according to the restart instruction.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data re-injection method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data re-injection method according to any one of claims 1 to 4 when executed.

Citation Information

Patent Citations

  • Perception system test data recharging device and method and readable storage medium

    CN115729743A

  • Data recharging method and device, electronic equipment and storage medium

    CN117201228A