Fault processing method and device of ultrasonic radar, electronic equipment and storage medium
By performing voltage detection of ultrasonic radar and turning off and re-opening when abnormalities are detected, the stability and data accuracy of radar fault handling are solved, ensuring the stability and reliability of the system, extending the service life of the radar, and reducing maintenance costs.
Patent Information
- Application Number
- CN202510589402.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-08-12
AI Technical Summary
How to effectively deal with ultrasonic radar failures, ensure its working stability and data accuracy, and avoid interference to related systems due to continuous operation in the fault state.
By performing voltage detection on the ultrasonic radar, determine whether it is abnormal, and turn off the radar when an abnormality is detected, wait for the shutdown time threshold to turn it on again. If there is no fault within the turn-on time, it is determined that the fault recovery is successful.
It realizes timely detection and handling of radar abnormalities, avoids continuous work in a fault state, ensures system stability, reduces manual intervention, improves system autonomy and convenience of use, extends radar service life, and reduces maintenance costs.
Smart Images

Figure CN120468818A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of fault handling, and more particularly to a fault handling method, device, electronic device, and computer-readable storage medium for an ultrasonic radar. Background Art
[0002] Ultrasonic radar is widely used in vehicles, playing a crucial role in ranging and obstacle avoidance, blind spot monitoring, parking assistance, preventing misoperation, and supporting intelligent connectivity. It is a key component for improving driving safety and convenience. Therefore, the operational stability and data accuracy of ultrasonic radar are crucial. Therefore, troubleshooting ultrasonic radar is a pressing issue. Summary of the Invention
[0003] The embodiments of the present disclosure provide a fault handling method, device, electronic device, and computer-readable storage medium for an ultrasonic radar, aiming to solve at least one of the technical problems in the related art to a certain extent.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for troubleshooting an ultrasonic radar, the method comprising:
[0005] Performing voltage detection on the ultrasonic radar to determine whether the ultrasonic radar has any abnormality;
[0006] When it is determined that the ultrasonic radar is abnormal, shutting down the ultrasonic radar;
[0007] When the off time of the ultrasonic radar reaches the off time threshold, turning on the ultrasonic radar;
[0008] When the on-time of the ultrasonic radar reaches the on-time threshold and the ultrasonic radar does not fail within the on-time, it is determined that the ultrasonic radar has successfully recovered from the fault.
[0009] In a second aspect, an embodiment of the present disclosure further provides a fault handling device for an ultrasonic radar, the device comprising:
[0010] A detection module is used to perform voltage detection on the ultrasonic radar to determine whether the ultrasonic radar has any abnormality;
[0011] a first shut-down module, configured to shut down the ultrasonic radar when the number of consecutive abnormalities of the ultrasonic radar reaches a threshold number of abnormalities;
[0012] An opening module, configured to open the ultrasonic radar when the closing time of the ultrasonic radar reaches a closing time threshold;
[0013] The first determination module is configured to determine that the ultrasonic radar has successfully recovered from a fault if the on-time of the ultrasonic radar reaches a threshold on-time and no fault occurs to the ultrasonic radar within the on-time.
[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the steps in the above-mentioned ultrasonic radar fault handling method are implemented.
[0015] 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 in the above-mentioned ultrasonic radar fault handling method are implemented.
[0016] In a fifth aspect, embodiments of the present disclosure further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the embodiments of the present disclosure.
[0017] In the disclosed embodiment, the ultrasonic radar is first tested for voltage to determine whether an abnormality has occurred. If an abnormality is detected, the ultrasonic radar is shut down. When the off-time reaches the off-time threshold, the ultrasonic radar is turned back on. When the on-time reaches the on-time threshold, and the ultrasonic radar does not experience any faults during the on-time, the ultrasonic radar is determined to have successfully recovered from the fault. Real-time voltage testing enables timely detection of abnormalities in the ultrasonic radar, preventing it from continuing to operate in a faulty state and preventing abnormal data from interfering with the operation of related systems, thereby ensuring the stability of the entire ultrasonic radar-equipped system. After the abnormality causes the radar to shut down, it automatically turns back on when the off-time threshold is reached, giving the radar an opportunity to recover, reducing manual intervention and improving system autonomy and ease of use. Using both the on-time and whether a fault recurs during this period as dual criteria for judgment can more accurately determine whether the radar has truly returned to normal, avoiding misjudgments and ensuring the reliability of subsequent data collection and application.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 1 is a flowchart of a method for troubleshooting an ultrasonic radar according to a first embodiment of the present disclosure;
[0021] Figure 2 is a flow chart describing voltage monitoring and fault handling;
[0022] Figure 3 This is a system architecture diagram for ultrasonic radar functional safety monitoring and control;
[0023] Figure 4 1 is a schematic structural diagram of a fault handling device for an ultrasonic radar provided in an embodiment of the present disclosure;
[0024] Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Some embodiments of the present disclosure will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications and equivalents of the methods, devices and / or systems described herein will become apparent after understanding the present disclosure. For example, the order of operations described herein is merely an example and is not limited to those orders set forth herein, but may be changed as becomes apparent after understanding the present disclosure, except for operations that must be performed in a specific order. In addition, for the sake of clarity and brevity, descriptions of features known in the art may be omitted.
[0026] The embodiments described in the following examples of the present disclosure do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0027] The following first explains some terms involved in the embodiments of the present disclosure:
[0028] In the automotive field, an MCU (Microcontroller Unit) typically refers to the microcontroller, the core component of a vehicle's electronic control module. It receives input signals from sensors and other devices, then processes, calculates, and generates control outputs based on predefined programs and algorithms, thereby controlling and managing various vehicle systems (such as the engine, brakes, and steering). CAN (Controller Area Network) is a data transmission protocol used for communication between various vehicle control modules. Through the CAN bus, various control systems in a vehicle can exchange information, achieving unified vehicle control and optimization. SPI (Serial Peripheral Interface) is a high-speed, full-duplex, synchronous, master-slave communication bus. It is primarily used for connecting and communicating between a microcontroller and other peripheral devices, such as memory and sensors. In the AUTOSAR (Automotive Open System Architecture) standard, DIO is a basic software module for managing digital input and output. It provides the control and status reading functions of the microcontroller (MCU) digital I / O pins, and is widely used in body control, sensor interface, actuator control, etc.
[0029] It should be noted that the executor of the ultrasonic radar fault handling method of this embodiment can be an ultrasonic radar fault handling device, which can be configured in any type of electronic device, such as tablet computers, televisions, mobile phones, watches, computers, etc., and is not limited here.
[0030] In the embodiment of the present disclosure, the “ultrasonic radar fault handling device” will be used as the execution subject to execute the “ultrasonic radar fault handling method” for illustration, and no limitation is made here.
[0031] It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.
[0032] Figure 1 It is a flowchart of a fault handling method for an ultrasonic radar provided according to the first embodiment of the present disclosure.
[0033] like Figure 1 As shown, the method includes:
[0034] Step 101: Perform voltage detection on the ultrasonic radar to determine whether there is any abnormality in the ultrasonic radar.
[0035] Optionally, the real-time voltage of the ultrasonic radar can be obtained at a preset frequency. When the real-time voltage is greater than a first reference voltage or less than a second reference voltage, it is determined that the ultrasonic radar has an abnormality, wherein the first reference voltage is greater than the second reference voltage.
[0036] As a possible implementation, the real-time voltage of the ultrasonic radar can be obtained at a preset frequency. This preset frequency can be set based on the specific application scenario and requirements, such as once per second or once every half second. At the set frequency, the system can continuously obtain the real-time voltage value of the ultrasonic radar. This voltage value reflects the voltage level of the ultrasonic radar in its current operating state.
[0037] Specifically, the system can set two reference voltages: a first reference voltage and a second reference voltage. The first reference voltage is greater than the second reference voltage. If the real-time voltage is greater than the first reference voltage, or less than the second reference voltage, the system can determine that the ultrasonic radar is abnormal.
[0038] The specific values of the first reference voltage and the second reference voltage may also be set according to the characteristics and working environment of the ultrasonic radar to ensure the accuracy and reliability of the detection.
[0039] As a possible implementation method, the MCU (microcontroller unit) can obtain the real-time voltage value of the ultrasonic radar through SPI (serial peripheral interface), DIO (digital input and output) or ADC (analog-to-digital converter).
[0040] For example, the standard for determining whether the real-time voltage is abnormal is: the voltage value exceeds a first reference voltage, such as 1.3 times the standard voltage value, or falls below a second reference voltage, which is 0.8 times the standard voltage value. The standard voltage value is usually obtained from the ultrasonic radar supplier and is the reference voltage for normal operation of the device.
[0041] It is understandable that each time the voltage monitoring module determines that the voltage is abnormal, a continuous voltage fault counter can be added by 1. When the voltage monitoring module determines that the voltage is normal, this continuous voltage fault counter can be cleared. When the continuous voltage fault counter exceeds the set threshold (this threshold is the maximum number of voltage anomalies that the product can tolerate, and is a preset value, such as 20 times), a fault report can be performed. The fault report notifies the USS (Ultrasonic Sensor System, ultrasonic radar) functional safety module of the voltage failure. When the USS functional safety module receives the fault information, it can turn off the ultrasonic radar to prevent further problems that may be caused by its continued operation due to voltage abnormalities. After the ultrasonic radar is turned off, the USS voltage monitoring module can stop reading the real-time voltage value because the device is no longer in working condition.
[0042] When the USS functional safety module attempts to recover from the fault and restart the ultrasonic radar, the USS voltage monitoring module can start reading the real-time voltage value again. The voltage monitoring module can then continue to determine the voltage fault to ensure that the ultrasonic radar can operate normally after it is restarted.
[0043] Figure 2 This is a flowchart describing voltage monitoring and fault handling. The specific steps are as follows: First, the system collects the current voltage value. Determine whether the voltage value is greater than 1.3 times the standard voltage value: If "yes", increase the number of consecutive voltage faults by 1. If "no", determine whether the voltage value is less than 0.8 times the standard voltage value. If "yes", execute "clear the number of consecutive voltage faults" and end the process. If "no", execute "increase the number of consecutive voltage faults by 1", and then determine whether the number of consecutive voltage faults is greater than the threshold: If "no", return to step 1 to continue monitoring. If "yes", execute "voltage fault confirmed, report", and end the process.
[0044] Optionally, the number of times the ultrasonic radar has an abnormality can be counted based on a fault counter, wherein when an abnormality is detected in the ultrasonic radar, the fault counter adds one to the current number of abnormalities; when it is detected that no abnormality occurs in the ultrasonic radar and the current number of abnormalities is less than the preset threshold, the fault counter clears the current number of abnormalities to zero.
[0045] Specifically, you can first initialize the fault counter and set a fault counter to record the number of times the ultrasonic radar has an abnormality. At the same time, set a preset threshold. When the number of abnormalities exceeds this threshold, an alarm or other processing measures will be triggered. Then, you can detect the working status of the ultrasonic radar in real time or periodically to determine whether it has an abnormality. The definition of abnormality may include signal loss, data abnormality, unstable operation, etc. If an abnormality is detected in the ultrasonic radar, the current number of abnormalities in the fault counter will be increased by one. If no abnormality is detected in the ultrasonic radar, and the current number of abnormalities is less than the preset threshold, the current number of abnormalities in the fault counter will be cleared. After each update of the fault counter, check whether the current number of abnormalities exceeds the preset threshold. If it exceeds the threshold, the alarm mechanism will be triggered, indicating that the ultrasonic radar may have a fault and needs to be repaired or replaced.
[0046] Figure 3 This is a system architecture diagram for ultrasonic radar (USS) functional safety monitoring and control, illustrating the interactions between modules: The USS Voltage Monitoring Module monitors the ultrasonic radar's voltage status and, if any anomalies are detected, reports fault information to the USS Functional Safety Module. The USS Fault Monitoring Module detects ultrasonic radar faults and, if any, reports them to the USS Functional Safety Module. The USS Control Module disconnects or restores the ultrasonic radar based on instructions from the USS Functional Safety Module. The USS Data Reading Module stops or resumes reading ultrasonic radar data based on instructions from the USS Functional Safety Module. The USS Functional Safety Module is at the core of the system, receiving fault reports from the USS Voltage Monitoring Module and the USS Fault Monitoring Module. It also issues instructions to the USS Control Module and the USS Data Reading Module based on actual conditions and sends fault report or recovery information to the Diagnostic Module. The Diagnostic Module receives fault report or recovery information from the USS Functional Safety Module and uses it to diagnose and assess the ultrasonic radar system's status.
[0047] Step 102: When it is determined that the ultrasonic radar is abnormal, turn off the ultrasonic radar.
[0048] Step 103: When the off time of the ultrasonic radar reaches the off time threshold, turn on the ultrasonic radar.
[0049] Specifically, if an ultrasonic radar is detected to be abnormal, it can be shut down. This is to prevent more serious problems that may arise from continued operation of the radar in an abnormal state, such as erroneous data output affecting the normal operation of related systems, or to prevent further damage to the radar itself due to the fault.
[0050] It is understood that after the ultrasonic radar is turned off, the system can start counting. When the off time reaches the pre-set off time threshold, the ultrasonic radar can be turned on. The off time threshold is set to give the radar sufficient time to recover from an abnormal state or wait for external conditions to be met (such as automatic fault repair or manual intervention) before restarting the radar to resume normal operation. This processing method helps to ensure the stability and reliability of the ultrasonic radar system.
[0051] Optionally, when the ultrasonic radar is turned on, the data collected by the ultrasonic radar is not read.
[0052] Step 104 : When the on-time of the ultrasonic radar reaches the on-time threshold and the ultrasonic radar does not fail during the on-time, it is determined that the ultrasonic radar fault recovery is successful.
[0053] As a possible implementation manner, when it is determined that the ultrasonic radar fault recovery is successful, the data collected by the ultrasonic radar can be read.
[0054] It should be noted that when the ultrasonic radar is turned on, the system can start timing. If the turn-on time reaches the pre-set turn-on time threshold, and during the entire turn-on time period, no fault is detected in the ultrasonic radar through various monitoring means (such as voltage monitoring by the USS voltage monitoring module, monitoring of internal self-test faults by the USS fault monitoring module, etc.), then it can be determined that the ultrasonic radar fault recovery is successful. If it is determined that the fault recovery is successful, the system can start reading the data collected by the ultrasonic radar. These data can be used in various application scenarios. For example, in the automotive field, they can be used for obstacle detection, automatic parking and other functions; in the industrial field, they can be used for distance measurement, liquid level detection, etc. Reading data means that the radar can be put into normal use again and provide accurate information support for related systems.
[0055] Optionally, when the turn-on time is less than the turn-on time threshold and an abnormality is detected in the ultrasonic radar, it can be determined that the ultrasonic radar fault recovery has failed, and when the cumulative number of fault recovery failures reaches a failure number threshold, the ultrasonic radar is turned off.
[0056] It should be noted that after the ultrasonic radar is turned on, if the on-time has not reached the pre-set on-time threshold, and monitoring measures detect an abnormality in the ultrasonic radar, whether due to voltage anomalies or internal self-test failures, the system will determine that the fault recovery has failed. The system can accumulate the number of fault recovery failures. When the cumulative number of fault recovery failures reaches the pre-set failure threshold, the system can shut down the ultrasonic radar. Shutting down the radar prevents it from operating in a persistent fault state, preventing erroneous data from disrupting the normal operation of the entire system, and also helps reduce unnecessary energy consumption and equipment loss. For example, in a car's reversing radar system, if the ultrasonic radar fails to recover after multiple attempts, continued operation may give erroneous obstacle warnings, affecting the driver's judgment. Shutting down the radar can prevent this from happening.
[0057] It should be noted that Figure 3 The USS functional safety module in the MCU has four states: no fault state, fault detected state, fault recovery state, and fault unrecoverable state.
[0058] The No Fault state means the ultrasonic radar is operating normally and no fault is detected. If a fault report is received, it switches to the Fault Detected state and reports the fault information to the diagnostic module.
[0059] The fault-detected state indicates that the ultrasonic radar has failed. The USS control module shuts down the ultrasonic radar, notifying the USS data reader module to stop reading radar data. A waiting-for-recovery timer is started, and the ultrasonic radar remains off until the timer expires. When the timer expires, an attempt is made to restart the ultrasonic radar to recover from the fault, entering the fault recovery state.
[0060] The fault recovery state indicates that fault recovery is in progress. A fault recovery timer is started. If no fault is detected again before the timer expires, the fault is considered recovered successfully. The USS data reader module is notified to begin reading radar data, entering the fault-free state. The diagnostic module is also notified that the fault has been recovered. If a fault is detected again before the timer expires, the fault recovery is considered a failure, and the fault recovery count is incremented by 1. When the number of fault recovery times exceeds a preset threshold (e.g., 30), the fault enters the unrecoverable state.
[0061] The "Unrecoverable Fault" state means that after recovery attempts have been made and the number of consecutive failures has exceeded the maximum allowed, the fault is deemed unrecoverable. No recovery attempts will be made until the system is restarted, and the ultrasonic radar will remain unavailable. The diagnostic module will notify you of an increase in the fault severity.
[0062] It should be noted that the USS data reading module reads radar data through the interface provided by the ultrasonic radar by the MCU, and processes and forwards the read data. In the entire system, it is responsible for obtaining the data collected by the radar and passing it to the parts that need to use this data later. When the USS functional safety module recognizes that a fault has occurred (including voltage faults and radar self-test internal faults), the fault flag of the USS data reading module can be set. If the fault flag is set, the USS data reading module will stop reading the data of the ultrasonic radar to prevent the reading of erroneous data from interfering with the system. When the USS functional safety module successfully recovers from the fault, the fault flag of the USS data reading module can be cleared, and the module will then resume reading the data of the ultrasonic radar and resume normal data acquisition and processing functions.
[0063] In the disclosed embodiment, the ultrasonic radar is first tested for voltage to determine whether it has experienced an anomaly. If an anomaly is detected, the ultrasonic radar is shut down. When the off-time reaches the off-time threshold, the ultrasonic radar is turned back on. If the on-time reaches the on-time threshold and no faults occur during the on-time, the ultrasonic radar is determined to have successfully recovered. Real-time voltage testing allows for timely detection of anomalies in the ultrasonic radar, preventing it from continuing to operate in a faulty state. This prevents abnormal data from interfering with the operation of related systems, thereby ensuring the stability of the entire ultrasonic radar-equipped system. After the radar is shut down due to an anomaly, it is automatically turned back on when the off-time threshold is reached, giving the radar an opportunity to recover, reducing manual intervention and improving system autonomy and ease of use. Using both the on-time and whether a fault recurs during this period as dual criteria for determination, the radar can be more accurately determined to have truly recovered, avoiding misjudgments and ensuring the reliability of subsequent data collection and application. Promptly shutting down an abnormal radar prevents further damage from continued operation in a faulty state, extending the ultrasonic radar's service life and reducing maintenance costs. This allows for timely detection of inaccurate radar data caused by voltage anomalies, as well as problems detected by the ultrasonic radar's self-test. When the MCU detects a radar fault, it stops reading and processing radar data to prevent erroneous radar data from causing vehicle malfunctions. It then shuts down the ultrasonic radar. It then implements a fault recovery strategy, attempting to turn the ultrasonic radar back on to check if the fault is detected again. If recovery is successful, it resumes reading and processing radar data to provide data support for vehicle functions.
[0064] To facilitate better implementation of the ultrasonic radar fault handling method disclosed herein, the present disclosure also provides an ultrasonic radar fault handling device based on the aforementioned ultrasonic radar fault handling method. The meanings of the terms herein are the same as those in the aforementioned ultrasonic radar fault handling method. For specific implementation details, please refer to the description in the method embodiment.
[0065] See also Figure 4 , Figure 4 : is a schematic structural diagram of an ultrasonic radar fault handling device provided in an embodiment of the present disclosure. The ultrasonic radar fault handling device 400 includes:
[0066] The detection module 410 is used to perform voltage detection on the ultrasonic radar to determine whether the ultrasonic radar has any abnormality;
[0067] A first shut-down module 420 is configured to shut down the ultrasonic radar if the number of consecutive abnormalities of the ultrasonic radar reaches a threshold number of abnormalities;
[0068] The turning-on module 430 is configured to turn on the ultrasonic radar when the off time of the ultrasonic radar reaches the off time threshold;
[0069] The first determining module 440 is configured to determine that the ultrasonic radar has successfully recovered from the fault if the on-time of the ultrasonic radar reaches a threshold on-time and the ultrasonic radar has not failed within the on-time.
[0070] Optionally, the device further includes:
[0071] a second determining module, configured to determine that the ultrasonic radar has failed to recover from the fault if the on-time is less than the on-time threshold and an abnormality is detected in the ultrasonic radar;
[0072] The second shut-down module is configured to shut down the ultrasonic radar when the cumulative number of fault recovery failures reaches a failure number threshold.
[0073] Optionally, the detection module is specifically configured to:
[0074] Obtaining the real-time voltage of the ultrasonic radar according to a preset frequency;
[0075] When the real-time voltage is greater than the first reference voltage or less than the second reference voltage, it is determined that the ultrasonic radar is abnormal.
[0076] The first reference voltage is greater than the second reference voltage.
[0077] Optionally, the number of times the ultrasonic radar has abnormalities is counted based on a fault counter,
[0078] When an abnormality is detected in the ultrasonic radar, the fault counter increases the current abnormality count by one;
[0079] When it is detected that no abnormality occurs in the ultrasonic radar and the current number of abnormalities is less than the preset threshold, the fault counter clears the current number of abnormalities.
[0080] Optionally, the first determining module is further configured to:
[0081] Read the data collected by the ultrasonic radar.
[0082] In the disclosed embodiment, the ultrasonic radar is first tested for voltage to determine whether it has experienced an anomaly. If an anomaly is detected, the ultrasonic radar is shut down. When the off-time reaches the off-time threshold, the ultrasonic radar is turned back on. If the on-time reaches the on-time threshold and no faults occur during the on-time, the ultrasonic radar is determined to have successfully recovered. Real-time voltage testing allows for timely detection of anomalies in the ultrasonic radar, preventing it from continuing to operate in a faulty state. This prevents abnormal data from interfering with the operation of related systems, thereby ensuring the stability of the entire ultrasonic radar-equipped system. After the radar is shut down due to an anomaly, it is automatically turned back on when the off-time threshold is reached, giving the radar an opportunity to recover, reducing manual intervention and improving system autonomy and ease of use. Using both the on-time and whether a fault recurs during this period as dual criteria for determination, the radar can be more accurately determined to have truly recovered, avoiding misjudgments and ensuring the reliability of subsequent data collection and application. Promptly shutting down an abnormal radar prevents further damage from continued operation in a faulty state, extending the ultrasonic radar's service life and reducing maintenance costs. This allows for timely detection of inaccurate radar data caused by voltage anomalies, as well as problems detected by the ultrasonic radar's self-test. When the MCU detects a radar fault, it stops reading and processing radar data to prevent erroneous radar data from causing vehicle malfunctions. It then shuts down the ultrasonic radar. It then implements a fault recovery strategy, attempting to turn the ultrasonic radar back on to check if the fault is detected again. If recovery is successful, it resumes reading and processing radar data to provide data support for vehicle functions.
[0083] In addition, the present disclosure also provides an electronic device, such as Figure 5 , which shows a schematic structural diagram of the electronic device involved in the present disclosure, specifically:
[0084] The electronic device may include one or more processing core processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504 and other components. Those skilled in the art will understand that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0085] The processor 501 is the control center of the electronic device. It connects the various parts of the entire electronic device using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 502 and accessing data stored in the memory 502, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, and the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 501.
[0086] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0087] The electronic device also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 503 can also include one or more DC or AC power supplies, a recharging system, a power supply device debugging circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0088] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0089] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the electronic device may load the executable files corresponding to one or more application processes into the memory 502 according to the following instructions, and the processor 501 may run the application stored in the memory 502, thereby implementing the steps of any of the ultrasonic radar fault handling methods provided in the embodiments of the present disclosure.
[0090] In the disclosed embodiment, the ultrasonic radar is first tested for voltage to determine whether it has experienced an anomaly. If an anomaly is detected, the ultrasonic radar is shut down. When the off-time reaches the off-time threshold, the ultrasonic radar is turned back on. If the on-time reaches the on-time threshold and no faults occur during the on-time, the ultrasonic radar is determined to have successfully recovered. Real-time voltage testing allows for timely detection of anomalies in the ultrasonic radar, preventing it from continuing to operate in a faulty state. This prevents abnormal data from interfering with the operation of related systems, thereby ensuring the stability of the entire ultrasonic radar-equipped system. After the radar is shut down due to an anomaly, it is automatically turned back on when the off-time threshold is reached, giving the radar an opportunity to recover, reducing manual intervention and improving system autonomy and ease of use. Using both the on-time and whether a fault recurs during this period as dual criteria for determination, the radar can be more accurately determined to have truly recovered, avoiding misjudgments and ensuring the reliability of subsequent data collection and application. Promptly shutting down an abnormal radar prevents further damage from continued operation in a faulty state, extending the ultrasonic radar's service life and reducing maintenance costs. This allows for timely detection of inaccurate radar data caused by voltage anomalies, as well as problems detected by the ultrasonic radar's self-test. When the MCU detects a radar fault, it stops reading and processing radar data to prevent erroneous radar data from causing vehicle malfunctions. It then shuts down the ultrasonic radar. It then implements a fault recovery strategy, attempting to turn the ultrasonic radar back on to check if the fault is detected again. If recovery is successful, it resumes reading and processing radar data to provide data support for vehicle functions.
[0091] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0092] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0093] To this end, the present disclosure provides a computer-readable storage medium having a computer program stored thereon. The computer program can be loaded by a processor to execute the steps in any ultrasonic radar fault handling method provided in the present disclosure.
[0094] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0095] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0096] Since the instructions stored in the computer-readable storage medium can execute the steps in any one of the ultrasonic radar fault handling methods provided in the present disclosure, the beneficial effects that can be achieved by any one of the ultrasonic radar fault handling methods provided in the present disclosure can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0097] The above is a detailed introduction to the ultrasonic radar fault handling method, device, electronic device and computer-readable storage medium provided by the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for troubleshooting an ultrasonic radar, characterized in that: include: Performing voltage detection on the ultrasonic radar to determine whether the ultrasonic radar has any abnormality; When it is determined that the ultrasonic radar is abnormal, shutting down the ultrasonic radar; When the off time of the ultrasonic radar reaches the off time threshold, turning on the ultrasonic radar; When the on-time of the ultrasonic radar reaches the on-time threshold and the ultrasonic radar does not fail within the on-time, it is determined that the ultrasonic radar has successfully recovered from the fault.
2. The method according to claim 1, characterized in that Also includes: When the on-time is less than the on-time threshold and an abnormality is detected in the ultrasonic radar, determining that the ultrasonic radar has failed to recover from the fault; When the cumulative number of fault recovery failures reaches a failure number threshold, the ultrasonic radar is turned off.
3. The method according to claim 1, characterized in that The voltage detection of the ultrasonic radar to determine whether the ultrasonic radar is abnormal includes: Obtaining the real-time voltage of the ultrasonic radar according to a preset frequency; When the real-time voltage is greater than the first reference voltage or less than the second reference voltage, it is determined that the ultrasonic radar is abnormal. The first reference voltage is greater than the second reference voltage.
4. The method according to claim 3, characterized in that Also includes: Counting the number of abnormalities of the ultrasonic radar based on a fault counter, When an abnormality is detected in the ultrasonic radar, the fault counter increases the current abnormality count by one; When it is detected that the ultrasonic radar has no abnormality and the current number of abnormalities is less than a preset threshold, the fault counter clears the current number of abnormalities.
5. The method according to claim 1, wherein After determining that the ultrasonic radar fault is successfully recovered, the method further includes: Read the data collected by the ultrasonic radar.
6. A fault handling device for ultrasonic radar, characterized in that: include: A detection module is used to perform voltage detection on the ultrasonic radar to determine whether the ultrasonic radar has any abnormality; a first shut-down module, configured to shut down the ultrasonic radar when the number of consecutive abnormalities of the ultrasonic radar reaches a threshold number of abnormalities; An opening module, configured to open the ultrasonic radar when the closing time of the ultrasonic radar reaches a closing time threshold; The first determination module is configured to determine that the ultrasonic radar has successfully recovered from a fault if the on-time of the ultrasonic radar reaches a threshold on-time and no fault occurs to the ultrasonic radar within the on-time.
7. The device according to claim 6, characterized in that Also includes: a second determining module, configured to determine that the ultrasonic radar has failed to recover from the fault if the on-time is less than the on-time threshold and an abnormality is detected in the ultrasonic radar; The second shut-down module is configured to shut down the ultrasonic radar when the cumulative number of fault recovery failures reaches a failure number threshold.
8. The device according to claim 6, characterized in that The detection module is specifically used to: Obtaining the real-time voltage of the ultrasonic radar according to a preset frequency; When the real-time voltage is greater than the first reference voltage or less than the second reference voltage, it is determined that the ultrasonic radar is abnormal. The first reference voltage is greater than the second reference voltage.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5.