A fault diagnosis method, an adaptive recovery method and device
By employing fault diagnosis and adaptive recovery methods for automotive power distribution units, voltage time series analysis is used to distinguish the causes of inrush currents, and the number of recovery cycles is dynamically adjusted according to the equipment type. This solves the problem of misjudging short-circuit faults in traditional power distribution units, improves the accuracy of fault diagnosis and recovery efficiency, and ensures the reliability and intelligence of the power distribution system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- JILIN ZHONG YING HIGH TECH CO LTD
- Filing Date
- 2026-03-27
- Publication Date
- 2026-06-26
AI Technical Summary
Traditional automotive power distribution units misjudge short-circuit faults when large capacitor devices are started up due to inrush current, leading to repeated start-up failures. This affects the availability of the power distribution system and the operational reliability of the vehicle's electrical system. Furthermore, they lack the ability to distinguish between a real short circuit and the inrush current of capacitor charging.
By collecting voltage data from the power supply circuit of the target device and constructing a voltage time series, the cause of the inrush current is determined by combining the voltage change trend. The number of recovery attempts is dynamically adjusted according to the device type. The priority matching of the learning parameter table, the device preset parameter table, and the system default parameters is adopted to finally determine the number of recovery attempts.
Accurately distinguish between short-circuit faults and capacitor charging inrush currents, reduce invalid power-on attempts, improve fault diagnosis accuracy and recovery efficiency, ensure the operational safety of the power distribution system and the success rate of equipment startup, and enhance the vehicle's adaptive control capabilities and intelligence level.
Smart Images

Figure CN122292256A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of fault diagnosis and self-recovery technology, specifically to a fault diagnosis method, an adaptive recovery method, and an apparatus. Background Technology
[0002] As a key component of the vehicle's power supply system, the automotive power distribution unit (IDU) needs to drive electrical equipment such as blowers with multiple large-capacity capacitors. These devices generate a large inrush current at startup, which can easily trigger the hardware overcurrent protection mechanism based on the current detection chip in the IDU, causing it to mistakenly identify the inrush current as a short circuit fault. This has become a typical technical pain point in the startup control of onboard electrical equipment with large capacitors.
[0003] Regarding the issue of equipment recovery after the aforementioned protection is triggered, the traditional solution in the industry adopts a fixed recovery control mechanism, which involves making several unconditional recovery attempts at fixed time intervals. If the protection is still triggered after reaching the number of attempts, the equipment startup is directly abandoned. This mechanism only relies on the current threshold to determine the fault, without further distinguishing the cause of the fault, and lacks the ability to distinguish between a real short circuit and the instantaneous inrush current of capacitor charging.
[0004] The design flaws of traditional fixed recovery mechanisms can easily lead to repeated start-up failures of large capacitor devices such as blowers in practical applications. This can not only cause devices to be disabled without cause due to misjudgment, significantly reducing the availability and fault tolerance of the automotive power distribution system, but also affect the operational reliability of the entire vehicle's electrical system. At the same time, it brings a poor user experience and can no longer meet the development requirements of on-board power distribution systems for intelligence, adaptability and reliability. Summary of the Invention
[0005] This invention provides a fault diagnosis method, an adaptive recovery method, and an apparatus to solve the above problems.
[0006] In a first aspect, the present invention provides a fault diagnosis method, comprising: performing multiple power-on recovery operations when there is an inrush current in the power supply circuit of the target device; acquiring the voltage of the power supply circuit of the target device at each power-on time; constructing a voltage time series based on the voltage of the power supply circuit of the target device at each power-on time; and determining whether the inrush current is caused by a short circuit fault or by capacitor charging based on the voltage change trend of the voltage time series.
[0007] In one optional implementation, the process of determining whether the inrush current is caused by a short circuit fault or by capacitor charging includes: if the difference between adjacent voltages in the voltage time series is less than a first preset difference, then the inrush current is caused by a short circuit fault; if the difference between adjacent voltages in the voltage time series is greater than a second preset difference, and the voltage in the voltage time series shows a monotonically increasing trend, then the inrush current is caused by capacitor charging.
[0008] Secondly, the present invention provides an adaptive recovery method, comprising: based on the above fault diagnosis method, determining whether the inrush current is caused by a short circuit fault or by capacitor charging; if the inrush current is caused by a short circuit fault, then using the default short circuit recovery count as the final recovery count; if the inrush current is caused by capacitor charging, then determining the final recovery count according to the target device type; and executing a power supply recovery cycle based on the final recovery count.
[0009] In one optional implementation, the process of determining the final number of recovery attempts based on the target device type includes: calling the corresponding number of recovery attempts in the learning parameter table based on the target device type, and using it as the final number of recovery attempts.
[0010] In one optional implementation, the process of determining the final number of recovery attempts based on the target device type further includes: if the corresponding number of recovery attempts is not recorded in the learning parameter table, then querying the corresponding number of recovery attempts in the device preset parameter table and using it as the final number of recovery attempts.
[0011] In one optional implementation, the process of determining the final number of recovery attempts based on the target device type further includes: if the corresponding number of recovery attempts is not recorded in the device preset parameter table, then the system default number of recovery attempts is taken as the final number of recovery attempts.
[0012] In one optional implementation, the process of performing a power restoration cycle based on the final number of restorations includes: in each power restoration process, if the current restoration is successfully initiated, recording the current number of restorations and updating the learning parameter table.
[0013] In one optional implementation, the process of updating the learning parameter table includes: calculating an efficiency factor based on the target device type, fault type, current number of recovery attempts, and total recovery time; storing the efficiency factor and the current number of recovery attempts as a history of a successful startup; and dynamically adjusting and updating the recovery parameters for the target device by analyzing the history of multiple successful startups of the target device and using a moving average or simple linear regression method.
[0014] In one optional implementation, the process of performing a power restoration cycle based on the final number of restorations includes: in each power restoration process, if the current restoration fails to start, it is determined whether the final number of restorations has been reached; if the final number of restorations has not been reached, the next restoration is performed after a preset delay; if the final number of restorations has been reached, the target device is locked and reported.
[0015] Thirdly, the present invention provides an adaptive recovery device based on the above adaptive recovery method. The device includes: a diagnostic module, used to determine whether the inrush current is caused by a short circuit fault or by capacitor charging based on the above fault diagnosis method; a first recovery count determination module, used to take the default short circuit recovery count as the final recovery count if the inrush current is caused by a short circuit fault; a second recovery count determination module, used to determine the final recovery count according to the target device type if the inrush current is caused by capacitor charging; and a recovery module, used to execute a power supply recovery cycle based on the final recovery count.
[0016] Fourthly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the adaptive recovery method of the second aspect above or any corresponding embodiment thereof.
[0017] Fifthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the adaptive recovery method of the second aspect or any corresponding embodiment thereof.
[0018] In a sixth aspect, the present invention provides a computer program product, including computer instructions for causing a computer to execute the adaptive recovery method of the second aspect or any corresponding embodiment thereof.
[0019] Beneficial effects: The fault diagnosis method of this invention collects the voltage of the power supply circuit of the target device and constructs a voltage time series. It combines the voltage change trend and quantitative difference to determine the cause of the inrush current. This method breaks through the traditional single mode of judging faults by relying solely on the current threshold. It can accurately distinguish between the actual short circuit fault of the device and the normal instantaneous inrush current caused by the charging of a large-capacity capacitor. It effectively avoids misjudgment of fault type and greatly improves the accuracy and reliability of fault diagnosis of vehicle-mounted electrical equipment. This lays a precise judgment foundation for the subsequent implementation of differentiated recovery strategies.
[0020] The adaptive recovery method of this invention implements a differentiated recovery strategy based on the accurate results of fault diagnosis. For short-circuit faults, a fixed default number of recovery attempts is used to reduce invalid power-on attempts on faulty equipment and avoid secondary damage to hardware circuits. For capacitor charging causes, the final number of recovery attempts is matched according to the priority of "learning parameter table - device preset parameter table - system default parameters" based on the equipment type. This achieves accurate adaptation of recovery parameters to the capacitor charging characteristics of different equipment, taking into account both the operational safety of the power distribution system and the startup success rate of large capacitor equipment, and improving the execution efficiency of the power restoration cycle.
[0021] The adaptive recovery method of this invention constructs a closed-loop iterative optimization mechanism for the learning parameter table. After the device is successfully started, the recovery parameters are dynamically updated by calculating the efficiency factor, storing historical records, and using moving average or simple linear regression methods. This allows the recovery parameters to continuously match the actual operating conditions of the device and the power supply environment of the vehicle, achieving self-optimization of the recovery strategy. At the same time, when the number of startup failures reaches the final number of recovery attempts, the device is locked and reported, which facilitates the vehicle system to detect the fault status in a timely manner. This not only improves the adaptive control capability of the vehicle power distribution unit for various on-board electrical equipment, but also further ensures the stability and intelligence level of the vehicle power distribution system. Attached Figure Description
[0022] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating a fault diagnosis method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the first type of adaptive recovery method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a second process of the adaptive recovery method according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0026] According to an embodiment of the present invention, a fault diagnosis method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0027] This embodiment provides a fault diagnosis method, such as Figure 1 As shown, it includes: Step S1: When there is an inrush current in the power supply circuit of the target device, perform multiple power-on recovery cycles.
[0028] Specifically, when an inrush current is generated in the power supply circuit of the target electrical equipment (such as a blower with multiple large-capacity capacitors built in) driven by the vehicle power distribution unit, and the inrush current reaches the current threshold of the hardware overcurrent protection and triggers the hardware short-circuit protection mechanism based on the current detection chip in the IDU, the microcontroller unit inside the IDU starts the recovery detection process corresponding to the fault diagnosis, performs multiple orderly power-on recovery attempts on the target equipment, and enters the cyclic detection stage of fault diagnosis.
[0029] Step S2: At each power-on time, obtain the voltage of the target device power supply circuit at each power-on time.
[0030] Specifically, at the power-on start time (t0) of each power-on recovery attempt, the device-end voltage of the power supply circuit of the target device is accurately and in real time collected through the analog-to-digital converter configured by IDU, and the initial voltage value of the power supply circuit (V_start) corresponding to each power-on instant is obtained. The collection process ensures no delay and no interference, and ensures the accuracy of the original voltage data.
[0031] Step S3: Based on the voltage of the target device power supply circuit at each power-on moment, construct a voltage time series.
[0032] Specifically, based on the initial voltage value of the power supply circuit collected at the start time (t0) of each power-on, and combined with the full voltage data collected at high frequency during the power-on cycle of each power-on recovery attempt (e.g., within 200ms after power-on), the voltage dynamic change data within a single power-on cycle and the voltage data from multiple consecutive power-on recovery attempts are integrated, sorted, and serialized in chronological order. Finally, a voltage time series V(t) that can completely and accurately reflect the dynamic change law of the power supply circuit voltage of the target device over time is constructed.
[0033] Step S4: Based on the voltage change trend of the voltage time series, determine whether the inrush current is caused by a short circuit fault or by capacitor charging.
[0034] Specifically, based on the constructed voltage time series, a systematic analysis and characteristic interpretation of its overall voltage change trend are conducted. Combined with the electrical characteristics of the power supply circuit of the vehicle-mounted electrical equipment, the correlation between the voltage time series trend and the cause of the inrush current is analyzed in a targeted manner. In this way, it can be accurately determined whether the inrush current in the power supply circuit is caused by a real short circuit fault in the equipment or by the charging process of a large-capacity capacitor inside the equipment.
[0035] During the analysis, the focus is on the physical characteristics of capacitor charging to analyze the specific trends in voltage time series under this cause. By analyzing the dynamic characteristics of voltage in the time series, it is determined whether the inrush current is a transient normal impact generated during the charge accumulation of large-capacity capacitors in the equipment startup phase. This type of impact is not caused by equipment hardware failure, but is only an inherent characteristic of large capacitor equipment startup. At the same time, combined with the electrical operating rules of circuit short circuit, the unique trends in voltage time series under actual short circuit faults are analyzed. By analyzing the overall change state of voltage in the time series, it is confirmed whether the inrush current is a fault-related abnormal impact generated by the power supply circuit being in an abnormal conduction state after the equipment has experienced a hardware short circuit. This type of impact belongs to the hardware failure problem of the equipment, and is not a normal phenomenon of equipment startup.
[0036] In one optional implementation, the process of determining whether the inrush current is caused by a short circuit fault or by capacitor charging includes: if the difference between adjacent voltages in the voltage time series is less than a first preset difference, then the inrush current is caused by a short circuit fault; if the difference between adjacent voltages in the voltage time series is greater than a second preset difference, and the voltage in the voltage time series shows a monotonically increasing trend, then the inrush current is caused by capacitor charging.
[0037] Specifically, at the moment of power-on during each recovery attempt, the device terminal voltage is continuously sampled within a 200ms time window after power-on, at a sampling frequency of not less than 1kHz, generating a device terminal voltage time series V(t). Wherein: 1. At each power-on instant, the initial voltage at the device terminal corresponding to the initial power-on time (t0) needs to be recorded and denoted as V_start; the maximum value that the device terminal voltage can reach within a single power-on cycle is recorded and denoted as V_peak.
[0038] 2. Establish a voltage time series based on V_start at the initial moment of each power-on.
[0039] 3. Analyze the curve shape corresponding to the voltage time series V(t) to identify whether it exhibits the typical "sawtooth" shape of "rapid rise followed by a sudden drop due to the triggering of the hardware overcurrent protection mechanism".
[0040] (1) During multiple recovery attempts, if the initial voltage V_start remains in a low range (e.g., close to 0V) and there is no obvious increasing trend, that is, the difference between V_start of two consecutive power-on attempts is less than the preset threshold ΔV_threshold, then it is determined to be a real short circuit fault. (2) During the continuous recovery attempts, if the initial voltage V_start shows a significant monotonically increasing trend, that is, the V_start(n) of the next power-on is greater than the sum of the V_start(n-1) of the previous power-on and the preset threshold ΔV_threshold, it can be determined that it is the inrush current caused by capacitor charging. This phenomenon indicates that the residual charge of the capacitor inside the device gradually accumulates during the multiple power-on processes.
[0041] The judgment process is essentially a simple time series pattern recognition logic, which can quickly determine the fault type by simply comparing the starting voltage V_start of adjacent power-on cycles.
[0042] For example, the process of determining whether the inrush current is caused by a short-circuit fault or by capacitor charging includes: First, the continuous data of the voltage time series of the power supply circuit of the target device is extracted one group at a time. The difference between two adjacent groups of voltage data is calculated in turn. Then, the calculation results are compared with the preset threshold and a comprehensive judgment is made in combination with the overall trend of the voltage series. If, in the voltage time series, the calculated adjacent voltage difference is consistently less than a pre-set first preset difference (for example, if the first preset difference is set to 0.5V, and adjacent voltage differences of 0.1V, 0.2V, 0.3V, etc., all meet this condition), then it is directly determined that the inrush current generated in the power supply circuit is caused by a short circuit fault in the equipment. If, in the voltage time series, the calculated adjacent voltage difference is consistently greater than the second preset difference (for example, if the second preset difference is set to 1V, and adjacent voltage differences are consecutively 1.2V, 1.5V, 1.8V, etc., this condition is met), and the voltage values in the entire voltage time series generally show a stable monotonically increasing trend (for example, the voltage values are successively 2V, 3.2V, 4.7V, 6.5V, etc., continuously rising), then both of the above judgment conditions must be met simultaneously. In this case, it is determined that the inrush current generated in the power supply circuit is caused by the charging process of the large-capacity capacitor inside the equipment.
[0043] This embodiment provides an adaptive recovery method, such as Figure 2 As shown, it includes: Step S1: When there is an inrush current in the power supply circuit of the target device, perform multiple power-on recovery cycles.
[0044] Step S2: At each power-on time, obtain the voltage of the target device power supply circuit at each power-on time.
[0045] Step S3: Based on the voltage of the target device power supply circuit at each power-on moment, construct a voltage time series.
[0046] Step S4: Based on the voltage change trend of the voltage time series, determine whether the inrush current is caused by a short circuit fault or by capacitor charging.
[0047] Specifically, steps S1 to S4 have been described in detail in the above embodiments and will not be repeated here.
[0048] Step S5: If the inrush current is caused by a short circuit fault, then the default number of short circuit recovery counts will be used as the final number of recovery counts.
[0049] Specifically, if the voltage time series trend analysis in step S4 determines that the inrush current in the power supply circuit is caused by a real short circuit fault in the equipment, in order to avoid meaningless power-on recovery attempts on the faulty equipment, prevent secondary damage to the hardware circuit due to continuous short circuits, and improve the efficiency of fault handling, the system will directly retrieve the default number of short circuit recovery attempts pre-configured for the short circuit fault scenario, and use this value as the final number of power-on recovery attempts for the target equipment. Subsequently, the power-on recovery operation will be performed according to this fixed number of attempts, without any additional parameter adjustments.
[0050] Step S6: If the inrush current is caused by capacitor charging, determine the final number of recovery cycles based on the target equipment type.
[0051] Specifically, if the voltage time series trend analysis in step S4 determines that the inrush current in the power supply circuit is caused by the charging process of the large-capacity capacitor inside the device, the system will determine the final number of power-on recovery attempts for the device according to the unique device type identifier of the target device and the preset parameter matching logic. Since the internal capacitor capacity and charging characteristics of different types of vehicle electrical equipment (such as different models of blowers, vehicle air conditioning fans, etc.) are significantly different, the optimal number of recovery attempts will also be different.
[0052] Step S7: Execute a power restoration cycle based on the final number of restorations.
[0053] In one alternative implementation, refer to Figure 3 The process of determining the final number of recovery attempts based on the target device type includes: retrieving the corresponding recovery attempts from the learning parameter table based on the target device type, and using this as the final number of recovery attempts. If the learning parameter table does not record a corresponding recovery attempt, then the corresponding recovery attempts from the device preset parameter table are retrieved and used as the final number of recovery attempts.
[0054] Specifically, after determining that the inrush current is caused by the charging of the internal capacitors of the equipment, the process of determining the final number of power-on recovery cycles based on the target equipment type follows the core logic of prioritizing the use of the learned parameter table and using the equipment's preset parameter table as a fallback. The specific operation procedure is as follows: The system first obtains the unique type identifier of the target device (such as circuit number, ECU software version number), and uses this as a search index to perform a targeted query in the pre-stored learning parameter table of the system. It retrieves the recovery count parameter in the table that corresponds one-to-one with the type of the target device, and directly uses the learned and optimized parameter as the final number of recovery counts for this power-on recovery of the target device. The recovery counts in the table are all based on the learning and parameter iteration optimization of the device's past successful startups, which are more in line with the actual operating conditions of the device and the characteristics of capacitor charging. If the search reveals that the learning parameter table does not contain a valid record of the number of recovery attempts corresponding to the target device type, the system will automatically trigger a fallback matching mechanism. Using the device type identifier as the index, the system will query the device preset parameter table stored in the system's non-volatile memory, retrieve the optimized number of recovery attempts for this type of large capacitor device that has been pre-calibrated based on its inherent capacitance, charging curve, and other characteristics, and use this preset parameter as the final number of recovery attempts for this power-on recovery.
[0055] The preset parameters of the equipment are shown in Table 1 for example.
[0056] Table 1
[0057] In one alternative implementation, refer to Figure 3 The process of determining the final number of recovery attempts based on the target device type also includes: if the corresponding number of recovery attempts is not recorded in the device preset parameter table, the system default number of recovery attempts will be used as the final number of recovery attempts.
[0058] Specifically, if the target device type identifier is used as an index, and after searching the device preset parameter table, it is found that the table does not pre-label and store valid configuration information related to the number of recovery attempts for that device type (such as a newly connected vehicle blower, a vehicle auxiliary cooling fan not included in the preset list, or other large capacitor-using electrical equipment without preset parameters), the system will trigger the lowest-level universal fallback mechanism. This mechanism directly retrieves the system default number of recovery attempts uniformly configured for various vehicle electrical equipment in the vehicle's power distribution unit, and uses this standardized universal parameter as the final number of recovery attempts for this power-on recovery attempt on the target device. This fallback design ensures that even when facing new or unknown types of devices that have not completed prior learning and adaptation and have no preset parameters, there are still uniform recovery parameters to support the power-on recovery operation, guaranteeing the integrity, universality, and continuity of the entire adaptive recovery process.
[0059] In one alternative implementation, refer to Figure 3 Based on the final number of restorations, the process of performing a power restoration cycle includes: in each power restoration process, if the current restoration is successfully started, the current number of restorations is recorded and the learning parameter table is updated.
[0060] Specifically, the system initiates a periodic power restoration cycle for the target device according to the determined final number of restorations. After each power restoration operation is completed, the operating status of the target device is monitored in real time to determine whether the restoration startup was successful. If the device is detected to have started normally after the power restoration, the subsequent power restoration cycle is immediately terminated. At the same time, the actual number of restorations corresponding to this successful startup is accurately recorded, and the update process of the learning parameter table is triggered synchronously, providing measured data support for the subsequent optimization of the device's adaptive recovery strategy.
[0061] Optionally, the process of updating the learning parameter table includes: calculating an efficiency factor based on the target device type, fault type, current number of recovery attempts, and total recovery time; storing the efficiency factor and the current number of recovery attempts as a history of a successful startup; and dynamically adjusting and updating the recovery parameters for the target device by analyzing the history of multiple successful startups of the target device and using a moving average or simple linear regression method.
[0062] Specifically, the detailed process of updating the learning parameter table is as follows: (1) The system first accurately extracts all core related data of the successful startup of the equipment, including the unique type identifier of the target equipment (such as blower model A, blower model B, etc.), the fault type determined by step S4 (only capacitor charging faults trigger this learning and update process), the actual current number of recovery times corresponding to this successful startup, and the total recovery time from the first execution of the power restoration operation to the successful startup of the equipment. The above data are substituted into the preset efficiency factor calculation formula (Equation (1)) and the efficiency factor η corresponding to this recovery strategy is obtained through quantitative calculation. The smaller the value of this factor, the higher the adaptability of the recovery parameters used this time to the actual working conditions of the equipment, and the higher the overall efficiency of the equipment startup.
[0063] (1) Among them, k1 and k2 are weighting coefficients pre-calibrated according to the design specifications of the vehicle power distribution system and the common characteristics of equipment startup, which can be adjusted as needed.
[0064] (2) The system uses the unique type identifier of the target device as an exclusive index. In the independent data area defined for the device in the learning parameter table, the efficiency factor and the actual number of current recovery times calculated this time are used as core data. At the same time, the corresponding fault type, total recovery time, and the preset interval used in this power restoration cycle are associated and stored as auxiliary information. They are integrated into a complete and traceable successful startup history record and stored. Each record retains the timestamp and working condition association information to ensure the integrity and relevance of the data.
[0065] (3) The system retrieves all valid successful startup history records stored under the target device type in the learning parameter table. Based on the accumulation, distribution characteristics and trend of the data, the system selects an appropriate data analysis method to perform calculations. If the amount of historical data is moderate and the parameter change trend is stable, the moving average method is used to calculate the optimal mean of core parameters such as the number of recovery times and the preset interval of the power supply cycle in multiple sets of records. If the historical data accumulation is sufficient and shows an obvious linear change trend, the simple linear regression method is used to fit the correlation model between the recovery parameters and the efficiency factor. Finally, the core optimization goal is to minimize the efficiency factor. The recovery parameters (including the core final number of recovery times and the corresponding preset time interval of the power supply cycle) of the target device are dynamically adjusted and updated. The optimized recovery parameters after adjustment will directly cover or iterate the original parameters corresponding to the device type in the learning parameter table. This ensures that when the device triggers the adaptive recovery strategy again, the system can prioritize retrieving the optimal recovery parameters that fit the actual power supply conditions of the vehicle and are compatible with the charging characteristics of the internal capacitor of the device, so as to realize the continuous closed-loop iteration and optimization upgrade of the recovery strategy.
[0066] In one alternative implementation, refer to Figure 3 Based on the final number of restorations, the process of performing a power restoration cycle includes: in each power restoration process, if the current restoration fails to start, it is determined whether the final number of restorations has been reached; if the final number of restorations has not been reached, the next restoration is performed after a preset delay; if the final number of restorations has been reached, the target device is locked and reported.
[0067] Specifically, if the system detects and determines that the target device failed to start up after the power restoration operation is completed, the microcontroller unit in the vehicle power distribution unit (IDU) will perform subsequent counting and cyclic judgment operations: First, the number of recovery attempts currently performed will be incremented by 1 to ensure that the statistics of the number of recovery attempts match the actual operation steps and there is no counting deviation; after the count is updated, the system will immediately compare the updated current number of recovery attempts with the final number of recovery attempts determined in real time based on the cause of the fault and the device type to complete the judgment of the recovery attempt threshold.
[0068] If, after comparison, the current number of recovery attempts has not yet reached the preset final number of recovery attempts, it indicates that there is still a preset recovery attempt space. The system will continue to perform the next round of power restoration cycle for the target device according to the fixed recovery time interval configured for the target device (i.e., the preset time). During the new round of power restoration, the system will continue to monitor and determine the device's startup status in real time. If, after comparison, the current number of recovery attempts has reached the preset final number of recovery attempts, it indicates that all preset recovery attempts have been completed. The system will immediately terminate all power restoration cycle operations for the target device and will not perform any further power-on recovery attempts. At the same time, the system will record the final total number of recovery attempts in this complete recovery process. This record will be stored in the system storage area and can also be uploaded to the vehicle controller.
[0069] Optionally, referring to Table 1, the preset time interval for power restoration cycles is a core strategy parameter determined synchronously with the final number of restorations. There is no uniform fixed value for the preset intervals that correspond to different fault causes and different equipment types. For example, if the fault is determined to be caused by capacitor charging, blower model A is matched with a 1000ms restoration interval, and blower model B is matched with an 800ms restoration interval to adapt to the charge accumulation rhythm of large capacitor equipment. If the fault is determined to be a short circuit or the system default restoration parameters are called, a normal restoration interval of 3000ms is matched to take into account the safety protection of hardware circuits.
[0070] This embodiment also provides an adaptive recovery device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0071] This embodiment provides an adaptive recovery device. Based on the above adaptive recovery method, the device includes: The diagnostic module is used to determine whether the inrush current is caused by a short circuit fault or by capacitor charging, based on the above fault diagnosis methods. The first recovery count determination module is used to determine the default short-circuit recovery count as the final recovery count if the inrush current is caused by a short-circuit fault. The second recovery count determination module is used to determine the final recovery count based on the target equipment type if the inrush current is caused by capacitor charging. The recovery module is used to execute a power restoration cycle based on the final number of recovery attempts.
[0072] The adaptive recovery device provided in this embodiment of the invention can execute the adaptive recovery method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.
[0073] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0074] The following is a detailed reference. Figure 4 The diagram illustrates a structural schematic suitable for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 001, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 002 or a program loaded from memory 008 into random access memory (RAM) 003. The RAM 003 also stores various programs and data required for the operation of the electronic device. The processor 001, ROM 002, and RAM 003 are interconnected via bus 004. An input / output (I / O) interface 005 is also connected to bus 004.
[0075] Typically, the following devices can be connected to I / O interface 005: input devices 006 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 007 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 008 including, for example, magnetic tapes, hard disks, etc.; and communication devices 009. Communication device 009 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 4 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0076] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 009, or installed from memory 008, or installed from ROM 002. When the computer program is executed by processor 001, it performs the functions defined in the adaptive recovery method of the embodiments of the present invention.
[0077] Figure 4The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0078] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium after being downloaded via a network. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium may also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implement the adaptive recovery method shown in the above embodiments.
[0079] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0080] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A fault diagnosis method, characterized in that, include: When there is an inrush current in the power supply circuit of the target device, perform multiple power-on recovery cycles; At each power-on time, obtain the voltage of the target device's power supply circuit at each power-on time; A voltage time series is constructed based on the voltage of the target device's power supply circuit at each power-on moment; Based on the voltage change trend of the voltage time series, it can be determined whether the inrush current is caused by a short circuit fault or by capacitor charging.
2. The fault diagnosis method according to claim 1, characterized in that, The process of determining whether the inrush current is caused by a short circuit fault or by capacitor charging includes: If the difference between adjacent voltages in the voltage time series is less than a first preset difference, then the inrush current is caused by a short circuit fault. If the difference between adjacent voltages in the voltage time series is greater than a second preset difference, and the voltage in the voltage time series shows a monotonically increasing trend, then the inrush current is caused by capacitor charging.
3. An adaptive recovery method, characterized in that, include: Based on the fault diagnosis method according to any one of claims 1-2, it is determined whether the inrush current is caused by a short circuit fault or by capacitor charging. If the inrush current is caused by a short circuit fault, then the default number of short circuit recovery times will be used as the final number of recovery times. If the inrush current is caused by capacitor charging, the final number of recovery cycles is determined based on the type of target equipment. Based on the final number of restorations, a power restoration cycle is executed.
4. The adaptive recovery method according to claim 3, characterized in that, The process of determining the final number of restores based on the target device type includes: Based on the target device type, the corresponding number of recovery attempts in the learning parameter table is called, and this number is used as the final number of recovery attempts.
5. The adaptive recovery method according to claim 4, characterized in that, The process of determining the final number of restores based on the target device type also includes: If the learning parameter table does not record the corresponding number of recovery attempts, then query the device preset parameter table for the corresponding number of recovery attempts and use it as the final number of recovery attempts.
6. The adaptive recovery method according to claim 5, characterized in that, The process of determining the final number of restores based on the target device type also includes: If the corresponding number of recovery attempts is not recorded in the device preset parameter table, the system default number of recovery attempts will be used as the final number of recovery attempts.
7. The adaptive recovery method according to claim 4, characterized in that, Based on the final number of restorations, the process of executing a power restoration cycle includes: During each power restoration process, if the restoration is successfully initiated, the current restoration count is recorded, and the learning parameter table is updated.
8. The adaptive recovery method according to claim 7, characterized in that, The process of updating the learning parameter table includes: Calculate the efficiency factor based on the target equipment type, fault type, current number of recovery attempts, and total recovery time; Store the efficiency factor and the current number of recovery attempts as a history of a successful startup; By analyzing the historical records of multiple successful startups of the target device, the recovery parameters used for the target device are dynamically adjusted and updated using moving average or simple linear regression methods.
9. The adaptive recovery method according to claim 7, characterized in that, Based on the final number of restorations, the process of executing a power restoration cycle includes: If the power restoration attempt fails during each restoration process, it is determined whether the final number of restoration attempts has been reached. If the final number of recovery attempts is not reached, the next recovery attempt will be performed after a preset delay; if the final number of recovery attempts is reached, the target device will be locked and reported.
10. An adaptive recovery device, characterized in that, Based on the adaptive recovery method according to claim 3, the apparatus includes: A diagnostic module is used to determine, based on the fault diagnosis method according to any one of claims 1-2, whether the inrush current is caused by a short circuit fault or by capacitor charging. The first recovery count determination module is used to determine the default short-circuit recovery count as the final recovery count if the inrush current is caused by a short-circuit fault. The second recovery count determination module is used to determine the final recovery count based on the target equipment type if the inrush current is caused by capacitor charging. The recovery module is used to execute a power restoration cycle based on the final number of recovery attempts.