LiDAR Chip and LiDAR
By introducing a functional processing system and a safety management system into the lidar chip, it ensures that abnormal signals are output independently when the chip is abnormal, solving the problem that the lidar chip cannot be uploaded due to abnormality, improving the safety and stability of the system, and ensuring personal safety. .
Patent Information
- Application Number
- CN202410824936.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In the fields of smart transportation and autonomous driving, lidar chips cannot effectively upload abnormal signals when they are abnormal, causing safety hazards and affecting the stable operation of vehicles and personal safety.
A lidar chip is designed, including a functional processing system and a safety management system. Through decoupling modules and independent power supply and clock, it is ensured that when the chip is abnormal, the safety management system can operate independently and output abnormal signals to external devices, reducing Safety hazard.
It effectively ensures the stable operation of external equipment, reduces safety hazards, and ensures personal safety. Through an independent security management system, it maintains normal operation when the chip is abnormal and uploads abnormal information in a timely manner.
Smart Images

Figure CN118409298B
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser radar technology, and in particular to a laser radar chip and a laser radar. Background Art
[0002] In the fields of smart transportation / autonomous driving, the key point is to quickly and accurately perceive the surrounding environment of the road / autonomous driving vehicle. According to the road, vehicle position and obstacle information obtained by the sensor equipment, the road signal control is coordinated to improve the quality and efficiency of road management; the decision-making of the autonomous driving vehicle is controlled, and the safe distance between the autonomous driving vehicles is adjusted to ensure that the vehicle can drive safely and reliably on the road. As one of the most important autonomous driving sensors, LiDAR can provide the decision-making system with the most important information about the location / size / motion of traffic participants in the fields of smart transportation / autonomous driving. It is precisely because LiDAR is the eyes of the autonomous driving vehicle that how to protect the security of LiDAR data collection and transmission is particularly important, which is directly related to the life safety of the driver and passengers of the vehicle. Summary of the invention
[0003] The embodiments of the present application provide a laser radar chip and a laser radar, which can upload abnormal signals to external devices with a greater probability when an abnormality occurs in the laser radar chip, so as to reduce safety hazards and ensure the stable operation of the external equipment, thereby effectively protecting personal safety.
[0004] In a first aspect, an embodiment of the present application provides a laser radar chip, comprising: a function processing system, configured to implement and detect a first part of functions, and output a first detection result, wherein the function processing system comprises a first data bus; a safety management system, configured to detect a second part of functions, obtain a second detection result, and configured to obtain the first detection result and, when it is determined based on the first detection result and the second detection result that the first part of functions and / or the second part of functions are abnormal, output an abnormality signal to an external device based on at least part of the abnormal functions; wherein the safety management system comprises a decoupling module and a second data bus, wherein the decoupling module is arranged between the first data bus and the second data bus to decouple the first data bus from the second data bus, and the power supply and clock of the function processing system and the safety management system are different.
[0005] In some embodiments, the security management system includes a function detection module, a security management module and a safety island; the function detection module is configured to detect the second part of the functions and output the second detection result to the security management module; the security management module is configured to receive the first detection result and the second detection result, and determine the abnormal functions in the first part of the functions and the second part of the functions based on the first detection result and the second detection result, and determine an interrupt based on each abnormal function to determine M interrupts based on M abnormal functions, and output N of the M interrupts to the safety island, wherein M and N are both integers and M≥N≥1; the safety island is configured to determine N abnormal functions corresponding to N interrupts, and output abnormal signals to external devices based on at least some of the N abnormal functions.
[0006] In some embodiments, the function detection module includes: a clock detection unit, configured to detect each clock of the laser radar chip; a power supply detection unit, configured to detect each power supply of the laser radar chip; a memory detection unit, configured to detect the function of each memory of the laser radar chip; and a logic circuit detection unit, configured to detect the function of each logic circuit of the laser radar chip.
[0007] In some embodiments, the safety management module is also configured to: after the laser radar chip is powered on, control the memory detection unit and the logic circuit detection unit to operate; if it is determined that there are no abnormalities in the various memories and various logic circuits of the laser radar chip, control the various circuits in the laser radar chip to start normally; if it is determined that there are abnormalities in the various memories and various logic circuits of the laser radar chip, stop controlling the startup of the various circuits in the laser radar chip.
[0008] In some embodiments, the safety management module is further configured to: after all circuits in the lidar chip are started normally, obtain the first detection result and the second detection result at every preset time interval; and output a corresponding interrupt to the safety island each time it is determined that the first part of the function and / or the second part of the function is abnormal based on the first detection result and the second detection result.
[0009] In some embodiments, the security management module is further configured to: set a priority level for each of the M interrupts, and send N interrupts with the highest priority levels to the security island.
[0010] In some embodiments, the functional processing system includes: a laser transceiver control module, configured to transmit a laser to a target object and receive an echo signal reflected by the target object; a laser test excitation generation module, configured to generate a laser test excitation to the laser transceiver control module so that the laser transceiver control module operates in a test state; a laser test result module, configured to obtain and output a test result when the laser transceiver control module operates in a test state, wherein the first detection result includes the test result when the laser transceiver control module operates in a test state.
[0011] In some embodiments, the functional processing system includes: a point cloud processing module, configured to process point cloud data, wherein the point cloud data is obtained by an echo signal reflected by the target object after emitting a laser to the target object; a point cloud processing test excitation generation module, configured to generate a point cloud processing test excitation to the point cloud processing module, so that the point cloud processing module operates in a test state; a point cloud processing test result module, configured to obtain and output a test result when the point cloud processing module operates in a test state, wherein the first detection result includes the test result when the point cloud processing module operates in a test state.
[0012] In some embodiments, the functional processing system includes: a bus monitoring module, configured to monitor whether the data transmitted by the first data bus is abnormal; a bus error injection module, configured to generate bus error information and inject the bus error information into the bus monitoring module, wherein the bus error information is obtained by simulating the abnormal data transmission of the first data bus; a bus error injection result detection module, configured to obtain and output the detection result of the bus error information injected into the bus monitoring module, wherein the first detection result includes the detection result of the bus error information injected into the bus monitoring module.
[0013] In some embodiments, the functional processing system includes: a memory; a memory injection error module, configured to generate memory error information and inject the memory error information into the storage data of the memory; a check and error correction module, configured to perform check and error correction when the memory error information is injected into the storage data, and send the check result and the error correction result to the security management system, wherein the first detection result includes the check result and the error correction result.
[0014] In a second aspect, an embodiment of the present application provides a laser radar, comprising a shell and the laser radar chip as described above; the laser radar chip is disposed in the shell.
[0015] Compared with the prior art, the laser radar chip of the embodiment of the present application includes a function processing system and a safety management system. The function processing system is configured to implement and detect the first part of the function and output the first detection result, wherein the function processing system includes a first data bus. The safety management system is configured to detect the second part of the function, obtain the second detection result, and is configured to obtain the first detection result and when it is determined based on the first detection result and the second detection result that the first part of the function and / or the second part of the function is abnormal, output an abnormal signal to an external device based on at least part of the abnormal function. Among them, the safety management system includes a decoupling module and a second data bus, the decoupling module is arranged between the first data bus and the second data bus to decouple the first data bus from the second data bus, and the power supply and clock of the function processing system and the safety management system are different. It can be seen that when an abnormality occurs in the laser radar chip, that is, when an abnormality occurs in the corresponding first part of the function and / or the second part of the function, since the power supply and clock of the function processing system and the safety management system are different, and the first data bus in the function processing system and the second data bus in the safety management system are decoupled by the decoupling module, then the safety management system has a greater probability of not being affected by the abnormal function and maintaining normal operation, thereby uploading the abnormal information to the external device with a greater probability, so as to reduce safety hazards, ensure the stable operation of the external equipment, and help to effectively protect personal safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] One or more embodiments are exemplarily described by the figures in the corresponding drawings, and these exemplary descriptions are not intended to limit the embodiments. Elements with the same reference numerals in the drawings represent similar elements.
[0017] Figure 1 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 1 ;
[0018] Figure 2 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 2 ;
[0019] Figure 3 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 3 ;
[0020] Figure 4 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 4 ;
[0021] Figure 5 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 5 ;
[0022] Figure 6 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 6 ;
[0023] Figure 7 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 7 ;
[0024] Figure 8 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 8 ;
[0025] Fig. 9 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 9 ;
[0026] Fig.10 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 10 . DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be described clearly and in detail in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0028] It should be noted that, when an element is described as being “connected to” another element, it may be directly connected to the other element, or one or more intervening elements may exist therebetween.
[0029] In addition, the technical features involved in the various embodiments of the present application described below can be combined with each other as long as there is no structural conflict between them.
[0030] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 1 As shown, the laser radar chip 1000 includes a functional processing system 100 and a safety management system 200 .
[0031] Among them, the function processing system 100 is configured to implement and detect the first part of the functions in the laser radar chip 1000, and output the first detection result. For example, in one embodiment, the first part of the functions includes the function of detecting target object data (such as the distance between the laser radar chip and the location of the target object) by laser, and the function processing module 100 can implement the function based on the pre-set function module. At the same time, the function processing module 100 can also detect the function based on the pre-set detection method and output the corresponding first detection result.
[0032] The functional processing system 100 includes a first data bus 101. A data bus is a set of physical lines or electronic signals for transmitting data. A data bus generally includes three parts: an address bus, a data bus, and a control bus, and is used to transmit addresses, data, and control signals. The first data bus 101 connects the various modules of the functional processing system 100 so that they can communicate with each other and exchange data. The first data bus 101 is also connected to the security management system 200 to enable the various modules of the functional processing system 100 to communicate with each other and exchange data with each other in the security management system 200.
[0033] The safety management system 200 is configured to detect the second part of the functions in the laser radar chip 1000 and obtain a second detection result. For example, in one embodiment, the second part of the functions includes a power supply function, and the safety management system 200 can detect the function based on a pre-set detection method (for example, a detection method for detecting whether the voltage is too high or too low) and output the corresponding second detection result. The safety management system 200 is also configured to obtain the first detection result.
[0034] The security management system 200 is further configured to determine whether the first part of the functions is abnormal based on the first detection result, and determine whether the second part of the functions is abnormal based on the second detection result. The abnormality of the first part of the functions corresponds to the abnormality of some functions or all functions in the first part of the functions; the abnormality of the second part of the functions corresponds to the abnormality of some functions or all functions in the second part of the functions.
[0035] If the security management system 200 determines that the first part of the functions and / or the second part of the functions are abnormal, it outputs an abnormal signal to the external device 2000 based on at least some of the abnormal functions. Specifically, the security management system 200 can output corresponding abnormal signals to the external device 2000 based on all abnormal functions; it can also output abnormal signals to the external device 2000 based on some of the abnormal functions, and handle the other abnormal functions by itself. For example, in a specific embodiment, the security management system 200 determines that there are 3 abnormal functions, and the security management system 200 outputs abnormal signals to the external device 2000 based on the 3 abnormal functions. For another example, in another specific embodiment, the security management system 200 determines that there are 3 abnormal functions, and the security management system 200 outputs corresponding abnormal signals to the external device 2000 based on 2 of the abnormal functions, and handles the other abnormal function by itself.
[0036] In some embodiments, when the laser radar chip 1000 is provided in an electric device (such as an electric vehicle, an electric two-wheeled vehicle, an electric three-wheeled vehicle, etc.), the external device 2000 may be a control device in the electric device. When the external device 2000 receives an abnormal signal, corresponding solutions may be taken in time to reduce safety hazards, ensure the reliable and stable operation of the electric device, and help protect personal safety. For example, in a specific embodiment, the electric device is an electric vehicle, and upon receiving an abnormal signal, the electric vehicle may be controlled to stop running the automatic driving function in time to protect the life safety of the driver and passengers of the vehicle.
[0037] The safety management system 200 includes a decoupling module 201 and a second data bus 202. The second data bus 202 connects the modules of the safety management system 200 so that they can communicate and exchange data with each other. The second data bus 202 is also connected to the function processing system 100 to realize the mutual communication and data exchange between the modules of the function processing system 100 and the modules in the safety management system 200. The decoupling module 201 is arranged between the first data bus 101 and the second data bus 102 to decouple the first data bus 101 from the second data bus 102. By decoupling the first data bus 101 from the second data bus 102, the first data bus 101 and the second data bus 102 can be independently operated while realizing data transmission without being affected by each other. Thus, when an abnormality occurs in the first data bus 101, it will not cause an abnormality in the second data bus 102, so as to keep the normal operation of the second data bus 102 as much as possible.
[0038] The power supply and clock of the function processing system 100 are different from those of the safety management system 200. It can be seen that the safety management system 200 is a relatively independent system. When an abnormality occurs in the laser radar chip, that is, when an abnormality occurs in the corresponding first part of the function and / or the second part of the function, based on the independence of the safety management system 200, the safety management system 200 has a greater probability of not being affected by the abnormal function and maintaining normal operation, and can upload the abnormal information to the external device 2000 with a greater probability, so that the external device 2000 can promptly determine that the laser radar chip has an abnormality and take corresponding solutions, thereby reducing safety hazards, ensuring the stable operation of the external device 2000, and effectively protecting personal safety.
[0039] In one embodiment, if Figure 2 As shown, the security management system 200 includes a security management module 203 , a function detection module 204 and a safety island 205 .
[0040] The function detection module 204 is configured to detect the second part of functions and output a second detection result to the security management module 203. In some embodiments, the function detection module 204 is also configured to be controlled by the security management module 203 to run or stop running.
[0041] The security management module 203 is configured to receive the first detection result and the second detection result, and determine whether there are abnormal functions in the first part of the functions and the second part of the functions based on the first detection result and the second detection result, and determine an interruption based on each abnormal function, determine M interruptions based on M abnormal functions, and output N interruptions of the M interruptions to the safety island 205, wherein M and N are both integers, and M≥N≥1. Specifically, first, after receiving the first detection result and the second detection result, the security management module 203 determines whether there are abnormal functions in the first part of the functions based on the first detection result, and determines whether there are abnormal functions in the second part of the functions based on the second detection result. If it is determined that there are M abnormal functions, M interruptions are generated, and N interruptions of the M interruptions are sent to the safety island 205.
[0042] Only N interrupts out of M interrupts are selected to be sent to the safety island 205 each time, which can reduce the number of concurrent tasks that the safety island 205 needs to process, thereby effectively reducing the load of the safety island 205, which is beneficial to improving the performance and stability of the safety island 205 and extending the service life of the safety island 205.
[0043] It is understandable that the N interrupts can be selected arbitrarily from the M interrupts, or can be selected based on a pre-set method. For example, in a specific implementation, the security management module 203 is also configured to: set a priority level for each of the M interrupts, and send the N interrupts with the highest priority level to the safety island. Furthermore, the security management module 203 can effectively manage all interrupts, improve the performance and stability of the entire system, ensure that the system can operate in accordance with the established order and rules, and ensure that important interrupts can be processed with priority.
[0044] The safety island 205 is an MCU processor that meets the ASIL-D level, and is responsible for the safe operation and control core of the entire chip. The safety island 205 can still maintain normal operation when an abnormality occurs in the functional processing system 100, to ensure that there is a greater probability of uploading abnormal information to the external device 2000. Among them, the ASIL-D level is the highest safety integrity level in the automotive functional safety standard defined in the ISO 26262 standard.
[0045] The safety island 205 is configured to determine N abnormal functions corresponding to N interrupts, and output abnormal signals to the external device 2000 based on at least some of the abnormal functions among the N abnormal functions. Specifically, after receiving N interrupts, the safety island 205 obtains the N abnormal functions corresponding to the N interrupts from the security management module 203 through the second data bus 202. Then, in a specific embodiment, after receiving N interrupts, the safety island 205 determines that the N abnormal functions corresponding to the N interrupts cannot be processed by itself, and then generates abnormal signals based on the N abnormal functions, and outputs the abnormal signals to the external device 2000. In another specific embodiment, after receiving N interrupts, the safety island 205 determines that K abnormal functions among the N abnormal functions corresponding to the N interrupts cannot be processed by itself, and then generates abnormal signals based on the K abnormal functions, and outputs the abnormal signals to the external device 2000, wherein 1≤K<N; at the same time, the safety island 205 determines that the other NK abnormal functions can be processed by itself, and then processes the other NK abnormal functions.
[0046] Among them, when the safety island 205 generates an abnormal signal, an abnormal signal can be generated based on each abnormal function, or an abnormal signal can be generated based on two or more abnormal functions. For example, in a specific embodiment, the safety island 205 receives 3 interrupts, and generates abnormal signals based on 2 abnormal functions corresponding to 2 of the interrupts. At this time, the safety island 205 can generate abnormal signals based on the 2 abnormal functions respectively to generate 2 abnormal signals (this situation can be applied to the application scenario when the 2 abnormal functions are unrelated); the safety island 205 can also generate 1 abnormal signal based on the 2 abnormal functions (this situation can be applied to the application scenario when the 2 abnormal functions are related).
[0047] It is understandable that, after the safety island 205 has resolved all N abnormal functions (including the processing of the abnormal functions by the safety island 205 and the sending of abnormal signals), the safety management module 203 can again select at least some interruptions from the MN interruptions and send them to the safety island 205, so that the safety island 205 can continue to resolve other abnormal functions. For example, in a specific embodiment, M=10, N=3, the safety management module 203 processes one of the abnormal functions, and outputs abnormal signals to the safety island 205 based on the other two abnormal functions. Afterwards, the safety management module 203 again selects at least some interruptions (such as 2 or 3 interruptions, etc.) from the remaining 7 interruptions and sends them to the safety island 205. The safety island 205 continues to process the received interruptions.
[0048] In one embodiment, if Figure 3 As shown, the function detection module 204 includes a clock detection unit 2041 , a power supply detection unit 2042 , a memory detection unit 2043 and a logic circuit detection unit 2044 .
[0049] Among them, the clock detection unit 2041 is configured to detect each clock of the laser radar chip 1000 to determine whether the clock frequency is abnormal. That is, the second part of the function includes the function of the clock. A clock is a hardware device or system component used to measure and track time. It can be used to synchronize the operation of the processor, record the timestamp of the occurrence of events, schedule tasks and processes, and perform timed operations. By detecting the clock, it can be determined that the clock is in normal operation, which is conducive to ensuring the stability and reliability of the laser radar chip 1000.
[0050] The power supply detection unit 2042 is configured to detect each power supply of the laser radar chip 1000 to determine whether the power supply voltage is too high or too low. That is, the second part of the function includes the power supply function. By detecting the power supply, it can be ensured that each module in the laser radar chip 1000 obtains a stable power supply to avoid failure or damage of the laser radar chip 1000 due to problems such as unstable voltage or power interruption.
[0051] The memory detection unit 2043 is configured to detect the functions of each memory of the laser radar chip 1000. The memory here includes the memory in the function processing system 100 and the security management system 200. By detecting the memory, it is possible to prevent the laser radar chip 1000 from abnormalities due to abnormalities such as data loss or data errors, and improve the stability and reliability of the laser radar chip 1000.
[0052] In some implementations, the memory detection unit 2043 is configured as an MBIST instruction parsing part and an MBIST control part.
[0053] The MBIST instruction parsing part is a hardware module for identifying and parsing MBIST commands. Specifically, the MBIST instruction parsing part identifies and parses MBIST test commands from the security management module 203, including commands such as starting the test, stopping the test, and reading the test results, and outputs control instructions to the MBIST control part. MBIST (Memory Built-In Self-Test) is a technology used to test the memory in the integrated circuit.
[0054] The MBIST control section is a hardware module that is used to control and perform the MBIST test. Specifically, the MBIST control section comprises one or more MBIST engines, and the MBIST engine is used to generate a test sequence. After receiving the control instruction from the MBIST instruction parsing section, the MBIST control section drives the memory to operate under the test module, and under the test mode, whether the test sequence test memory is abnormal, such as whether the read-write operation of the test memory is abnormal. Wherein, the test sequence refers to a series of test operation sequences that are used to test the memory, and these test operations comprise the test data of inputting a specific pattern, output data are compared etc.
[0055] In some embodiments, the function of the memory can be verified by a pre-set verification method, such as ECC (Error Correction Code) verification. Specifically, when designing the memory, the data bit width is increased by ECC redundant bits, and these ECC redundant bits are used to store the ECC encoding of the stored data. ECC encoding and storage are performed each time the memory writes data, and ECC decoding and error correction are performed each time the memory reads data.
[0056] The logic circuit detection unit 2044 is configured to detect the functions of each logic circuit of the laser radar chip 1000. The logic circuits here include the logic circuits in the function processing system 100 and the safety management system 200. By detecting the logic circuits, it can help to timely discover errors or faults in the logic design, such as logic gate connection errors, timing problems, etc., which helps to find and repair problems and ensure the correctness and reliability of the circuit design.
[0057] In one embodiment, based on Figure 3 As shown in the structure, the safety management module 203 is also configured as follows: after the laser radar chip 1000 is powered on, the memory detection unit 2043 and the logic circuit detection unit 2044 are controlled to run (to detect the various memories and logic circuits of the laser radar chip 1000); if it is determined that there is no abnormality in the various memories and logic circuits of the laser radar chip 1000, then the various circuits in the laser radar chip 1000 are controlled to start normally; if it is determined that there is an abnormality in the various memories and logic circuits of the laser radar chip 1000, then the control of the startup of the various circuits in the laser radar chip 1000 is stopped.
[0058] After the LiDAR chip 1000 is powered on, a self-check of the memory and logic circuit is first performed to verify whether the read and write functions of the memory are normal, to ensure the integrity and reliability of the data, and to ensure that the circuit design and connection are correct, to avoid hardware problems that may cause the LiDAR chip 1000 to malfunction.
[0059] In one embodiment, the safety management module 203 is further configured to: after all circuits in the laser radar chip 1000 are normally started, obtain the first detection result and the second detection result at each preset time interval; and output a corresponding interrupt to the safety island 205 each time it is determined that the first part of the function and / or the second part of the function is abnormal based on the first detection result and the second detection result. In this embodiment, the specific implementation process of the safety management module 203 outputting the interrupt to the safety island 205 can refer to the above description of the safety management module 203, which will not be repeated here.
[0060] Among them, the preset duration is a pre-set duration, which can be set based on the actual application scenario, and the embodiment of the present application does not impose any specific restrictions on this.
[0061] By regularly checking whether there are any abnormalities in the first part of the functions and / or the second part of the functions, it is helpful to discover potential problems or abnormal situations early and solve potential problems or abnormal situations in a timely manner, thereby reducing the risk of device failure of the lidar chip 1000.
[0062] In one embodiment, if Figure 4As shown, the function processing system 100 includes a laser transceiver control module 102 , a laser test stimulus generation module 103 and a laser test result module 104 .
[0063] The laser transceiver control module 102 is configured to emit a laser to a target object and receive an echo signal reflected by the target object. The echo signal can be used to obtain information about the target object. For example, the flight time can be obtained by the emission time of the laser and the reception time of the echo signal, thereby obtaining the distance from the target object to the location of the laser radar where the laser radar chip 1000 is installed. The laser transceiver control module 102 can realize the functions of laser reception and emission, that is, the first part of the function includes the functions of laser reception and emission.
[0064] The laser test stimulus generating module 103 is configured to generate a laser test stimulus to the laser transceiver control module 102 so that the laser transceiver control module 102 operates in a test state. The laser test stimulus refers to an stimulus signal applied to the laser transceiver control module 102 during the test process to trigger or induce a response of the laser transceiver control module 102, thereby performing testing and analysis.
[0065] In some embodiments, various test stimuli (such as laser test stimuli and point cloud processing test stimuli) can be generated during the blanking period of the laser radar used by the laser radar chip 1000. Take the laser radar using a MEMS galvanometer for scanning as an example. Specifically, take the scanning cycle of the MEMS galvanometer starting from the upper left corner and ending at the lower left corner as an example. After each scanning cycle, a retrace is required (that is, the galvanometer returns from the lower left corner to the upper left corner start position) to start the next scanning cycle. This retrace process is the blanking period, during which no detection laser is emitted or received.
[0066] In other embodiments, it may be preset to generate various test stimuli at a certain interval (such as 100 detection cycles) for testing, and the laser radar does not execute the process of emitting and receiving detection lasers during the process of generating the test stimuli for testing.
[0067] The laser test result module 104 is configured to obtain and output the test result when the laser transceiver control module 102 is running in the test state. Among them, the first detection result includes the test result when the laser transceiver control module 102 is running in the test state. The laser test stimulus generation module 103 and the laser test result module 104 are used to realize the detection of the laser receiving and emitting functions. In some embodiments, the data transmitted when the laser transceiver control module 102 is running in the test state can be verified by a pre-set verification method, such as setting a verification code, and the result of the verification is the test result when the laser transceiver control module 102 is running in the test state.
[0068] For example, in a specific embodiment, Figure 5 As shown, the laser test result module 104 includes a first CRC convolution unit 1041 and a laser test result output unit 1042. The first CRC convolution unit 1041 is configured to perform a specific calculation on the data transmitted when the laser transceiver control module 102 is running in the test state, generate a check value, and attach the check value to the data and transmit it to the laser test result output unit 1042. After receiving the data, the laser test result output unit 1042 also performs the same calculation, and then compares it with the check value attached to the data, and transmits the comparison result (i.e., the test result when the laser transceiver control module 102 is running in the test state) to the safety management module 203 through the first data bus 101.
[0069] In one embodiment, if Figure 6 As shown, the function processing system also includes a point cloud processing module 105 , a point cloud processing test stimulus generation module 106 and a point cloud processing test result module 107 . Figure 6 An example is shown in Figure 4 A structure in which a point cloud processing module 105, a point cloud processing test stimulus generating module 106 and a point cloud processing test result module 107 are added to the structure shown.
[0070] The point cloud processing module 105 is configured to process point cloud data, wherein the point cloud data is obtained by an echo signal reflected by the target object after a laser is emitted to the target object. Based on the echo signal, relevant information of the detection point can be determined, and then the point cloud data can be determined based on the relevant information of the detection point, and finally the target object can be identified based on the point cloud data. For example, in a specific embodiment, a laser radar equipped with a laser radar chip 1000 is provided in an electric vehicle. During the automatic driving process, the electric vehicle does not predict whether there is an obstacle ahead, but identifies the obstacle after performing a perception algorithm processing based on the detected point cloud data. The point cloud processing module 105 can realize the function of processing point cloud data, that is, the first part of the function includes the function of processing point cloud data.
[0071] The point cloud processing test stimulus generating module 106 is configured to generate a point cloud processing test stimulus to the point cloud processing module 105 so that the point cloud processing module 105 operates in a test state. The point cloud processing test stimulus refers to an stimulus signal applied to the point cloud processing module 105 during the test process to trigger or induce a response of the point cloud processing module 105, thereby performing testing and analysis.
[0072] The point cloud processing test result module 107 is configured to obtain and output the test result of the point cloud processing module 105 when it is running in the test state, wherein the first detection result includes the test result of the point cloud processing module 105 when it is running in the test state. The point cloud processing test stimulus generation module 106 and the point cloud processing test result module 107 are used to implement the detection of the function of processing point cloud data. In some embodiments, the data transmitted when the point cloud processing module 105 is running in the test state can be verified by a pre-set verification method, such as setting a verification code, and the result of the verification is the test result of the point cloud processing module 105 when it is running in the test state.
[0073] For example, in a specific embodiment, Figure 7 As shown, the point cloud processing test result module 107 includes a second CRC convolution unit 1071 and a point cloud processing test result output unit 1072. The point cloud processing test stimulus generated by the point cloud processing test stimulus generation module 106 is point cloud data corresponding to some special application scenarios, such as point cloud data corresponding to Corner Case (extreme case). Corner Case refers to extreme or rare situations that may occur in actual driving, such as traffic accidents, severe weather conditions or complex road conditions. The point cloud data generated by the point cloud processing test stimulus generation module 106 is input to the point cloud processing module 105, and the point cloud processing module 105 outputs the processed point cloud data. The second CRC convolution unit 1071 is configured to perform CRC convolution calculation on the point cloud data processed by the point cloud processing module 105, generate a convolution code, and attach the convolution code to the data and transmit it to the point cloud processing test result output unit 1072. After receiving the data, the point cloud processing test result output unit 1072 also performs the same CRC convolution calculation, and then compares it with the convolution code attached to the data, and transmits the comparison result (that is, the test result when the point cloud processing module 105 is running in the test state) to the security management module 203 through the first data bus 101.
[0074] In one embodiment, if Figure 8 As shown, the function processing system 100 further includes a bus monitoring module 108 , a bus error injection module 109 and a bus error injection result detection module 110 . Figure 8 An example is shown in Figure 6 A structure in which a bus monitoring module 108, a bus error injection module 109 and a bus error injection result detection module 110 are added to the structure shown.
[0075] The bus monitoring module 108 is configured to monitor whether the data transmitted by the first data bus 101 is abnormal. Monitoring the data transmitted by the first data bus 101 can help monitor the operation of the laser radar chip 1000, improve the stability, safety and performance of the laser radar chip 1000, and provide an important reference for the optimization and troubleshooting of the laser radar chip 1000. The bus monitoring module 108 can realize the function of monitoring the data transmitted by the first data bus 101, that is, the first part of the function includes the function of monitoring the data transmitted by the first data bus 101.
[0076] In some embodiments, the first data bus 101 is a channel for transmitting data, and the first data bus 101 may be an AXI (Advanced eXtensible Interface) bus, an AHB (Advanced High-performance Bus) bus, an SPI (Serial Peripheral Interface) bus, or the like.
[0077] Take the first data bus 101 for connecting the master device and the slave device as an example, wherein the master device outputs the first data and transmits it to the slave device through the bus, and the slave device outputs the second data and transmits it to the master device through the bus. The bus monitoring module 108 is configured to receive the first data and the second data, set the verification data, and output the processing results of the first data and the second data based on the first data, the second data and the verification data. Among them, the first data received by the bus monitoring module 108 includes both the first data located at the output side of the master device and the first data located at the receiving side of the slave device. The second data received by the bus monitoring module 108 includes both the second data located at the output side of the slave device and the second data located at the receiving side of the master device. The setting method of the verification data can be set according to the actual application scenario, and the embodiment of the present application does not make specific restrictions on this. For example, the setting method of the verification data can be set by ECC (Error Correction Code, error correction code) encoding, or by parity check encoding, or by CRC (Cyclic Redundancy Check, cyclic redundancy check) encoding.
[0078] In a specific embodiment, on the one hand, the bus monitoring module 108 receives the first data from the output side of the master device, and outputs the first coding result after encoding the first data based on the first coding type. The first coding type includes ECC coding, parity coding or CRC coding, etc. The bus monitoring module 108 receives the first data from the receiving side of the slave device, and outputs the second coding result after encoding the first data based on the first coding type. If the bus monitoring module 108 determines that the first coding result is the same as the second coding result, it is determined that there is no abnormality in the first data; if the bus monitoring module 108 determines that the first coding result is different from the second coding result, it is determined that the first data is abnormal. On the other hand, the bus monitoring module 108 receives the second data from the output side of the slave device, and outputs the third coding result after encoding the second data based on the first coding type. The bus monitoring module 108 receives the second data from the receiving side of the master device, and outputs the fourth coding result after encoding the second data based on the first coding type. If the bus monitoring module 108 determines that the third encoding result is the same as the fourth encoding result, it is determined that the second data is not abnormal; if the bus monitoring module 108 determines that the third encoding result is different from the fourth encoding result, it is determined that the second data is abnormal. In summary, the bus monitoring module 108 implements the monitoring of the first data and the second data on the first data bus 101, and can determine whether the first data and the second data are abnormal, thereby reducing the risk and loss caused by data errors and improving the reliability and credibility of the data.
[0079] In the above embodiment, the encoding of the first data and the second data based on the first encoding type is taken as an example, while in other embodiments, different encoding types may be used for encoding different data, and a method similar to the above embodiment is used to determine whether each data is abnormal. For example, in a specific embodiment, the first data includes a first part of data and a second part of data, the first part of data is encoded based on the first encoding type, and the second part of data is encoded based on the second encoding type, and then a method similar to the above embodiment is used to determine whether the first part of data and the second part of data are abnormal, respectively, wherein the first encoding type is different from the second encoding type, for example, the first encoding type is ECC encoding, and the second encoding type is parity check encoding.
[0080] The bus error injection module 109 is configured to generate bus error information and inject the bus error information into the bus monitoring module 108 to detect whether the function of the bus monitoring module 108 is normal. The bus error information is obtained by simulating the abnormal data transmission of the first data bus 101. For example, the bus error signal can be error data when the first data bus 101 transmits data abnormally.
[0081] The bus error injection result detection module 110 is configured to obtain and output the detection result of the bus error information injected into the bus monitoring module 108, wherein the first detection result includes the detection result of the bus error information injected into the bus monitoring module 108. Based on the detection result of the bus error information injected into the bus monitoring module 108, it can be determined whether the bus monitoring module 108 is abnormal. Then, when the bus monitoring module 108 is not abnormal, the detection of the data transmitted by the first data bus 101 is realized, which has high reliability.
[0082] In one embodiment, if Fig. 9 As shown, the function processing system 100 further includes a memory 111 , a memory error injection module 112 , and a check and error correction module 113 .
[0083] The memory error injection module 112 is configured to generate memory error information and inject the memory error information into the storage data of the memory 111. The memory error information is obtained by simulating a fixed error or a random error in a bit of the memory 111. For example, the memory error information may be error data when a fixed error occurs in any bit of the memory 111.
[0084] The check and error correction module 113 is configured to perform check and error correction when the memory error information is injected into the stored data, and send the check result and the error correction result to the security management module 203, wherein the first detection result includes the check result and the error correction result. In a specific embodiment, the check and error correction module 113 is configured as an ECC check module. The ECC check module can add redundant information when the memory error information is injected into the stored data to check the stored data and output the check result, and at the same time correct the errors existing in the stored data to a certain extent and output the error correction result.
[0085] It can be understood that the memory detected by the memory detection unit 2043 includes the memory 111 of the functional processing system 100 and the memory of the security management system 200. After all the circuits in the laser radar chip 1000 are normally started, the memory detection unit 2043 will periodically detect whether the read and write functions of the memory 111 are normal. In a specific embodiment, based on the fact that the memory in the security management system 200 mainly stores configuration parameters and is basically not modified, and the memory 111 of the functional processing system 100 stores data related to various functions (such as the function of laser transceiver and point cloud processing), and the frequency of data reading and writing is high, the frequency of the memory detection unit 2043 periodically detecting the memory in the security management system 200 can be set to be lower than the frequency of the memory detection unit 2043 periodically detecting the memory 111, so as to improve work efficiency.
[0086] It should be noted that if Figure 2-Figure 9The hardware structure of the lidar chip 100 shown is only an example, and the lidar chip 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0087] For example, in some embodiments, Figure 2-Figure 9 The interruption-related functions performed by the security management module 203 are implemented by a separate module to reduce the load of the security management module 203 and improve work efficiency.
[0088] by Figure 2 For example, the functions related to interruption performed by the security management module 203 are implemented by a separate module, such as Fig.10 As shown, the security management system 200 also includes an interrupt processing module 206. At this time, the security management module 203 is configured to receive the first detection result and the second detection result, and determine the functions that have abnormalities in the first part of the functions and the second part of the functions based on the first detection result and the second detection result, and determine an interrupt based on each abnormal function to determine M interrupts based on the M abnormal functions, and then send the M interrupts to the interrupt processing module 206. The interrupt processing module 206 is configured to process the M interrupts based on a preset logic (such as the priority level in the above embodiment), and output N interrupts of the M interrupts to the safety island 205. The specific implementation process can refer to the above-mentioned Figure 2 The description of the security management module 203 shown is not repeated here.
[0089] An embodiment of the present application also provides a laser radar, which includes a shell and the laser radar chip 100 in any embodiment of the present application, and the laser radar chip 100 is disposed in the shell.
[0090] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
[0091] The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them. Under the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order. It should be understood by ordinary technicians in this field that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A laser radar chip, characterized in that: include: A function processing system is configured to implement and detect the first part of functions and output a first detection result, wherein the function processing system includes a first data bus, and the first part of functions includes a function of laser reception and emission, a function of processing point cloud data, and a function of monitoring data transmitted by the first data bus; A safety management system, configured to detect the second part of the functions, obtain a second detection result, and to obtain the first detection result and, when determining that the first part of the functions and / or the second part of the functions are abnormal based on the first detection result and the second detection result, output an abnormality signal to an external device based on at least part of the abnormal functions, wherein the second part of the functions includes a clock function, a power supply function, functions of various memories of the laser radar chip, and functions of various logic circuits of the laser radar chip; Among them, the security management system includes a decoupling module and a second data bus, and the decoupling module is arranged between the first data bus and the second data bus to decouple the first data bus from the second data bus, and the power supply and clock of the functional processing system and the security management system are different.
2. The laser radar chip according to claim 1, characterized in that: The safety management system includes a function detection module, a safety management module and a safety island; The function detection module is configured to detect the second part of functions and output the second detection result to the security management module; The security management module is configured to receive the first detection result and the second detection result, and determine an abnormal function in the first part of functions and the second part of functions based on the first detection result and the second detection result, and determine an interrupt based on each abnormal function to determine M interrupts based on the M abnormal functions, and output N interrupts of the M interrupts to the safety island, wherein M and N are both integers, and M≥N≥1; The safety island is configured to determine N abnormal functions corresponding to the N interrupts, and output an abnormal signal to an external device based on at least some of the N abnormal functions.
3. The laser radar chip according to claim 2, characterized in that: The function detection module comprises: A clock detection unit, configured to detect each clock of the laser radar chip; A power supply detection unit, configured to detect each power supply of the laser radar chip; A memory detection unit, configured to detect the function of each memory of the laser radar chip; The logic circuit detection unit is configured to detect the functions of each logic circuit of the laser radar chip.
4. The laser radar chip according to claim 3, characterized in that: The security management module is further configured to: After the laser radar chip is powered on, controlling the memory detection unit and the logic circuit detection unit to operate; If it is determined that all memories and logic circuits of the laser radar chip are normal, then all circuits in the laser radar chip are controlled to start normally; If it is determined that there are abnormalities in the various memories and various logic circuits of the laser radar chip, the control of starting up various circuits in the laser radar chip is stopped.
5. The laser radar chip according to any one of claims 2 to 4, characterized in that: The security management module is further configured to: After all circuits in the laser radar chip are started normally, the first detection result and the second detection result are obtained at intervals of a preset time length; Each time when it is determined that the first part of the function and / or the second part of the function is abnormal based on the first detection result and the second detection result, a corresponding interrupt is output to the safety island.
6. The laser radar chip according to any one of claims 2 to 4, characterized in that: The security management module is further configured to set a priority level for each of the M interrupts, and send N interrupts with the highest priority levels to the security island.
7. The laser radar chip according to claim 1, characterized in that: The function processing system comprises: A laser transceiver control module is configured to transmit a laser to a target object and receive an echo signal reflected by the target object; A laser test stimulus generating module, configured to generate a laser test stimulus to the laser transceiver control module, so that the laser transceiver control module operates in a test state; The laser test result module is configured to obtain and output the test result of the laser transceiver control module when it is running in the test state, wherein the first detection result includes the test result of the laser transceiver control module when it is running in the test state.
8. The laser radar chip according to claim 1, characterized in that: The function processing system comprises: A point cloud processing module is configured to process point cloud data, wherein the point cloud data is obtained by an echo signal reflected by a target object after emitting a laser to the target object; A point cloud processing test stimulus generating module, configured to generate a point cloud processing test stimulus to the point cloud processing module, so that the point cloud processing module operates in a test state; The point cloud processing test result module is configured to obtain and output the test result of the point cloud processing module when it is running in the test state, wherein the first detection result includes the test result of the point cloud processing module when it is running in the test state.
9. The laser radar chip according to claim 1, characterized in that: The function processing system comprises: A bus monitoring module, configured to monitor whether the data transmitted by the first data bus is abnormal; a bus error injection module, configured to generate bus error information and inject the bus error information into the bus monitoring module, wherein the bus error information is obtained by simulating abnormal data transmission of the first data bus; The bus error injection result detection module is configured to obtain and output the detection result of the bus error information being injected into the bus monitoring module, wherein the first detection result includes the detection result of the bus error information being injected into the bus monitoring module.
10. The laser radar chip according to claim 1, characterized in that: The function processing system comprises: Memory; a memory error injection module, configured to generate memory error information and inject the memory error information into storage data of the memory; The verification and error correction module is configured to perform verification and error correction when the memory error information is injected into the stored data, and send the verification result and the error correction result to the security management system, wherein the first detection result includes the verification result and the error correction result.
11. A laser radar, characterized in that: Comprising a housing and a laser radar chip as claimed in any one of claims 1 to 10; The laser radar chip is arranged in the shell.
Citation Information
Patent Citations
Breaker design for power system resiliency
CN108565842A
Power supply abnormity monitoring system and method for LIDAR and LIDAR system
CN110940965A
Safety monitoring method, system and device for vehicle-mounted system
CN115470023A
Fault detection method and device, storage medium and laser radar
CN115825931A
Intelligent automobile laser radar point cloud anomaly detection method based on deep learning
CN117763423A
