Power switch fault detection method and device, charging device and storage medium
By detecting the power switch status and voltage of the electric vehicle charging device before charging, the problem of relay sticking or jamming is solved, ensuring the safety and reliability of electric vehicle charging.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GAC TOYOTA MOTOR
- Filing Date
- 2023-01-03
- Publication Date
- 2026-06-26
Smart Images

Figure CN115951208B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of switch fault detection technology, and in particular to a power switch fault detection method, device, charging equipment, and storage medium. Background Technology
[0002] When an electric vehicle is charging, if a fault occurs, the power can be cut off by the relay of the charging device to stop charging. However, due to mechanical impact and lifespan decay, the relay may stick together, causing the fault to spread.
[0003] In addition, a relay needs to be closed when charging an electric vehicle. If the relay malfunctions and cannot close, charging will not be possible. Therefore, the problem of how to detect relay malfunctions in electric vehicle charging devices needs to be solved. Summary of the Invention
[0004] The main objective of this invention is to provide a power switch fault detection method, device, charging equipment, and storage medium, aiming to solve the technical problem of how to detect relay faults in electric vehicle charging devices.
[0005] To achieve the above objectives, the present invention adopts the following technical solution:
[0006] In a first aspect, the present invention provides a power switch fault detection method, which is applied to a charging device for an electric vehicle. The charging device includes a power switch, which is used to close or close according to a switching command to control the connection or disconnection of the power supply to the electric vehicle. The method includes:
[0007] The system obtains the switching state of the power switch corresponding to the pre-charging switching command, the first voltage between the live wire and the neutral wire in the charging device, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire, wherein the switching state includes a closed state and / or an off state.
[0008] Based on the switch status, the first voltage, the second voltage, and the third voltage, the fault detection results of the power switch are obtained.
[0009] Optionally, the power switch includes two switches, and the fault detection result includes sticking fault;
[0010] Before obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage, the method further includes:
[0011] Determine whether the switching states of two switches are the same;
[0012] If the two switches are in different states, determine whether the target switch is in the off state. The target switch is the switch that was turned off earlier during the last charging.
[0013] Based on the switch status, the first voltage, the second voltage, and the third voltage, the fault detection results of the power switch are obtained, including:
[0014] If the target switch is in the off state, then based on the off state of the target switch and the first voltage, determine whether the target switch has a sticking fault.
[0015] Optionally, if the target switch is in the off state, then based on the off state of the target switch and the first voltage, it is determined whether the target switch has a sticking fault, including:
[0016] If the target switch is in the off state and the first voltage is not zero, then based on the off state of the target switch and the first voltage, it is determined that the target switch has an adhesion fault.
[0017] Optionally, after determining whether the switching states of the two switches are the same, the method further includes;
[0018] If the two switches are in the same state, then determine whether the two switches are in the off state.
[0019] Based on the switch status, the first voltage, the second voltage, and the third voltage, the fault detection results of the power switch are obtained, including:
[0020] If both switches are in the off state, then based on the off state of the two switches, the second voltage, and the third voltage, it can be determined whether the two switches are stuck together.
[0021] Optionally, the two switches are a first relay switch and a second relay switch;
[0022] If both switches are in the off state, then based on the off state of the two switches, the second voltage, and the third voltage, determine whether there is a sticking fault between the two switches, including:
[0023] If the first relay switch is in the off state and the second voltage is not zero, then based on the off state of the first relay switch and the second voltage, it is determined that the first relay switch has a sticking fault.
[0024] If the second relay switch is in the off state and the third voltage is not zero, then based on the off state of the second relay switch and the third voltage, it can be determined that the second relay switch has a sticking fault.
[0025] Optionally, the fault detection results include jamming faults;
[0026] After determining whether the switching states of two switches are the same, the method also includes;
[0027] If the two switches are in the same state, then determine whether the two switches are in the closed state.
[0028] Based on the switch status, the first voltage, the second voltage, and the third voltage, the fault detection results of the power switch are obtained, including:
[0029] If both switches are in the closed state, then based on the closed state of the two switches, the second voltage, and the third voltage, it can be determined whether the two switches are stuck.
[0030] Optionally, after obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage, the method further includes:
[0031] Output the fault detection results.
[0032] Secondly, the present invention also provides a power switch fault detection device, which is installed in the charging equipment of an electric vehicle. The charging equipment includes a power switch, which is used to close or close according to a switching command to control the connection or disconnection of the power supply to the electric vehicle. The device includes:
[0033] The acquisition module is used to acquire the switching state of the power switch corresponding to the pre-charging switching command, the first voltage between the live wire and the neutral wire in the charging device, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire, wherein the switching state includes a closed state and / or an off state.
[0034] The fault detection module is used to obtain the fault detection results of the power switch based on the switch status, the first voltage, the second voltage, and the third voltage.
[0035] Thirdly, the present invention also provides a charging device, the device comprising: a memory, a processor, and a power switch fault detection program stored in the memory and executable on the processor, wherein the power switch fault detection program is configured to implement the steps of the power switch fault detection method as described above.
[0036] Fourthly, the present invention provides a computer-readable storage medium storing a power switch fault detection program, wherein when the power switch fault detection program is executed by a processor, it implements the steps of the power switch fault detection method as described above.
[0037] This invention provides a power switch fault detection method, device, charging equipment, and storage medium. The method acquires the switching state of the power switch corresponding to the switching command before charging, the first voltage between the live wire and the neutral wire in the charging equipment, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire. The switching state includes a closed state and / or an open state. Based on the switching state, the first voltage, the second voltage, and the third voltage, the fault detection result of the power switch is obtained.
[0038] Therefore, this invention achieves fault detection of the power switch before charging by judging whether there is a sticking or jamming fault in the power switch based on the switch state corresponding to the switch command and the multiple voltages between the live wire, neutral wire and ground wire in the charging device. This solves the technical problem of how to detect relay faults in electric vehicle charging devices, avoids situations such as inability to charge due to relay faults and the spread of charging faults caused by relay sticking, and improves the charging safety of electric vehicles. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0040] Figure 1 This is a partial structural schematic diagram of a charging device provided in an exemplary embodiment;
[0041] Figure 2 for Figure 1 Schematic diagram of the control unit;
[0042] Figure 3 This is a flowchart illustrating the first embodiment of the power switch fault detection method of the present invention;
[0043] Figure 4 This is a flowchart illustrating the second embodiment of the power switch fault detection method of the present invention;
[0044] Figure 5 This is a flowchart illustrating the third embodiment of the power switch fault detection method of the present invention;
[0045] Figure 6 This is a flowchart illustrating the fourth embodiment of the power switch fault detection method of the present invention;
[0046] Figure 7 This is a schematic diagram of the power switch fault detection device of the present invention.
[0047] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0049] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0050] In this invention, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that an apparatus or method comprising a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an apparatus or method. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the apparatus or method that includes that element.
[0051] Furthermore, in this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral part; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances. If the embodiments of this invention involve descriptions of "first," "second," etc., such descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.
[0052] In this invention, the suffixes such as "module," "component," or "unit" used to denote elements are used only for illustrative purposes and have no specific meaning in themselves. Therefore, "module," "component," or "unit" can be used interchangeably. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances. Furthermore, the technical solutions of the various embodiments can be combined with each other, but only on the basis that they can be implemented by those skilled in the art. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.
[0053] In view of the existing technical problems in detecting relay faults in electric vehicle charging devices, this invention provides a power switch fault detection method. The method is applied to electric vehicle charging equipment, which includes a power switch. The power switch is used to close or close according to a switching command, controlling the connection or disconnection of the power supply to the electric vehicle. The overall concept is as follows:
[0054] The method includes: acquiring the switching state of the power switch corresponding to the pre-charging switching command, the first voltage between the live wire and the neutral wire in the charging device, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire, wherein the switching state includes a closed state and / or an open state; and obtaining the fault detection result of the power switch based on the switching state, the first voltage, the second voltage, and the third voltage.
[0055] This invention provides a power switch fault detection method. By determining whether the power switch has a sticking or jamming fault before charging based on the switch state corresponding to the switch command and multiple voltages between the live wire, neutral wire and ground wire in the charging device, the method achieves fault detection of the power switch before charging. This solves the technical problem of how to detect relay faults in electric vehicle charging devices, avoids situations where charging cannot be performed due to relay faults or charging faults caused by relay sticking during charging, and improves the charging safety of electric vehicles.
[0056] The following provides a detailed description of the power switch fault detection method, device, charging equipment, and storage medium used in the technical implementation of this invention:
[0057] Reference Figure 1 , Figure 1 This is a partial structural schematic diagram of a charging device provided in an exemplary embodiment; the charging device is the hardware operating environment for the power switch fault detection method of the present invention.
[0058] like Figure 1 As shown, the charging equipment includes a charging plug, a control box, and a charging gun. The control box is connected to the charging plug and the charging gun via power cables. The control box contains a power switch 11, a detection unit 13, and a control unit 15. When the electric vehicle is charging, the charging plug is connected to the power socket, and the charging gun is connected to the vehicle. The control unit 15 generates and outputs a switching command to control the power switch 11 to close or close, connecting or disconnecting the power supply and the vehicle to charge the electric vehicle. The power cable includes a live wire L, a neutral wire N, and a ground wire PE. The power switch includes a power switch K1 and a power switch K2. The detection unit 13 includes a voltage detection circuit 1 and a voltage detection circuit 2. The voltage detection circuit 1 is used to detect the second voltage between the live wire L and the ground wire PE and the third voltage between the neutral wire N and the ground wire PE. The voltage detection circuit 2 is used to detect the first voltage between the live wire L and the neutral wire N.
[0059] In addition, the control unit 15 includes microcontrollers such as single-chip microcomputers, see reference. Figure 2 , Figure 2 for Figure 1 A schematic diagram of the control unit.
[0060] like Figure 2 As shown, the control unit may further include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include user equipment such as a vehicle-side control system for an electric vehicle; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0061] Those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the control unit 15 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0062] like Figure 2 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a power switch fault detection program.
[0063] exist Figure 2 In the device shown, the network interface 1004 is mainly used for data communication with other units in the charging device; the user interface 1003 is mainly used for data interaction with the user equipment; the processor 1001 and memory 1005 in the power switch fault detection method of the present invention can be set in the control unit 15. The power switch fault detection method calls the power switch fault detection program stored in the memory 1005 through the processor 1001 and executes the power switch fault detection method provided in the embodiment of the present invention.
[0064] Based on, but not limited to, the above hardware structure, refer to Figure 3 , Figure 3This is a flowchart illustrating the first embodiment of the power switch fault detection method of the present invention. This embodiment provides a power switch fault detection method applied to a charging device for electric vehicles. The charging device includes a power switch, which is used to close or close according to a switching command, controlling the connection or disconnection of the power supply to the electric vehicle. The method includes:
[0065] Step S100: Obtain the switching state of the power switch corresponding to the pre-charging switching command, the first voltage between the live wire and the neutral wire in the charging device, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire, wherein the switching state includes a closed state and / or an off state.
[0066] Step S200: Obtain the fault detection result of the power switch based on the switch status, the first voltage, the second voltage, and the third voltage.
[0067] In this embodiment, the switching instructions include a first control instruction and a second control instruction. The first control instruction includes either a closing instruction or a closing instruction, and the second control instruction also includes either a closing instruction or a closing instruction. When not charging, all power switches in the charging device need to be turned off, and the switching instruction at this time is a closing instruction, corresponding to the off state of the power switches. When charging is in progress, all power switches need to be closed, and the switching instruction at this time is a closing instruction, corresponding to the closed state of the power switches. The first control instruction is used to control the closing or closing of power switch K1, and the second control instruction is used to control the closing or closing of power switch K2.
[0068] Under normal circumstances, after the charging equipment is connected to the power supply and the vehicle, in the charging equipment, when both the first and second control commands are off commands, power switches K1 and K2 are both off, and the first, second, and third voltages are all zero. When both the first and second control commands are closed commands, power switches K1 and K2 are both closed, and the first, second, and third voltages are all non-zero, with the second and third voltages being the rated voltages of the charging equipment. When the first control command is a closed command and the second control command is an off command, power switch K1 is closed, power switch K2 is off, the first and third voltages are both zero, the second voltage is non-zero, and the second voltage is the rated voltage of the charging equipment. Conversely, when both the first and second control commands are off commands, power switch K1 is off, power switch K2 is closed, the first and second voltages are both zero, the third voltage is non-zero, and the third voltage is the rated voltage of the charging equipment.
[0069] In this embodiment, the faults of the power switch in the charging device include sticking faults and jamming faults. When the power switch has a sticking fault, if the switch command is an off command, the corresponding switch state of the power switch is off. At this time, if voltage can be detected between the live wire, neutral wire, and / or ground wire, it can be determined that the power switch has a sticking fault. When the power switch has a jamming fault, if the switch command is a closing command, the corresponding switch state of the power switch is closed. At this time, if voltage cannot be detected on the live wire and / or neutral wire, it can be determined that the power switch has a jamming fault and cannot operate.
[0070] In practice, after the charging plug is connected to the power socket and the charging gun is connected to the vehicle, but before charging begins, the control unit generates a switch command to control the power switch to close and / or close. The switch status, first voltage, second voltage, and third voltage corresponding to the switch command are used to determine whether the power switch is stuck or jammed.
[0071] This embodiment provides a power switch fault detection method. By determining whether the power switch has a sticking or jamming fault before charging based on the switch state corresponding to the switch command and multiple voltages between the live wire, neutral wire, and ground wire in the charging device, the method achieves fault detection of the power switch before charging. This solves the technical problem of how to detect relay faults in electric vehicle charging devices, avoids situations where charging failure is caused by relay failure or the spread of charging faults caused by relay sticking, and improves the charging safety of electric vehicles.
[0072] Furthermore, as an example, refer to Figure 4 , Figure 4 This is a flowchart illustrating the second embodiment of the power switch fault detection method of the present invention; this embodiment provides a power switch fault detection method, the power switch includes two switches, and the fault detection result includes adhesion fault;
[0073] Before step S200, the method also includes:
[0074] Step S300: Determine whether the switching states of the two switches are the same;
[0075] Step S400: If the two switches have different states, determine whether the target switch is in the off state. The target switch is the switch that was turned off earlier during the last charging.
[0076] Step S200 includes:
[0077] Step S220: If the target switch is in the off state, determine whether there is a sticking fault in the target switch based on the off state of the target switch and the first voltage.
[0078] In this embodiment, the two switches are power switch K1 and power switch K2. After the charging equipment is connected to the power source and the vehicle, before formal charging, the control unit 15 can sequentially output a first control command and a second control command to sequentially control power switches K1 and K2 to close, thus initiating formal charging. Then, after charging is completed, it sequentially controls power switches K1 and K2 to close, thereby charging the electric vehicle. In this case, if the two switches have different states before formal charging begins, the system can determine whether the closed power switch has a sticking fault based on the switch state corresponding to the pre-charging switch command and the first voltage. That is, during a single charging process, before formal charging, a sticking fault detection can be performed on one of the power switches based on the switch state corresponding to the switch command and the first voltage.
[0079] In addition, the target switch is the switch that was not detected for fault during the last charge. Since the two switches are in different states before the formal charge, only one of the two switches can be detected for sticking fault during each charge. Therefore, the control unit 15 can store the switch command output first during each charge and output the switch command output later during the last charge during the next charge. This controls the switch that was turned off earlier during the last charge to close first, and performs sticking fault detection on the switch that was not detected for sticking fault during the last charge.
[0080] Specifically, step S210 includes: if the target switch is in the off state and the first voltage is not zero, then based on the off state of the target switch and the first voltage, it is determined that the target switch has an adhesion fault.
[0081] In this embodiment, if the target switch corresponding to the switch command is in the off state, then the other switch of the two switches corresponding to the switch command is in the closed state. If the target switch has a sticking fault, then both switches are actually in the closed state, and a first voltage can be detected between the live wire and the neutral wire in the charging device; that is, the first voltage is not zero. If the target switch does not have a sticking fault, then the actual switch state of the target switch is off, and the actual switch state of the other switch is closed; the first voltage cannot be detected between the live wire and the neutral wire in the charging device; that is, the first voltage is zero. Furthermore, before formal charging, the other switch can be checked for a sticking fault based on its switch state and a second or third voltage.
[0082] In practice, if the target switch is power switch K2, after the charging equipment is connected to the power source and the vehicle, the control unit outputs a switch command to first close power switch K1, and then close power switch K2. Between the closing of power switch K1 and the closing of power switch K2, the power switch K1 corresponding to the switch command is in a closed state, and the power switch K2 corresponding to the switch command is in a closed state. If the first voltage is zero, power switch K2 does not have a sticking fault; if the first voltage is not zero, power switch K2 has a sticking fault. During the next charging cycle, the control unit outputs a switch command to first close power switch K2, and then close power switch K1, performing a sticking fault detection on power switch K1. Thus, during different charging processes, sticking fault detection is performed alternately on power switches K1 and K2.
[0083] This embodiment provides a power switch fault detection method. During the same charging process, the control unit generates a switch command to control two switches in the charging device to close sequentially. The last closed switch is then subjected to sticking fault detection. In different charging processes, the two switches are alternately subjected to sticking fault detection, which can comprehensively detect whether the power switch has a sticking fault and improve the reliability of power switch sticking fault detection.
[0084] Furthermore, as an example, refer to Figure 5 , Figure 5 This is a flowchart illustrating the third embodiment of the power switch fault detection method of the present invention; this embodiment provides a power switch fault detection method, which further includes the following steps after step S300;
[0085] Step S500: If the two switches have the same switch state, determine whether the two switches are in the off state.
[0086] Step S200 further includes:
[0087] Step S220: If both switches are in the off state, determine whether there is a sticking fault between the two switches based on the off state of the two switches, the second voltage and the third voltage.
[0088] In this embodiment, after the charging device is connected to both the power source and the vehicle, before formal charging, the control unit 15 simultaneously outputs a first control command and a second control command to control power switches K1 and K2 to close simultaneously, initiating formal charging. Then, after charging is completed, it controls power switches K1 and K2 to close simultaneously, thus achieving electric vehicle charging. In this case, during the actual charging process, after the charging device is connected to both the power source and the vehicle, before formal charging, if the switch states corresponding to the switch commands are both in the off state, then the sticking fault of the power switches can be detected based on the switch states corresponding to the switch commands, the second voltage, and the third voltage.
[0089] Specifically, if the two switches corresponding to the switch command have the same switch state, after the charging equipment is connected to the power source and the vehicle respectively, before formal charging, if the power switch K1 has a sticking fault, the second voltage will not be zero if the power switch K2 has a sticking fault, and the third voltage will not be zero if the power switch K1 does not have a sticking fault. Conversely, if the power switch K1 does not have a sticking fault, the second voltage will be zero, and if the power switch K2 does not have a sticking fault, the third voltage will be zero.
[0090] Specifically, the two switches are a first relay switch and a second relay switch;
[0091] Step S220 includes: if the first relay switch is in the off state and the second voltage is not zero, then based on the off state of the first relay switch and the second voltage, it is determined that the first relay switch has a sticking fault.
[0092] If the second relay switch is in the off state and the third voltage is not zero, then based on the off state of the second relay switch and the third voltage, it is determined that the second relay switch has a sticking fault.
[0093] In this embodiment, the power switch in the charging device is a relay switch, including a first relay switch and a second relay switch; the control unit can control the first relay switch and the second relay switch to be turned off simultaneously before formal charging in each charging process, and determine whether there is a sticking fault in the first relay switch and the second relay switch by combining the second voltage and the third voltage.
[0094] In the specific implementation, after the charging equipment is connected to the power source and the vehicle, before the actual charging begins, if the control...
[0095] The control unit outputs a switching command to turn off power switches K1 and K2; the corresponding switching states of power switches K1 and K2 are off; if the second voltage is zero, power switch K1 does not have a sticking fault; if the second voltage is not zero, power switch K1 has a sticking fault.
[0096] If the third voltage is zero, then the power switch K2 does not have a sticking fault; if the third voltage is not zero, then the power switch K2 has a sticking fault.
[0097] This embodiment provides a power switch fault detection method. By detecting the voltage between the live wire and the ground wire and the voltage between the neutral wire and the ground wire in the charging equipment, the sticking fault of the power switch can be detected before formal charging. The sticking fault detection of two power switches can be performed simultaneously during the same charging process, which improves the versatility of power switch sticking fault detection.
[0098] Furthermore, as an example, refer to Figure 6 , Figure 6 This is a flowchart illustrating the fourth embodiment of the power switch fault detection method of the present invention; this embodiment provides a power switch fault detection method, and the fault detection result includes a stuck fault;
[0099] After step S300, the method further includes;
[0100] Step S600: If the two switches have the same state, determine whether the two switches are in a closed state.
[0101] Step S200 includes:
[0102] Step S230: If both switches are in the closed state, determine whether there is a jamming fault in the two switches based on the closed state of the two switches, the second voltage and the third voltage.
[0103] In this embodiment, during the actual charging process, after the charging device is connected to the power supply and the vehicle respectively, before the formal charging, if the switch states corresponding to the switch command are all in the closed state, the power switch jamming fault can be detected based on the closed state corresponding to the switch command, the second voltage and the third voltage.
[0104] Specifically, if the two switches corresponding to the switch command have the same switch state, after the charging equipment is connected to the power source and the vehicle respectively, before formal charging, if the power switch K1 has a stuck fault, the second voltage will be zero if the power switch K2 has a stuck fault, and the third voltage will be zero if the power switch K1 has a stuck fault. Conversely, if the power switch K1 does not have a stuck fault, the actual state of the power switch K1 is closed, the second voltage is not zero and is equal to the rated voltage of the charging equipment, and if the power switch K2 does not have a stuck fault, the actual state of the power switch K2 is closed, the third voltage is not zero and is equal to the rated voltage of the charging equipment.
[0105] In practice, after the charging equipment is connected to the power source and the vehicle, when charging officially begins, the control unit outputs a switch command to control power switches K1 and K2 to close. At this time, the switch states of power switches K1 and K2 corresponding to the switch command are closed. If the second voltage is zero, power switch K1 has a stuck fault; if the second voltage is not zero, power switch K1 does not have a stuck fault. If the third voltage is zero, power switch K2 has a stuck fault; if the third voltage is not zero, power switch K2 does not have a stuck fault.
[0106] Specifically, after step S200, the method also includes: outputting the fault detection result.
[0107] In this embodiment, the charging device also includes a status indicator light. The control unit can output a status indication signal based on the fault detection result and control the status indicator light to output the fault detection result.
[0108] This embodiment provides a power switch fault detection method. By detecting the voltage between the live wire and the ground wire and the voltage between the neutral wire and the ground wire in the charging equipment, the sticking fault of the power switch can be detected during formal charging. It can detect the jamming fault of two power switches during the charging process, thus improving the versatility of power switch fault detection.
[0109] Based on the same inventive concept, such as Figure 7 As shown, this embodiment provides a power switch fault detection device, which is installed in the charging equipment of an electric vehicle. The charging equipment includes a power switch, which is used to close or close according to a switching command to control the connection or disconnection of the power supply to the electric vehicle. The device includes:
[0110] The acquisition module 10 is used to acquire the switching state of the power switch corresponding to the pre-charging switching command, the first voltage between the live wire and the neutral wire in the charging device, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire, wherein the switching state includes a closed state and / or an off state.
[0111] The fault detection module 20 is used to obtain the fault detection results of the power switch based on the switch status, the first voltage, the second voltage, and the third voltage.
[0112] For more details on the specific implementation of the power switch fault detection device described above, please refer to the description of the specific implementation of the power switch fault detection method in any one of the above embodiments one to four. For the sake of brevity, these details will not be repeated here.
[0113] Furthermore, embodiments of the present invention also propose a computer storage medium storing a power switch fault detection program. When the power switch fault detection program is executed by a processor, it implements the steps of the power switch fault detection method described above. Therefore, it will not be repeated here. Additionally, the beneficial effects of using the same method will not be repeated here either. For technical details not disclosed in the computer-readable storage medium embodiments involved in this application, please refer to the description of the method embodiments of this application. As an example, program instructions can be deployed to execute on a single computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network.
[0114] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for detecting power switch faults, characterized in that, The method is applied to a charging device for an electric vehicle, the charging device including a power switch, the power switch being used to close or close according to a switching command to control the connection or disconnection of the power supply to the electric vehicle, the method including: The system acquires the switching state of the power switch corresponding to the switching command before charging, the first voltage between the live wire and the neutral wire in the charging device, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire, wherein the switching state includes a closed state and / or an off state. Based on the switch state, the first voltage, the second voltage, and the third voltage, the fault detection result of the power switch is obtained; The power switch includes two switches, and the fault detection result includes adhesion fault; Before obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage, the method further includes: Determine whether the switching states of the two switches are the same; If the two switches have different states, it is determined whether the target switch is in the off state. The target switch is the switch that was turned off first during the last charging and is controlled to be turned off first during the next charging. The step of obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage includes: If the target switch is in the off state, then based on the off state of the target switch and the first voltage, it is determined whether the target switch has the adhesion fault; After determining whether the switch states of the two switches are the same, the method further includes: If the two switches have the same state, then determine whether the two switches are in the off state. The step of obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage includes: If both switches are in the off state, then based on the off state of the two switches, the second voltage, and the third voltage, it is determined whether the two switches have the sticking fault. The fault detection result includes a jamming fault. After determining whether the switching states of the two switches are the same, the method further includes: If the two switches are in the same state, then determine whether the two switches are in a closed state. The step of obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage includes: If both switches are in the closed state, then based on the closed state of the two switches, the second voltage, and the third voltage, it is determined whether the two switches have the jamming fault.
2. The method as described in claim 1, characterized in that, If the target switch is in the off state, then based on the off state of the target switch and the first voltage, it is determined whether the target switch has the adhesion fault, including: If the target switch is in the off state and the first voltage is not zero, then based on the off state of the target switch and the first voltage, it is determined that the target switch has the adhesion fault.
3. The method as described in claim 1, characterized in that, The two switches are a first relay switch and a second relay switch; If both switches are in the off state, then based on the off state of the two switches, the second voltage, and the third voltage, it is determined whether the two switches have the sticking fault, including: If the first relay switch is in the off state and the second voltage is not zero, then based on the off state of the first relay switch and the second voltage, it is determined that the first relay switch has the adhesion fault. If the second relay switch is in the off state and the third voltage is not zero, then based on the off state of the second relay switch and the third voltage, it is determined that the second relay switch has the adhesion fault.
4. The method as described in claim 1, characterized in that, After obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage, the method further includes: Output the fault detection results.
5. A power switch fault detection device, characterized in that, The device is installed in the charging equipment of an electric vehicle. The charging equipment includes a power switch, which is used to close or close according to a switching command to control the connection or disconnection of the power supply to the electric vehicle. The device includes: The acquisition module is used to acquire the switching state of the power switch corresponding to the switching command before charging, the first voltage between the live wire and the neutral wire in the charging device, the second voltage between the live wire and the ground wire, and the third voltage between the neutral wire and the ground wire, wherein the switching state includes a closed state and / or an off state. The fault detection module is used to obtain the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage. The power switch includes two switches, and the fault detection result includes adhesion fault; The fault detection module is further configured to determine whether the switching states of the two switches are the same; if the switching states of the two switches are different, it is determined whether the target switch is in the off state, wherein the target switch is the switch that was turned off first during the last charging and is controlled to be closed first during the next charging; if the target switch is in the off state, it is determined whether the target switch has the sticking fault based on the off state of the target switch and the first voltage. The fault detection result includes a jamming fault. The fault detection module is also used to determine whether the two switches are in a closed state if the two switches have the same switch state; if both switches are in a closed state, determine whether the two switches have the jamming fault based on the closed state of the two switches, the second voltage and the third voltage. The fault detection module is further configured to determine whether the two switches are in an off state if the two switches have the same switching state; obtaining the fault detection result of the power switch based on the switch state, the first voltage, the second voltage, and the third voltage includes: if both switches are in an off state, determining whether the two switches have the sticking fault based on the off state of the two switches, the second voltage, and the third voltage.
6. A charging device, characterized in that, The device includes: a memory, a processor, and a power switch fault detection program stored in the memory and executable on the processor, the power switch fault detection program being configured to implement the steps of the power switch fault detection method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The storage medium stores a power switch fault detection program, which, when executed by a processor, implements the steps of the power switch fault detection method as described in any one of claims 1 to 4.