Power supply monitoring implementation system and method and storage medium

Through the ADC resource and voltage abnormality determination unit in the MCU unit, real-time monitoring and abnormality determination of the power supply voltage are realized, solving the problems of high power supply monitoring cost and poor generalization in the prior art, and improving the integration and reliability of the system ensures the stability and safety of the power supply system.

CN119104945APending Publication Date: 2024-12-10HUIZHOU DESAY SV AUTOMOTIVE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411214113.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-31
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The existing power supply monitoring solutions require additional hardware and software development costs, and the monitoring functions are poor in general and reusable, making it difficult to meet the high requirements for power supply by automotive electronic products.

Method used

Through the ADC resource, voltage abnormality determination unit and power switch control unit in the MCU unit, real-time monitoring and abnormality determination of the power supply voltage are realized, redundant acquisition ports are used to improve data accuracy, and the real-timeness of data acquisition is ensured through the timer unit. and continuity, enabling rapid response and power supply cut-off functions.

Benefits of technology

No additional hardware costs are required, efficient monitoring of power supply chips is achieved, system integration and reliability is improved, stability and security of monitoring objects are ensured, rapid response and adaptability are achieved, and development costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119104945A_ABST
    Figure CN119104945A_ABST
Patent Text Reader

Abstract

The invention provides a power supply monitoring realization system and method, and a storage medium. The method comprises a power supply monitoring module and an MCU unit. The MCU unit comprises a voltage abnormity judgment unit and a power switch control unit; wherein a first end of the voltage abnormity determination unit is connected with a voltage input end of the power supply demand monitoring module through a first acquisition port of the MCU unit, and a second end of the voltage abnormity determination unit is connected with a voltage output end of the power supply demand monitoring module through a second acquisition port of the MCU unit; a third end of the voltage abnormity determination unit is connected with one end of the power switch control unit, and the other end of the power switch control unit is connected with a power switch end of the power supply demand monitoring module through an enabling port of the MCU unit. According to the power supply monitoring system, the requirement for power supply monitoring is met through the ADC resources in the MCU unit, extra hardware design and hardware cost do not need to be increased, high universality and universality can be achieved in software design, and the requirement of a user for electronic product safety is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic safety technology, and in particular, relates to a power supply monitoring implementation system, method and storage medium. Background Art

[0002] The current trend of passenger cars towards intelligence and automation has put forward higher requirements for the basic safety of automotive electronic products, and even requires that the power supply situation needs to be monitored. If the power supply system is replaced with a chip with monitoring function, it will undoubtedly have a considerable impact on the cost and system design. However, most of the current monitoring solutions for power supply products require the use of power supply voltage regulator chips with special power supply detection, which greatly increases the use cost and development cost; and once the power supply voltage regulator chip in the power supply product to be monitored is changed, there is an investment in software development costs, that is, the versatility and reusability of the monitoring function are very poor. Summary of the invention

[0003] In view of the above-mentioned defects of the prior art, the present application provides a power supply monitoring implementation system, method and storage medium, which meet the power supply monitoring requirements through the ADC resources in the MCU unit.

[0004] To achieve the above objectives, the present application provides a power supply monitoring implementation system, including a power supply monitoring module; and also including: MCU unit; the MCU unit at least includes a voltage anomaly determination unit and a power switch control unit. The first end of the voltage anomaly determination unit is connected to the voltage input end of the power supply monitoring module through the first acquisition port of the MCU unit, and the second end of the voltage anomaly determination unit is connected to the voltage output end of the power supply monitoring module through the second acquisition port of the MCU unit; the third end of the voltage anomaly determination unit is connected to one end of the power switch control unit, and the other end of the power switch control unit is connected to the power switch end of the power supply monitoring module through the enable port of the MCU unit.

[0005] In the present application, the first end of the voltage anomaly judgment unit is connected to the voltage input end of the power supply monitoring module through the first redundant acquisition port of the MCU unit, and the second end of the voltage anomaly judgment unit is connected to the voltage output end of the power supply monitoring module through the second redundant acquisition port of the MCU unit.

[0006] In the present application, the MCU unit also includes a timer unit; one end of the timer unit is connected to the voltage input end of the power supply monitoring module through the first acquisition port of the MCU unit, and the other end of the timer unit is connected to the voltage output end of the power supply monitoring module through the second acquisition port of the MCU unit.

[0007] In the present application, the voltage anomaly judgment unit includes a calculation processing unit and an input voltage judgment unit; wherein the input end of the calculation processing unit is respectively connected to the first acquisition port of the MCU unit and the first redundant acquisition port of the MCU unit; the output end of the calculation processing unit is connected to one end of the input voltage judgment unit, and the other end of the input voltage judgment unit is connected to one end of the power switch control unit.

[0008] In the present application, the voltage anomaly judgment unit also includes an output voltage judgment unit; wherein the input end of the calculation and processing unit is also connected to the second acquisition port of the MCU unit and the second redundant acquisition port of the MCU unit respectively; the output end of the calculation and processing unit is also connected to one end of the output voltage judgment unit, and the other end of the output voltage judgment unit is connected to one end of the power switch control unit.

[0009] To achieve the above objectives, the present application also provides a power supply monitoring implementation method, which is applied to any of the power supply monitoring implementation systems described above, and the method includes: S100: continuously collecting the input terminal voltage and the output terminal voltage of the power supply monitoring module according to a preset frequency.

[0010] S200: Determine whether the current input terminal voltage is within the preset input terminal voltage threshold range according to preset conditions; if not, output the current input voltage abnormal signal; if yes, calculate the actual deviation rate of the current output terminal voltage, and determine whether the actual deviation rate of the current output terminal voltage meets the preset maximum deviation rate. If yes, output the current power supply monitoring normal signal; if not, output the current output voltage abnormal signal.

[0011] S300: In response to the input voltage abnormality signal or the output voltage abnormality signal, output a current power supply monitoring abnormality signal, and control cutting off the working power supply of the power supply monitoring module.

[0012] In the present application, the input terminal voltage includes input terminal voltage one and input terminal voltage two; wherein, the input terminal voltage two is the input voltage monitoring redundancy value of input terminal voltage one; the output terminal voltage includes output terminal voltage one and output terminal voltage two; wherein, the output terminal voltage two is the output voltage monitoring redundancy value of output terminal voltage one.

[0013] In this application, the preset conditions are specifically: When the input terminal voltage one is not less than the input terminal voltage two, the input terminal voltage one is divided by the input terminal voltage two to obtain a value one, and it is determined whether the value one meets the preset standard value. If so, the current input terminal voltage is calculated according to the value one; otherwise, the current input voltage abnormal signal is output; when the input terminal voltage one is less than the input terminal voltage two, the input terminal voltage two is divided by the input terminal voltage one to obtain a value two, and it is determined whether the value two meets the preset standard value. If so, the current input terminal voltage is calculated according to the value two; otherwise, the current input voltage abnormal signal is output.

[0014] When the output terminal voltage one is not less than the output terminal voltage two, the output terminal voltage one is divided by the output terminal voltage two to obtain a value three, and it is judged whether the value three meets the preset standard value. If so, the current output terminal voltage is calculated according to the value three; otherwise, the current output voltage abnormal signal is output; when the output terminal voltage one is less than the output terminal voltage two, the output terminal voltage two is divided by the output terminal voltage one to obtain a value four, and it is judged whether the value four meets the preset standard value. If so, the current output terminal voltage is calculated according to the value four; otherwise, the current output voltage abnormal signal is output.

[0015] In the present application, the actual deviation rate of the current output voltage is calculated as follows: The current output terminal voltage is divided by the preset output voltage and then subtracted from 1 to obtain a value of five, and the absolute value of the value of five is taken as the actual deviation rate of the current output terminal voltage.

[0016] To achieve the above objectives, the present application also provides a storage medium, which is a type of computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements any of the power supply monitoring implementation methods described above.

[0017] Compared with the prior art, the present invention has the following beneficial effects: The application proposes a power supply monitoring implementation system, method and storage medium, which collects voltage data by using the built-in ADC resources of the MCU unit without additional hardware costs, and realizes the safety monitoring function with software functions such as the voltage anomaly judgment unit and the power switch control unit, so as to complete the real-time monitoring of the input voltage and output voltage, and when the power supply anomaly is detected, the power supply can be quickly cut off to prevent the fault from expanding or causing damage. The application ensures the stability and safety of the monitored object, prevents potential safety risks, and also greatly improves the response speed and adaptability of the monitoring process. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1It is a schematic diagram of the framework of a power supply monitoring implementation system in one embodiment of the present application.

[0019] Figure 2 This is a flow chart of a method for implementing power supply monitoring in one embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme will be clearly and completely described below in conjunction with the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] Embodiment 1: As attached Figure 1 As shown, in order to solve the above technical problems, the present application provides a power supply monitoring implementation system, which can monitor the voltage of the power supply chip through the ADC resources in the MCU unit without adding additional hardware architecture and design costs. The built-in ADC resources of the MCU enable the microcontroller to be directly connected to analog sensors, signal sources, etc. without the need for an external ADC chip, thereby simplifying the hardware design, reducing costs, and improving the integration and reliability of the system.

[0022] In this embodiment, the system includes a power supply monitoring module and an MCU unit.

[0023] It should be noted that the main implementation principle of the present application is: connect the MCU unit to the input and output ends of the power chip that needs power supply detection for voltage monitoring, detect and determine the input and output voltages, and if there is an abnormality, output specific error information according to the error type, and at the same time control the power supply of the power chip to be cut off.

[0024] The MCU unit at least includes a voltage anomaly determination unit and a power switch control unit. The first end of the voltage anomaly determination unit is connected to the voltage input end of the power supply monitoring module through the first acquisition port of the MCU unit, and the second end of the voltage anomaly determination unit is connected to the voltage output end of the power supply monitoring module through the second acquisition port of the MCU unit; the third end of the voltage anomaly determination unit is connected to one end of the power switch control unit, and the other end of the power switch control unit is connected to the power switch end of the power supply monitoring module through the enable port of the MCU unit.

[0025] It should be noted that the power supply monitoring module in this embodiment can be a variety of automotive electronic products, such as an automotive battery management system (BMS). In the BMS, the system of this embodiment can monitor the charge and discharge status of the battery to ensure that the battery operates within a safe voltage range. Monitoring the output voltage can timely detect abnormalities in the battery or power line, prevent overcharging or overdischarging, and extend the battery life; another example is the engine control unit (ECU). For the ECU, power supply stability is crucial because the operation of the engine depends on precise electronic control. The system of this embodiment can prevent engine performance degradation or failure due to power problems; another example is the airbag system. The airbag system needs to be on standby at all times and must respond immediately once a collision is detected. The system of this embodiment can monitor the module to maintain normal working status to avoid the airbag from failing to start due to power problems at critical moments; another example is the headlight control system. The headlights are a safety guarantee for cars driving at night. The system of this embodiment can ensure that the headlight system can work normally in all situations. Monitoring can prevent lights from flickering or going out due to power problems, and improve driving safety, which is not limited to this.

[0026] In this embodiment, the power switch control unit can control the on and off of the power supply by changing the level state of the GPIO (general purpose input output) pin connected to the enable port through a program. Preferably, when a power supply abnormality is detected, the GPIO pin is set to a low level, the power enable is cut off, and the power supply of the power chip is cut off, but it is not limited to this. By implementing a safety mechanism in the software, such as a fail-safe state, it is ensured that the power supply is automatically cut off when a serious error is detected.

[0027] In the present application, the first end of the voltage anomaly judgment unit is connected to the voltage input end of the power supply monitoring module through the first redundant acquisition port of the MCU unit, and the second end of the voltage anomaly judgment unit is connected to the voltage output end of the power supply monitoring module through the second redundant acquisition port of the MCU unit.

[0028] It should be noted that the first redundant acquisition port is connected to the voltage input terminal of the power supply monitoring module for collecting the input voltage (Vin); the second redundant acquisition port is connected to the voltage output terminal of the power supply monitoring module for collecting the output voltage (Vout). By redundantly collecting data, redundant error detection is facilitated to ensure the accuracy and reliability of the monitoring data.

[0029] In this embodiment, through redundant acquisition, the system can simultaneously acquire two sets of voltage data, improve data accuracy, and reduce errors that may occur at a single acquisition point. If the first acquisition port or the second acquisition port fails, the redundant port can also provide a backup data acquisition path to ensure that the system can still work normally in the case of partial failure. By comparing the redundantly acquired voltage data, potential faults or anomalies such as sensor failures, line problems, etc. can be detected. In addition, in this embodiment, redundant data can also be used for cross-checking to improve the reliability and stability of the system.

[0030] Preferably, it is assumed that the power supply monitoring module is an automotive battery management system (BMS) responsible for monitoring the battery status of the electric vehicle. The first redundant acquisition port is connected to the input end of the battery to monitor the charging voltage of the battery. The second redundant acquisition port is connected to the output end of the battery to monitor the discharge voltage of the battery. Under normal circumstances, the voltage values ​​collected by the two ports should be similar. If there is a comparison difference, it may indicate that a part of the battery management system has failed, such as a damaged current sensor, poor line contact, etc. Through redundant error detection, the system can detect these problems in time and take measures, such as adjusting the charging strategy, issuing a warning, or cutting off the power supply to protect the safety of the battery and the vehicle.

[0031] Therefore, the reliability and accuracy of the power supply monitoring system are improved by using the first redundant acquisition port and the second redundant acquisition port, thereby ensuring the stable operation and safety of the power supply system.

[0032] In the present application, the MCU unit also includes a timer unit; one end of the timer unit is connected to the voltage input end of the power supply monitoring module through the first acquisition port of the MCU unit, and the other end of the timer unit is connected to the voltage output end of the power supply monitoring module through the second acquisition port of the MCU unit.

[0033] It should be noted that in this embodiment, the timer unit is used to trigger ADC conversion according to a preset time interval to ensure that the MCU can regularly collect the voltage values ​​of the input and output terminals. The timer unit can be set to a fixed period, such as every 10ms, 40ms, 100ms, etc. to continuously collect voltage values ​​to maintain the real-time and continuity of the data, which is not limited to this. Preferably, if the ADC has a multi-channel function, the timer unit can trigger the conversion of multiple channels at the same time, such as input voltage 1, input voltage 2, output voltage 1, and output voltage 2. The timer unit can also provide precise time control to ensure that the time interval of each collection is consistent, thereby improving the accuracy and reliability of data collection.

[0034] Preferably, in this embodiment, by collecting voltage values ​​every 10ms, the system can monitor the status of the power supply module in real time and respond quickly to any voltage changes. For example, in an automotive battery management system, real-time monitoring of the charge and discharge status of the battery is essential to prevent overcharging and over-discharging. Periodic data collection helps detect and diagnose momentary faults or short-term anomalies in the power system. If the battery voltage drops suddenly, this may indicate a problem with the battery or power line. Due to the precise control of the timer unit, the collected data is time synchronized, which helps analyze voltage change trends and system responses.

[0035] Preferably, in the engine control unit, the synchronously collected voltage data can be used to optimize the operating parameters of the engine. The timer unit ensures the stability of data collection and avoids system performance fluctuations caused by inconsistent collection intervals.

[0036] In another preferred embodiment, the function of the timer unit can also be used to enable the MCU to work without continuous ADC conversion, thereby saving processor resources and reducing power consumption. When real-time data is not needed, the MCU can enter a low-power mode and be awakened by the timer unit for data collection when needed.

[0037] In the present application, the voltage anomaly judgment unit includes a calculation processing unit and an input voltage judgment unit; wherein the input end of the calculation processing unit is respectively connected to the first acquisition port of the MCU unit and the first redundant acquisition port of the MCU unit; the output end of the calculation processing unit is connected to one end of the input voltage judgment unit, and the other end of the input voltage judgment unit is connected to one end of the power switch control unit.

[0038] It should be noted that, in this embodiment, the input voltage 1 and the redundant input voltage 2 can be compared, the voltage ratio can be calculated according to the comparison result, and it is determined whether the ratio is within the allowable error range, for example, whether it is less than or equal to 1.01. If the ratio is within the allowable range, this voltage value is selected as the valid input voltage value; if the ratio exceeds the allowable range, an error message is recorded.

[0039] This embodiment compares the redundantly collected voltage values ​​to detect whether there is inconsistency or abnormality, thereby ensuring the accuracy of the data. The redundant data are used only when they are consistent within the allowable error range, thereby improving the reliability of the system. When a redundant error is detected, the error code information is recorded to provide a basis for subsequent error processing and fault diagnosis.

[0040] Furthermore, it is determined whether the above-mentioned valid input voltage value is within the range of a preset minimum input voltage and a preset maximum input voltage, wherein the preset minimum voltage and the preset maximum voltage can be obtained from the data sheet corresponding to the chip model of the power chip (DC / DC or LDO).

[0041] If the effective input voltage value is lower than the preset minimum voltage, the error code information is recorded as input voltage too low abnormality.

[0042] If the effective input voltage value is higher than the preset maximum voltage, the error code recorded is input voltage too high exception.

[0043] Through the above implementation, the input voltage is ensured to be within a safe operating range, preventing low voltage from causing system performance degradation or high voltage from damaging electronic components. When an abnormal input voltage is detected, the corresponding error code is recorded to provide information for system fault diagnosis and maintenance.

[0044] In the present application, the voltage anomaly judgment unit also includes an output voltage judgment unit; wherein the input end of the calculation and processing unit is also connected to the second acquisition port of the MCU unit and the second redundant acquisition port of the MCU unit respectively; the output end of the calculation and processing unit is also connected to one end of the output voltage judgment unit, and the other end of the output voltage judgment unit is connected to one end of the power switch control unit.

[0045] It should be noted that the output voltage judgment unit is used to receive output voltage data from the calculation processing unit, such as input voltage 1 and redundant input voltage 2, and compare them. The deviation between the actual output voltage and the expected output voltage is calculated, and it is determined whether the deviation is within an acceptable range. For example, whether it is less than or equal to 1.01. If the ratio is within the allowable range, this voltage value is selected as the valid output voltage value; if the deviation of the output voltage exceeds the preset range, the output voltage judgment unit will record an error code to indicate that the output voltage is abnormal.

[0046] Then, the actual output voltage deviation rate b% is calculated based on the ratio of the effective output voltage value to the preset output voltage value minus 1, and finally b% is compared with the standard output voltage maximum deviation rate a%. If b% is less than or equal to a%, the output voltage is normal, otherwise, the output voltage is abnormal. The preset output voltage value and the standard output voltage maximum deviation rate a% can also be obtained from the data sheet corresponding to the chip model of the power chip (DC / DC or LDO).

[0047] In many electronic systems, the stability of the output voltage is critical to the normal operation of the system. The output voltage judgment unit ensures that the voltage output remains within the predetermined specifications. For example, in the automotive lighting system, the output voltage judgment unit can ensure the stability of the lamp brightness and avoid lighting flickering caused by voltage fluctuations. Output voltage that is too high or too low may damage electronic components. The output voltage judgment unit can prevent this from happening.

[0048] In summary, the embodiment of the present application can complete the voltage monitoring of the power supply chip through the built-in ADC resources of the MCU without additional hardware, thereby reducing costs and improving system integration. The use of redundant acquisition ports improves data accuracy and enhances the reliability and stability of the system. The timer unit ensures the real-time and continuity of data acquisition, which is conducive to real-time monitoring and fault detection. The calculation processing unit and the input voltage judgment unit work together to ensure that the input voltage is within a safe range and prevent excessively low or high voltages from damaging electronic components. The output voltage judgment unit monitors the output voltage stability, protects electronic components and improves system reliability. The recording of error codes provides important information for fault diagnosis and maintenance, which helps to quickly locate and solve problems. The present application is applicable to a variety of automotive electronic products and improves the safety and performance of vehicle-mounted systems.

[0049] Embodiment 2: As attached Figure 2 As shown, in order to solve the above technical problems, the present application also proposes a power supply monitoring implementation method, which is applied to any of the above power supply monitoring implementation systems, and the method includes: S100: continuously collecting the input terminal voltage and the output terminal voltage of the power supply monitoring module according to a preset frequency.

[0050] Preferably, the preset frequency in this embodiment can be set according to the real-time requirements in actual applications, for example, collecting data every 10 milliseconds or every 0.5 seconds, etc., but are not limited thereto.

[0051] Among them, the input terminal voltage includes input terminal voltage one and input terminal voltage two; wherein the input terminal voltage two is the input voltage monitoring redundancy value of input terminal voltage one; the output terminal voltage includes output terminal voltage one and output terminal voltage two; wherein the output terminal voltage two is the output voltage monitoring redundancy value of output terminal voltage one.

[0052] It should be noted that the input voltage 1 is the main input voltage collection point, which is used to monitor the input voltage of the power supply module. The input voltage 2 is the redundant input voltage collection point, which provides redundant monitoring of the input voltage.

[0053] Through redundant monitoring, the accuracy of the input voltage can be detected to prevent false alarms caused by single sensor failure. When there is a significant difference between input voltage one and input voltage two, it may indicate that there is a problem with the input voltage acquisition system, such as sensor failure or line problem. Only when input voltage one and input voltage two are consistent within the allowable error range, these data are used, which improves the reliability of the system.

[0054] Similarly, output voltage 1 is the main output voltage collection point, which is used to monitor the output voltage of the power supply module. Output voltage 2 is the redundant output voltage collection point, which provides redundant monitoring of the output voltage.

[0055] Through redundant monitoring, the accuracy of the output voltage can be detected to prevent false alarms caused by single sensor failure. When there is a significant difference between output voltage one and output voltage two, it may indicate that there is a problem with the output voltage acquisition system, such as sensor failure or line problem. Only when output voltage one and output voltage two are consistent within the allowable error range, these data are used, which improves the reliability of the system.

[0056] In this embodiment, the redundant design of input terminal voltage 1, input terminal voltage 2, output terminal voltage 1 and output terminal voltage 2 improves the reliability and accuracy of the power supply monitoring system. By comparing the redundant voltage values, the system can promptly detect potential faults or abnormalities and take measures, such as adjusting the power supply strategy, issuing a warning or cutting off the power supply, to protect the safety and stability of the power supply system.

[0057] S200: Determine whether the current input terminal voltage is within the preset input terminal voltage threshold range according to preset conditions; if not, output the current input voltage abnormal signal; if yes, calculate the actual deviation rate of the current output terminal voltage, and determine whether the actual deviation rate of the current output terminal voltage meets the preset maximum deviation rate. If yes, output the current power supply monitoring normal signal; if not, output the current output voltage abnormal signal.

[0058] It should be noted that step S200 ensures that the input voltage is within a safe operating range, preventing low voltage from causing system performance degradation or high voltage from damaging electronic components. By monitoring the actual deviation rate of the output voltage, the stability of the output voltage and the normal operation of the system are guaranteed. When an abnormal input or output voltage is detected, an error signal is provided to provide information for system fault diagnosis and maintenance. By outputting a normal or abnormal signal, the power supply status of the system is indicated, which facilitates users or maintenance personnel to understand the operating status of the system.

[0059] The preset conditions are specifically: When the input terminal voltage one is not less than the input terminal voltage two, the input terminal voltage one is divided by the input terminal voltage two to obtain a value one, and it is determined whether the value one meets the preset standard value. If so, the current input terminal voltage is calculated according to the value one; otherwise, the current input voltage abnormal signal is output; when the input terminal voltage one is less than the input terminal voltage two, the input terminal voltage two is divided by the input terminal voltage one to obtain a value two, and it is determined whether the value two meets the preset standard value. If so, the current input terminal voltage is calculated according to the value two; otherwise, the current input voltage abnormal signal is output.

[0060] It should be noted that if the input voltage 1 (ADC_Vin1) is not less than the input voltage 2 (ADC_Vin2), the calculated value 1 = ADC_Vin1 / ADC_Vin2 - 1. If the input voltage 1 is less than the input voltage 2, the calculated value 2 = ADC_Vin2 / ADC_Vin1 -1.

[0061] If value 1 or value 2 meets the preset standard value, for example, the preset standard value is 0.01, if value 1 or value 2 is less than or equal to 0.01, it is considered that the input terminal voltage is consistent. When value 1 meets the preset standard value, the current input terminal voltage = ADC_Vin1; when value 2 meets the preset standard value, the current input terminal voltage = ADC_Vin2.

[0062] If the value 1 or the value 2 does not meet the preset standard value, the current input voltage abnormal signal is output.

[0063] In this embodiment, by comparing the input terminal voltage 1 and the input terminal voltage 2 and performing calculations, the accuracy of the input voltage data can be verified to prevent false alarms caused by single-interface data transmission failures. When there is a significant difference between the input terminal voltage 1 and the input terminal voltage 2, potential faults or abnormalities can be detected in time. These data are only used when the input terminal voltage 1 and the input terminal voltage 2 are consistent within the allowable error range, thereby improving the reliability of the system. When the input voltage is abnormal, an abnormal signal is output in time to provide information for fault diagnosis and maintenance of the system.

[0064] When the output terminal voltage one is not less than the output terminal voltage two, the output terminal voltage one is divided by the output terminal voltage two to obtain a value three, and it is judged whether the value three meets the preset standard value. If so, the current output terminal voltage is calculated according to the value three; otherwise, the current output voltage abnormal signal is output; when the output terminal voltage one is less than the output terminal voltage two, the output terminal voltage two is divided by the output terminal voltage one to obtain a value four, and it is judged whether the value four meets the preset standard value. If so, the current output terminal voltage is calculated according to the value four; otherwise, the current output voltage abnormal signal is output.

[0065] It should be noted that if the output voltage one (ADC_Vout1) is not less than the output voltage two (ADC_Vout2), the calculated value three = ADC_Vout1 / ADC_Vout2 - 1; if the output voltage one is less than the output voltage two, the calculated value four = ADC_Vout2 / ADC_Vout1 - 1.

[0066] If the value 3 or the value 4 meets the preset standard value, for example, less than or equal to 0.01, the output voltage is considered to be consistent. When the value 3 meets the preset standard value, the current output voltage = ADC_Vout1; when the value 4 meets the preset standard value, the current output voltage = ADC_Vout2. If the value 3 or the value 4 does not meet the preset standard value, the current output voltage abnormality signal is output.

[0067] When an abnormal output voltage is detected, an abnormal signal can be output in time to provide information for further fault diagnosis and maintenance of the system.

[0068] In the embodiment of the present application, the actual deviation rate of the current output terminal voltage is calculated as follows: The current output terminal voltage is divided by the preset output voltage and then subtracted from 1 to obtain a value of five, and the absolute value of the value of five is taken as the actual deviation rate of the current output terminal voltage.

[0069] It should be noted that by calculating the deviation rate between the current output voltage and the preset output voltage, the stability of the output voltage can be quantified. The smaller the actual deviation rate, the more stable the output voltage and the better the system performance. When the actual deviation rate exceeds the preset maximum deviation rate, it indicates that the output voltage is unstable and there may be a fault or abnormality.

[0070] The actual deviation rate data can provide a basis for system maintenance and adjustment, and help optimize the performance of the power supply module.

[0071] Preferably, assuming that in a battery management system of an electric vehicle, the preset output voltage is 12V and the current output terminal voltage is 11.5V, the calculation process of the calculation value 5 is: Value five = 11.5 / 12−1 = −0.0416667, and the absolute value is: |Value five| = 0.0416667.

[0072] Assuming that the preset maximum deviation rate is 0.05, the actual deviation rate is less than the maximum deviation rate, indicating that the output voltage is within the acceptable range and the system is working normally. Similarly, if the preset maximum deviation rate is 0.03, the actual deviation rate exceeds 0.04, indicating that the output voltage is unstable and needs further inspection and adjustment. In this way, the stability of the output voltage and the reliable operation of the electric vehicle can be ensured.

[0073] S300: In response to the input voltage abnormality signal or the output voltage abnormality signal, output a current power supply monitoring abnormality signal, and control cutting off the working power supply of the power supply monitoring module.

[0074] It should be noted that when an input voltage abnormality signal or an output voltage abnormality signal is detected, step S300 is entered. At this time, a clear power supply monitoring abnormality signal will be output, which can be a warning indication, an error code, or a signal that triggers other system responses. In order to protect the power supply monitoring module and the entire system, the working power supply of the power supply monitoring module will be controlled to be cut off. This can be achieved by turning off the power switch or sending instructions to the power management unit.

[0075] This embodiment can prevent further damage by cutting off the working power supply, especially when a voltage anomaly is detected that may cause equipment damage or performance degradation. In the case of voltage anomalies, ensuring the safety of the system is the top priority. Cutting off the power supply can prevent electrical fires, equipment damage or personal injury. In addition, cutting off the power supply helps to isolate the fault and prevent abnormal voltage from affecting other system components; the output of the power supply monitoring abnormality signal provides maintenance personnel with clues for fault diagnosis, which helps to quickly locate the problem and take corresponding maintenance measures.

[0076] In summary, Example 2 improves the accuracy of power supply monitoring. Through redundant voltage monitoring and deviation rate calculation, it effectively avoids false alarms caused by failure of a single data transmission interface. It also enhances the safety and reliability of the system, and can cut off the power supply in time when abnormal input or output voltage is detected to prevent equipment damage and potential safety risks. Through real-time monitoring and rapid response, the efficiency of fault diagnosis is optimized, which facilitates timely maintenance and adjustment. It also ensures the stability of the power supply system and ensures the normal operation of key electronic components in application scenarios such as electric vehicles. The specific implementation process and principle have been introduced in detail in Example 1 and will not be repeated in this embodiment.

[0077] Embodiment three: The present application also provides a storage medium, which is a type of computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements any of the power supply monitoring implementation methods described above.

[0078] It should be noted that the storage medium stores computer programs for power supply monitoring, which contain the steps and logic of the power supply monitoring implementation method. When the storage medium is inserted into a computer or processor, the computer program can be read and executed by the processor. The program in the storage medium can process power supply monitoring data, including collected voltage data, calculate deviation rate, judge voltage anomalies, etc. After the program is executed, it can output power supply monitoring abnormality signals and control instructions such as cutting off power supply.

[0079] In this embodiment, the storage medium (such as a USB flash drive, a solid-state hard drive, etc.) is small in size and light in weight, easy to carry and transfer between different devices, and can be used to distribute and update the power supply monitoring program so that multiple systems or devices can quickly obtain the latest software version; it can also be used to back up power supply monitoring data so as to restore data in the event of a system failure; it can also run independently without an external network connection, thereby improving the autonomy and reliability of the power supply monitoring system.

[0080] Preferably, it is assumed that in a battery management system of an electric vehicle, a storage medium is used to store and execute a power supply monitoring program. When the vehicle is started, the battery management system reads the power supply monitoring program from the storage medium and starts executing it. The program collects the input and output voltages of the battery in real time, calculates the deviation rate, and outputs a warning signal and cuts off the power supply when an abnormality is detected.

[0081] In summary, the storage medium of this embodiment effectively ensures the power supply safety and stability of the electric vehicle.

[0082] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The memory is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.

[0083] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0084] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0085] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A power supply monitoring implementation system, comprising a power supply monitoring module; characterized in that: Also includes: MCU unit; The MCU unit at least includes a voltage anomaly determination unit and a power switch control unit; Among them, the first end of the voltage abnormality judgment unit is connected to the voltage input end of the power supply monitoring module through the first acquisition port of the MCU unit, and the second end of the voltage abnormality judgment unit is connected to the voltage output end of the power supply monitoring module through the second acquisition port of the MCU unit; the third end of the voltage abnormality judgment unit is connected to one end of the power switch control unit, and the other end of the power switch control unit is connected to the power switch end of the power supply monitoring module through the enable port of the MCU unit.

2. A power supply monitoring implementation system according to claim 1, characterized in that: The first end of the voltage anomaly determination unit is connected to the voltage input end of the power supply monitoring module through the first redundant acquisition port of the MCU unit, and the second end of the voltage anomaly determination unit is connected to the voltage output end of the power supply monitoring module through the second redundant acquisition port of the MCU unit.

3. A power supply monitoring implementation system according to claim 1, characterized in that: The MCU unit also includes a timer unit; one end of the timer unit is connected to the voltage input end of the power supply monitoring module through the first acquisition port of the MCU unit, and the other end of the timer unit is connected to the voltage output end of the power supply monitoring module through the second acquisition port of the MCU unit.

4. A power supply monitoring implementation system according to claim 2, characterized in that: The voltage abnormality determination unit includes a calculation processing unit and an input voltage determination unit; The input end of the calculation processing unit is connected to the first acquisition port of the MCU unit and the first redundant acquisition port of the MCU unit respectively; the output end of the calculation processing unit is connected to one end of the input voltage judgment unit, and the other end of the input voltage judgment unit is connected to one end of the power switch control unit.

5. A power supply monitoring implementation system according to claim 4, characterized in that: The voltage abnormality determination unit further includes an output voltage determination unit; The input end of the calculation processing unit is also connected to the second acquisition port of the MCU unit and the second redundant acquisition port of the MCU unit respectively; the output end of the calculation processing unit is also connected to one end of the output voltage judgment unit, and the other end of the output voltage judgment unit is connected to one end of the power switch control unit.

6. A method for implementing power supply monitoring, applied to the power supply monitoring implementation system as claimed in any one of claims 1 to 5, characterized in that: include: S100: continuously collecting the input terminal voltage and the output terminal voltage of the power supply monitoring module according to a preset frequency; S200: Determine whether the current input terminal voltage is within a preset input terminal voltage threshold range according to a preset condition; If not, output the current input voltage abnormal signal; If yes, then calculate the actual deviation rate of the current output terminal voltage, and determine whether the actual deviation rate of the current output terminal voltage meets the preset maximum deviation rate. If yes, output the current power supply monitoring normal signal; If not satisfied, the current output voltage abnormal signal is output; S300: In response to the input voltage abnormality signal or the output voltage abnormality signal, output a current power supply monitoring abnormality signal, and control cutting off the working power supply of the power supply monitoring module.

7. A method for implementing power supply monitoring according to claim 6, characterized in that: The input terminal voltage includes input terminal voltage 1 and input terminal voltage 2; wherein the input terminal voltage 2 is an input voltage monitoring redundancy value of the input terminal voltage 1; The output terminal voltage includes output terminal voltage one and output terminal voltage two; wherein, output terminal voltage two is an output voltage monitoring redundancy value of output terminal voltage one.

8. A method for implementing power supply monitoring according to claim 7, characterized in that: The preset conditions are specifically: When the input terminal voltage 1 is not less than the input terminal voltage 2, the input terminal voltage 1 is divided by the input terminal voltage 2 to obtain a value 1, and it is determined whether the value 1 meets a preset standard value. If so, the current input terminal voltage is calculated according to the value 1; otherwise, the current input voltage abnormality signal is output; When the input terminal voltage 1 is less than the input terminal voltage 2, the input terminal voltage 2 is divided by the input terminal voltage 1 to obtain a value 2, and it is determined whether the value 2 meets the preset standard value. If so, the current input terminal voltage is calculated according to the value 2; otherwise, the current input voltage abnormality signal is output; When the output terminal voltage 1 is not less than the output terminal voltage 2, the output terminal voltage 1 is divided by the output terminal voltage 2 to obtain a value 3, and it is determined whether the value 3 meets the preset standard value. If so, the current output terminal voltage is calculated according to the value 3; otherwise, the current output voltage abnormality signal is output; When the output terminal voltage one is less than the output terminal voltage two, the output terminal voltage two is divided by the output terminal voltage one to obtain a value four, and it is determined whether the value four meets the preset standard value. If so, the current output terminal voltage is calculated according to the value four; otherwise, the current output voltage abnormal signal is output.

9. A method for implementing power supply monitoring according to claim 8, characterized in that: The actual deviation rate of the current output terminal voltage is calculated as follows: The current output terminal voltage is divided by the preset output voltage and then subtracted from 1 to obtain a value of five, and the absolute value of the value of five is taken as the actual deviation rate of the current output terminal voltage.

10. A storage medium, which is a computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the power supply monitoring implementation method as described in any one of claims 6 to 9 is implemented.