Method for detecting high-voltage relay device, controller and computer readable storage medium
By controlling the relays in the high-voltage drive circuit in an orderly manner and comparing voltage values, the problem of misdiagnosis caused by incorrect or suspended wiring harness connections at the high-voltage acquisition point was solved, and efficient fault location and detection were achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WEICHAI POWER CO LTD
- Filing Date
- 2023-02-17
- Publication Date
- 2026-07-21
AI Technical Summary
In the existing technology, the misdiagnosis of relay failure caused by incorrect connection of the high-voltage acquisition point wiring harness or its suspension affects the normal high-voltage process of the battery.
By controlling the disconnection of all relays in the high-voltage drive circuit, and controlling the closure of a preset number of relays multiple times, multiple sets of recorded results are obtained. The actual voltage value of the high-voltage acquisition point is collected in real time and compared with the theoretical voltage value to determine whether the connection status is faulty or faultless.
It enables precise location of high-voltage acquisition point connection errors, avoids misdiagnosis, and improves the efficiency of offline testing.
Smart Images

Figure CN116068387B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of relay testing, and more specifically, to a method for testing high-voltage relay devices, a controller, and a computer-readable storage medium. Background Technology
[0002] As the power source of the high-voltage system in electric vehicles, the power battery provides driving power for the entire vehicle and involves high-voltage safety and reliability. The high-voltage power-on and power-off process is controlled by various high-voltage relays, which act as high-voltage "switches." The battery's high-voltage power-on and power-off strategy relies on the voltage values at high-voltage acquisition points to determine the actual state of the relays and whether there are any adhesion faults. High-voltage control systems often involve multiple different high-voltage acquisition points. When using these acquisition points to determine the actual state of the relays and whether there are adhesion faults, it often depends on the voltage value range of the corresponding high-voltage acquisition points under different control commands. If, during battery assembly, the high-voltage acquisition point wiring harness is connected incorrectly or left unconnected, it will cause misdiagnosis of the actual state of the relays and whether there are adhesion faults, thus affecting the normal high-voltage power-on and power-off process of the battery. Summary of the Invention
[0003] The main objective of this application is to provide a detection method, controller, and computer-readable storage medium for high-voltage relay devices, so as to at least solve the problem of misdiagnosis of relay faults caused by incorrect or unconnected wiring harnesses at high-voltage acquisition points in the prior art.
[0004] To achieve the above objectives, according to one aspect of this application, a detection method for a high-voltage relay device is provided. The method is applied to a controller in the high-voltage relay device, which further includes a high-voltage drive circuit. The high-voltage drive circuit includes at least one relay, and the controller is electrically connected to each of the relays. The method includes: controlling the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals; controlling the closure of a preset number of relays multiple times to obtain multiple sets of recording results, each set of recording results including the actual voltage values of all the high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different; and determining the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least the multiple sets of recording results, wherein the connection status is a fault state or a fault-free state, the fault state including an incorrect connection state and a floating state, and the fault-free state being a correct connection state.
[0005] Optionally, determining the connection status of all high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of recorded results includes: acquiring the theoretical voltage values of all high-voltage acquisition points multiple times when the preset number of relays are closed; obtaining an initial determination result based on a first target actual voltage value and a first target theoretical voltage value, wherein the initial determination result is the connection status of at least some of the high-voltage acquisition points when the preset number of relays are closed for a preset number of times, wherein the first target actual voltage value is the actual voltage value of all high-voltage acquisition points when the preset number of relays are controlled to close for a preset number of times, and the first target theoretical voltage value is the theoretical voltage value corresponding to the preset number of relays being closed for a preset number of times, wherein the preset number of times is one of the multiple acquisitions of the theoretical voltage values of all high-voltage acquisition points; determining the connection status of all high-voltage acquisition points in the high-voltage drive circuit based on multiple sets of initial determination results, wherein closing the preset number of relays once corresponds to one set of initial determination results.
[0006] Optionally, determining the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on multiple sets of initial determination results includes: determining the connection status of a first type of high-voltage acquisition point based on a set of initial determination results; determining the connection status of a second type of high-voltage acquisition point based on multiple sets of initial determination results, wherein the first type of high-voltage acquisition point and the second type of high-voltage acquisition point constitute all the high-voltage acquisition points.
[0007] Optionally, in the process of obtaining the initial determination result based on the actual voltage value and the theoretical voltage value of the first target, the method further includes: obtaining multiple first deviation values, wherein the first deviation values are the deviation between the actual voltage value and the theoretical voltage value of each of the high-voltage acquisition points; if the first deviation value is less than or equal to a first predetermined value, initially determining that the connection status of the high-voltage acquisition point is a fault-free state, wherein the first deviation value corresponds one-to-one with the first predetermined value; if the first deviation value is greater than the first predetermined value, determining that the connection status of the high-voltage acquisition point is a fault state.
[0008] Optionally, after initially determining that the connection status of the high-voltage acquisition point is fault-free when the first deviation value is less than or equal to the first predetermined value, the method further includes: obtaining a second target actual voltage value and a second target theoretical voltage value when the preset number of relays are closed for a non-preset number of times, wherein the second target actual voltage value is the actual voltage value of all the high-voltage acquisition points when the preset number of relays are closed for a non-preset number of times, and the second target theoretical voltage value is a set of theoretical voltage values corresponding to the case when the preset number of relays are closed for a non-preset number of times; and finally determining whether the connection status of the high-voltage acquisition point is fault-free or faulty based on the initially determined connection status of the high-voltage acquisition point, the second target actual voltage value, and the second target theoretical voltage value.
[0009] Optionally, an initial determination result is obtained based on the first target actual voltage value and the first target theoretical voltage value. The initial determination result is the connection status of at least some of the high-voltage acquisition points when the preset number of relays are closed for the first preset number of times. This includes: determining a fault acquisition point based on the first target actual voltage value and the first target theoretical voltage value, and determining the fault acquisition point as a non-calibrated acquisition point; determining the connection status of the fault acquisition point based on the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibrated acquisition point. The actual voltage value of the calibrated acquisition point is directly determined by the connection status of the preset number of relays closed for the first preset number of times, and the actual voltage value of the fault acquisition point is indirectly determined by the connection status of the preset number of relays closed for the first preset number of times, or is unrelated to the connection status of the preset number of relays closed for the first preset number of times.
[0010] Optionally, determining the connection status of the fault acquisition point based on the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibration acquisition point includes: obtaining a second deviation value, the second deviation value being the deviation between the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibration acquisition point; if the second deviation value is less than or equal to a second predetermined value, determining the fault status of the fault acquisition point as an incorrect connection state; if the second deviation value is greater than the second predetermined value, determining the fault status of the high-voltage acquisition point as a floating state.
[0011] Optionally, the high-voltage drive circuit further includes a power supply unit, the output terminal of which is also provided with the high-voltage acquisition point. The connection status of each high-voltage acquisition point in the high-voltage drive circuit is determined based on at least multiple sets of the recorded results, including: obtaining an initial recording result, wherein the initial recording result is the actual voltage value of the high-voltage acquisition point at the output terminal of the power supply unit and the high-voltage acquisition point at the output terminal of each relay when all the relays in the high-voltage drive circuit are disconnected; and determining the connection status of each high-voltage acquisition point in the high-voltage drive circuit based on the initial recording result and multiple sets of the recorded results.
[0012] According to another aspect of this application, a controller is provided, which is a controller in a high-voltage relay device. The high-voltage relay device further includes a high-voltage drive circuit, which includes at least one relay. The controller is electrically connected to each of the relays and includes: a first execution unit for controlling the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals; a second execution unit for controlling the closure of a preset number of relays multiple times to obtain multiple sets of recording results, wherein each set of recording results includes the actual voltage values of all the high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different; and a determination unit for determining the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least the multiple sets of recording results, wherein the connection status is a fault state or a fault-free state, the fault state includes an incorrect connection state and a floating state, and the fault-free state is a correct connection state.
[0013] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the aforementioned high-voltage relay detection methods.
[0014] Applying the technical solution of this application, the detection method for the aforementioned high-voltage relay device first controls the disconnection of all relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals; then, it controls the closure of a preset number of relays multiple times to obtain multiple sets of recording results. Each set of recording results includes the actual voltage values of all high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different; finally, it determines the connection status of all high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of recording results. The connection status is either a fault state or a fault-free state. Fault states include incorrect connection states and floating states, while fault-free states are correct connection states. This method, through the orderly control of the relays, collects the actual voltage values of each high-voltage acquisition point in real time and compares them with the theoretical voltage values under that state, achieving accurate location of high-voltage acquisition point connection errors. This avoids the problem of misdiagnosis of relay faults caused by incorrect or floating high-voltage acquisition point wiring harness connections in the prior art, thus improving the efficiency of offline detection. Attached Figure Description
[0015] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for performing a detection method for a high-voltage relay device according to an embodiment of this application is shown.
[0017] Figure 2 A schematic flowchart of a detection method for a high-voltage relay device according to an embodiment of this application is shown;
[0018] Figure 3 A schematic diagram of a high-voltage relay network according to an embodiment of this application is shown;
[0019] Figure 4 A control block diagram of a detection method for a high-voltage relay device according to an embodiment of this application is shown;
[0020] Figure 5 A schematic flowchart of another method of a detection method for a high-voltage relay device provided according to an embodiment of this application is shown;
[0021] Figure 6 A structural block diagram of a controller provided according to an embodiment of this application is shown.
[0022] The above figures include the following reference numerals:
[0023] 01. MSD; 02. Fast charging input device; 03. Slow charging input device; 04. Heating input device; 05. High voltage output device; 06. Current sensor; 07. Pre-charge resistor; 10. Fast charging positive relay; 20. Fast charging negative relay; 30. Slow charging positive relay; 40. Slow charging negative relay; 50. Heating positive relay; 60. Heating negative relay; 70. Total positive relay; 80. Total negative relay; 90. Pre-charge relay. Detailed Implementation
[0024] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:
[0028] MSD: Manual Service Disconnect, manual maintenance switch;
[0029] BMS: Battery Management System;
[0030] DC: Direct Current;
[0031] AC: Alternating Current.
[0032] As described in the background section, in the prior art, the high-voltage acquisition point wiring harness may be connected incorrectly or left unconnected, which may lead to misdiagnosis of the actual state of the relay and adhesion faults, thereby affecting the normal high-voltage process of the battery. In order to solve the problem of misdiagnosis of relay faults caused by incorrect connection or unconnection of the high-voltage acquisition point wiring harness in the prior art, the embodiments of this application provide a detection method, controller and computer-readable storage medium for a high-voltage relay device.
[0033] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0034] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a high-voltage relay device detection method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0035] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device information display method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] This embodiment provides a method for detecting a high-voltage relay device that operates on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0037] Figure 2 This is a flowchart of a detection method for a high-voltage relay device according to an embodiment of this application. The method is applied to a controller in the high-voltage relay device, which further includes a high-voltage drive circuit. The high-voltage drive circuit includes at least one relay, and the controller is electrically connected to each of the relays. Figure 2 As shown, the method includes the following steps:
[0038] Step S201: Control the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals;
[0039] Specifically, before implementing the above method, it is necessary to ensure that all the relays in the high-voltage drive circuit can open and close normally. Each relay output terminal can be equipped with a high-voltage acquisition point, or a high-voltage acquisition point can be set for the output terminals of two relays connected in parallel as a whole. The specific settings should be adjusted adaptively according to the actual circuit and actual needs.
[0040] Step S202: Control the closing of a preset number of the above-mentioned relays multiple times to obtain multiple sets of recording results. Each set of the above-mentioned recording results includes the actual voltage values of all the above-mentioned high-voltage acquisition points in the above-mentioned high-voltage drive circuit when the preset number of the above-mentioned relays are closed, wherein the above-mentioned relays closed in any two instances are at least partially different.
[0041] Specifically, the preset number of relays closed each time the control is activated can be different. For example, the first time one relay is activated, the second time two relays are activated, the third time three relays are activated, and so on. The number of tests can be adjusted according to the preset number of relays activated each time, actual needs, etc. Alternatively, the preset number of relays activated each time the control is activated can be the same, i.e., one relay is activated each time, or two relays are activated each time, etc.
[0042] Step S203: Determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of the above-mentioned record results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state. The fault-free state is a correct connection state.
[0043] Specifically, a set of recorded results can only determine the connection status of some of the above-mentioned high-voltage acquisition points. To determine the connection status of all the above-mentioned high-voltage acquisition points in the high-voltage drive circuit, it is necessary to combine multiple sets of recorded results for overall analysis to obtain the connection status of each of the above-mentioned high-voltage acquisition points.
[0044] The detection method for the high-voltage relay device described in this application first controls the disconnection of all relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals. Then, a preset number of relays are controlled to close multiple times to obtain multiple sets of recorded results. Each set of recorded results includes the actual voltage values of all high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different. Finally, the connection status of all high-voltage acquisition points in the high-voltage drive circuit is determined based on at least multiple sets of recorded results. The connection status is either a fault state or a fault-free state. Fault states include incorrect connection states and floating states, while fault-free states are correct connection states. This method, through the orderly control of the relays, collects the actual voltage values of each high-voltage acquisition point in real time and compares them with the theoretical voltage values under that state. This achieves accurate location of high-voltage acquisition point connection errors, avoiding the problem of misdiagnosis of relay faults due to incorrect or floating high-voltage acquisition point wiring harness connections in existing technologies, and improving the efficiency of offline detection.
[0045] The specific implementation steps of step S203 are as follows:
[0046] Step S301: Acquire the theoretical voltage values of all the above-mentioned high-voltage acquisition points multiple times when the above-preset number of the above-mentioned relays are closed;
[0047] Step S302: Based on the first target actual voltage value and the first target theoretical voltage value, an initial determination result is obtained. The initial determination result is the connection state of at least some of the high-voltage acquisition points when the preset number of the relays are closed for the first preset time. The first target actual voltage value is the actual voltage value of all the high-voltage acquisition points when the preset number of the relays are closed for the first preset time. The first target theoretical voltage value is the theoretical voltage value corresponding to the preset number of the relays being closed for the first preset time. The preset time is one of multiple acquisitions of the theoretical voltage values of all the high-voltage acquisition points.
[0048] The purpose of obtaining the initial judgment result is to specifically locate the high-voltage acquisition point whose connection status is faulty, and to determine the overall connection status of the high-voltage acquisition point harness based on multiple initial judgment results, such as: the first high-voltage acquisition point and the second high-voltage acquisition point are connected in reverse.
[0049] In one example, during the process of obtaining the initial determination result based on the actual voltage value and the theoretical voltage value of the first target, the method further includes: acquiring multiple first deviation values, wherein the first deviation values are the deviation between the actual voltage value and the theoretical voltage value of each of the high-voltage acquisition points; if the first deviation value is less than or equal to a first predetermined value, preliminarily determining that the connection status of the high-voltage acquisition point is a fault-free state, wherein the first deviation value corresponds one-to-one with the first predetermined value; and if the first deviation value is greater than the first predetermined value, determining that the connection status of the high-voltage acquisition point is a fault state.
[0050] Specifically, the values of the multiple first deviation values obtained can be the same or different, and the multiple first predetermined values corresponding to the first deviation values can also be the same or different (for example, the first predetermined values can be set to 0V, 0.1V, 0.2V, etc.). Among them, the first deviation value is related to the location of the high-voltage acquisition point and whether the acquisition point is faulty, and the setting of the first predetermined value can be adjusted accordingly based on the actual situation.
[0051] The above example is to determine whether the actual value of the high-voltage acquisition point in an experiment is close to the theoretical value of that point. If they are close, it can be preliminarily determined at this stage that the connection of the high-voltage acquisition point is fault-free; if the deviation is too large, it is determined that the connection of the high-voltage acquisition point is faulty.
[0052] If the first deviation value is less than or equal to the first predetermined value, after initially determining that the connection status of the high-voltage acquisition point is fault-free, the above method further includes the following steps:
[0053] Step S401: Obtain the second target actual voltage value and the second target theoretical voltage value when the preset number of relays are closed for a non-preset time. The second target actual voltage value is the actual voltage value of all the high voltage acquisition points when the preset number of relays are closed for a non-preset time. The second target theoretical voltage value is a set of theoretical voltage values corresponding to the case when the preset number of relays are closed for a non-preset time.
[0054] Step S402: Based on the preliminarily determined connection status of the high-voltage acquisition point, the actual voltage value of the second target, and the theoretical voltage value of the second target, the connection status of the high-voltage acquisition point is finally determined to be either a fault-free state or a fault state.
[0055] In actual operation, the connection status of some high-voltage detection points needs to be determined through multiple tests to accurately determine the connection status. Therefore, the above steps S401 and S402 are also for determining the connection status of some high-voltage detection points and locating the specific high-voltage acquisition point that is incorrectly connected, so as to guide the assembly personnel to re-check and reconnect the high-voltage acquisition point wiring harness.
[0056] The specific implementation steps of step S302 are as follows:
[0057] Step S3021: Determine the fault acquisition point based on the actual voltage value of the first target and the theoretical voltage value of the first target, and determine the fault acquisition point as a non-calibrated acquisition point.
[0058] Step S3022: Based on the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibration acquisition point, determine the connection state of the fault acquisition point. The actual voltage value of the calibration acquisition point is directly determined by the connection state of the preset number of relays closed for the first preset time. The actual voltage value of the fault acquisition point is indirectly determined by the connection state of the preset number of relays closed for the first preset time or is unrelated to the connection state of the preset number of relays closed for the first preset time.
[0059] Once the fault sampling point is identified, comparing the actual voltage value of the fault sampling point with the theoretical voltage value of the calibration sampling point can determine whether the fault sampling point is incorrectly connected to the calibration sampling point.
[0060] The process of determining the connection status of the fault acquisition point based on its actual voltage value and the theoretical voltage value of its calibration acquisition point includes: obtaining a second deviation value, which is the deviation between the actual voltage value of the fault acquisition point and the theoretical voltage value of its calibration acquisition point; determining the fault status of the fault acquisition point as an incorrect connection state when the second deviation value is less than or equal to a second predetermined value; and determining the fault status of the high-voltage acquisition point as a floating state when the second deviation value is greater than the second predetermined value. This process is designed to specifically identify the fault type of the fault acquisition point, enabling subsequent assessment of the overall high-voltage acquisition point wiring harness connection status. This guidance helps assembly personnel to re-check and reconnect the high-voltage acquisition point wiring harness, ensuring the normal operation of subsequent high-voltage switching processes.
[0061] Specifically, if the actual voltage value at the fault sampling point is close to the theoretical voltage value at the calibration sampling point, it indicates that the fault sampling point is incorrectly connected to the calibration sampling point. In some embodiments, if the actual voltage value at the fault sampling point differs significantly from the theoretical voltage value at the calibration sampling point, the specific fault at the fault sampling point can be determined by combining data from other test runs. The specific determination method can be adjusted according to actual operation.
[0062] Specifically, the value of the second deviation is related to the location and fault state of the fault acquisition point. The second predetermined value can be set to 0V, 0.1V, 0.2V, etc., and can be adjusted according to actual conditions. Step S303: Based on multiple sets of the above initial judgment results, determine the connection status of all the above high-voltage acquisition points in the above high-voltage drive circuit. Closing one preset number of the above relays corresponds to one set of the above initial judgment results.
[0063] The specific implementation steps of step S303 are as follows:
[0064] Step S3031: Based on a set of the above initial determination results, determine the above connection status of the first type of high voltage acquisition point;
[0065] Step S3032: Based on multiple initial judgment results, the connection status of the second type of high-voltage acquisition point is determined. The first type of high-voltage acquisition point and the second type of high-voltage acquisition point constitute all the high-voltage acquisition points. Through orderly control of the relays, the specific voltage value of each high-voltage acquisition point is collected in real time. By comparing it with the theoretical voltage value in that state, the relay with the incorrect connection is located. Before unpacking, the accurate location of the high-voltage acquisition point connection error can be achieved, improving the efficiency of offline detection.
[0066] Generally, the aforementioned high-voltage drive circuit also includes a power supply unit, and the output terminal of the power supply unit is also equipped with the aforementioned high-voltage acquisition points. The connection status of each of the aforementioned high-voltage acquisition points in the high-voltage drive circuit is determined based on at least multiple sets of the aforementioned recorded results, including: obtaining initial recorded results, where the initial recorded results are the actual voltage values of the aforementioned high-voltage acquisition points at the output terminal of the power supply unit and the output terminals of each of the aforementioned relays when all the aforementioned relays in the high-voltage drive circuit are disconnected; and determining the connection status of each of the aforementioned high-voltage acquisition points in the high-voltage drive circuit based on the initial recorded results and multiple sets of the aforementioned recorded results. This is to determine whether the high-voltage acquisition points after the power supply unit are connected correctly, or whether there are other high-voltage acquisition points incorrectly connected to the high-voltage acquisition points after the power supply unit.
[0067] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the detection method of the high voltage relay device of this application will be described in detail below with reference to specific embodiments.
[0068] In existing technologies, the BMS's high-voltage strategy controls the closing and opening of high-voltage circuit relays. These high-voltage relays can include: 1) a main positive relay, 2) a main negative relay, 3) a pre-charge relay, 4) a DC fast-charge positive relay, 5) a DC fast-charge negative relay, 6) an AC slow-charge positive relay, and 7) an AC slow-charge negative relay. The BMS detects whether the main contacts of the high-voltage circuit relays are stuck and determines which relay contact is stuck. When the battery temperature is low, the BMS can control the closing of the PTC heating positive relay and the PTC heating negative relay to start the heating system and achieve cyclic heating. The control of these nine relays will vary depending on the vehicle's requirements and configuration; therefore, the number of relays controlled by the BMS and the control strategy can have multiple options and configurations.
[0069] Figure 3 This is a schematic diagram of a high-voltage relay network, such as... Figure 3 As shown, the high-voltage relay network includes MSD01, fast charging input device 02, slow charging input device 03, heating input device 04, high-voltage output device 05, current sensor 06, and pre-charging resistor 07. Each of the fast charging input device 02, slow charging input device 03, heating input device 04, and high-voltage output device 05 has a relay at its positive and negative terminals. The output terminal of the pre-charging resistor 07 also has a relay. Therefore, the high-voltage relay network contains a total of 9 relays. All 9 relays are controlled by the BMS, meaning the BMS needs to drive 9 relays. The diagnostic methods for pre-charging relay 90, fast charging positive relay 10, slow charging positive relay 30, heating positive relay 50, and the main positive relay 70 are similar. Similarly, the diagnostic methods for fast charging negative relay 20, slow charging negative relay 40, heating negative relay 60, and the main negative relay 80 are similar. Therefore, this embodiment uses four high-voltage relays (total positive, fast charging positive, total negative, and fast charging negative) and five high-voltage acquisition points (V1, V2, V3, V4, and V5) as an example to monitor the status of the battery high-voltage system and diagnose the actual status of the relays and adhesion faults. The specific measurement locations are as follows: 1) V1: Battery pack voltage value; 2) V2: Output voltage value of the total positive relay, corresponding to the total positive relay; 3) V3: Output voltage value of the fast charging positive relay, corresponding to the fast charging positive relay; 4) V4: Output voltage value of the total negative relay, corresponding to the total negative relay; 5) V5: Output voltage value of the fast charging negative relay, corresponding to the fast charging negative relay.
[0070] Existing control strategies directly determine the actual state of relays and potential sticking faults by using relay control commands and high-voltage acquisition point voltage values. For example, if V1 and V2 are reversed, with the main positive relay open, V1 voltage is 0V, while V2 voltage is the battery pack voltage, leading to a false alarm of a blown fuse. Only after closing the main positive relay does V1 voltage return to the value at the relay's output. Similarly, if V2 and V3 are reversed, with both V2 and V3 open, V2 and V3 voltages are 0V. After closing the main positive relay, V2 voltage is 0V, while V3 voltage is the battery pack voltage. This can lead to misdiagnosis as a sticking fault in both the main positive relay (open) and the fast-charging positive relay (closed), when neither relay is actually faulty; the misdiagnosis is due to the reversed high-voltage acquisition point connection.
[0071] To address the problem of misdiagnosis of relay faults caused by incorrect or unconnected wiring harnesses at high-voltage acquisition points in existing technologies, this embodiment relates to a specific detection method for high-voltage relay devices, which specifically performs the following operations:
[0072] Step 1: All relays are disconnected, [Total Positive Fast Charging Positive Total Negative Fast Charging Negative] = [0 0 0 0], collect values from 5 high-voltage sampling points = [V a1 V a2 V a3 V a4 V a5 ], and connect the correct voltage value [V] to the high-voltage acquisition point in this state. t1 V t2 V t3 V t4 V t5 Compare the theoretical voltage values (the range of these values needs to be stored in the BMS program in advance according to the controller's hardware design, or it can be modified through real-time calibration). If they are inconsistent, output the corresponding wiring fault.
[0073] Step 2: Close the main positive relay, [main positive fast charging positive main negative fast charging negative] = [1 0 0 0], collect the values of 5 high voltage acquisition points, and compare them with the correct voltage values of the high voltage acquisition points in this state. If they are inconsistent, output the corresponding wiring fault.
[0074] Step 3: Disconnect the main positive relay and close the fast charging positive relay. [Main positive fast charging positive main negative fast charging negative] = [01 00]. Collect the values of 5 high voltage collection points and compare them with the correct voltage values of the high voltage collection points in this state. If they are inconsistent, output the corresponding wiring fault.
[0075] Step 4: Disconnect the fast charging positive relay and close the total negative relay. [Total positive fast charging positive total negative fast charging negative] = [00 10]. Collect the values of 5 high voltage collection points and compare them with the correct voltage values of the high voltage collection points in this state. If they are inconsistent, output the corresponding wiring fault.
[0076] Step 5: Disconnect the main negative relay and close the fast charging negative relay. [Main positive fast charging positive main negative fast charging negative] = [00 01]. Collect the values of 5 high voltage collection points and compare them with the correct voltage values of the high voltage collection points in this state. If they are inconsistent, output the corresponding wiring fault.
[0077] Step 6: All relays are disconnected. [Total positive fast charging positive Total negative fast charging negative] = [0 0 0 0]. Based on the above 5 processes, determine if there is a problem with the connection of the high-voltage acquisition point. If there is a problem, report the connection error fault in time and prohibit high-voltage operation. If there is no problem, exit the service mode and normal high-voltage operation can be performed afterwards.
[0078] The overall control process is as follows Figure 4 As shown, the system first enters the service mode, which is the mode for detecting high-voltage acquisition points. Then, through the orderly control of each relay, the system collects the actual voltage values of all high-voltage acquisition points in each step, and obtains the theoretical voltage values of all high-voltage acquisition points in that step. Based on the actual voltage value and the theoretical voltage value of the high-voltage acquisition point, the system judges the connection status of the high-voltage acquisition point. Based on the judgment results of the connection status of different high-voltage acquisition points in all steps, the overall connection status of the high-voltage acquisition point harness is obtained.
[0079] As another alternative solution, such as Figure 5 As shown, the low-voltage circuit on the BMS first initializes and checks for service mode requests. If no such request is received, normal high-voltage control is executed. If a service mode request is received, all relays are disconnected, and the normal high-voltage control process is prohibited. At this time, values from five high-voltage acquisition points are collected. The deviation between the actual voltage value (Va) and the theoretical voltage value (Vt) at each high-voltage acquisition point during this process is calculated. The proximity of the theoretical and actual values is checked. If they are close, the high-voltage acquisition point is considered correctly connected at this stage; otherwise, if the deviation is too large, the connection is considered incorrect. Then, the incorrectly connected high-voltage acquisition point is cross-compared with the theoretical voltage values of other acquisition points. If the actual value Vax at point x (representing points 1, 2, 3, 4, 5) is close to the theoretical value Vty at point y (representing points 1, 2, 3, 4, 5), the high-voltage acquisition point Vx is incorrectly connected to point Vy. If no voltage close to the theoretical value is found, the high-voltage acquisition point is considered unconnected.
[0080] Then, taking the control process of closing the main positive relay as an example, the values of five high-voltage acquisition points are collected in real time, and the deviation between the actual voltage value (Va2) and the theoretical value (Vt2) of the high-voltage acquisition point during this process is calculated. It is then determined whether the theoretical and actual values are close. If they are close, the high-voltage acquisition point is considered correctly connected at this stage; otherwise, if the deviation is too large, the high-voltage acquisition point is considered incorrectly connected. The Va2 of the incorrectly connected high-voltage acquisition point is cross-compared with the theoretical voltage values of other acquisition points. If Va2 is found to be close to the theoretical value Vty at point y (representing 1, 2, 3, 4, 5), it indicates that the V2 high-voltage acquisition point is incorrectly connected to Vy. If no voltage close to the theoretical value is found, it indicates that the high-voltage acquisition point is unconnected. After the judgment is completed, the main positive relay is disconnected.
[0081] The diagnostic methods for other high-voltage acquisition points such as fast-charging positive relays, main negative relays, fast-charging negative relays, PTC heating positive relays, and PTC heating negative relays are similar to those for the main positive relay. After executing all relay control commands in sequence, an output is generated for faults indicating incorrect connections at each high-voltage acquisition point.
[0082] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0083] This application also provides a controller. It should be noted that the detection device for the high-voltage relay device in this application can be used to execute the detection method for the high-voltage relay device provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0084] The controller provided in the embodiments of this application will be described below.
[0085] Figure 6 This is a schematic diagram of a controller according to an embodiment of this application. Figure 6As shown, the controller described above is a controller in a high-voltage relay device. The high-voltage relay device also includes a high-voltage drive circuit, which includes at least one relay. The controller is electrically connected to each of the relays. The controller includes a first execution unit 100, a second execution unit 200, and a determination unit 300. The first execution unit 100 is used to control the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals. The second execution unit 200 is used to control the closure of a preset number of relays multiple times to obtain multiple sets of recording results. Each set of recording results includes the actual voltage values of all the high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different. The determination unit 300 is used to determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of recording results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state, and the fault-free state is a correct connection state.
[0086] As an optional solution, the determining unit includes an acquisition module, a first execution module, and a first determining module. The acquisition module is used to acquire the theoretical voltage values of all the high-voltage acquisition points multiple times when the aforementioned preset number of relays are closed. The first execution module is used to obtain an initial determination result based on the first target actual voltage value and the first target theoretical voltage value. The initial determination result is the connection status of at least some of the high-voltage acquisition points when the aforementioned preset number of relays are closed for the first preset time. The first target actual voltage value is the actual voltage value of all the high-voltage acquisition points when the aforementioned preset number of relays are closed for the first preset time, and the first target theoretical voltage value is the theoretical voltage value corresponding to the aforementioned preset number of relays being closed for the first preset time. The preset time refers to one of the multiple acquisitions of the theoretical voltage values of all the high-voltage acquisition points. The first determining module is used to determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on multiple sets of the initial determination results. Closing the aforementioned preset number of relays once corresponds to one set of the initial determination results. The initial determination results are used to specifically locate the high-voltage acquisition points with a faulty connection status and to determine the overall connection status of the high-voltage acquisition point harness based on multiple initial determination results.
[0087] In an optional scheme, the first determining module includes a first determining submodule and a second determining submodule. The first determining submodule is used to determine the connection status of the first type of high-voltage acquisition point based on a set of initial judgment results. The second determining submodule is used to determine the connection status of the second type of high-voltage acquisition point based on multiple sets of initial judgment results. The first type of high-voltage acquisition point and the second type of high-voltage acquisition point constitute all the high-voltage acquisition points. By controlling the relays in an orderly manner, the specific voltage values of each high-voltage acquisition point are collected in real time. By comparing these values with the theoretical voltage values under that state, the faulty relay connection can be located. Precise location of high-voltage acquisition point connection errors can be achieved before unpacking, improving the efficiency of offline detection.
[0088] For example, the above-mentioned device further includes a first acquisition unit, a first determination subunit, and a second determination subunit. The first acquisition unit is used to acquire multiple first deviation values during the process of obtaining an initial judgment result based on the actual voltage value and the theoretical voltage value of the first target. The first deviation values are the deviations between the actual voltage value and the theoretical voltage value of each of the high-voltage acquisition points. The first determination subunit is used to initially determine that the connection status of the high-voltage acquisition point is fault-free when the first deviation value is less than or equal to a first predetermined value, wherein the first deviation value corresponds one-to-one with the first predetermined value. The second determination subunit is used to determine that the connection status of the high-voltage acquisition point is faulty when the first deviation value is greater than the first predetermined value. It can be determined whether the actual value of the high-voltage acquisition point in an experiment is close to the theoretical value of that point. If they are close, it can be initially determined that the connection of the high-voltage acquisition point is fault-free at this stage; if the deviation is too large, it is determined that the connection of the high-voltage acquisition point is faulty.
[0089] In an optional embodiment, the device further includes a second acquisition unit and a third determination subunit. The second acquisition unit is used to initially determine that the connection status of the high-voltage acquisition point is fault-free when the first deviation value is less than or equal to a first predetermined value, and then acquire a second target actual voltage value and a second target theoretical voltage value when the preset number of relays are closed for a non-preset number of times. The second target actual voltage value is the actual voltage value of all the high-voltage acquisition points when the preset number of relays are closed for a non-preset number of times, and the second target theoretical voltage value is a set of theoretical voltage values corresponding to the condition when the preset number of relays are closed for a non-preset number of times. The third determination subunit is used to ultimately determine whether the connection status of the high-voltage acquisition point is fault-free or faulty based on the initially determined connection status of the high-voltage acquisition point, the second target actual voltage value, and the second target theoretical voltage value. This allows for the determination of the connection status of some high-voltage detection points and the location of the specific high-voltage acquisition point with a connection error, guiding assembly personnel to re-check and reconnect the high-voltage acquisition point wiring harness.
[0090] In this embodiment, the initial determination result is the connection status of at least a portion of the high-voltage acquisition points when the preset number of relays are closed for the first time. The first execution module includes a third determination submodule and a fourth determination submodule. The third determination submodule is used to determine the fault acquisition point based on the actual voltage value and the theoretical voltage value of the first target, and to determine the fault acquisition point as a non-calibrated acquisition point. The fourth determination submodule is used to determine the connection status of the fault acquisition point based on the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibrated acquisition point. The actual voltage value of the calibrated acquisition point is directly determined by the connection status of the preset number of relays closed for the first time, and the actual voltage value of the fault acquisition point is indirectly determined by the connection status of the preset number of relays closed for the first time or is unrelated to the connection status of the preset number of relays closed for the first time. When a fault acquisition point is determined, comparing the actual voltage value of the fault acquisition point with the theoretical voltage value of the calibrated acquisition point can determine whether the fault acquisition point is incorrectly connected to the calibrated acquisition point.
[0091] In one optional scheme, the fourth determining submodule includes an acquisition submodule, a fifth determining submodule, and a sixth determining submodule. The acquisition submodule is used to acquire a second deviation value, which is the deviation between the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibrated acquisition point. The fifth determining submodule is used to determine the fault state of the fault acquisition point as an incorrect connection state if the second deviation value is less than or equal to a second predetermined value. The sixth determining submodule is used to determine the fault state of the high-voltage acquisition point as a floating state if the second deviation value is greater than the second predetermined value. This is to specifically identify the fault type of the fault acquisition point so that the connection status of the overall high-voltage acquisition point wiring harness can be determined subsequently. This allows assembly personnel to re-check and reconnect the high-voltage acquisition point wiring harness, ensuring the normal operation of subsequent high-voltage switching processes.
[0092] As an optional solution, the aforementioned high-voltage drive circuit also includes a power supply unit. The output terminal of the power supply unit is also equipped with the aforementioned high-voltage acquisition point. The determining unit includes an acquisition subunit and a fourth determining subunit. The acquisition subunit is used to acquire initial recording results, which are the actual voltage values of the high-voltage acquisition points at the output terminal of the power supply unit and the high-voltage acquisition points at the output terminals of each of the aforementioned relays, when all the aforementioned relays in the high-voltage drive circuit are disconnected. The fourth determining subunit is used to determine the connection status of each of the aforementioned high-voltage acquisition points in the high-voltage drive circuit based on the initial recording results and multiple sets of recording results. This is to determine whether the high-voltage acquisition points after the power supply unit are connected correctly, or whether there are other high-voltage acquisition points incorrectly connected to the high-voltage acquisition points after the power supply unit.
[0093] The controller described in this application includes a first execution unit, a second execution unit, and a determining unit. The first execution unit controls the disconnection of all relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals. The second execution unit controls a preset number of relays to close multiple times to obtain multiple sets of recording results. Each set of recording results includes the actual voltage values of all high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different. The determining unit determines the connection status of all high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of recording results. The connection status is either a fault state or a fault-free state. Fault states include incorrect connection states and floating states, while fault-free states are correct connection states. This controller, through the orderly control of the relays, collects the actual voltage values of each high-voltage acquisition point in real time and compares them with the theoretical voltage values in that state. This achieves accurate location of high-voltage acquisition point connection errors, avoiding the problem of misdiagnosis of relay faults caused by incorrect or floating high-voltage acquisition point wiring harnesses in the prior art, and improving the efficiency of offline testing.
[0094] The aforementioned controller includes a processor and a memory. The aforementioned first execution unit, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to implement the corresponding functions. All of the aforementioned modules are located in the same processor; or, the aforementioned modules are located in different processors in any combination.
[0095] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the problem of misdiagnosis of relay faults caused by incorrect or unconnected wiring harnesses at high-voltage acquisition points, a problem present in existing technologies.
[0096] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0097] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the detection method of the high-voltage relay device.
[0098] Specifically, the testing methods for high-voltage relay devices include:
[0099] Step S201: Control the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals;
[0100] Specifically, before implementing the above method, it is necessary to ensure that all the relays in the high-voltage drive circuit can open and close normally. Each relay output terminal can be equipped with a high-voltage acquisition point, or a high-voltage acquisition point can be set for the output terminals of two relays connected in parallel as a whole. The specific settings should be adjusted adaptively according to the actual circuit and actual needs.
[0101] Step S202: Control the closing of a preset number of the above-mentioned relays multiple times to obtain multiple sets of recording results. Each set of the above-mentioned recording results includes the actual voltage values of all the above-mentioned high-voltage acquisition points in the above-mentioned high-voltage drive circuit when the preset number of the above-mentioned relays are closed, wherein the above-mentioned relays closed in any two instances are at least partially different.
[0102] Specifically, the preset number of relays closed each time the control is activated can be different. For example, the first time one relay is activated, the second time two relays are activated, the third time three relays are activated, and so on. The number of tests can be adjusted according to the preset number of relays activated each time, actual needs, etc. Alternatively, the preset number of relays activated each time the control is activated can be the same, i.e., one relay is activated each time, or two relays are activated each time, etc.
[0103] Step S203: Determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of the above-mentioned record results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state. The fault-free state is a correct connection state.
[0104] Specifically, a set of recorded results can only determine the connection status of some of the above-mentioned high-voltage acquisition points. To determine the connection status of all the above-mentioned high-voltage acquisition points in the high-voltage drive circuit, it is necessary to combine multiple sets of recorded results for overall analysis to obtain the connection status of each of the above-mentioned high-voltage acquisition points.
[0105] This invention provides a processor for running a program, wherein the program executes the detection method of the high-voltage relay device.
[0106] Specifically, the testing methods for high-voltage relay devices include:
[0107] Step S201: Control the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals;
[0108] Specifically, before implementing the above method, it is necessary to ensure that all the relays in the high-voltage drive circuit can open and close normally. Each relay output terminal can be equipped with a high-voltage acquisition point, or a high-voltage acquisition point can be set for the output terminals of two relays connected in parallel as a whole. The specific settings should be adjusted adaptively according to the actual circuit and actual needs.
[0109] Step S202: Control the closing of a preset number of the above-mentioned relays multiple times to obtain multiple sets of recording results. Each set of the above-mentioned recording results includes the actual voltage values of all the above-mentioned high-voltage acquisition points in the above-mentioned high-voltage drive circuit when the preset number of the above-mentioned relays are closed, wherein the above-mentioned relays closed in any two instances are at least partially different.
[0110] Specifically, the preset number of relays closed each time the control is activated can be different. For example, the first time one relay is activated, the second time two relays are activated, the third time three relays are activated, and so on. The number of tests can be adjusted according to the preset number of relays activated each time, actual needs, etc. Alternatively, the preset number of relays activated each time the control is activated can be the same, i.e., one relay is activated each time, or two relays are activated each time, etc.
[0111] Step S203: Determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of the above-mentioned record results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state. The fault-free state is a correct connection state.
[0112] Specifically, a set of recorded results can only determine the connection status of some of the above-mentioned high-voltage acquisition points. To determine the connection status of all the above-mentioned high-voltage acquisition points in the high-voltage drive circuit, it is necessary to combine multiple sets of recorded results for overall analysis to obtain the connection status of each of the above-mentioned high-voltage acquisition points.
[0113] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:
[0114] Step S201: Control the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals;
[0115] Step S202: Control the closing of a preset number of the above-mentioned relays multiple times to obtain multiple sets of recording results. Each set of the above-mentioned recording results includes the actual voltage values of all the above-mentioned high-voltage acquisition points in the above-mentioned high-voltage drive circuit when the preset number of the above-mentioned relays are closed, wherein the above-mentioned relays closed in any two instances are at least partially different.
[0116] Step S203: Determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of the above-mentioned record results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state. The fault-free state is a correct connection state.
[0117] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0118] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps: Step S201, controlling the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals;
[0119] Step S202: Control the closing of a preset number of the above-mentioned relays multiple times to obtain multiple sets of recording results. Each set of the above-mentioned recording results includes the actual voltage values of all the above-mentioned high-voltage acquisition points in the above-mentioned high-voltage drive circuit when the preset number of the above-mentioned relays are closed, wherein the above-mentioned relays closed in any two instances are at least partially different.
[0120] Step S203: Determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of the above-mentioned record results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state. The fault-free state is a correct connection state.
[0121] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0122] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0123] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0124] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0125] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0126] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0127] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0128] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media 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 memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0129] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0130] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0131] 1) The detection method for the high-voltage relay device described in this application first controls the disconnection of all relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals; then, it controls the closure of a preset number of relays multiple times to obtain multiple sets of recording results. Each set of recording results includes the actual voltage values of all high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different; finally, it determines the connection status of all high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of recording results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state, while the fault-free state is a correct connection state. This method, through the orderly control of the relays, collects the actual voltage values of each high-voltage acquisition point in real time and compares them with the theoretical voltage values under that state, achieving accurate location of high-voltage acquisition point connection errors. This avoids the problem of misdiagnosis of relay faults caused by incorrect or floating high-voltage acquisition point wiring harness connections in the prior art, thus improving the efficiency of offline detection.
[0132] 2) The controller described in this application includes a first execution unit, a second execution unit, and a determining unit. The first execution unit controls the disconnection of all relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals. The second execution unit controls a preset number of relays to close multiple times to obtain multiple sets of recording results. Each set of recording results includes the actual voltage values of all high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein at least some of the relays closed in any two instances are different. The determining unit determines the connection status of all high-voltage acquisition points in the high-voltage drive circuit based on at least multiple sets of recording results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state, while the fault-free state is a correct connection state. This controller, through the orderly control of the relays, collects the actual voltage values of each high-voltage acquisition point in real time and compares them with the theoretical voltage values in that state. This achieves accurate location of high-voltage acquisition point connection errors, avoiding the problem of misdiagnosis of relay faults caused by incorrect or floating high-voltage acquisition point wiring harness connections in the prior art, and improving the efficiency of offline testing.
[0133] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for detecting a high-voltage relay device, characterized in that, The method is applied to a controller in a high-voltage relay device, the high-voltage relay device further including a high-voltage drive circuit, the high-voltage drive circuit including at least one relay, and the controller being electrically connected to each of the relays, including: The system controls the disconnection of all relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals; The preset number of relays are closed in multiple controlled operations to obtain multiple sets of recording results. Each set of recording results includes the actual voltage values of all high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein the relays closed in any two operations are at least partially different. The theoretical voltage values of all the high-voltage acquisition points are obtained multiple times when the preset number of the relays are closed; An initial determination result is obtained based on the first target actual voltage value and the first target theoretical voltage value. The initial determination result is the connection status of at least some of the high-voltage acquisition points when the preset number of relays are closed for the first preset number of times. The first target actual voltage value is the actual voltage value of all the high-voltage acquisition points when the preset number of relays are closed for the first preset number of times. The first target theoretical voltage value is the theoretical voltage value corresponding to the preset number of relays being closed for the first preset number of times. The preset number of times is one of multiple acquisitions of the theoretical voltage values of all the high-voltage acquisition points. Based on multiple sets of initial judgment results, the connection status of all the high-voltage acquisition points in the high-voltage drive circuit is determined. Here, closing a preset number of relays once corresponds to a set of initial judgment results. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state. The fault-free state is a correct connection state. An initial determination result is obtained based on the actual voltage value and the theoretical voltage value of the first target. The initial determination result is the connection status of at least a portion of the high-voltage acquisition points when the preset number of relays are closed for the first preset number of times. This includes: determining a fault acquisition point based on the actual voltage value and the theoretical voltage value of the first target, and determining the fault acquisition point as a non-calibrated acquisition point; determining the connection status of the fault acquisition point based on the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibrated acquisition point. The actual voltage value of the calibrated acquisition point is directly determined by the connection status of the preset number of relays closed for the first preset number of times, and the actual voltage value of the fault acquisition point is indirectly determined by the connection status of the preset number of relays closed for the first preset number of times, or is unrelated to the connection status of the preset number of relays closed for the first preset number of times. Determining the connection status of the fault acquisition point based on the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibration acquisition point includes: obtaining a second deviation value, the second deviation value being the deviation between the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibration acquisition point; if the second deviation value is less than or equal to a second predetermined value, determining the fault status of the fault acquisition point as an incorrect connection status; if the second deviation value is greater than the second predetermined value, determining the fault status of the high-voltage acquisition point as a floating status.
2. The detection method according to claim 1, characterized in that, Based on multiple sets of initial determination results, the connection status of all high-voltage acquisition points in the high-voltage drive circuit is determined, including: Based on a set of initial determination results, the connection status of the first type of high-voltage acquisition point is determined; Based on multiple sets of initial determination results, the connection status of the second type of high-voltage acquisition point is determined, and the first type of high-voltage acquisition point and the second type of high-voltage acquisition point constitute all the high-voltage acquisition points.
3. The detection method according to claim 1, characterized in that, In the process of obtaining the initial determination result based on the actual voltage value and the theoretical voltage value of the first target, the method further includes: Multiple first deviation values are obtained, wherein the first deviation values are the deviation between the actual voltage value and the theoretical voltage value of each high voltage acquisition point; If the first deviation value is less than or equal to the first predetermined value, the connection status of the high-voltage acquisition point is initially determined to be fault-free, wherein the first deviation value corresponds one-to-one with the first predetermined value. If the first deviation value is greater than the first predetermined value, the connection status of the high-voltage acquisition point is determined to be a fault state.
4. The detection method according to claim 3, characterized in that, After initially determining that the connection status of the high-voltage acquisition point is fault-free when the first deviation value is less than or equal to a first predetermined value, the method further includes: Obtain the second target actual voltage value and the second target theoretical voltage value when the preset number of relays are closed for a non-preset number of times, wherein the second target actual voltage value is the actual voltage value of all the high voltage acquisition points when the preset number of relays are closed for a non-preset number of times, and the second target theoretical voltage value is a set of theoretical voltage values corresponding to the case when the preset number of relays are closed for a non-preset number of times. Based on the initially determined connection status of the high-voltage acquisition point, the actual voltage value of the second target, and the theoretical voltage value of the second target, the connection status of the high-voltage acquisition point is ultimately determined to be either a fault-free state or a fault state.
5. The detection method according to any one of claims 1 to 4, characterized in that, The high-voltage drive circuit also includes a power supply unit, the output terminal of which is also equipped with a high-voltage acquisition point. The connection status of each high-voltage acquisition point in the high-voltage drive circuit is determined based on at least multiple sets of recorded results, including: Obtain initial recording results, which are the actual voltage values of the high voltage acquisition points at the output terminals of the power supply unit and the high voltage acquisition points at the output terminals of each relay when all the relays in the high voltage drive circuit are disconnected. The connection status of each high-voltage acquisition point in the high-voltage drive circuit is determined based on the initial recording results and multiple sets of recording results.
6. A controller, characterized in that, The controller is a controller in a high-voltage relay device, which further includes a high-voltage drive circuit. The high-voltage drive circuit includes at least one relay, and the controller is electrically connected to each of the relays, including: The first execution unit is used to control the disconnection of all the relays in the high-voltage drive circuit, wherein at least some of the relays have high-voltage acquisition points at their output terminals; The second execution unit is used to control a preset number of relays to close multiple times to obtain multiple sets of recording results. Each set of recording results includes the actual voltage values of all the high-voltage acquisition points in the high-voltage drive circuit when the preset number of relays are closed, wherein the relays closed in any two instances are at least partially different. The system comprises an acquisition module, a first execution module, and a first determination module. The acquisition module is used to acquire the theoretical voltage values of all high-voltage acquisition points multiple times when a preset number of relays are closed. The first execution module is used to obtain an initial determination result based on a first target actual voltage value and a first target theoretical voltage value. The initial determination result is the connection status of at least some of the high-voltage acquisition points when the preset number of relays are closed for a preset number of times. The first target actual voltage value is the actual voltage value of all the high-voltage acquisition points when the preset number of relays are closed for a preset number of times. The first target theoretical voltage value is the theoretical voltage value corresponding to the preset number of relays being closed for a preset number of times. The preset number of times is one of the multiple acquisitions of the theoretical voltage values of all the high-voltage acquisition points. The first determination module is used to determine the connection status of all the high-voltage acquisition points in the high-voltage drive circuit based on multiple sets of the initial determination results. Each time the preset number of relays are closed, a set of initial determination results is obtained. The connection status is either a fault state or a fault-free state. The fault state includes an incorrect connection state and a floating state. The fault-free state is a correct connection state. The third determining submodule and the fourth determining submodule are used to determine the fault acquisition point based on the actual voltage value and the theoretical voltage value of the first target, and to determine the fault acquisition point as a non-calibrated acquisition point; the fourth determining submodule is used to determine the connection state of the fault acquisition point based on the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibrated acquisition point, wherein the actual voltage value of the calibrated acquisition point is directly determined by the connection state of the preset number of relays closed for the first preset time, and the actual voltage value of the fault acquisition point is indirectly determined by the connection state of the preset number of relays closed for the first preset time or is unrelated to the connection state of the preset number of relays closed for the first preset time; The system comprises an acquisition submodule, a fifth determination submodule, and a sixth determination submodule. The acquisition submodule is used to acquire a second deviation value, which is the deviation between the actual voltage value of the fault acquisition point and the theoretical voltage value of the calibration acquisition point. The fifth determination submodule is used to determine the fault state of the fault acquisition point as an incorrect connection state when the second deviation value is less than or equal to a second predetermined value. The sixth determination submodule is used to determine the fault state of the high-voltage acquisition point as a floating state when the second deviation value is greater than the second predetermined value.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the detection method of the high-voltage relay device according to any one of claims 1 to 5.