Data processing system, laser radar chip and laser radar
By using verification data and encoding technology in the data processing system of the lidar chip, data transmission anomalies are detected in real time, which solves the problem of insufficient lidar data transmission security and ensures the reliable operation and personal safety of autonomous vehicles.
Patent Information
- Application Number
- CN202410824937.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In the fields of smart transportation and autonomous driving, it is difficult to ensure the safety of lidar data collection and transmission, which directly affects the life safety of the vehicle's occupants.
Design a data processing system that uses a data processing module between the first device and the second device of the lidar chip to detect anomalies in data transmission in real time using verification data and encoding technology to ensure the reliability of data transmission.
Real-time anomaly detection of lidar chip data transmission is achieved, reducing safety hazards and effectively ensuring personal safety.
Smart Images

Figure CN118566890A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing technology, and in particular to a data processing system, 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 data processing system, a laser radar chip, and a laser radar, which can determine in real time whether there are abnormalities in data transmission to ensure the reliable operation of the laser radar chip, which is conducive to reducing safety hazards and can effectively protect personal safety.
[0004] In a first aspect, an embodiment of the present application provides a data processing system for processing data transmitted between a first device and a second device, wherein the first device and the second device are connected via a bus, the first device outputs first data and transmits it to the second device via the bus, and the second device outputs second data and transmits it to the first device via the bus, and the data processing system comprises: a first data processing module, disposed between the first device and the second device, configured to set first verification data based on the first data, receive second verification data, and output a first processing result based on the second verification data and the second data; a second data processing module, disposed between the first data processing module and the second device, configured to set the second verification data based on the second data, receive the first verification data, and output a second processing result based on the first verification data and the first data; a control module, respectively connected to the first data processing module and the second data processing module, configured to receive the first processing result and the second processing result, and determine whether the second data is abnormal based on the first processing result, and determine whether the first data is abnormal based on the second processing result.
[0005] In some embodiments, the first data includes a first part of data; the first data processing module includes: a first encoding unit, connected to the bus, configured to receive the first part of data through the bus, and output a first encoding result after encoding the first part of data based on a first encoding type, wherein the first verification data includes the first encoding result; the second data processing module includes: a second encoding unit, connected to the bus, configured to receive the first part of data through the bus, and output a second encoding result after encoding the first part of data based on the first encoding type; a first comparator, respectively connected to the first encoding unit, the second encoding unit and the control module, configured to receive the first encoding result and the second encoding result, and output a first comparison result to the control module based on the first encoding result and the second encoding result, wherein the second processing result includes the first comparison result.
[0006] In some embodiments, the second data processing module also includes: a first decoding and error correction unit, which is respectively connected to the first encoding unit, the first comparator and the bus, configured to receive the first encoding result and the first comparison result, and correct the first part of the data input to the second encoding unit based on the first encoding result when it is determined that the first comparison result is abnormal.
[0007] In some embodiments, the first data also includes a second part of data; the first data processing module also includes: a third encoding unit, connected to the bus, configured to receive the second part of data through the bus, and output a third encoding result after encoding the second part of data based on the second encoding type, wherein the first verification data includes the third encoding result; the second data processing module also includes: a fourth encoding unit, connected to the bus, configured to receive the second part of data through the bus, and output a fourth encoding result after encoding the second part of data based on the second encoding type; a second comparator, respectively connected to the third encoding unit, the fourth encoding unit and the control module, configured to receive the third encoding result and the fourth encoding result, and output a second comparison result to the control module based on the third encoding result and the fourth encoding result, wherein the second processing result includes the second comparison result.
[0008] In some embodiments, the second data includes a third portion of data; the second data processing module includes: a fifth encoding unit, connected to the bus, configured to receive the third portion of data through the bus, and output a fifth encoding result after encoding the third portion of data based on the first encoding type, wherein the second verification data includes the fifth encoding result; the first data processing module includes: a sixth encoding unit, connected to the bus, configured to receive the third portion of data through the bus, and output a sixth encoding result after encoding the third portion of data based on the first encoding type; a third comparator, respectively connected to the fifth encoding unit, the sixth encoding unit and the control module, configured to receive the fifth encoding result and the sixth encoding result, and output a third comparison result to the control module based on the fifth encoding result and the sixth encoding result, wherein the first processing result includes the third comparison result.
[0009] In some embodiments, the first data processing module also includes: a second decoding and error correction unit, which is respectively connected to the fifth encoding unit, the third comparator and the bus, and is configured to receive the fifth encoding result and the third comparison result, and correct the third part of the data input to the sixth encoding unit based on the fifth encoding result when it is determined that the third comparison result is abnormal.
[0010] In some embodiments, the second data also includes a fourth part of data; the second data processing module also includes: a seventh encoding unit, connected to the bus, configured to receive the fourth part of data through the bus, and output a seventh encoding result after encoding the fourth part of data based on the second encoding type, wherein the second verification data includes the seventh encoding result; the first data processing module also includes: an eighth encoding unit, connected to the bus, configured to receive the fourth part of data through the bus, and output an eighth encoding result after encoding the fourth part of data based on the second encoding type; a fourth comparator, configured to receive the seventh encoding result and the eighth encoding result, and output a fourth comparison result to the control module based on the seventh encoding result and the eighth encoding result, wherein the first processing result includes the fourth comparison result.
[0011] In some embodiments, the first encoding type is ECC encoding and the second encoding type is parity encoding.
[0012] In some embodiments, the first data processing module includes: a third device, configured to be the same as the first device and outputting third data; a fifth comparator, connected to the bus, the third device and the control module respectively, configured to receive the first data and the third data, and output a fifth comparison result to the control module based on the first data and the third data; the control module is also configured to receive the fifth comparison result, and determine whether the first data and the third data are abnormal based on the fifth comparison result.
[0013] In some embodiments, the second data processing module includes: a fourth device, configured to be the same as the second device, and outputting fourth data; a sixth comparator, connected to the bus, the fourth device and the control module, respectively, configured to receive the second data and the fourth data, and output a sixth comparison result to the control module based on the second data and the fourth data; the control module is also configured to receive the sixth comparison result, and determine whether the second data and the fourth data are abnormal based on the sixth comparison result.
[0014] In a second aspect, an embodiment of the present application provides a laser radar chip, including a first device, a second device, a bus, and the data processing system as described above; The first device and the second device are connected via the bus, and the data processing system is arranged between the first device and the second device.
[0015] In a third aspect, an embodiment of the present application provides a laser radar, including the laser radar chip as described above.
[0016] Compared with the prior art, the data processing system of the embodiment of the present application is used to process the data transmitted between the first device and the second device. Among them, the first device and the second device are connected through a bus, the first device outputs the first data and transmits it to the second device through the bus, and the second device outputs the second data and transmits it to the first device through the bus. In the data processing system, the first data processing module sets the first verification data for the first data, and the second data processing module sets the second verification data for the second data. Afterwards, the first data processing module receives the second data and the second verification data, and outputs the first processing result based on the second verification data and the second data; the second data processing module receives the first data and the first verification data, and outputs the second processing result based on the first data and the first verification data. The control module then receives the first processing result and the second processing result, determines whether the second data is abnormal based on the first processing result, and determines whether the first data is abnormal based on the second processing result. Thus, it is possible to determine in real time whether the first data and the second data are abnormal, that is, to determine in real time whether the data transmission is abnormal, so as to ensure the reliable operation of the laser radar chip including the data processing system, which is conducive to reducing safety hazards and effectively protecting personal safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 1 ; Figure 2 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 2 ; Figure 3 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 3 ; Figure 4 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 4 ; Figure 5 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 5 ; Figure 6 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 6 ; Figure 7 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 7 ; Figure 8This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 8 ; Fig. 9 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 9 . DETAILED DESCRIPTION
[0019] 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.
[0020] 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.
[0021] 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.
[0022] In LiDAR, LiDAR chip is the core component, responsible for the collection, processing and transmission of all LiDAR information. Especially in vehicle-mounted systems, LiDAR chip undertakes important object sensing functions. Once this function fails, the consequences will directly affect the life safety of the vehicle's drivers and passengers.
[0023] Based on this, the embodiment of the present application provides a laser radar chip that can determine in real time whether there is an abnormality in data transmission to ensure the reliable operation of the laser radar chip. The laser radar chip includes a first device, a second device, a bus, and a data processing system 1000 in any embodiment of the present application.
[0024] The first device and the second device are connected via a bus, and the data processing system 1000 is disposed between the first device and the second device. The data processing system 1000 is used to determine in real time whether there is any abnormality in the data transmitted between the first device and the second device.
[0025] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of the data processing system provided in the embodiment of the present application. Figure 1As shown, the data processing system 1000 is used to process data transmitted between the first device 2000 and the second device 3000. The first device 2000 and the second device 3000 are connected via a bus, the first device 2000 outputs the first data D1 and transmits it to the second device 3000 via the bus, and the second device 3000 outputs the second data D2 and transmits it to the first device 2000 via the bus. In some specific embodiments, the first device 2000 is a master device and the second device 3000 is a slave device. The bus is a protocol and channel for connecting the first device 2000 and the second device 3000 and transmitting data. In addition, the present application does not specifically limit the distance for transmitting data between the first device 2000 and the second device 3000, that is, the embodiments of the present application can be applied to various application scenarios of different distances for transmitting data.
[0026] The data processing system 1000 includes a first data processing module 100, a second data processing module 200 and a control module 300. The first data processing module 100 is disposed between the first device 2000 and the second device 3000. The second data processing module 200 is disposed between the first data processing module 100 and the second device 3000. That is, the first device 2000, the first data processing module 100, the second data processing module 200 and the second device 3000 are disposed in sequence. The control module 300 is connected to the first data processing module 100 and the second data processing module 200, respectively.
[0027] In some embodiments, the control module 300 may be a microcontroller unit (MCU).
[0028] The first data processing module 100 is configured to receive the first data D1, and to set the first verification data D11 based on the first data D1. The setting method of the first verification data D11 can be set according to the actual application scenario, and the embodiment of the present application does not impose specific restrictions on this. For example, the setting method of the first verification data D11 can be set by ECC (Error Correction Code, error correction code) encoding, or it can be set by parity check encoding, or it can be set by CRC (Cyclic Redundancy Check, cyclic redundancy check) encoding. The first data D1 received by the first data processing module 100 is located on the side where the first device 2000 outputs the first data D1, that is, the first data D1 received by the first data processing module 100 is the first data D1 located on the output side of the first device 2000. At this time, the first data D1 can be considered as accurate data that has not been transmitted, and can be used as a reference data for verifying whether there is an abnormality in data transmission. Similarly, the first verification data D11 is also used as a reference data for verifying whether there is an abnormality in data transmission.
[0029] The second data processing module 200 is configured to receive the second data D2, and to set the second verification data D21 based on the second data D2. The setting method of the second verification data D21 can be set according to the actual application scenario, and the embodiment of the present application does not impose specific restrictions on this. Similarly, the setting method of the second verification data D21 may include ECC encoding, parity encoding or CRC encoding, etc. The setting method of the second verification data D21 may be the same as the first verification data D11, or it may be different. The second data D2 received by the second data processing module 200 is located on the side where the second device 3000 outputs the second data D2, that is, the second data D2 received by the second data processing module 200 is the second data D2 located on the output side of the second device 3000. At this time, the second data D2 can be considered as accurate data that has not been transmitted, and can be used as a reference data for verifying whether there is an abnormality in data transmission. Similarly, the second verification data D21 is also used as a reference data for verifying whether there is an abnormality in data transmission.
[0030] The first data processing module 100 is also configured to receive the second verification data D21 and the second data D2. The second data D2 received by the first data processing module 100 is located on the side where the first device 2000 receives the second data D2, that is, the second data D2 received by the first data processing module 100 is the second data D2 located on the receiving side of the first device 2000. At this time, the second data D2 can be considered as data transmitted through the bus, and there may be transmission anomalies. It is necessary to check it through the second verification data D21 to determine whether it is abnormal. Based on this, the first data processing module 100 is also configured to output the first processing result D12 to the control module 300 based on the second verification data D21 and the second data D2, so that the control module 300 determines whether the second data D2 is abnormal during the data transmission process on the bus.
[0031] The second data processing module 200 is also configured to receive the first verification data D11 and the first data D1. The first data D1 received by the second data processing module 200 is located on the side where the second device 3000 receives the first data D1, that is, the first data D1 received by the second data processing module 200 is the first data D1 located on the receiving side of the second device 3000. At this time, the first data D1 can be considered as data transmitted through the bus, and there may be transmission anomalies. It is necessary to check it through the first verification data D11 to determine whether it is abnormal. Based on this, the second data processing module 200 is also configured to output the second processing result D22 to the control module 300 based on the first verification data D11 and the first data D1, so that the control module 300 determines whether there is an abnormality in the first data D1 during the data transmission process on the bus.
[0032] The control module 300 is configured to receive the first processing result D12, and determine whether the second data D2 is abnormal based on the first processing result D12. For example, in a specific embodiment, the second data processing module 200 sets the second verification data D21 through a first setting method (including ECC coding, parity coding or CRC coding, etc.), and at the same time, the first data processing module 100 also sets the third verification data (recorded as DA1) based on the second data D2 through the first setting method, and the first processing result D12 can be a comparison result between the second verification data D21 and the third verification data DA1. If the comparison result is that the second verification data D21 is the same as the third verification data DA1, it can be determined that the second data D2 is normal; conversely, if the comparison result is that the second verification data D21 is different from the third verification data DA1, it can be determined that the second data D2 is abnormal.
[0033] The control module 300 is also configured to receive the second processing result D22, and determine whether the first data D1 is abnormal based on the second processing result D22. For example, in a specific embodiment, the first data processing module 100 sets the first check data D11 through the second setting method (including ECC coding, parity coding or CRC coding, etc.), and at the same time, the second data processing module 200 also sets the fourth check data (recorded as DB1) based on the first data D1 through the second setting method, and the second processing result D22 can be the comparison result between the first check data D11 and the fourth check data DB1. If the comparison result is that the first check data D11 is the same as the fourth check data DB1, it can be determined that the first data D1 is normal; conversely, if the comparison result is that the first check data D11 is different from the fourth check data DB1, it can be determined that the first data D1 is abnormal.
[0034] In summary, the control module 300 can determine in real time whether there are abnormalities in the first data D1 and the second data D2, that is, determine in real time whether there are abnormalities in data transmission, so as to ensure the reliable operation of the laser radar chip including the data processing system 1000, which is conducive to reducing safety hazards and effectively protecting personal safety.
[0035] In one embodiment, if Figure 2 As shown, the first data D1 includes the first part of data D1_1. The first data processing module 100 includes a first encoding unit 101. The second data processing module 200 includes a second encoding unit 201 and a first comparator 201.
[0036] Wherein, the first encoding unit 101 is connected to the bus. The first encoding unit 101 is configured to receive the first part of the data D1_1 through the bus, and output the first encoding result D1_11 after encoding the first part of the data D1_1 based on the first encoding type, wherein the first verification data D11 includes the first encoding result D1_11. The first encoding type corresponds to the setting method of the first verification data D11 in the above embodiment, and the first encoding type includes ECC encoding, parity encoding or CRC encoding, etc. It can be understood that since the first data D1 received by the first data processing module 100 is the data on the output side of the first device 2000, the first part of the data D1_1 received by the first encoding unit 101 is the data on the output side of the first device 2000.
[0037] The second encoding unit 201 is connected to the bus. The second encoding unit 201 is configured to receive the first portion of data D1_1 through the bus, and output a second encoding result D1_12 after encoding the first portion of data D1_1 based on the first encoding type. It can be understood that since the first data D1 received by the second data processing module 200 is data on the receiving side of the second device 3000, the first portion of data D1_1 received by the second encoding unit 201 is data on the receiving side of the second device 3000.
[0038] The first comparator 202 is connected to the first encoding unit 101, the second encoding unit 201 and the control module 300 respectively. The first comparator 202 is configured to receive the first encoding result D1_11 and the second encoding result D1_12, and output the first comparison result D1_13 to the control module 300 based on the first encoding result D1_11 and the second encoding result D1_12, wherein the second processing result D22 includes the first comparison result D1_13. Specifically, the inputs of the first encoding unit 101 and the second encoding unit 201 are both the first part of data D1_1 (the only difference is the position of receiving the first part of data D1_1 is different), and the same encoding method is used. If the first part of data D1_1 does not have an abnormality (such as data loss, etc.) during the data transmission process, the control module 300 should determine that the first encoding result D1_11 is the same as the second encoding result D1_12 based on the first comparison result D1_13; conversely, if the first part of data D1_1 has an abnormality during the data transmission process, the control module 300 should determine that the first encoding result D1_11 is different from the second encoding result D1_12 based on the first comparison result D1_13. Thus, the control module 300 can determine in real time whether the first part of data D1_1 has an abnormality.
[0039] In one embodiment, if Figure 3As shown, the second data processing module 200 further includes a first decoding and error correction unit 203, and the first decoding and error correction unit 203 is connected to the first encoding unit 101, the first comparator 202 and the bus respectively.
[0040] The first decoding and error correction unit 203 is configured to receive the first coding result D1_11 and the first comparison result D1_13, and to correct the first part of the data D1_1 input to the second coding unit 201 based on the first coding result D1_11 when it is determined that the first comparison result D1_13 is abnormal. Specifically, the abnormal first comparison result D1_13 corresponds to the difference between the first coding result D1_11 and the second coding result D1_12, and it can be determined that the first part of the data D1_1 received by the second coding unit 201 is abnormal (that is, the first part of the data D1_1 received by the receiving side of the second device 3000 is abnormal). At this time, the first decoding and error correction unit 203 can obtain the first coding result D1_11 and the second coding result D1_12 from the memory, and then decode the first coding result D1_11 and the second coding result D1_12. Then, the data decoded from the first coding result D1_11 is compared with each bit of the data decoded from the second coding result D1_12 one by one to determine the bit of data error in the data decoded from the second coding result D1_12. Then, the bit of data error is corrected, that is, the bit of data error is discarded and replaced with the correct data. After the error correction of the data decoded from the second coding result D1_12, the same data as the first part of data D1_1 received by the first coding unit 101 can be obtained, and then the data is input into the bus, and then the second device 3000 can receive the accurate first part of data D1_1. In this embodiment, the data can be corrected in real time when the first part of data D1_1 is abnormal, which is conducive to reducing the risk and loss caused by data errors and improving the reliability and credibility of the data.
[0041] In one embodiment, if Figure 4 As shown, the first data D1 also includes the second part of data D1_2. The first data processing module 100 also includes a third encoding unit 102. The second data processing module 200 also includes a fourth encoding unit 204 and a second comparator 205.
[0042] The third encoding unit 102 is connected to the bus. The third encoding unit 102 is configured to receive the second part of the data D1_2 through the bus, and output a third encoding result D1_21 after encoding the second part of the data D1_2 based on the second encoding type, wherein the first check data D11 includes the third encoding result D1_2. The second encoding type may correspond to the setting method of the first check data D11 in the above embodiment, and the second encoding type includes ECC encoding, parity encoding or CRC encoding, etc. It can be understood that since the first data D1 received by the first data processing module 100 is the data on the output side of the first device 2000, the second part of the data D1_2 received by the third encoding unit 102 is the data on the output side of the first device 2000.
[0043] The fourth encoding unit 204 is connected to the bus. The fourth encoding unit 204 is configured to receive the second portion of data D1_2 through the bus, and output a fourth encoding result D1_22 after encoding the second portion of data D1_2 based on the second encoding type. It can be understood that since the first data D1 received by the second data processing module 200 is data on the receiving side of the second device 3000, the second portion of data D1_2 received by the fourth encoding unit 204 is data on the receiving side of the second device 3000.
[0044] The second comparator 205 is respectively connected to the third encoding unit 102, the fourth encoding unit 204 and the control module 300. The second comparator 205 is configured to receive the third encoding result D1_21 and the fourth encoding result D1_22, and output a second comparison result D1_23 to the control module 300 based on the third encoding result D1_21 and the fourth encoding result D1_22, wherein the second processing result D22 includes the second comparison result D1_23. Specifically, the inputs of the third coding result D1_21 and the fourth coding result D1_22 are both the second part of the data D1_2 (the only difference is that the positions of receiving the second part of the data D1_2 are different), and the same coding method is used. If the second part of the data D1_2 does not have an abnormality during the data transmission process, the control module 300 should determine that the third coding result D1_21 is the same as the fourth coding result D1_22 based on the second comparison result D1_23; conversely, if the second part of the data D1_2 has an abnormality during the data transmission process, the control module 300 should determine that the third coding result D1_21 is different from the fourth coding result D1_22 based on the second comparison result D1_23. Thus, the control module 300 can determine in real time whether the second part of the data D1_2 has an abnormality.
[0045] It should be noted that the second coding type may be the same as or different from the first coding type. For example, in a specific implementation, the first coding type may be configured as ECC coding to implement data verification and error correction, thereby ensuring the accuracy and reliability of the data. In this case, the unit implementing ECC coding includes the first coding unit 101, the second coding unit 201, and the first decoding and error correction unit 203; and the second coding type may be configured as parity coding to implement data verification, thereby simplifying the verification process and reducing the cost. In this case, the unit implementing parity coding includes the third coding unit 102 and the fourth coding unit 204. On this basis, the first part of data D1_1 can be configured as the most important and abnormal data in the first data D1, and the other data can be configured as the second part of data D1_2. For example, in a specific embodiment, the bus between the first device 2000 and the second device 3000 is an AHB (Advanced High-performance Bus) bus, and the first data D1 includes a write enable signal, an address signal, a transmission type signal, and transmitted data. The address signal and the transmission data can be used as the first part of data D1_1, and the other data (such as the write enable signal) can be used as the second part of data D1_2. Of course, in other embodiments, the first part of data D1_1 and the second part of data D1_2 can also be configured accordingly based on the needs of the actual application scenario, and the first data D1 can also be divided into more or fewer parts of data, such as dividing the first data D1 into three parts of data, and configuring a corresponding encoding type for each part.
[0046] In one embodiment, if Figure 5 As shown, the second data D2 includes the third part of data D2_1. The first data processing module 100 includes a sixth encoding unit 103 and a third comparator 104. The second data processing module 200 includes a fifth encoding unit 206.
[0047] The fifth encoding unit 206 is connected to the bus. The fifth encoding unit 206 is configured to receive the third part of the data D2_1 through the bus, and output the fifth encoding result D2_11 after encoding the third part of the data D2_1 based on the first encoding type, wherein the second verification data D21 includes the fifth encoding result D2_11. The first encoding type corresponds to the setting method of the second verification data D21 in the above embodiment, and the first encoding type includes ECC encoding, parity encoding or CRC encoding. It can be understood that since the second data D2 received by the second data processing module 200 is the data on the output side of the second device 3000, the third part of the data D2_1 received by the fifth encoding unit 206 is the data on the output side of the second device 3000.
[0048] The sixth encoding unit 103 is connected to the bus. The sixth encoding unit 103 is configured to receive the third portion of data D2_1 through the bus, and output a sixth encoding result D2_12 after encoding the third portion of data D2_1 based on the first encoding type. It can be understood that since the second data D2 received by the first data processing module 100 is data on the receiving side of the first device 2000, the third portion of data D2_1 received by the sixth encoding unit 103 is data on the receiving side of the first device 2000.
[0049] The third comparator 104 is respectively connected to the fifth encoding unit 206, the sixth encoding unit 103 and the control module 300. The third comparator 104 is configured to receive the fifth encoding result D2_11 and the sixth encoding result D2_12, and output a third comparison result D2_13 to the control module 300 based on the fifth encoding result D2_11 and the sixth encoding result D2_12, wherein the first processing result D12 includes the third comparison result D2_13. Specifically, the inputs of the fifth encoding unit 206 and the sixth encoding unit 103 are both the third part of the data D2_1 (the only difference is that the position of receiving the third part of the data D2_1 is different), and the same encoding method is used. If the third part of the data D2_1 does not have an abnormality during the data transmission process, the control module 300 should determine that the fifth encoding result D2_11 is the same as the sixth encoding result D2_12 based on the third comparison result D2_13; conversely, if the third comparison result D2_13 is abnormal during the data transmission process, the control module 300 should determine that the fifth encoding result D2_11 is different from the sixth encoding result D2_12 based on the first comparison result D1_13. Thus, the control module 300 can determine in real time whether the third comparison result D2_13 is abnormal.
[0050] In one embodiment, if Figure 6 As shown, the first data processing module 100 further includes a second decoding and error correction unit 105, and the second decoding and error correction unit 105 is respectively connected to the fifth encoding unit 206, the third comparator 104 and the bus.
[0051] The second decoding and error correction unit 105 is configured to receive the fifth coding result D2_12 and the third comparison result D2_13, and to correct the third partial data D2_1 input to the sixth coding unit 103 based on the fifth coding result D2_11 when determining that the third comparison result D2_13 is abnormal. Specifically, the abnormality of the third comparison result D2_13 corresponds to the difference between the fifth coding result D2_11 and the sixth coding result D2_12, and it can be determined that the third partial data D2_1 received by the sixth coding unit 103 is abnormal (that is, the third partial data D2_1 received by the receiving side of the first device 2000 is abnormal). At this time, the second decoding and error correction unit 105 obtains the fifth coding result D2_11 and the sixth coding result D2_12 from the memory, and then decodes the fifth coding result D2_11 and the sixth coding result D2_12. Then, the decoded data of the fifth coding result D2_11 is compared with each bit of the decoded data of the sixth coding result D2_12 one by one to determine the bit of data error in the decoded data of the sixth coding result D2_12. Then the bit of data error is corrected, that is, the bit of data error is discarded and replaced with correct data. After the error correction of the data decoded by the sixth coding result D2_12, the same data as the third part of data D2_1 received by the fifth coding unit 206 can be obtained, and then the data is input to the bus, and then the first device 2000 can receive the accurate third part of data D2_1. In this embodiment, the data can be corrected in real time when the third part of data D2_1 is abnormal, which is conducive to reducing the risk and loss caused by data errors and improving the reliability and credibility of the data.
[0052] In one embodiment, if Figure 7 As shown, the second data D2 also includes a fourth portion of data D2_2. The first data processing module 100 also includes an eighth encoding unit 106 and a fourth comparator 107. The second data processing module 200 also includes a seventh encoding unit 207.
[0053] Among them, the seventh encoding unit 207 is connected to the bus. The seventh encoding unit 207 is configured to receive the fourth part of the data D2_2 through the bus, and output the seventh encoding result D2_21 after encoding the fourth part of the data D2_2 based on the second encoding type, wherein the second verification data D21 includes the seventh encoding result D2_21. The second encoding type may correspond to the setting method of the second verification data D21 in the above embodiment, and the second encoding type includes ECC encoding, parity encoding or CRC encoding. It can be understood that since the second data D2 received by the second data processing module 200 is the data on the output side of the second device 3000, the fourth part of the data D2_2 received by the seventh encoding unit 207 is the data on the output side of the second device 3000.
[0054] The eighth encoding unit 106 is connected to the bus. The eighth encoding unit 106 is configured to receive the fourth portion of data D2_2 through the bus, and output an eighth encoding result D2_22 after encoding the fourth portion of data D2_2 based on the second encoding type. It can be understood that since the second data D2 received by the first data processing module 100 is data on the receiving side of the first device 2000, the fourth portion of data D2_2 received by the eighth encoding unit 106 is data on the receiving side of the first device 2000.
[0055] The fourth comparator 107 is configured to receive the seventh coding result D2_21 and the eighth coding result D2_22, and output the fourth comparison result D2_23 to the control module 300 based on the seventh coding result D2_21 and the eighth coding result D2_22, wherein the first processing result D12 includes the fourth comparison result D2_23. Specifically, the inputs of the seventh coding result D2_21 and the eighth coding result D2_22 are both the fourth part of the data D2_2 (the only difference is that the position of receiving the fourth part of the data D2_2 is different), and the same encoding method is used. If the fourth part of the data D2_2 does not have an abnormality during the data transmission process, the control module 300 should determine that the seventh coding result D2_21 is the same as the eighth coding result D2_22 based on the fourth comparison result D2_23; conversely, if the fourth part of the data D2_2 has an abnormality during the data transmission process, the control module 300 should determine that the seventh coding result D2_21 is different from the eighth coding result D2_22 based on the fourth comparison result D2_23. Thus, the control module 300 can determine in real time whether the fourth part of data D2_2 is abnormal.
[0056] It can be understood that the specific configuration of the second data D2, the third part of the data D2_1 and the fourth part of the data D2_2 is similar to the specific configuration of the first data D1, the first part of the data D1_1 and the second part of the data D1_2. For details, please refer to the description of the first data D1, the first part of the data D1_1 and the second part of the data D1_2, which will not be repeated here.
[0057] In one embodiment, if Figure 8 As shown, the first data processing module 100 further includes a third device 108 and a fifth comparator 109 .
[0058] The third device 108 is configured the same as the first device 2000 and outputs the third data D3. The third device 108 can be understood as a copy of the first device 2000, and the inputs of the two are completely the same.
[0059] The fifth comparator 109 is connected to the bus, the third device 108 and the control module 300 respectively. The fifth comparator 109 is configured to receive the first data D1 and the third data D3, and output a fifth comparison result D31 to the control module 300 based on the first data D1 and the third data D3. Specifically, the first device 2000 and the third device 108 are the same device and have the same input. If the first device 2000 and the third device 108 are not abnormal (or the first data D1 and the third data D3 are not abnormal), the outputs of the first device 2000 and the third device 108 should also be consistent; conversely, if at least one of the first device 2000 and the third device 108 is abnormal (or at least one of the first data D1 and the third data D3 is abnormal), the outputs of the first device 2000 and the third device 108 are inconsistent.
[0060] Then, after receiving the fifth comparison result D31, the control module 300 can determine whether the outputs of the first device 2000 and the third device 108 are consistent based on the fifth comparison result. If they are consistent, it is determined that both the first data D1 and the third data D3 are not abnormal; if they are inconsistent, it is determined that at least one of the first data D1 and the third data D3 is abnormal.
[0061] In one embodiment, if Fig. 9 As shown, the second data processing module 200 includes a fourth device 208 and a sixth comparator 209 .
[0062] The fourth device 208 is configured the same as the second device 3000 and outputs fourth data D4. The fourth device 208 can be understood as a copy of the second device 3000, and the inputs of the two are completely the same.
[0063] The sixth comparator 209 is connected to the bus, the fourth device 208 and the control module 300 respectively. The sixth comparator 209 is configured to receive the second data D2 and the fourth data D4, and output a sixth comparison result D42 to the control module 300 based on the second data D2 and the fourth data D4. Specifically, the second device 3000 and the fourth device 208 are the same device and have the same input. If the second device 3000 and the fourth device 208 are not abnormal (or the second data D2 and the fourth data D4 are not abnormal), the outputs of the second device 3000 and the fourth device 208 should also be consistent; conversely, if at least one of the second device 3000 and the fourth device 208 is abnormal (or at least one of the second data D2 and the fourth data D4 is abnormal), the outputs of the second device 3000 and the fourth device 208 are inconsistent.
[0064] Then, after receiving the sixth comparison result D42, the control module 300 can determine whether the outputs of the second device 3000 and the fourth device 208 are consistent based on the sixth comparison result D42. If they are consistent, it is determined that both the second data D2 and the fourth data D4 are not abnormal; if they are inconsistent, it is determined that at least one of the second data D2 and the fourth data D4 is abnormal.
[0065] An embodiment of the present application also provides a laser radar, which includes the laser radar chip in any embodiment of the present application.
[0066] 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.
[0067] 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 data processing system, characterized in that: The data processing system is used for processing data transmitted between a first device and a second device, wherein the first device and the second device are connected via a bus, the first device outputs first data and transmits it to the second device via the bus, and the second device outputs second data and transmits it to the first device via the bus, and the data processing system comprises: a first data processing module, disposed between the first device and the second device, configured to set first verification data based on the first data, receive second verification data, and output a first processing result based on the second verification data and the second data; a second data processing module, disposed between the first data processing module and the second device, configured to set the second verification data based on the second data, receive the first verification data, and output a second processing result based on the first verification data and the first data; The control module is connected to the first data processing module and the second data processing module respectively, and is configured to receive the first processing result and the second processing result, and determine whether the second data is abnormal based on the first processing result, and determine whether the first data is abnormal based on the second processing result.
2. The data processing system according to claim 1, characterized in that The first data includes a first portion of data; The first data processing module includes: a first encoding unit connected to the bus, configured to receive the first portion of data through the bus, and to encode the first portion of data based on a first encoding type and output a first encoding result, wherein the first verification data includes the first encoding result; The second data processing module includes: a second encoding unit connected to the bus, configured to receive the first part of data through the bus, and perform encoding on the first part of data based on the first encoding type and output a second encoding result; A first comparator is connected to the first encoding unit, the second encoding unit and the control module respectively, and is configured to receive the first encoding result and the second encoding result, and output a first comparison result to the control module based on the first encoding result and the second encoding result, wherein the second processing result includes the first comparison result.
3. The data processing system according to claim 2, characterized in that: The second data processing module also includes: a first decoding and error correction unit, which is respectively connected to the first encoding unit, the first comparator and the bus, and is configured to receive the first encoding result and the first comparison result, and correct the first part of the data input to the second encoding unit based on the first encoding result when it is determined that the first comparison result is abnormal.
4. The data processing system according to claim 2, characterized in that: The first data also includes a second portion of data; The first data processing module further includes: a third encoding unit connected to the bus, configured to receive the second portion of data through the bus, and perform encoding on the second portion of data based on a second encoding type and output a third encoding result, wherein the first verification data includes the third encoding result; The second data processing module further includes: a fourth encoding unit connected to the bus, configured to receive the second portion of data through the bus, and output a fourth encoding result after encoding the second portion of data based on the second encoding type; A second comparator is respectively connected to the third encoding unit, the fourth encoding unit and the control module, and is configured to receive the third encoding result and the fourth encoding result, and output a second comparison result to the control module based on the third encoding result and the fourth encoding result, wherein the second processing result includes the second comparison result.
5. The data processing system according to claim 1, characterized in that: The second data includes a third portion of data; The second data processing module includes: a fifth encoding unit connected to the bus, configured to receive the third portion of data through the bus, and to encode the third portion of data based on the first encoding type and output a fifth encoding result, wherein the second verification data includes the fifth encoding result; The first data processing module includes: a sixth encoding unit connected to the bus, configured to receive the third portion of data through the bus, and output a sixth encoding result after encoding the third portion of data based on the first encoding type; A third comparator is respectively connected to the fifth encoding unit, the sixth encoding unit and the control module, and is configured to receive the fifth encoding result and the sixth encoding result, and output a third comparison result to the control module based on the fifth encoding result and the sixth encoding result, wherein the first processing result includes the third comparison result.
6. The data processing system according to claim 5, characterized in that: The first data processing module also includes: a second decoding and error correction unit, which is respectively connected to the fifth encoding unit, the third comparator and the bus, and is configured to receive the fifth encoding result and the third comparison result, and correct the third part of the data input to the sixth encoding unit based on the fifth encoding result when it is determined that the third comparison result is abnormal.
7. The data processing system according to claim 5, characterized in that: The second data also includes a fourth part of data; The second data processing module further includes: a seventh encoding unit connected to the bus, configured to receive the fourth portion of data through the bus, and to encode the fourth portion of data based on the second encoding type and output a seventh encoding result, wherein the second verification data includes the seventh encoding result; The first data processing module further includes: an eighth encoding unit connected to the bus, configured to receive the fourth portion of data through the bus, and to perform encoding on the fourth portion of data based on the second encoding type and output an eighth encoding result; A fourth comparator is configured to receive the seventh coding result and the eighth coding result, and output a fourth comparison result to the control module based on the seventh coding result and the eighth coding result, wherein the first processing result includes the fourth comparison result.
8. The data processing system according to claim 4 or 7, characterized in that: The first encoding type is ECC encoding, and the second encoding type is parity checking encoding.
9. The data processing system according to claim 1, characterized in that: The first data processing module includes: a third device configured the same as the first device and outputting third data; a fifth comparator, connected to the bus, the third device and the control module respectively, configured to receive the first data and the third data, and output a fifth comparison result to the control module based on the first data and the third data; The control module is further configured to receive the fifth comparison result, and determine whether the first data and the third data are abnormal based on the fifth comparison result.
10. The data processing system according to claim 1, characterized in that: The second data processing module includes: a fourth device configured the same as the second device and outputting fourth data; a sixth comparator, connected to the bus, the fourth device and the control module respectively, configured to receive the second data and the fourth data, and output a sixth comparison result to the control module based on the second data and the fourth data; The control module is further configured to receive the sixth comparison result, and determine whether the second data and the fourth data are abnormal based on the sixth comparison result.
11. A laser radar chip, characterized in that: comprising a first device, a second device, a bus, and a data processing system as claimed in any one of claims 1 to 10; The first device and the second device are connected via the bus, and the data processing system is arranged between the first device and the second device.
12. A laser radar, characterized in that: Comprising a laser radar chip as described in claim 11.
Citation Information
Patent Citations
Dual-redundant unmanned ship ship-borne control system and method based on ARM
CN107092211A
Register fault detector
CN115509831A
Secure data transmission between two modules
CN1792059A
Control method for error detection & correction apparatus, error detection & correction apparatus, and control program for error detection & correction apparatus
US20060236213A1
Error correcting device, method for monitoring an error correcting device and data processing system
US20140189462A1
