A detection method, device, computer equipment and storage medium
By determining the connection and configuration status data during self-driving vehicle sensor self-test and generating alarm information, it solves the monitoring difficulty of being unable to distinguish between hardware and algorithm problems in the existing technology, and improves the accuracy of sensor self-test and the safety of autonomous driving.
Patent Information
- Application Number
- CN202011460271.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-12-11
AI Technical Summary
When monitoring autonomous vehicle sensors, the existing technology cannot accurately distinguish between algorithm modules and hardware problems, resulting in poor monitoring results.
By determining connection status data and configuration status data during sensor self-test, alarm information is generated to prompt maintenance, and hardware or algorithm problems are accurately located when monitoring algorithm modules.
It improves the accuracy and efficiency of sensor self-test and ensures the safety of autonomous vehicles.
Smart Images

Figure CN112445667B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a detection method, apparatus, computer equipment and storage medium. Background Art
[0002] As autonomous driving becomes more and more mature, many types of autonomous vehicles are entering different fields, such as driverless minibuses and driverless taxis. A large number of sensors, such as cameras and radars, are installed on autonomous vehicles. By processing the data collected by the sensors, the vehicle's autonomous driving control can be achieved. In order to ensure the safe driving of the vehicle, it is necessary to ensure the stability of each sensor installed on the vehicle.
[0003] In the related art, in order to ensure the stability of the sensor, each algorithm module that processes the sensor data is generally monitored, such as the perception module, control module, prediction module, etc. However, when an algorithm module has an abnormality, this method cannot determine whether the problem is with the algorithm module itself or with the sensor hardware, and the monitoring effect is poor. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a detection method, apparatus, computer equipment and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a detection method, comprising:
[0006] Determining that a self-test of a sensor on the vehicle to be detected is triggered;
[0007] Determine at least one state data to be detected of the sensor on the vehicle to be detected, wherein the state data to be detected includes connection state data between the sensor and the vehicle-mounted host, and / or configuration state data of the sensor; wherein the vehicle-mounted host can control the vehicle to be detected according to the data collected by the sensor;
[0008] When it is determined based on the state data to be detected that the sensor is abnormal, an alarm message is issued.
[0009] In the above method, after the sensor self-test is triggered, the sensor's state data to be detected can be determined first. The connection state data and configuration state data included in the state data to be detected are both data of the sensor's hardware. When it is determined that the sensor has an abnormality based on the state data to be detected, an alarm message can be generated to prompt the staff to promptly repair the sensor of the vehicle to be detected. In addition, since the determined abnormality must be an abnormality of the sensor itself, when the algorithm module that monitors and processes the data of each sensor is used, it can be accurately located whether it is a hardware problem of the sensor itself or a problem with the processing process of the algorithm module, thereby improving the self-test effect of the sensor.
[0010] In a possible implementation manner, it is determined that the self-test of the sensor on the vehicle to be detected is triggered in the following cases:
[0011] The vehicle to be detected is started, and / or, a sensor self-check on the vehicle to be detected is determined to be triggered at a preset time interval.
[0012] Through this implementation, the sensor can be detected before the vehicle to be detected travels, thereby improving the safety of the vehicle to be detected during travel.
[0013] In a possible implementation manner, when the sensor includes a laser radar, a camera, and a global navigation satellite system GNSS, the method further includes determining the connection status data of the sensor according to the following method:
[0014] Sending a test instruction to the sensor; the test instruction is used to control the sensor to collect data;
[0015] Based on the data returned by the sensor, connection status data of the sensor is determined.
[0016] If there is no abnormality in the connection between the sensor and the vehicle host, the data returned by the sensor must be the data under the test instruction. Therefore, based on this, the connection status data of the sensor can be determined.
[0017] In a possible implementation manner, when the sensor includes a millimeter wave radar or an ultrasonic radar, the millimeter wave radar or the ultrasonic radar is connected to the vehicle-mounted host through a bus analyzer; the bus analyzer is used to convert the data collected by the millimeter wave radar or the ultrasonic radar into a format readable by the vehicle-mounted host;
[0018] The method further comprises determining the connection status data of the sensor according to the following method:
[0019] confirming the status information of the bus analyzer;
[0020] Based on the status information of the bus analyzer, connection status data of the sensor is determined.
[0021] In a possible implementation manner, when the sensor includes a millimeter wave radar or an ultrasonic radar, the state data to be detected also includes operating state data;
[0022] The method further comprises determining the operating status data of the sensor according to the following method:
[0023] When the status information of the bus analyzer is normally opened, obtaining serial port data output by the bus analyzer;
[0024] Based on the serial port data output by the bus analyzer, the operating status data of the sensor is determined.
[0025] In a possible implementation manner, when the sensor includes a radar, the configuration status data of the radar is determined according to the following method:
[0026] Acquiring identification information of a radar deployed on the vehicle to be detected;
[0027] Based on the identification information of the radar, determining a configuration webpage for storing configuration status data of the radar;
[0028] The configuration status data of the radar is obtained from the configuration webpage.
[0029] Through this method, the configuration status data of the radar can be accurately obtained, which improves the monitoring efficiency of the radar configuration status.
[0030] In a possible implementation manner, when the sensor includes a camera and / or a global navigation satellite system GNSS, the configuration state data of the sensor is determined according to the following method:
[0031] Read the configuration status data written into the sensor.
[0032] In a possible implementation manner, when the sensor includes a global navigation satellite system GNSS, the state data to be detected further includes operating state data;
[0033] The method further comprises:
[0034] The operating status data in the receiver of the global navigation satellite system GNSS is read, wherein the operating status data is an operating detection result of the global navigation satellite system GNSS.
[0035] In a possible implementation manner, when it is determined based on the state data to be detected that the sensor is abnormal, issuing an alarm message includes:
[0036] When it is determined based on the connection status data that the connection between the sensor and the vehicle-mounted host is abnormal, a first warning message is issued based on the connection status data.
[0037] In a possible implementation manner, when it is determined based on the state data to be detected that the sensor is abnormal, issuing an alarm message includes:
[0038] When it is determined that the sensor configuration is abnormal based on the configuration status data of the sensor and the reference configuration data of the sensor, second warning information is issued based on the configuration status data.
[0039] Through this implementation, different alarm information can be issued based on different abnormalities, so that the staff can quickly locate the abnormality of the sensor according to the alarm information, which facilitates timely maintenance of the sensor.
[0040] In a second aspect, the present disclosure also provides a detection device, including:
[0041] A first determination module, used to determine whether a self-test of a sensor on a to-be-detected vehicle is triggered;
[0042] A second determination module is used to determine at least one state data to be detected of the sensor on the vehicle to be detected, wherein the state data to be detected includes connection state data between the sensor and the vehicle-mounted host, and / or configuration state data of the sensor; wherein the vehicle-mounted host can control the vehicle to be detected according to the data collected by the sensor;
[0043] The alarm module is used to issue an alarm message when it is determined that the sensor is abnormal based on the state data to be detected.
[0044] In a possible implementation manner, the first determination module determines that the self-test of the sensor on the to-be-detected vehicle is triggered in the following circumstances:
[0045] The vehicle to be detected is started, and / or, a sensor self-check on the vehicle to be detected is determined to be triggered at a preset time interval.
[0046] In a possible implementation manner, when the sensor includes a laser radar, a camera, and a global navigation satellite system GNSS, the second determination module is used to determine the connection status data of the sensor according to the following method:
[0047] Sending a test instruction to the sensor; the test instruction is used to control the sensor to collect data;
[0048] Based on the data returned by the sensor, connection status data of the sensor is determined.
[0049] In a possible implementation manner, when the sensor includes a millimeter wave radar or an ultrasonic radar, the millimeter wave radar or the ultrasonic radar is connected to the vehicle-mounted host through a bus analyzer; the bus analyzer is used to convert the data collected by the millimeter wave radar or the ultrasonic radar into a format readable by the vehicle-mounted host;
[0050] The second determining module is further configured to determine the connection status data of the sensor according to the following method:
[0051] confirming the status information of the bus analyzer;
[0052] Based on the status information of the bus analyzer, connection status data of the sensor is determined.
[0053] In a possible implementation manner, when the sensor includes a millimeter wave radar or an ultrasonic radar, the state data to be detected also includes operating state data;
[0054] The second determining module is further configured to determine the operating status data of the sensor according to the following method:
[0055] When the status information of the bus analyzer is normally opened, obtaining serial port data output by the bus analyzer;
[0056] Based on the serial port data output by the bus analyzer, the operating status data of the sensor is determined.
[0057] In a possible implementation manner, when the sensor includes a radar, the second determination module is configured to determine the configuration status data of the radar according to the following method:
[0058] Acquiring identification information of a radar deployed on the vehicle to be detected;
[0059] Based on the identification information of the radar, determining a configuration webpage for storing configuration status data of the radar;
[0060] The configuration status data of the radar is obtained from the configuration webpage.
[0061] In a possible implementation manner, when the sensor includes a camera and / or a global navigation satellite system GNSS, the second determination module is configured to determine the configuration state data of the sensor according to the following method:
[0062] Read the configuration status data written into the sensor.
[0063] In a possible implementation manner, when the sensor includes a global navigation satellite system GNSS, the state data to be detected further includes operating state data;
[0064] The second determining module is further used for:
[0065] The operating status data in the receiver of the global navigation satellite system GNSS is read, wherein the operating status data is an operating detection result of the global navigation satellite system GNSS.
[0066] In a possible implementation manner, when the alarm module determines that the sensor is abnormal based on the state data to be detected and issues an alarm message, it is used to:
[0067] When it is determined based on the connection status data that the connection between the sensor and the vehicle-mounted host is abnormal, a first warning message is issued based on the connection status data.
[0068] In a possible implementation manner, when the alarm module determines that the sensor is abnormal based on the state data to be detected and issues an alarm message, it is used to:
[0069] When it is determined that the sensor configuration is abnormal based on the configuration status data of the sensor and the reference configuration data of the sensor, second warning information is issued based on the configuration status data.
[0070] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.
[0071] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.
[0072] For a description of the effects of the above-mentioned detection device, computer equipment, and computer-readable storage medium, please refer to the description of the above-mentioned detection method, which will not be repeated here.
[0073] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0075] Figure 1 A flow chart of a detection method provided by an embodiment of the present disclosure is shown;
[0076] Figure 2 A flow chart of determining the connection status information of a sensor in the detection method provided by an embodiment of the present disclosure is shown;
[0077] Figure 3 A flow chart showing a method for determining configuration device data of a radar in a detection method provided by an embodiment of the present disclosure;
[0078] Figure 4 A schematic diagram of the architecture of a detection device provided by an embodiment of the present disclosure is shown;
[0079] Figure 5 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0081] After research, it was found that in the related technology, only the algorithm module corresponding to the sensor can be monitored, and this monitoring method has a poor monitoring effect. Based on this, the present disclosure provides a detection method, device, computer equipment and storage medium. In the above method, after the sensor self-check is triggered, the sensor's state data to be detected can be determined first. The connection state data and configuration state data included in the state data to be detected are both data of the sensor's hardware. When it is determined that the sensor has an abnormality based on the state data to be detected, an alarm message can be generated to prompt the staff to repair the sensor of the vehicle to be detected in time; in addition, since the determined abnormality must be an abnormality of the sensor itself, when the algorithm module that processes the data of each sensor is monitored based on this, it can be accurately located whether it is a hardware problem of the sensor itself or a problem in the processing process of the algorithm module, thereby improving the self-check effect of the sensor.
[0082] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.
[0083] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0084] To facilitate understanding of the present embodiment, a detection method disclosed in the embodiment of the present disclosure is first introduced in detail. The executor of the detection method provided in the embodiment of the present disclosure is generally a vehicle-mounted host installed on the vehicle to be detected. The vehicle-mounted host may be, for example, an industrial computer, which is an industrial control computer. Its main function is to be responsible for all calculation processes on the vehicle to be detected, for example, it can be used to control and monitor various sensors, perform calculations based on the data collected by the sensors, so as to control the driving of the vehicle to be detected, etc.
[0085] First, the application scenario of the method provided by the present disclosure is introduced. The method provided by the present disclosure is applicable to self-inspection of hardware devices installed on a vehicle. The hardware devices are the following sensors, which are all installed on the vehicle to be detected. The vehicle to be detected is also equipped with a vehicle-mounted host, and the sensors are all connected to the vehicle-mounted host.
[0086] See also Figure 1 FIG. 1 is a flow chart of a detection method provided by an embodiment of the present disclosure, wherein the method includes steps 101 to 103, wherein:
[0087] Step 101: Determine whether a self-test of a sensor on a to-be-detected vehicle is triggered.
[0088] Step 102: determine at least one state data to be detected of the sensor on the vehicle to be detected, wherein the state data to be detected includes connection state data between the sensor and the vehicle-mounted host, and / or configuration state data of the sensor; wherein the vehicle-mounted host can control the vehicle to be detected according to the data collected by the sensor.
[0089] Step 103: When it is determined based on the state data to be detected that the sensor is abnormal, an alarm message is issued.
[0090] In the above method, after the sensor self-test is triggered, the sensor's state data to be detected can be determined first. The connection state data and configuration state data included in the state data to be detected are both data of the sensor's hardware. When it is determined that the sensor has an abnormality based on the state data to be detected, an alarm message can be generated to prompt the staff to promptly repair the sensor of the vehicle to be detected. In addition, since the determined abnormality must be an abnormality of the sensor itself, when the algorithm module that monitors and processes the data of each sensor is used, it can be accurately located whether it is a hardware problem of the sensor itself or a problem with the processing process of the algorithm module, thereby improving the self-test effect of the sensor.
[0091] The following is a detailed description of the above steps.
[0092] For step 101,
[0093] In a possible implementation, when determining that the self-test of the sensor on the vehicle to be detected is triggered, it can be when the vehicle to be detected is started, determining that the self-test of the sensor on the vehicle to be detected is triggered; and / or, determining that the self-test of the sensor on the vehicle to be detected is triggered every preset time period.
[0094] Here, the determining that the sensor self-test on the vehicle to be detected is triggered at preset time intervals may be, starting from the moment the vehicle to be detected is started, determining that the sensor self-test on the vehicle to be detected is triggered at preset time intervals; or determining that the sensor self-test on the vehicle to be detected is triggered at preset time intervals starting from the moment the vehicle to be detected is started;
[0095] Through this implementation, the sensor can be detected before the vehicle to be detected travels, thereby improving the safety of the vehicle to be detected during travel.
[0096] The sensor is a component installed on the vehicle to be detected, and may include, for example, at least one of a radar, a camera, a global satellite navigation system GNSS receiver, etc., wherein the radar may include a laser radar, a millimeter wave radar, an ultrasonic radar, etc.
[0097] For step 102,
[0098] In a possible implementation, when determining the connection status information of the sensor, different determination methods may be performed according to different types of sensors.
[0099] For example, when the sensor includes a laser radar, a camera, and a global navigation satellite system GNSS, the sensor can be Figure 2 The method shown determines the connection status information of the sensor, including the following steps:
[0100] Step 201: Send a test instruction to the sensor; the test instruction is used to control the sensor to collect data.
[0101] Step 202: Determine the connection status data of the sensor based on the data returned by the sensor.
[0102] If there is no abnormality in the connection between the sensor and the vehicle host, the data returned by the sensor must be the data under the test instruction. Therefore, based on this, the connection status data of the sensor can be determined.
[0103] In a possible implementation, when sending a test instruction to a sensor, a control webpage corresponding to each sensor may be accessed, and based on the control webpage, a test instruction may be sent to each sensor.
[0104] It should be noted that different sensors of the same type correspond to different control web pages. For example, if two cameras of the same model are installed on the vehicle to be tested, when sending test instructions for the two cameras to the vehicle host, the control web pages accessed are different.
[0105] In a possible implementation, when sending a test instruction to the sensor, multiple test instructions may be sent, and then it is detected whether packet loss occurs when the sensor returns data. If so, it indicates that the connection between the sensor and the vehicle-mounted host is abnormal.
[0106] For example, if the sensor is a camera, a test instruction for the camera can be sent by accessing the control web page of the camera. After receiving the test instruction, the camera can collect data and then feed the collected data back to the vehicle-mounted host. If the data collected by the camera can be returned to the vehicle-mounted host normally, it can be determined that the connection between the camera and the vehicle-mounted host is normal. If the camera has packet loss when returning data, it can be determined that the connection between the camera and the vehicle-mounted host is abnormal.
[0107] In a possible application scenario, if the radar is a millimeter-wave radar or an ultrasonic radar, the output data of the millimeter-wave radar and the ultrasonic radar is in the form of CAN FRAME, so the millimeter-wave radar and the ultrasonic radar need to convert the data into a format readable by the vehicle-mounted host through a bus analyzer, for example, the millimeter-wave radar and the vehicle-mounted host can be connected through the CAN bus analyzer kvaser. In this scenario, when determining the connection status data between the millimeter-wave radar (or ultrasonic radar) and the vehicle-mounted host, it is possible to determine whether the connection between the millimeter-wave radar (or ultrasonic radar) and the vehicle-mounted host is normal by checking the status of the bus analyzer. For example, if the kvaser status is "kvaser cannot be opened" or "kvaser output is abnormal", it can be determined that the connection between the millimeter-wave radar (or ultrasonic radar) and the vehicle-mounted host is abnormal.
[0108] In another possible implementation, when the sensor includes a millimeter wave radar or an ultrasonic radar, the state data to be detected also includes operating state data, and the operating state data is used to indicate whether the sensor operates normally.
[0109] When determining the operating status data of the millimeter wave radar or ultrasonic radar, the serial port data output by the bus analyzer can be obtained when the status information of the bus analyzer is normally opened, and then the operating status data of the sensor can be determined based on the serial port data output by the bus analyzer.
[0110] Exemplarily, if the serial port data is "empty data" or "ERROR FRAME", it means that the sensor is not operating normally, so the corresponding sensor operating status data is abnormal operation; if the serial port data is "normal data", the sensor operating status data is normal operation.
[0111] The configuration status data may refer to description data of the use environment of the sensor. For different sensors, the corresponding configuration status data may be exemplarily shown in Table 1 below:
[0112] Table 1
[0113]
[0114] For different sensors, the configuration state data may be determined differently. For example, when the sensor includes a radar, the configuration state data of the radar may be determined by: Figure 3 The method shown includes the following steps:
[0115] Step 301: Obtain identification information of a radar deployed on the vehicle to be detected.
[0116] Step 302: Based on the identification information of the radar, determine a configuration webpage for storing configuration status data of the radar.
[0117] In actual applications, a corresponding configuration webpage is configured for the radar when it leaves the factory. During the use of the radar, the user can set the corresponding configuration status data of the radar through the configuration webpage.
[0118] When determining a configuration webpage for storing configuration status data of the radar based on the identification information of the radar, what is actually determined is the IP address of the configuration webpage corresponding to the radar, through which the configuration webpage corresponding to the radar can be accessed.
[0119] Step 303: Obtain configuration status data of the radar from the configuration webpage.
[0120] Through this method, the configuration status data of the radar can be accurately obtained, which improves the monitoring efficiency of the radar configuration status.
[0121] In the case that the sensor includes a camera and / or a global navigation satellite system GNSS, when determining the configuration status data of the sensor, the configuration status data written into the sensor may be directly read.
[0122] Specifically, for the camera, when determining the corresponding configuration status data, the camera's driver layer can be accessed through the driver corresponding to the camera to obtain the camera's corresponding configuration status data; for the global navigation satellite system GNSS, when determining the corresponding configuration status data, the configuration status data written into the receiver of the global navigation satellite system GNSS can be viewed through the corresponding view command.
[0123] In a possible implementation, for a global navigation satellite system GNSS, the corresponding state data to be detected may also include operating state data, and the operating state data may be used to indicate whether the operating state of the sensor is normal.
[0124] When determining the operating status data of the sensor, the operating status data may be read out from a receiver of a global navigation satellite system GNSS.
[0125] Specifically, when reading the operating status data of a global navigation satellite system GNSS receiver, a corresponding viewing instruction can be sent to the global navigation satellite system GNSS receiver. Since the global navigation satellite system GNSS receiver itself has a self-inspection function for the operating status, the global navigation satellite system GNSS receiver can directly output the corresponding operating status data after receiving the viewing instruction. The operating status data is the operating detection result of the global navigation satellite system GNSS.
[0126] Here, the operating status data of the global navigation satellite system GNSS receiver may include, for example, whether the global navigation satellite system GNSS receiver has a fault, whether the positioning accuracy is too low, and the like.
[0127] For step 103,
[0128] In a possible implementation, when determining whether a sensor is abnormal based on the state data to be detected, different determination methods may be performed according to different types of state data to be detected.
[0129] Specifically, regarding the connection status data: since the connection status data itself can reflect whether the connection between the sensor and the vehicle-mounted host is abnormal, if the connection status data is abnormal, the sensor is also abnormal.
[0130] Regarding configuration status data: In actual applications, since the configuration status data of the sensor is manually configured, there may be multiple sensors of the same type on the vehicle to be detected. The data collected by multiple sensors of the same type may be applied to different modules. For example, for a camera, the image collected by the camera may be applied to a positioning module or an obstacle detection module. Therefore, the configuration status data of multiple sensors of the same type may be different. Therefore, manual configuration of the configuration status data may result in configuration errors, such as configuring the configuration status data corresponding to sensor A to sensor B.
[0131] When determining whether the sensor is abnormal based on the configuration status data of the sensor, it may be determined whether the sensor is abnormal based on the configuration status data of the sensor and the reference configuration data of the sensor.
[0132] Specifically, the reference configuration data may include reference data corresponding to multiple data, or a corresponding reference data range. When determining whether the sensor has an abnormality, it can be determined whether the configuration status data of the sensor is consistent with the reference configuration data of the sensor, or whether the configuration status data of the sensor is within the reference data range of the reference configuration data. If so, it is determined that there is no abnormality in the sensor.
[0133] In a possible implementation, when an alarm message is issued when it is determined that the sensor has an abnormality based on the status data to be detected, a first alarm message may be issued based on the connection status data when it is determined that the connection between the sensor and the vehicle-mounted host is abnormal based on the connection status data; and / or, when it is determined that the configuration of the sensor is abnormal based on the configuration status data of the sensor and the reference configuration data of the sensor, a second alarm message may be issued based on the configuration status data.
[0134] Through this implementation, different alarm information can be issued based on different abnormalities, so that the staff can quickly locate the abnormality of the sensor according to the alarm information, which facilitates timely maintenance of the sensor.
[0135] In a possible implementation, when the sensor includes multiple components, each operating component may have a corresponding warning indicator light, and the warning indicator light may be connected to the vehicle-mounted host. After generating an alarm message for any sensor, the vehicle-mounted host may control the indicator light corresponding to any sensor to light up.
[0136] In actual applications, if any of the sensors has a connection abnormality, then after generating a first alarm message indicating a connection abnormality, the indicator light corresponding to the sensor can be controlled to light up a color corresponding to the connection abnormality, such as a red light; if any of the sensors has a configuration abnormality, then after generating a second alarm message indicating a configuration abnormality, the indicator light corresponding to the sensor can be controlled to light up a color corresponding to the configuration abnormality, such as a yellow light; if any of the sensors has both a configuration abnormality and a connection abnormality at the same time, the indicator light corresponding to the sensor can be controlled to alternately display a yellow light and a red light.
[0137] In another possible implementation, the alarm information may also include identification information of the sensor. After the alarm information is generated, the alarm information may be sent to a preset user terminal, such as a user terminal of the owner of the vehicle to be inspected, or a user terminal of a vehicle maintenance staff, so that the sensor on the vehicle to be inspected can be repaired in time.
[0138] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0139] Based on the same inventive concept, a detection device corresponding to the detection method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned detection method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0140] Reference Figure 4 , which is a schematic diagram of the architecture of a detection device provided by an embodiment of the present disclosure, the device includes: a first determination module 401, a second determination module 402, and an alarm module 403; wherein,
[0141] A first determination module 401 is used to determine whether a self-test of a sensor on a to-be-detected vehicle is triggered;
[0142] The second determination module 402 is used to determine at least one state data to be detected of the sensor on the vehicle to be detected, wherein the state data to be detected includes connection state data between the sensor and the vehicle-mounted host, and / or configuration state data of the sensor; wherein the vehicle-mounted host can control the vehicle to be detected according to the data collected by the sensor;
[0143] The alarm module 403 is used to issue an alarm message when it is determined that the sensor is abnormal based on the state data to be detected.
[0144] In a possible implementation manner, the first determining module 401 determines that the self-test of the sensor on the to-be-detected vehicle is triggered in the following cases:
[0145] The vehicle to be detected is started, and / or, a sensor self-check on the vehicle to be detected is determined to be triggered at a preset time interval.
[0146] In a possible implementation manner, when the sensor includes a laser radar, a camera, and a global navigation satellite system GNSS, the second determination module 402 is configured to determine the connection status data of the sensor according to the following method:
[0147] Sending a test instruction to the sensor; the test instruction is used to control the sensor to collect data;
[0148] Based on the data returned by the sensor, connection status data of the sensor is determined.
[0149] In a possible implementation manner, when the sensor includes a millimeter wave radar or an ultrasonic radar, the millimeter wave radar or the ultrasonic radar is connected to the vehicle-mounted host through a bus analyzer; the bus analyzer is used to convert the data collected by the millimeter wave radar or the ultrasonic radar into a format readable by the vehicle-mounted host;
[0150] The second determining module 402 is further configured to determine the connection status data of the sensor according to the following method:
[0151] confirming the status information of the bus analyzer;
[0152] Based on the status information of the bus analyzer, connection status data of the sensor is determined.
[0153] In a possible implementation manner, when the sensor includes a millimeter wave radar or an ultrasonic radar, the state data to be detected also includes operating state data;
[0154] The second determining module 402 is further configured to determine the operating status data of the sensor according to the following method:
[0155] When the status information of the bus analyzer is normally opened, obtaining serial port data output by the bus analyzer;
[0156] Based on the serial port data output by the bus analyzer, the operating status data of the sensor is determined.
[0157] In a possible implementation manner, when the sensor includes a radar, the second determining module 402 is configured to determine the configuration status data of the radar according to the following method:
[0158] Acquiring identification information of a radar deployed on the vehicle to be detected;
[0159] Based on the identification information of the radar, determining a configuration webpage for storing configuration status data of the radar;
[0160] The configuration status data of the radar is obtained from the configuration webpage.
[0161] In a possible implementation manner, when the sensor includes a camera and / or a global navigation satellite system GNSS, the second determination module 402 is configured to determine the configuration state data of the sensor according to the following method:
[0162] Read the configuration status data written into the sensor.
[0163] In a possible implementation manner, when the sensor includes a global navigation satellite system GNSS, the state data to be detected further includes operating state data;
[0164] The second determining module 402 is further configured to:
[0165] The operating status data in the receiver of the global navigation satellite system GNSS is read, wherein the operating status data is an operating detection result of the global navigation satellite system GNSS.
[0166] In a possible implementation manner, when the alarm module 403 determines that the sensor is abnormal based on the state data to be detected and issues an alarm message, it is configured to:
[0167] When it is determined based on the connection status data that the connection between the sensor and the vehicle-mounted host is abnormal, a first warning message is issued based on the connection status data.
[0168] In a possible implementation manner, when the alarm module 403 determines that the sensor is abnormal based on the state data to be detected and issues an alarm message, it is configured to:
[0169] When it is determined that the sensor configuration is abnormal based on the configuration status data of the sensor and the reference configuration data of the sensor, second warning information is issued based on the configuration status data.
[0170] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0171] In the above-mentioned device and method, after the sensor self-test is triggered, the sensor's state data to be detected can be determined first. The connection state data and configuration state data included in the state data to be detected are both data of the sensor's hardware. When it is determined that the sensor has an abnormality based on the state data to be detected, an alarm message can be generated to prompt the staff to promptly repair the sensor of the vehicle to be detected. In addition, since the determined abnormality must be an abnormality of the sensor itself, when the algorithm module that processes the data of each sensor is monitored based on this, when an abnormality occurs in the algorithm module, it can be accurately located whether it is a hardware problem of the sensor itself or a problem with the processing process of the algorithm module, thereby improving the self-test effect of the sensor.
[0172] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 5 As shown, it is a schematic diagram of the structure of a computer device 500 provided in an embodiment of the present disclosure, including a processor 501, a memory 502, and a bus 503. Among them, the memory 502 is used to store execution instructions, including a memory 5021 and an external memory 5022; the memory 5021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 501, and the data exchanged with the external memory 5022 such as a hard disk. The processor 501 exchanges data with the external memory 5022 through the memory 5021. When the computer device 500 is running, the processor 501 communicates with the memory 502 through the bus 503, so that the processor 501 executes the following instructions:
[0173] Determining that a self-test of a sensor on the vehicle to be detected is triggered;
[0174] Determine at least one state data to be detected of the sensor on the vehicle to be detected, wherein the state data to be detected includes connection state data between the sensor and the vehicle-mounted host, and / or configuration state data of the sensor; wherein the vehicle-mounted host can control the vehicle to be detected according to the data collected by the sensor;
[0175] When it is determined based on the state data to be detected that the sensor is abnormal, an alarm message is issued.
[0176] The present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the detection method described in the above method embodiment are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0177] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the detection method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0178] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0179] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0180] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0181] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0182] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0183] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A detection method, It is characterized in that include: Determining that a self-test of a sensor on the vehicle to be detected is triggered; Determine at least one state data to be detected of the sensor on the vehicle to be detected, wherein the state data to be detected includes connection state data between the sensor and the vehicle-mounted host, and / or configuration state data of the sensor; wherein the vehicle-mounted host can control the vehicle to be detected according to the data collected by the sensor; When it is determined based on the state data to be detected that the sensor is abnormal, an alarm message is issued; Wherein, when it is determined based on the state data to be detected that the sensor is abnormal, issuing an alarm message includes: In the case where it is determined based on the connection status data that the connection between the sensor and the vehicle-mounted host is abnormal, issuing a first warning message based on the connection status data; or, When it is determined that the sensor configuration is abnormal based on the configuration status data of the sensor and the reference configuration data of the sensor, second warning information is issued based on the configuration status data.
2. The method according to claim 1, It is characterized in that The self-test of the sensor on the vehicle to be detected is determined to be triggered in the following cases: The vehicle to be detected is started, and / or, a sensor self-check on the vehicle to be detected is determined to be triggered at a preset time interval.
3. The method according to claim 1 or 2, It is characterized in that In the case where the sensor includes a lidar, a camera, and a global navigation satellite system GNSS, the method further includes determining the connection status data of the sensor according to the following method: Sending a test instruction to the sensor; the test instruction is used to control the sensor to collect data; Based on the data returned by the sensor, connection status data of the sensor is determined.
4. The method according to claim 1, It is characterized in that In the case where the sensor includes a millimeter wave radar or an ultrasonic radar, the millimeter wave radar or the ultrasonic radar is connected to the vehicle-mounted host through a bus analyzer; the bus analyzer is used to convert the data collected by the millimeter wave radar or the ultrasonic radar into a format readable by the vehicle-mounted host; The method further comprises determining the connection status data of the sensor according to the following method: confirming the status information of the bus analyzer; Based on the status information of the bus analyzer, connection status data of the sensor is determined.
5. The method according to claim 4, It is characterized in that In the case where the sensor includes a millimeter wave radar or an ultrasonic radar, the state data to be detected also includes operating state data; The method further comprises determining the operating status data of the sensor according to the following method: When the status information of the bus analyzer is normally opened, obtaining serial port data output by the bus analyzer; Based on the serial port data output by the bus analyzer, the operating status data of the sensor is determined.
6. The method according to claim 1, It is characterized in that In the case where the sensor includes a radar, the configuration status data of the radar is determined according to the following method: Acquiring identification information of a radar deployed on the vehicle to be detected; Based on the identification information of the radar, determining a configuration webpage for storing configuration status data of the radar; The configuration status data of the radar is obtained from the configuration webpage.
7. The method according to claim 1, It is characterized in that In the case where the sensor comprises a camera and / or a global navigation satellite system GNSS, the configuration status data of the sensor is determined according to the following method: Read the configuration status data written into the sensor.
8. The method according to claim 1, It is characterized in that In the case where the sensor includes a global navigation satellite system GNSS, the state data to be detected also includes operating state data; The method further comprises: The operating status data in the receiver of the global navigation satellite system GNSS is read, wherein the operating status data is an operating detection result of the global navigation satellite system GNSS.
9. A detection device, It is characterized in that include: A first determination module, used to determine whether a self-test of a sensor on a to-be-detected vehicle is triggered; A second determination module is used to determine at least one state data to be detected of the sensor on the vehicle to be detected, wherein the state data to be detected includes connection state data between the sensor and the vehicle-mounted host, and / or configuration state data of the sensor; wherein the vehicle-mounted host can control the vehicle to be detected according to the data collected by the sensor; An alarm module, configured to issue an alarm message when it is determined that the sensor is abnormal based on the state data to be detected; Wherein, when the alarm module determines that the sensor is abnormal based on the state data to be detected and issues an alarm message, it is used to: In the case where it is determined based on the connection status data that the connection between the sensor and the vehicle-mounted host is abnormal, issuing a first warning message based on the connection status data; or, When it is determined that the sensor configuration is abnormal based on the configuration status data of the sensor and the reference configuration data of the sensor, second warning information is issued based on the configuration status data.
10. A computer device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the detection method according to any one of claims 1 to 8 are performed.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the detection method according to any one of claims 1 to 8 are executed.
