Relay adhesion detection method and device, electronic equipment and storage medium
By responding to the disappearance of the driving signal of the air conditioner relay in the battery system, the voltage difference value is obtained by timing the multiple times to determine whether the relay is stuck, the problem of long detection time in the prior art is solved, and the timeliness and accuracy of fault detection is improved.
Patent Information
- Application Number
- CN202510110133.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art detects the adhesion of relays, and the execution time is long, which may cause the user to be unable to know the fault condition as soon as possible, increasing safety hazards.
A relay adhesion detection method is provided. When the battery system performs a power-down process, the air-conditioning relay driving signal disappears, and the voltage difference value is obtained within a preset time period, and the relay adhesion is determined based on the multiple detection results.
It shortens the time-consuming detection of relay adhesion, improves the probability of users promptly informing relay adhesion failure, and enhances the operational safety and reliability of the battery system.
Smart Images

Figure CN120064958A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery systems, and in particular to a method and device for detecting relay adhesion, an electronic device, and a storage medium. Background Art
[0002] As one of the core components of a power battery system, a relay plays a crucial role and is closely related to the safety of the battery system. Therefore, it is necessary to perform adhesion detection on the relay during battery use. When performing a power-down detection, if the relay is adhered, the user may not be able to know this situation immediately. The execution time of this adhesion detection strategy is short. If the vehicle key completes the power-down operation quickly enough within this execution time and the vehicle instrument panel turns off, even if the fault can be detected, the user cannot see it and thus cannot know the fault situation.
[0003] The above statements are only used to provide background technical information related to the present application and do not necessarily constitute prior art. Summary of the Invention
[0004] The purpose of the present application is to provide a method and device for detecting relay adhesion, an electronic device, and a storage medium. To have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary part is not a general review, nor is it to identify key / important constituent elements or delineate the protection scope of these embodiments. Its sole purpose is to present some concepts in a simple form as a prelude to the detailed description below.
[0005] According to one aspect of the embodiments of the present application, a method for detecting relay adhesion is provided, including:
[0006] When the battery system executes a power-down process, in response to the disappearance of the air-conditioning relay drive signal, start timing and obtain a first value within a first preset duration; the first end of the air-conditioning relay is connected to the battery system, and the second end is connected to the air-conditioning system; the first value is the difference between the voltage at the second end of the air-conditioning relay and the battery system voltage;
[0007] According to the magnitude relationship between the first value and a first preset voltage, determine that the air-conditioning relay is not adhered or obtain a second value; the second value is the difference between a second detection value and the battery system voltage; the second detection value is the voltage at the second end of the air-conditioning relay detected at a first time point; the first time point is the end point of the first preset duration;
[0008] When the second value is obtained, determine that the air conditioner relay is not stuck or obtain a third value according to the magnitude relationship between the second value and a second preset voltage; the third value is the difference between a third detection value and the battery system voltage; the third detection value is the second terminal voltage of the air conditioner relay detected at a second time point; the second preset voltage is less than the first preset voltage;
[0009] When the third value is obtained, determine whether the air conditioner relay is stuck according to the third value and the second value.
[0010] In some embodiments of the present application, the obtaining the first value within a first preset duration includes:
[0011] Within the first preset duration, detect the second terminal voltage of the air conditioner relay to obtain a first detection value;
[0012] Calculate the difference between the first detection value and the battery system voltage to obtain the first value.
[0013] In some embodiments of the present application, the determining that the air conditioner relay is not stuck or obtaining a second value according to the magnitude relationship between the first value and a first preset voltage includes:
[0014] Compare the magnitude of the first value and the first preset voltage;
[0015] If the first value is not less than the first preset voltage, determine that the air conditioner relay is not stuck;
[0016] If the first value is less than the first preset voltage, obtain the second value.
[0017] In some embodiments of the present application, the determining that the air conditioner relay is not stuck or obtaining a third value according to the magnitude relationship between the second value and a second preset voltage includes:
[0018] Compare the magnitude of the second value and the second preset voltage;
[0019] If the second value is not less than the second preset voltage, determine that the air conditioner relay is not stuck;
[0020] If the second value is less than the second preset voltage, obtain the third value.
[0021] In some embodiments of the present application, the determining whether the air conditioner relay is stuck according to the third value and the second value includes:
[0022] Obtain a fourth value, where the fourth value is the difference between the third value and the second value;
[0023] Compare the magnitude of the fourth value with a preset threshold value;
[0024] If the fourth value is not less than the preset threshold value, it is determined that the air conditioner relay is not stuck;
[0025] If the fourth value is less than the preset threshold value, it is determined that the air conditioner relay is stuck.
[0026] In some embodiments of the present application, the preset threshold value is 1V.
[0027] In some embodiments of the present application, the first preset voltage is 20V, the second preset voltage is 2V, and the first preset duration is 1s.
[0028] According to another aspect of the embodiments of the present application, a relay stuck detection device is provided, including:
[0029] A timing acquisition module, configured to, when the battery system executes a power-down process, in response to the disappearance of the air conditioner relay drive signal, perform timing and acquire a first value within a first preset duration; a first end of the air conditioner relay is connected to the battery system, and a second end is connected to the air conditioner system; the first value is the difference between the voltage at the second end of the air conditioner relay and the battery system voltage;
[0030] A first decision module, configured to determine that the air conditioner relay is not stuck or acquire a second value according to the magnitude relationship between the first value and the first preset voltage; the second value is the difference between a second detection value and the battery system voltage; the second detection value is the voltage at the second end of the air conditioner relay detected at a first time point; the first time point is the end point of the first preset duration;
[0031] A second decision module, configured to, when the second value is obtained, determine that the air conditioner relay is not stuck or acquire a third value according to the magnitude relationship between the second value and the second preset voltage; the third value is the difference between a third detection value and the battery system voltage; the third detection value is the voltage at the second end of the air conditioner relay detected at a second time point; the second preset voltage is less than the first preset voltage;
[0032] A stuck determination module, configured to, when the third value is obtained, determine whether the air conditioner relay is stuck according to the third value and the second value.
[0033] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the relay stuck detection method according to any embodiment of the present application.
[0034] According to another aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the relay adhesion detection method according to any embodiment of the present application.
[0035] The technical solution provided by one aspect of the embodiments of the present application may include the following beneficial effects:
[0036] In the relay adhesion detection method provided by the embodiments of the present application, when the battery system executes the power-down process, in response to the disappearance of the air-conditioning relay drive signal, timing is performed and a first value is obtained within a first preset duration. According to the magnitude relationship between the first value and a first preset voltage, it is determined that the air-conditioning relay is not adhered or a second value is obtained. In the case of obtaining the second value, according to the magnitude relationship between the second value and a second preset voltage, it is determined that the air-conditioning relay is not adhered or a third value is obtained. In the case of obtaining the third value, according to the third value and the second value, it is determined whether the air-conditioning relay is adhered, which shortens the relay adhesion detection time and improves the probability that the user can timely learn about the relay adhesion fault.
[0037] The above description is only an overview of the technical solutions of the embodiments of the present application. In order to be able to understand the technical means of the embodiments of the present application more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features and advantages of the embodiments of the present application more obvious and understandable, the specific embodiments of the present application are specifically exemplified below. Description of the Drawings
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments recorded in the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0039] Figure 1 A schematic diagram of an application scenario of the embodiments of the present application is shown.
[0040] Figure 2 A flowchart of the relay adhesion detection method according to an embodiment of the present application is shown.
[0041] Figure 3 A flowchart of obtaining a first value within a first preset duration according to an embodiment of the present application is shown.
[0042] Figure 4 A flowchart of determining that the air-conditioning relay is not adhered or obtaining a second value according to the magnitude relationship between the first value and a first preset voltage according to an embodiment of the present application is shown.
[0043] Figure 5The flowchart shows determining that the air conditioner relay is not stuck or obtaining a third value according to the magnitude relationship between a second value and a second preset voltage in an embodiment of the present application.
[0044] Figure 6 The flowchart shows determining whether the air conditioner relay is stuck according to the third value and the second value in an embodiment of the present application.
[0045] Figure 7 The block diagram shows the structure of a relay stuck detection device in an embodiment of the present application.
[0046] Figure 8 The block diagram shows the structure of an electronic device in an embodiment of the present application.
[0047] Figure 9 The schematic diagram shows a computer-readable storage medium in an embodiment of the present application. Detailed implementation manners
[0048] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.
[0049] Those skilled in the art can understand that unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the field to which the present application belongs. It should also be understood that terms such as those defined in a general dictionary should be understood to have a meaning consistent with the meaning in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as here.
[0050] BMS: Battery Management System. An electrical component that executes battery control strategies;
[0051] Relay: An electrical component that can make a circuit turn on and off;
[0052] Stuck: When the relay coil drive signal disappears, the main contacts of the relay do not open, and its front and rear ends are in a conducting state;
[0053] Main contacts: The main components of the relay that realize the on and off of the circuit. When the contacts are closed, the circuit is conducting, and when the contacts are open, the circuit is disconnected;
[0054] High-voltage sampling: At the high-voltage detection point at the rear end (load side) of the relay, used to compare with the voltage at the front end (power supply side) of the relay to determine whether the relay is stuck.
[0055] In a power battery system, the adhesion of a relay can lead to great safety hazards. If a user repairs the battery without knowing the situation, it may cause an electric shock accident. Therefore, it is extremely important to detect the relay in a timely manner and report the fault immediately to ensure the safety of the user.
[0056] As Figure 1 shown, Figure 1 Fig. shows a schematic diagram of an application scenario of an embodiment of the present application. In this application scenario, the positive terminal of the battery system 1 is connected to the first end of the air conditioner relay 2, the second end of the air conditioner relay 2 is connected to the first end of the fuse 3, the second end of the fuse 3 is connected to the first end of the pre-charge resistor 4, the second end of the pre-charge resistor 4 is connected to the air conditioner system 6, the TMS relay 5 is connected in parallel across the two ends of the pre-charge resistor 4, the negative terminal of the battery system 1 is connected to the air conditioner system 6, the first end of the capacitor C is connected to the second end of the pre-charge resistor 4, and the second end of the capacitor C is connected to the negative terminal of the battery system 1.
[0057] In the related art, when powering off and detecting, if the relay adheres, the user may not be able to know this situation immediately. The execution time of the adhesion detection strategy in the related art generally does not exceed 2 s. If the vehicle key completes the power-off operation quickly enough within 2 s and the vehicle instrument panel goes out, even if the fault can be detected, the user cannot see it and thus cannot know the fault situation.
[0058] In the adhesion detection strategy in the related art, after the battery enters the process of discharging high voltage, the TMS relay at the input end of the air conditioner system first disconnects, and then the air conditioner relay disconnects. After the air conditioner relay disconnects, the BMS immediately samples the voltage V? (V? is the voltage at the second end of the fuse 3) at the rear end (load side) of the relay, and then compares it with the voltage V0 at the front end (power supply side) of the relay. V0 is the battery system voltage. When |V? - V0| < ΔV (for example, 20 V), it is considered that the relay is normally cut off and no adhesion occurs. In an ideal state, as long as the air conditioner relay does not disconnect normally, the value of V? basically does not change and cannot meet
[0059] |V? - V0| < ΔV within a certain period of time, and the BMS can determine that the relay is adhered.
[0060] Of course, if the air-conditioning relay is normally disconnected, the BMS can also consider that the relay is not stuck within a certain period of time. However, when determining that the relay is not stuck, there is a prerequisite, that is, the V? value must drop fast enough to draw a conclusion within an extreme time. However, this is not the case in actual working conditions. In actual use, the V? usually drops relatively slowly. The reason is that there is a capacitor C at the input end of the rear-end air-conditioning system. Since the capacitor voltage drops slowly, this causes the V? value to still drop relatively slowly when the air-conditioning relay is normally disconnected, and it still cannot meet |V? - V0| < ΔV within a certain period of time. At this time, it will cause the BMS to misreport that the relay is stuck. In this case, the usual strategy is to extend the adhesion detection time, such as 10s, to give V? enough time to drop. As long as |V? - V0| < ΔV can be satisfied within 10s, it is considered that the relay is not stuck. However, this situation has drawbacks: when the relay is stuck, the vehicle instrument will power off before it has time to display, and the user cannot know immediately that the relay is stuck. If battery maintenance is carried out at this time, there is a risk of electric shock. Therefore, it is necessary to modify the detection method to shorten the adhesion detection time of the relay as much as possible.
[0061] In view of the problems existing in the related art, the embodiment of the present application provides a method for detecting relay adhesion. When the battery system executes the power-down process, in response to the disappearance of the air-conditioning relay drive signal, timing is performed and a first value is obtained within a first preset duration. According to the magnitude relationship between the first value and the first preset voltage, it is determined whether the air-conditioning relay is not stuck or a second value is obtained. In the case of obtaining the second value, according to the magnitude relationship between the second value and the second preset voltage, it is determined whether the air-conditioning relay is not stuck or a third value is obtained. In the case of obtaining the third value, according to the third value and the second value, it is determined whether the air-conditioning relay is stuck, which shortens the relay adhesion detection time and improves the probability that the user can timely learn about the relay adhesion failure.
[0062] Next, a method for detecting relay adhesion, a relay adhesion detection device, an electronic device, and a computer-readable storage medium according to an embodiment of the present application will be described with reference to the accompanying drawings.
[0063] Reference Figure 2 As shown, an embodiment of the present application provides a method for detecting relay adhesion, which may include steps S10 - S40:
[0064] S10. When the battery system executes the power-down process, in response to the disappearance of the air-conditioning relay drive signal, timing is performed and a first value is obtained within a first preset duration.
[0065] The first terminal of the air conditioner relay is connected to the battery system, and the second terminal of the air conditioner relay is connected to the air conditioner system; the second terminal of the air conditioner relay is the end away from the battery system. The first terminal of the air conditioner relay is also called the front end of the air conditioner relay, and the second terminal of the air conditioner relay is also called the rear end of the air conditioner relay. The first value is the difference between the voltage at the second terminal of the air conditioner relay and the voltage of the battery system. The voltage at the second terminal of the air conditioner relay is the voltage on the load side of the air conditioner relay, that is, the voltage at the end of the air conditioner relay away from the battery system. Obtaining the first value includes: detecting the voltage at the second terminal of the air conditioner relay, obtaining the voltage of the battery system, and then calculating the difference between the voltage at the second terminal and the voltage of the battery system.
[0066] For example, when the battery system executes the power-off process, timing detection starts after the driving signal of the air conditioner relay disappears. Within the first second, the pressure difference ΔV1 between the front and rear ends of the air conditioner relay is obtained. The pressure difference ΔV1 between the front and rear ends is the difference between the voltage V1 at the second terminal of the air conditioner relay and the voltage V0 of the battery system.
[0067] Reference Figure 3 As shown, in some embodiments, obtaining the first value within the first preset time period may include steps S101 - S102:
[0068] S101. Detect the voltage at the second terminal of the air conditioner relay within the first preset time period to obtain a first detection value.
[0069] S102. Calculate the difference between the first detection value and the voltage of the battery system to obtain the first value.
[0070] In the case where the battery system executes the power-off process, in response to the disappearance of the driving signal of the air conditioner relay, obtaining the first value within the first preset time period can more accurately obtain the difference between the voltage at the second terminal of the air conditioner relay and the voltage of the battery system, thereby helping to judge the voltage change of the relay after the driving signal disappears.
[0071] S20. Determine that the air conditioner relay is not stuck or obtain a second value according to the magnitude relationship between the first value and the first preset voltage.
[0072] The second value is the difference between the second detection value and the voltage of the battery system; the second detection value is the voltage at the second terminal of the air conditioner relay detected at the first time point; the first time point is the end point of the first preset time period.
[0073] For example, the first preset time period can be 1 s, then the first time point is the 1 s, that is, the 1 s after the start of timing.
[0074] Reference Figure 4As shown, in some embodiments, according to the magnitude relationship between the first value and the first preset voltage, determining that the air conditioner relay is not stuck or obtaining a second value may include steps S201 - S203:
[0075] S201. Compare the magnitude of the first value and the first preset voltage;
[0076] S202. If the first value is not less than the first preset voltage, determine that the air conditioner relay is not stuck;
[0077] S203. If the first value is less than the first preset voltage, obtain the second value.
[0078] For example, the first preset voltage can be 20V. If the first value ΔV1 ≥ 20V, it is determined that the relay is normally cut off and not stuck; if the first value ΔV1 < 20V, the second value ΔV2 is obtained.
[0079] Obtaining the second value ΔV2 includes: obtaining a second detection value V2, where the second detection value is the second - end voltage of the air conditioner relay detected at a first time point; obtaining the difference between the second detection value V2 and the battery system voltage V0; the first time point is the end point of the first preset duration.
[0080] For example, the first preset duration can be 1s, then the first time point is the 1s, that is, the 1s after the start of timing, and the second detection value is the second - end voltage V2 of the air conditioner relay detected at the 1s moment.
[0081] By comparing the magnitude relationship between the first value and the first preset voltage, it is possible to preliminarily determine whether the air conditioner relay is stuck. If the difference between the first value and the first preset voltage is within the allowable range, it indicates that the relay is working properly; if there is an obvious difference, it may trigger further subsequent detections. If the difference between the first value and the first preset voltage is large, then proceed to the next step, continue to obtain the second value and analyze it, thereby improving the sensitivity and accuracy of the detection. By reasonably setting the first preset voltage and comparing the magnitude relationship between the first value and the first preset voltage, it is possible to effectively avoid the interference of environmental noise or other factors of the battery system and reduce the misjudgment probability of the relay sticking situation.
[0082] S30. In the case of obtaining the second value, according to the magnitude relationship between the second value and the second preset voltage, determine that the air conditioner relay is not stuck or obtain a third value.
[0083] The third value ΔV3 is the difference between a third detection value V3 and the battery system voltage V0; the third detection value V3 is the second - end voltage of the air conditioner relay detected at a second time point; the second preset voltage is less than the first preset voltage.
[0084] Reference Figure 5 As shown, in some embodiments, according to the magnitude relationship between the second value and the second preset voltage, determining that the air-conditioning relay is not stuck or obtaining a third value may include steps S301 - S303:
[0085] S301. Compare the magnitudes of the second value and the second preset voltage;
[0086] S302. If the second value is not less than the second preset voltage, determine that the air-conditioning relay is not stuck;
[0087] S303. If the second value is less than the second preset voltage, obtain the third value.
[0088] The second preset voltage is less than the first preset voltage. For example, the first preset voltage is 20V and the second preset voltage is 2V.
[0089] If the second value ΔV2 ≥ 2V, it is considered that the relay is normally cut off and not stuck. If ΔV1 < 2V, the third value ΔV3 is obtained.
[0090] Obtaining the third value ΔV3 includes: detecting the second-terminal voltage of the air-conditioning relay at a second time point to obtain a third detection value; calculating the difference between the third detection value and the battery system voltage to obtain the third value ΔV3.
[0091] Since the second preset voltage is less than the first preset voltage, the stuck situation of the relay can be detected under finer voltage difference conditions, thereby enhancing the sensitivity and reliability of the detection. In the case where the detection results of S10 and S20 cannot accurately determine the stuck state of the relay, further confirming whether the relay is stuck through the third detection can effectively reduce the situation where the stuck relay is not detected.
[0092] S40. When the third value is obtained, determine whether the air-conditioning relay is stuck according to the third value and the second value.
[0093] Reference Figure 6 As shown, in some embodiments, determining whether the air-conditioning relay is stuck according to the third value and the second value may include steps S401 - S404:
[0094] S401. Obtain a fourth value, where the fourth value is the difference between the third value and the second value;
[0095] S402. Compare the magnitudes of the fourth value and a preset threshold;
[0096] S403. If the fourth value is not less than the preset threshold, determine that the air-conditioning relay is not stuck;
[0097] S404. If the fourth value is less than the preset threshold, it is determined that the air conditioner relay is stuck.
[0098] Exemplarily, the preset threshold can be 1V for example. The preset threshold can also take other values according to actual application needs, and there is no limitation here.
[0099] Exemplarily, the first preset voltage is 20V, the second preset voltage is 2V, and the first preset duration is 1s.
[0100] The first preset voltage, the second preset voltage, and the first preset duration can also take other values according to actual application needs, and there is no limitation here.
[0101] The fourth value is ΔV3 - ΔV2. Taking the preset threshold of 1V as an example, if ΔV3 - ΔV2 < 1V, it is considered that the relay fails to cut off normally and is stuck; if ΔV3 - ΔV2 ≥ 1V, it is considered that the relay cuts off normally and is not stuck.
[0102] The detection of the third value can be used as the final confirmation step. Combining with the previous second value, it can more accurately determine whether the air conditioner relay is stuck, effectively reducing the risk of misjudgment and improving the accuracy of detection.
[0103] By comprehensively considering the first value, the second value, the third value, and the fourth value, the working state of the relay can be confirmed from multiple angles, improving the stability and safety of the air conditioner relay during the entire usage cycle. Through this multiple detection mechanism, electrical faults caused by relay sticking can be effectively prevented, thereby enhancing the operating safety and reliability of the battery system.
[0104] The relay sticking detection method provided by the embodiment of the present application shortens the time-consuming for relay sticking detection and increases the probability for users to promptly learn about relay sticking faults.
[0105] Another embodiment of the present application provides a relay sticking detection method, including the following steps:
[0106] 1) When the battery system executes the power-off process, start timing detection after the air conditioner relay drive signal disappears. Obtain the pressure difference ΔV1 between the front and rear ends of the relay within the first second. If ΔV1 ≥ 20V, it is considered that the relay cuts off normally and is not stuck. If ΔV1 < 20V, proceed to the next step;
[0107] 2) Based on step 1), when the timing is delayed to the first second, obtain the pressure difference ΔV2 between the front and rear ends of the relay. If ΔV2 ≥ 2V, it is considered that the relay cuts off normally and is not stuck. If ΔV1 < 2V, proceed to the next step;
[0108] 3) On the basis of step 2), delay for another 1 s. That is, when the timing reaches the 2nd s, obtain the pressure difference ΔV3 between the front and rear ends of the relay. If ΔV3 - ΔV2 < 1 V, it is determined that the relay is not cut off normally and adhesion occurs. If ΔV3 - ΔV2 ≥ 1 V, it is determined that the relay is cut off normally and there is no adhesion.
[0109] Among them, the above pressure difference ΔV(1 - 3) = |V? - V0|, where V0 is the battery system voltage and is fixed. V? represents the second-end voltage (i.e., the rear-end voltage of the air-conditioning relay) collected during the first or second or third comparison of the pressure difference between the front and rear ends of the relay. That is, V? is V1 or V2 or V3. When obtaining the pressure difference between the front and rear ends of the relay for the first time, V? represents V1. When obtaining the pressure difference between the front and rear ends of the relay for the second time, V? represents V2. When obtaining the pressure difference between the front and rear ends of the relay for the third time, V? represents V3. Refer to Figure 1 As shown, V? can be the voltage at the second end of fuse 3.
[0110] It is not necessary for the second-end voltage of the relay to drop to a very small value to consider that the relay is not adhered. It only needs to compare the pressure differences between the front and rear ends at different time points: if the pressure difference increases, it means that the second-end voltage is decreasing (due to the existence of the rear-end capacitor, the voltage will not drop to zero instantly), and it can be considered that the relay has been disconnected. If the relay does not have adhesion, then the pressure difference ΔV between the front and rear ends should be 0 and will not be other values;
[0111] Judge the voltage drop and reduce the detection time by the ΔV judgment value. By collecting the message in real time, analyzing the message data, and determining the ΔV judgment value according to the measured value, generally 2 V can be taken.
[0112] Take ΔV3 - ΔV2 ≥ 1 V instead of ΔV3 ≥ ΔV2, and the duration is 1 s. This step can basically determine that the second-end voltage is in the process of decreasing. Through message data analysis, under normal circumstances, the second-end voltage can drop about 4 V within 1 s. Therefore, ΔV3 - ΔV2 ≥ 1 V is very easy to meet.
[0113] The method of the related technology takes 10 s to complete the detection. During the 10-s long time, the user can completely complete the power-off operation of the entire system, including disconnecting the constant power. Therefore, even if there is a fault, there is no time to detect it. Compared with the related technology, the detection method of the embodiment of the present application greatly shortens the detection duration and increases the probability that the user can know the fault in the first time. For the detection method of the embodiment of the present application, the longest detection time does not exceed 2 s. According to the normal operation habit, the power-off operation of the entire system will not be completed within 2 s. If the relay has adhesion, even if the instrument fails to display in time, the background data can completely record this fault. Therefore, the fault undetected rate is reduced, and the probability that the fault is detected is greatly improved.
[0114] The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments. For the similarities or resemblances among them, reference can be made to each other, and for the sake of brevity, they will not be elaborated herein.
[0115] Reference Figure 7 As shown, another embodiment of the present application provides a relay adhesion detection device, which may include:
[0116] A timing acquisition module, configured to, when the battery system executes a power-down process, in response to the disappearance of the air-conditioning relay drive signal, perform timing and acquire a first value within a first preset duration; a first end of the air-conditioning relay is connected to the battery system, and a second end is connected to the air-conditioning system; the first value is the difference between the voltage at the second end of the air-conditioning relay and the battery system voltage;
[0117] A first decision module, configured to determine that the air-conditioning relay is not adhered or acquire a second value according to the magnitude relationship between the first value and a first preset voltage; the second value is the difference between a second detection value and the battery system voltage; the second detection value is the voltage at the second end of the air-conditioning relay detected at a first time point; the first time point is the end point of the first preset duration;
[0118] A second decision module, configured to, when the second value is obtained, determine that the air-conditioning relay is not adhered or acquire a third value according to the magnitude relationship between the second value and a second preset voltage; the third value is the difference between a third detection value and the battery system voltage; the third detection value is the voltage at the second end of the air-conditioning relay detected at a second time point; the second preset voltage is less than the first preset voltage;
[0119] An adhesion determination module, configured to, when the third value is obtained, determine whether the air-conditioning relay is adhered according to the third value and the second value.
[0120] Exemplarily, the timing acquisition module may include:
[0121] A first detection unit, configured to detect the voltage at the second end of the air-conditioning relay within the first preset duration to obtain a first detection value;
[0122] A first calculation unit, configured to calculate the difference between the first detection value and the battery system voltage to obtain the first value.
[0123] Exemplarily, the first decision module may include:
[0124] A first comparison unit, configured to compare the magnitude of the first value and the first preset voltage;
[0125] A first determination unit, configured to determine that the air-conditioning relay is not stuck if the first value is not less than the first preset voltage;
[0126] A first acquisition unit, configured to acquire the second value if the first value is less than the first preset voltage.
[0127] Exemplarily, the second decision module may include:
[0128] A second comparison unit, configured to compare the magnitude of the second value with a second preset voltage;
[0129] A second determination unit, configured to determine that the air-conditioning relay is not stuck if the second value is not less than the second preset voltage;
[0130] A second acquisition unit, configured to acquire the third value if the second value is less than the second preset voltage.
[0131] Exemplarily, the stuck determination module may include:
[0132] A fourth value acquisition unit, configured to acquire a fourth value, where the fourth value is the difference between the third value and the second value;
[0133] A third comparison unit, configured to compare the magnitude of the fourth value with a preset threshold;
[0134] A third determination unit, configured to determine that the air-conditioning relay is not stuck if the fourth value is not less than the preset threshold, and determine that the air-conditioning relay is stuck if the fourth value is less than the preset threshold.
[0135] Exemplarily, the preset threshold is 1V.
[0136] Exemplarily, the first preset voltage is 20V, the second preset voltage is 2V, and the first preset duration is 1s.
[0137] In the case where the relay stuck detection device according to the embodiment of the present application executes the power-down process of the battery system, in response to the disappearance of the air-conditioning relay drive signal, it starts timing and acquires a first value within a first preset duration, determines that the air-conditioning relay is not stuck or acquires a second value according to the magnitude relationship between the first value and the first preset voltage. In the case of obtaining the second value, it determines that the air-conditioning relay is not stuck or acquires a third value according to the magnitude relationship between the second value and the second preset voltage. In the case of obtaining the third value, it determines whether the air-conditioning relay is stuck according to the third value and the second value, shortening the time-consuming for relay stuck detection and increasing the probability for the user to promptly learn about the relay stuck fault.
[0138] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor executes the computer program to implement the relay adhesion detection method according to any of the above embodiments.
[0139] Referring Figure 8 As shown, the electronic device 10 may include: a processor 100, a memory 101, a bus 102, and a communication interface 103. The processor 100, the communication interface 103, and the memory 101 are connected through the bus 102; a computer program executable on the processor 100 is stored in the memory 101, and when the processor 100 runs the computer program, it executes the method provided by any of the foregoing embodiments of the present application.
[0140] Among them, the memory 101 may include a high-speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 103 (which may be wired or wireless), a communication connection is established between the device network element and at least one other network element, and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.
[0141] The bus 102 may be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 101 is used to store the program. After receiving the execution instruction, the processor 100 executes the program, and the method disclosed in any of the foregoing embodiments of the present application can be applied to or implemented by the processor 100.
[0142] The processor 100 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 100 or the instructions in the form of software. The above-mentioned processor 100 may be a general-purpose processor, which may include a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute each method, step and logic block diagram disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by the combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. This storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and combines its hardware to complete the steps of the above method.
[0143] The electronic device provided by the embodiment of the present application and the method provided by the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by it.
[0144] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the relay adhesion detection method in any of the above embodiments. Refer to Figure 9 As shown, the computer-readable storage medium shown is an optical disc 20, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the relay adhesion detection method provided in any of the foregoing embodiments.
[0145] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical and magnetic storage media, which will not be elaborated here one by one.
[0146] The computer-readable storage medium provided by the above embodiments of the present application and the method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0147] It should be noted that:
[0148] The term "module" is not intended to be limited to a specific physical form. Depending on the specific application, a module can be implemented as hardware, firmware, software, and / or a combination thereof. In addition, different modules can share common components or even be implemented by the same components. There may or may not be clear boundaries between different modules.
[0149] The algorithms and displays provided herein are not inherently related to any particular computer, virtual device, or other equipment. Various general-purpose devices can also be used in conjunction with the examples based herein. Based on the above description, the structures required to construct such devices are obvious. In addition, the present application is not directed to any specific programming language. It should be understood that the content of the present application described herein can be implemented using various programming languages, and the descriptions of specific languages above are for disclosing the best implementation manners of the present application.
[0150] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a part of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same moment, but can be executed at different moments, and their execution order is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0151] The above embodiments only represent the implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A relay adhesion detection method, characterized in that: include: When the battery system performs a power-off process, in response to the disappearance of the air-conditioning relay driving signal, timing is performed and a first value is obtained within a first preset time period; a first end of the air-conditioning relay is connected to the battery system, and a second end is connected to the air-conditioning system; The first value is the difference between the second terminal voltage of the air conditioning relay and the battery system voltage; According to the magnitude relationship between the first value and the first preset voltage, it is determined that the air-conditioning relay is not stuck or a second value is obtained; the second value is the difference between the second detection value and the battery system voltage; the second detection value is the second terminal voltage of the air-conditioning relay detected at a first time point; the first time point is the end point of the first preset time length; In the case of obtaining the second value, determining that the air-conditioning relay is not stuck or obtaining a third value according to the magnitude relationship between the second value and the second preset voltage; the third value is the difference between the third detection value and the battery system voltage; the third detection value is the second terminal voltage of the air-conditioning relay detected at the second time point; the second preset voltage is less than the first preset voltage; When the third value is obtained, it is determined whether the air conditioning relay is stuck according to the third value and the second value.
2. The method according to claim 1, characterized in that The obtaining of the first value within the first preset time period includes: Within the first preset time period, detecting the voltage at the second terminal of the air-conditioning relay to obtain a first detection value; The difference between the first detection value and the battery system voltage is calculated to obtain the first value.
3. The method according to claim 1, characterized in that The determining that the air conditioning relay is not stuck or obtaining the second value according to the magnitude relationship between the first value and the first preset voltage includes: Comparing the first value with the first preset voltage; If the first value is not less than the first preset voltage, it is determined that the air conditioning relay is not stuck; If the first value is less than the first preset voltage, the second value is obtained.
4. The method according to claim 1, characterized in that The determining that the air conditioning relay is not stuck or obtaining a third value according to the magnitude relationship between the second value and the second preset voltage includes: comparing the second value with a second preset voltage; If the second value is not less than the second preset voltage, it is determined that the air conditioning relay is not stuck; If the second value is less than the second preset voltage, the third value is obtained.
5. The method according to claim 1, characterized in that The determining whether the air conditioning relay is stuck according to the third value and the second value includes: Acquire a fourth value, where the fourth value is a difference between the third value and the second value; Comparing the fourth value with a preset threshold; If the fourth value is not less than the preset threshold value, it is determined that the air conditioning relay is not stuck; If the fourth value is less than the preset threshold, it is determined that the air conditioning relay is stuck.
6. The method according to claim 5, characterized in that The preset threshold is 1V.
7. The method according to any one of claims 1 to 6, characterized in that The first preset voltage is 20V, the second preset voltage is 2V, and the first preset time is 1s.
8. A relay adhesion detection device, characterized in that: include: a timing acquisition module, configured to, when the battery system executes a power-off process, in response to the disappearance of the air-conditioning relay driving signal, time and acquire a first value within a first preset time period; a first end of the air-conditioning relay is connected to the battery system, and a second end is connected to the air-conditioning system; The first value is the difference between the second terminal voltage of the air conditioning relay and the battery system voltage; A first decision module is used to determine that the air-conditioning relay is not stuck or obtain a second value according to the magnitude relationship between the first value and the first preset voltage; the second value is the difference between the second detection value and the battery system voltage; the second detection value is the second terminal voltage of the air-conditioning relay detected at a first time point; the first time point is the end point of the first preset time length; A second decision module is used to determine that the air-conditioning relay is not stuck or obtain a third value according to the magnitude relationship between the second value and the second preset voltage when the second value is obtained; the third value is the difference between the third detection value and the battery system voltage; the third detection value is the second terminal voltage of the air-conditioning relay detected at a second time point; the second preset voltage is less than the first preset voltage; The sticking judgment module is used to determine whether the air-conditioning relay is stuck according to the third value and the second value when the third value is obtained.
9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the relay adhesion detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the relay adhesion detection method according to any one of claims 1 to 7.