AC charging pile control method and AC charging pile

By performing sampling circuit and relay self-tests in AC charging piles, detecting power parameters, and disconnecting the relays when a fault is detected, the safety hazards caused by circuit component failures during the charging process of AC charging piles are resolved, ensuring user safety.

CN121848966APending Publication Date: 2026-04-14SOLAR POWER NETWORK TECHNOLOGY (ZHEJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

AC charging stations pose safety hazards due to circuit component failures during charging, requiring a safety control method to promptly stop charging and ensure user safety.

Method used

After the AC charging station is powered on, the sampling circuit and relay self-test are performed to detect the power parameters of each circuit connected to the AC power supply of the charging gun socket. Based on parameter comparison, the fault is determined, and the relay is disconnected to stop charging when a fault is detected.

Benefits of technology

It enables timely stopping of charging in case of fault, ensuring user charging safety and avoiding safety issues and fault diagnosis failures caused by relay and sampling circuit failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121848966A_ABST
    Figure CN121848966A_ABST
Patent Text Reader

Abstract

The invention provides an alternating current charging pile control method and an alternating current charging pile. The alternating current charging pile comprises a sampling circuit, a relay and a charging gun socket, each circuit of an alternating current power supply is electrically connected with the charging gun socket through the relay, the sampling circuit is connected with each circuit of the alternating current power supply, and the method comprises the following steps: after the alternating current charging pile is powered on, sampling circuit self-inspection and relay self-inspection are executed in sequence; when the alternating current charging pile receives a charging instruction, electric leakage self-inspection is executed, a relay is closed for charging based on an electric leakage self-inspection result, and electric energy parameters of all lines are detected through a sampling circuit; according to the comparison result of the electric energy parameters of the lines, whether the alternating current charging pile has a fault or not is determined; and when it is determined that the AC charging pile has a fault, the relay is disconnected to stop charging. Whether the alternating-current charging pile breaks down or not can be determined through the electric energy parameters of all the lines so as to stop charging when the alternating-current charging pile breaks down, self-inspection can be conducted on the sampling circuit and the relay, and therefore the safety of the alternating-current charging pile is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power electronics, and more specifically, to an AC charging pile control method and an AC charging pile. Background Technology

[0002] With the development of new energy vehicles, AC charging piles are rapidly becoming a part of people's daily lives.

[0003] In practical applications, AC charging piles may encounter situations where abnormalities such as circuit component failures endanger the user's charging safety. Therefore, charging piles need to have a safe control method to ensure that the AC charging pile can stop charging in time when a corresponding fault occurs during the charging process, so as to improve the safety of AC charging piles during charging and protect the personal safety of users. Summary of the Invention

[0004] This application provides an AC charging pile control method and an AC charging pile. The various aspects involved in this application will be described below.

[0005] Firstly, a control method for an AC charging pile is provided. The AC charging pile includes a sampling circuit, a relay, and a charging gun socket. Each line of the AC power supply is electrically connected to the charging gun socket through the relay, and the sampling circuit is connected to each line of the AC power supply. The method includes: when the AC charging pile is powered on, performing a self-test of the sampling circuit and a self-test of the relay in sequence; when the AC charging pile receives a charging command, performing a leakage current self-test, and closing the relay to start charging based on the result of the leakage current self-test; during the charging process, detecting the electrical energy parameters of each line through the sampling circuit; determining whether there is a fault in the AC charging pile based on the comparison results between the electrical energy parameters of each line; and when it is determined that there is a fault in the AC charging pile, disconnecting the relay to stop charging.

[0006] In one possible implementation, the sampling circuit includes multiple redundant sampling channels, each connected to a corresponding line being detected. The self-test of the sampling circuit includes: when the relay is closed, acquiring the electrical energy parameters of the line through the multiple sampling channels, including line voltage, current, and ground voltage; and determining whether any one of the multiple sampling channels is faulty based on the comparison results between the electrical energy parameters of the multiple sampling channels.

[0007] In one possible implementation, the sampling channel includes a metering chip, and the sampling circuit further includes a reference voltage source and a switching switch corresponding to the sampling channel. The metering chip is connected to the reference voltage source or the sampling channel through the switching switch. The self-test of the sampling circuit further includes: acquiring a first voltage value detected when the metering chip is connected to the reference voltage source; and determining whether the metering chip of each sampling channel is faulty based on the comparison result between the first voltage value and the reference voltage value of the reference voltage source.

[0008] In one possible implementation, the sampling circuit self-test further includes: if it is determined that the metering chip is not faulty, controlling the connection between the metering chip and the sampling channel by a switching switch, wherein the metering chip is used to obtain the power parameters of the line corresponding to the sampling channel; if it is determined that the metering chip is faulty, determining that the sampling channel corresponding to the metering chip is faulty.

[0009] In one possible implementation, the sampling circuit self-test further includes: sequentially determining whether multiple sampling channels are faulty; connecting the sampling channels that are determined to be normal among the multiple sampling channels to the corresponding lines; and removing the sampling channels that are determined to be faulty from the sampling circuit; and determining that the AC charging pile is unusable when multiple sampling channels that detect the power parameters of the same line are all faulty.

[0010] In one possible implementation, the relay self-test includes: acquiring a first switching state of the relay; switching the power supply voltage of the relay from a first voltage to a second voltage; controlling the relay to perform a switching action, and acquiring a second switching state of the relay after a first preset time; and determining whether the relay has malfunctioned based on the first switching state and the second switching state.

[0011] In one possible implementation, determining whether a relay has malfunctioned based on a first switch state and a second switch state includes: if the first switch state and the second switch state are the same, acquiring multiple third switch states of the relay multiple times within a second preset time period; if multiple consecutive switch states among the multiple third switch states are the same as the first switch state, determining that the relay has malfunctioned.

[0012] In one possible implementation, the AC charging station includes a controller and a memory, and the method further includes performing a self-test on the controller and the memory before sequentially performing a sampling circuit self-test and a relay self-test.

[0013] Secondly, an AC charging pile control device is provided. The AC charging pile includes a sampling circuit, a relay, and a charging gun socket. Each line of the AC power supply is electrically connected to the charging gun socket through the relay. The sampling circuit is connected to each line of the AC power supply. The device includes: a control unit, used to sequentially perform a sampling circuit self-test and a relay self-test when the AC charging pile is powered on; when the AC charging pile receives a charging command, it performs a leakage current self-test and closes the relay to start charging based on the result of the leakage current self-test; during the charging process, the sampling circuit detects the electrical energy parameters of each line; a processing unit, used to determine whether there is a fault in the AC charging pile based on the comparison results between the electrical energy parameters of each line; and the control unit is also used to disconnect the relay to stop charging when it is determined that there is a fault in the AC charging pile.

[0014] In one possible implementation, the sampling circuit includes multiple redundant sampling channels connected to the corresponding detected lines. The control unit is specifically used to acquire the electrical energy parameters of the lines through the multiple sampling channels when the relay is closed. The electrical energy parameters include line voltage, current, and ground voltage. The processing unit is also used to determine whether any one of the multiple sampling channels is faulty based on the comparison results between the electrical energy parameters of the multiple sampling channels.

[0015] In one possible implementation, the sampling channel includes a metering chip, and the sampling circuit further includes a reference voltage source and a switching switch corresponding to the sampling channel. The metering chip is connected to the reference voltage source or the sampling channel through the switching switch. The control unit is also used to acquire a first voltage value detected when the metering chip is connected to the reference voltage source. The processing unit is also used to determine whether the metering chip of each sampling channel is faulty based on the comparison result between the first voltage value and the reference voltage value of the reference voltage source.

[0016] In one possible implementation, the control unit is further configured to, when it is determined that the metering chip is not faulty, control the connection between the metering chip and the sampling channel via a switching switch, wherein the metering chip is used to obtain the power parameters of the line corresponding to the sampling channel; and when it is determined that the metering chip is faulty, determine that the sampling channel corresponding to the metering chip is faulty.

[0017] In one possible implementation, the control unit is further configured to sequentially determine whether a plurality of sampling channels are faulty; connect the sampling channels that are determined to be normal among the plurality of sampling channels to the corresponding lines; and remove the sampling channels that are determined to be faulty from the sampling circuit; and determine that the AC charging pile is unusable when a plurality of sampling channels that detect the power parameters of the same line are all faulty.

[0018] In one possible implementation, the control unit is further configured to acquire a first switching state of the relay; switch the power supply voltage of the relay from a first voltage to a second voltage; control the relay to perform a switching action, and acquire a second switching state of the relay after a first preset time; the processing unit is further configured to determine whether the relay has malfunctioned based on the first switching state and the second switching state.

[0019] In one possible implementation, the control unit is specifically configured to acquire multiple third switch states of the relay multiple times within a second preset time period when the first switch state and the second switch state are the same; the processing unit is further configured to determine that the relay has failed when there are multiple consecutive switch states that are the same as the first switch state among the multiple third switch states.

[0020] In one possible implementation, the AC charging station includes a controller and memory, a control unit, and a self-test for the controller and memory.

[0021] Thirdly, an AC charging pile is provided, comprising: a sampling circuit, a relay, and a charging gun socket, wherein each line of the AC power supply is electrically connected to the charging gun socket via the relay, and the sampling circuit is connected to the relay and the lines; and a controller, which is electrically connected to the sampling circuit, the relay, and the charging gun socket respectively, and the controller is used to execute the method as described in the first aspect or any possible implementation thereof.

[0022] Fourthly, a computer-readable storage medium is provided, on which a computer program is stored, the computer program including program instructions, which, when executed by a controller, cause the controller to perform the method as described in the first aspect or any possible implementation thereof.

[0023] In this embodiment, the electrical parameters of each circuit (such as each phase and neutral wire) connecting the charging gun socket to the AC power supply in the AC charging pile can be detected. Based on the comparison of the electrical parameters of each circuit, a fault in the AC charging pile can be determined. Furthermore, when a fault is detected, the relay is disconnected to stop the charging operation, thus ensuring user charging safety. Moreover, after the AC charging pile is powered on, the relay and the sampling circuit used to detect electrical parameters can perform self-tests to promptly detect faults in the relay and sampling circuit, avoiding charging safety issues caused by relay failure and preventing the failure of fault detection in the AC charging pile due to sampling circuit failure. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 This is a schematic diagram of the structure of the AC charging pile provided in the embodiments of this application;

[0026] Figure 2 This is a flowchart illustrating the AC charging pile control method provided in the embodiments of this application;

[0027] Figure 3 This is a schematic diagram of the sampling circuit provided in an embodiment of this application;

[0028] Figure 4 This is another schematic diagram of the sampling circuit provided in the embodiments of this application;

[0029] Figure 5 This is another schematic flowchart of the AC charging pile control method provided in the embodiments of this application;

[0030] Figure 6 This is another schematic flowchart of the AC charging pile control method provided in the embodiments of this application;

[0031] Figure 7 This is another schematic flowchart of the AC charging pile control method provided in the embodiments of this application;

[0032] Figure 8 This is another schematic flowchart of the AC charging pile control method provided in the embodiments of this application;

[0033] Figure 9 This is another schematic flowchart of the AC charging pile control method provided in the embodiments of this application;

[0034] Figure 10 This is a schematic diagram of the AC charging pile control device provided in the embodiments of this application. Detailed Implementation

[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0036] With the development of new energy vehicles, AC charging piles are rapidly becoming a part of people's daily lives.

[0037] In practical applications, AC charging piles may encounter situations where abnormalities such as circuit component failures endanger the user's charging safety. Therefore, charging piles need to have a safe control method to ensure that the AC charging pile can stop charging in time when a corresponding fault occurs during the charging process, so as to improve the safety of AC charging piles during charging and protect the personal safety of users.

[0038] To address the aforementioned issues, this application provides an AC charging pile control method. This method enables the AC charging pile to receive a charging command, perform a leakage current self-check, and close a relay to begin charging based on the self-check result. During charging, the method detects the electrical parameters of each circuit (such as each phase and the neutral wire) connecting the charging gun socket to the AC power supply within the AC charging pile. By comparing the electrical parameters of each circuit, it determines whether a fault exists in the AC charging pile. Furthermore, if a fault is detected, the relay is disconnected to stop the charging operation, thus ensuring user charging safety. Moreover, after the AC charging pile is powered on, self-checks are performed on the relay and the sampling circuit used to detect electrical parameters, allowing for timely detection of relay and sampling circuit faults. This avoids charging safety issues caused by relay failures and prevents the failure of fault detection due to sampling circuit failures.

[0039] As an example, taking AC charging piles as single-phase or split-phase charging piles as an example, such as... Figure 1 As shown, an AC charging station may include a controller, such as a microcontroller unit (MCU), relays, a charging gun socket, and a sampling circuit. The controller can be electrically connected to the relays, the charging gun socket, and the sampling circuit. The relays may include a first relay and a second relay. The first phase of the AC power supply can be connected to the charging gun socket via the first relay to form a first-phase circuit. The second phase (or neutral) of the AC power supply can be connected to the charging gun socket via the second relay to form a second-phase (or neutral) circuit. The sampling circuit can be connected to each line of the AC power supply to detect the electrical energy of the first-phase circuit and the second-phase (or neutral) circuit to obtain the corresponding electrical energy parameters, such as current detection and line voltage (or phase voltage). It can also detect the ground voltage of the AC power supply and the charging gun socket to obtain the grounding voltage.

[0040] Of course, the above is only an exemplary description of the structure of AC charging piles. In practical applications, AC charging piles may also include other components (such as memory, leakage protection devices, etc.) and circuits, which are not limited here.

[0041] In this embodiment, after the AC charging pile is powered on, a sampling circuit self-test and a relay self-test can be performed sequentially. When the AC charging pile receives a charging command, performs a leakage current self-test (e.g., a leakage current self-test of the AC charging pile via a leakage current protection device), and closes the relay to start charging based on the leakage current self-test result, the electrical parameters of each circuit connected to the AC power supply in the AC charging pile, such as current, line voltage, and ground voltage, can be detected first during the charging process. Then, based on the comparison results between the electrical parameters of each circuit, it is determined whether there is a fault in the AC charging pile. If a fault is detected, the relay is disconnected to stop the charging operation of the AC charging pile.

[0042] The sampling circuit self-test performed after the AC charging pile is powered on can include a self-test before the AC charging pile closes the relay to start charging, or a self-test when the AC charging pile closes the relay to start charging. The relay self-test performed after the AC charging pile is powered on can be a self-test performed on the relay when it performs a corresponding action, such as when the relay closes.

[0043] The following description, using a split-phase charging pile as an example, will illustrate the control method for AC charging piles provided in this application.

[0044] like Figure 2 As shown, in the AC charging pile control method provided in this application embodiment, after detecting the power parameters of each line through the sampling circuit during the AC charging process, the following steps S201-S203 can be included.

[0045] S201. Obtain the electrical energy parameters of each circuit connecting the charging gun socket and the AC power source in the AC charging pile.

[0046] This involves acquiring the electrical energy parameters of each line during charging operations at an AC charging station. These parameters may include current, line voltage, and grounding voltage.

[0047] In the embodiments of this application, the electrical energy parameters of each circuit can be detected by a sampling circuit, such as the first electrical energy parameter of the first phase circuit and the second electrical energy parameter of the second phase circuit in a split-phase charging pile, or the first electrical energy parameter of the first phase circuit and the second electrical energy parameter of the neutral line circuit in a single-phase charging pile. The sampling circuit can be a detection circuit with current and voltage detection functions, and there is no limitation herein.

[0048] For example, the circuit may include multiple redundant sampling channels, each connected to a corresponding detection line. Optionally, the sampling channel may include a metering chip.

[0049] Based on the foregoing example, as one possible implementation, the sampling circuit may include metering chips (e.g., BL0942 energy metering chips) for detecting the current, line voltage, and ground voltage of each circuit (e.g., the first phase circuit and the second phase circuit). Each metering chip connected to the corresponding detected circuit can form a corresponding sampling channel, and the corresponding energy parameters can be detected through the metering chips.

[0050] In this embodiment of the application, the sampling circuit can also use each metering chip corresponding to the detection of the power parameters of each line as the main metering chip, and set up a corresponding backup metering chip for each main metering chip to realize the backup power detection capability, thereby obtaining multiple mutually redundant sampling channels, making the sampling circuit more reliable in detecting the power parameters of each line.

[0051] For example, taking a sampling circuit used to detect the electrical energy parameters of the first and second phase circuits in a split-phase charging pile as an example, such as... Figure 3 As shown, the sampling circuit may include a first metering chip, a second metering chip, a third metering chip, and a fourth metering chip, all electrically connected to the controller. The first metering chip serves as the main metering chip, forming a first sampling channel for detecting the energy parameters of the first phase circuit. The second metering chip serves as the main metering chip, forming a second sampling channel for detecting the energy parameters of the second phase circuit. The third metering chip serves as a backup metering chip for the first metering chip, forming a third sampling channel that can also be used to detect the energy parameters of the first phase circuit. The fourth metering chip serves as a backup metering chip for the second metering chip, forming a fourth sampling channel that can also be used to detect the energy parameters of the second phase circuit. Thus, the first and third sampling channels are redundant, as are the second and fourth sampling channels. When the first metering chip fails, the third metering chip can continue to detect the voltage and current of the first phase circuit. When the second metering chip fails, the fourth metering chip can continue to detect the voltage and current of the second phase circuit. Therefore, the reliability of the sampling circuit can be improved through multiple redundant sampling channels.

[0052] Optionally, the sampling circuit can be equipped with a reference voltage source and a switching switch corresponding to the sampling channel. The switching switch can be used to control the connection of the metering chip of the sampling channel to the reference voltage source or to the sampling channel.

[0053] For example, a switch can be used to connect each metering chip to its corresponding sampling channel for detecting the electrical energy parameters of the corresponding line, and to connect it to a reference voltage source. For instance, taking the first metering chip as an example... Figure 4As shown, the first metering chip can be controlled by a switch corresponding to the first sampling channel of the first metering chip to connect to a reference voltage source or to the first sampling channel for detecting the power parameters of the corresponding line (such as the first phase circuit).

[0054] Based on the foregoing examples, in this embodiment of the application, when performing a self-test on the sampling circuit, the first voltage value detected when the metering chip is connected to the reference voltage source can be obtained, and then the comparison result between the first voltage value and the reference voltage value of the reference voltage source can be used to determine whether each metering chip is faulty.

[0055] For example, before the AC charging pile closes the relay to start charging, a pre-operation self-test can be performed on the sampling circuit. This could involve comparing the voltage value detected by each metering chip when connected to a reference voltage source (which can be called the first voltage value) with the reference voltage value of the reference voltage source to determine if any metering chips are faulty. For instance, for each metering chip, a self-test could be performed separately... Figure 5 The self-test process is shown below. (Refer to...) Figure 5 As shown, the metering chip can first be switched to connect to the reference voltage source, and the voltage value V detected by the metering chip can be acquired. It is then determined whether the voltage value V is acquired. If not, the number of times V is not acquired is recorded. It is then determined whether the number of times V is not acquired is greater than or equal to a first threshold (e.g., 3 times, 2 times, or any natural number greater than or equal to 1). If not, the voltage value V detected by the metering chip is acquired again. If so, it can be determined that the metering chip has a communication fault (i.e., the metering chip is faulty). When the voltage value V detected by the metering chip is acquired, it is determined whether the difference between the acquired voltage value V and the reference voltage value Vref of the reference voltage source is greater than a second threshold (e.g., 5% of the reference voltage value). If it is, the number of faults is recorded, and it is then determined whether the number of faults is greater than or equal to a third threshold (this threshold can be any natural number greater than or equal to 1). If not, the voltage value V detected by the metering chip is acquired again. If so, it can be determined that the metering chip has a detection fault (i.e., the metering chip is faulty). In this embodiment of the application, the charging operation can be allowed to proceed only after it is determined that there is no faulty metering chip.

[0056] For example, if it is determined that the metering chip is not faulty, a switch can be used to control the connection between the metering chip and the corresponding sampling channel for detecting the power parameters of the circuit corresponding to the sampling channel. If it is determined that the metering chip is faulty, it is determined that the sampling channel corresponding to the faulty metering chip is faulty.

[0057] In some other possible implementations, when the sampling circuit includes multiple redundant sampling channels, the self-test of the sampling circuit may also include obtaining the power parameters of the corresponding lines through multiple sampling channels when the relay is closed, and then determining whether any one of the sampling channels is faulty based on the comparison results between the power parameters of the multiple sampling channels.

[0058] For example, taking a sampling circuit comprising multiple redundant sampling channels consisting of main metering chips corresponding to the detection of electrical energy parameters for each line and corresponding backup metering chips for each main metering chip, when the AC charging pile closes its relay to start charging, a self-test can be performed during operation of the sampling circuit based on the comparison between the line voltage value of the corresponding line detected by the main metering chip (which can be called the second voltage value) and the line voltage value of the corresponding line detected by the backup metering chip (which can be called the third voltage value). This allows for the determination of whether a faulty metering chip exists, i.e., whether any one of the multiple sampling channels is faulty. Therefore, when a faulty metering chip is detected, further analysis can be performed based on the aforementioned... Figure 5 The same method is used to perform self-tests on each metering chip to identify the faulty metering chip.

[0059] For example, such as Figure 6 As shown, when the AC charging pile closes the relay to start charging, the self-test of the sampling circuit can be performed by first acquiring the voltage values ​​detected by each metering chip. Then, it is determined whether the difference between the voltage value V1 detected by the main metering chip and the voltage value V2 detected by the backup metering chip is greater than a fourth threshold (such as 10% of the backup metering chip). If it is greater, the number of faults is recorded, and it is determined whether the number of faults is greater than or equal to a fifth threshold (this threshold can be any natural number greater than or equal to 1). If not, the voltage values ​​detected by each metering chip are acquired again. If so, it can be determined that there is a faulty metering chip, and further testing can be performed based on the aforementioned... Figure 5 The method shown performs a self-test on each metering chip to identify the faulty chip. Therefore, the metering chips that do not fail the self-test can be used to continue monitoring the corresponding electrical parameters, improving the reliability of the AC charging pile during the charging process.

[0060] It should be noted that in some other possible implementations of the embodiments of this application, the pre-operation self-test and runtime self-test of the sampling circuit in the foregoing example can also be based on the detected current, and the specific self-test method is the same as the voltage-based self-test method in the foregoing example. That is, the pre-operation self-test and runtime self-test of the sampling circuit can be performed based on either voltage or current, using the method described in the foregoing example.

[0061] As an example, if multiple redundant sampling channels are included, the results of the sampling circuit self-test can be used to determine whether multiple sampling channels are faulty. The sampling channels that are determined to be normal are connected to the corresponding lines to detect the power parameters of the corresponding lines. The sampling channels that are determined to be faulty are removed from the sampling circuit. When multiple sampling channels that detect the power parameters of the same line are all faulty, it is determined that the AC charging pile is unusable.

[0062] For example, taking a sampling circuit comprising multiple redundant sampling channels consisting of main metering chips corresponding to the detection of power parameters for each line and corresponding backup metering chips for each main metering chip, the sampling circuit can, based on the results of its self-test, eliminate faulty metering chips when at least one normal metering chip exists for each line, and use normal metering chips to detect the power parameters of the corresponding line. If no normal metering chip exists for at least one line, it can be determined that the power detection for that line has failed, and the relay can be disconnected to stop the AC charging station from charging. A fault alarm can also be triggered to determine that the AC charging station is unavailable.

[0063] For example, taking the sampling circuit in a split-phase charging pile, the sampling circuit includes a first sampling channel composed of a main metering chip (such as a first metering chip) for detecting the energy parameters of the first phase circuit and a third sampling channel composed of a backup metering chip (such as a third metering chip), and also includes a second sampling channel composed of a main metering chip (such as a second metering chip) for detecting the energy parameters of the second phase circuit and a fourth sampling channel composed of a backup metering chip (such as a fourth metering chip). Then... Figure 7As shown, after the sampling circuit self-tests to determine whether each metering chip is faulty, it can determine whether the first metering chip is normal based on the self-test results. If the first metering chip is normal, it is used to detect the power parameters of the first phase circuit. If the first metering chip is abnormal (i.e., faulty), it checks whether the third metering chip is normal. If the third metering chip is normal, it is used to detect the power parameters of the first phase circuit. If the third metering chip is abnormal (i.e., faulty), it can be determined that the detection of the power parameters of the first phase circuit has failed, thus triggering a fault alarm and determining that the charging pile is unusable. Similarly, it can check whether the second metering chip is normal. If the second metering chip is normal, it is used to detect the power parameters of the second phase circuit. If the second metering chip is abnormal (i.e. faulty), it checks whether the fourth metering chip is normal. If the fourth metering chip is normal, it is used to detect the power parameters of the second phase circuit. If the fourth metering chip is abnormal (i.e. faulty), it can be determined that the detection of the power parameters of the second phase circuit has failed, thus triggering a fault alarm and determining that the charging pile is unusable. Of course, if it is determined that the charging pile is unusable, the relay can be disconnected to stop the AC charging pile from charging.

[0064] S202. Based on the comparison results of the power parameters of each route, determine whether there is a fault in the AC charging pile.

[0065] Normally, under normal circuit conditions, the electrical parameters of each circuit, such as voltage and current, will be relatively close with minimal differences. Therefore, by comparing the electrical parameters of each circuit, it is possible to determine whether an AC charging station is faulty.

[0066] For example, when the difference between the electrical parameters of each circuit is greater than a first preset difference (this is not limited and can be set according to actual conditions), it can be determined that the AC charging pile has a power failure fault (such as voltage failure, current failure, etc.). Alternatively, when the electrical parameters of each circuit are close, i.e., the difference between them is less than a preset difference, if the electrical parameters do not conform to a first preset range (this is not limited and can be set according to actual conditions), it can be determined that the AC charging pile has a power abnormality fault (such as overvoltage abnormality, undervoltage abnormality, overcurrent abnormality, undercurrent abnormality, etc.). Specifically, when the difference between the electrical parameters of each circuit is equal to the first preset difference, it can be determined that the AC charging pile has a power failure fault; alternatively, it can be considered that the electrical parameters of each circuit are close, which is not limited and can be set according to actual conditions in practical applications. The electrical parameters not conforming to the first preset range can mean that any one of the electrical parameters of each circuit does not conform to the first preset range, or that all the electrical parameters of each circuit do not conform to the first preset range. In practical applications, settings can be adjusted according to specific circumstances.

[0067] In this embodiment of the application, after obtaining the power parameters of each line, it can be determined whether the power parameters of each line have been obtained (or received). If the power parameters of all lines are not received (i.e., the power parameters of at least one line are not received), it can be determined that there is a communication failure in the AC charging pile.

[0068] For example, taking a split-phase charging column, the sampling circuit detects the first energy parameter of the first phase circuit and the second energy parameter of the second phase circuit. The energy parameter is current, and the first preset range is [0, overcurrent threshold]. Then, as... Figure 8 As shown, after acquiring the first current I1 and the second current I2, it is determined whether data has been acquired. If no data is acquired, the number of times data was not acquired is recorded. It is then determined whether the number of times data was not acquired is greater than or equal to a first preset number (e.g., 3 times, 2 times, or any natural number greater than or equal to 1). If not, the first current I1 and the second current I2 are acquired again. If so, a communication fault can be identified. When data is acquired, it is determined whether the difference between the acquired first current I1 and the second current I2 is greater than a first preset difference. If the difference is greater than the first preset difference, the number of faults is recorded. It is then determined whether the number of faults is greater than or equal to a second preset number (which can be any natural number greater than or equal to 1). If not, the first current I1 and the second current I2 are acquired again. If so, a power failure fault (e.g., a current failure fault) can be identified. When the difference between the first current I1 and the second current I2 is less than or equal to a first preset difference, it can be determined whether the first current I1 and the second current I2 are greater than an overcurrent threshold. If they are, the number of faults is recorded, and it is determined whether the number of faults is greater than or equal to a third preset number (which can be any natural number greater than or equal to 1). If not, the first current I1 and the second current I2 are reacquired. If they are, it can be determined that there is an abnormal power fault (such as an overcurrent fault). Therefore, when a fault is determined in the AC charging pile, the relay can be disconnected. Specifically, determining whether the first current I1 and the second current I2 are greater than the overcurrent threshold can be done if either the first current or the second current is greater than the overcurrent threshold, or if both the first current and the second current are greater than the overcurrent threshold. In practical applications, this can be set according to the actual situation.

[0069] Of course, the above is only an example for when the electrical energy parameter is current. It can also be used as a reference when the electrical energy parameter is line voltage or ground voltage. Figure 8 The method shown is used to determine whether an AC charging station is faulty. The implementation method is similar and will not be described in detail here.

[0070] S203. When it is determined that there is a fault in the AC charging pile, disconnect the relay to stop charging.

[0071] The faults that may exist in AC charging piles include communication failures, power failures, and abnormal power supply. Of course, if a self-test of the sampling circuit or a relay is performed during the charging process, and a fault is found in the sampling circuit or a relay is performed, the relay can be disconnected to stop charging.

[0072] Based on the AC charging pile control method provided in this application, the relay can also be self-tested. In the embodiments of this application, the self-test of the relay can be performed based on the switching state of the relay before and after performing the switching action.

[0073] For example, such as Figure 9 As shown, the relay self-test may include the following S901-S904.

[0074] S901, Obtain the first switching state of the relay.

[0075] For example, the switching state of a relay can be obtained through the feedback pin configured on the relay.

[0076] S902, Convert the power supply voltage of the relay from the first voltage to the second voltage.

[0077] This can prevent malfunctions when relay communication is abnormal.

[0078] S903, control the relay to perform a switching action, and obtain the second switching state of the relay after a first preset time.

[0079] S904. Determine whether the relay has malfunctioned based on the first switch state and the second switch state.

[0080] For example, if the first switch state and the second switch state are the same, it can be determined that the relay failed to successfully perform the switching action, thus indicating that the relay has malfunctioned.

[0081] For example, when the first switch state and the second switch state are the same, multiple third switch states of the relay can be acquired multiple times within a second preset time period. Therefore, if multiple consecutive third switch states are identical to the first switch state, a relay malfunction is determined. In this way, by acquiring multiple third switch states, it is possible to further determine whether the relay has successfully executed the switching action, thus avoiding misjudgments about whether the relay has malfunctioned.

[0082] In some possible implementations, before the AC charging pile performs self-tests on the sampling circuit and relays, it can also perform self-tests on the controller and memory. If a fault is reported during the self-test, a fault alarm can be triggered, confirming that the charging pile is unusable. Alternatively, while the AC charging pile is closing the relay to begin charging, it can also periodically perform self-tests on the controller and memory. If a fault is reported during the self-test, a fault alarm can be triggered, confirming that the charging pile is unusable, and the relay can be disconnected to stop the AC charging pile's charging operation. For specific methods of self-testing the AC charging pile's controller and memory, please refer to relevant technologies; detailed explanations are not provided here.

[0083] The AC charging pile control method provided in this application can detect the electrical energy parameters of each circuit (such as each phase and the neutral wire) connecting the charging gun socket to the AC power supply in the AC charging pile. Based on the comparison of the electrical energy parameters of each circuit, it can determine whether the AC charging pile has a fault. Furthermore, when a fault is detected in the AC charging pile, the relay is disconnected to stop the charging operation, thereby ensuring user charging safety. Moreover, after the AC charging pile is powered on, the relay and the sampling circuit used to detect electrical energy parameters can be self-tested to promptly detect faults in the relay and sampling circuit, avoiding charging safety issues caused by relay failure and preventing the failure of fault detection in the AC charging pile due to sampling circuit failure.

[0084] The method embodiments of this application have been described in detail above with reference to the accompanying drawings. The apparatus embodiments of this application will now be described in detail. It should be understood that the descriptions of the apparatus embodiments correspond to the descriptions of the method embodiments; therefore, any parts not described in detail can be referred to the foregoing method embodiments.

[0085] This application also provides an AC charging pile control device, see reference. Figure 10 As shown, it includes: a control unit 1001, used to sequentially perform sampling circuit self-test and relay self-test after the AC charging pile is powered on; when the AC charging pile receives a charging command, it performs leakage current self-test and closes the relay to start charging based on the result of the leakage current self-test; during the charging process, the sampling circuit detects the power parameters of each line; a processing unit 1002, used to determine whether there is a fault in the AC charging pile based on the comparison results between the power parameters of each line; the control unit 1001 is also used to disconnect the relay to stop charging when it is determined that there is a fault in the AC charging pile.

[0086] In one possible implementation, the sampling circuit includes multiple redundant sampling channels, each connected to a corresponding detected line. The control unit 1001 is specifically used to acquire the electrical energy parameters of the line through the multiple sampling channels when the relay is closed. The electrical energy parameters include line voltage, current, and ground voltage. The processing unit 1002 is also used to determine whether any one of the multiple sampling channels is faulty based on the comparison results between the electrical energy parameters of the multiple sampling channels.

[0087] In one possible implementation, the sampling channel includes a metering chip, and the sampling circuit further includes a reference voltage source and a switching switch corresponding to the sampling channel. The metering chip is connected to the reference voltage source or the sampling channel through the switching switch. The control unit 1001 is also used to acquire a first voltage value detected when the metering chip is connected to the reference voltage source. The processing unit 1002 is also used to determine whether the metering chip of each sampling channel is faulty based on the comparison result between the first voltage value and the reference voltage value of the reference voltage source.

[0088] In one possible implementation, the control unit 1001 is further configured to, when it is determined that the metering chip is not faulty, control the connection between the metering chip and the sampling channel via a switching switch, wherein the metering chip is used to obtain the power parameters of the line corresponding to the sampling channel; and when it is determined that the metering chip is faulty, determine that the sampling channel corresponding to the metering chip is faulty.

[0089] In one possible implementation, the control unit 1001 is further configured to sequentially determine whether a plurality of sampling channels are faulty; connect the sampling channels that are determined to be normal among the plurality of sampling channels to the corresponding lines; and remove the sampling channels that are determined to be faulty from the sampling circuit; and determine that the AC charging pile is unusable when a plurality of sampling channels that detect the power parameters of the same line are all faulty.

[0090] In one possible implementation, the control unit 1001 is further configured to acquire a first switching state of the relay; switch the power supply voltage of the relay from a first voltage to a second voltage; control the relay to perform a switching action, and acquire a second switching state of the relay after a first preset time; the processing unit 1002 is further configured to determine whether the relay has malfunctioned based on the first switching state and the second switching state.

[0091] In one possible implementation, the control unit 1001 is specifically used to acquire multiple third switch states of the relay multiple times within a second preset time when the first switch state and the second switch state are the same; the processing unit 1002 is further used to determine that the relay has failed when there are multiple consecutive switch states that are the same as the first switch state among the multiple third switch states.

[0092] In one possible implementation, the AC charging station includes a controller and memory, and a control unit 1001 is also used to perform self-tests on the controller and memory.

[0093] This application also provides an AC charging pile. The AC charging pile includes: a sampling circuit, a relay, and a charging gun socket. Each circuit of the AC power supply is electrically connected to the charging gun socket via the relay. The sampling circuit is connected to the relay and the circuits. A controller is electrically connected to the sampling circuit, the relay, and the charging gun socket, and the controller is used to execute the methods described in the foregoing embodiments.

[0094] This application also provides a computer-readable storage medium storing a computer program thereon. The computer program includes program instructions, which, when executed by a controller, cause the controller to perform the method described in the foregoing embodiments.

[0095] It should be understood that, in the embodiments of this application, determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information.

[0096] It should be understood that in the embodiments of this application, "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean that B is determined solely based on A; B can also be determined based on A and / or other information.

[0097] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0098] It should be understood that, in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0100] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0101] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0102] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can read or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs, DVDs) or semiconductor media (e.g., solid-state disks, SSDs) etc.

[0103] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A control method for an AC charging pile, characterized in that, The AC charging pile includes a sampling circuit, a relay, and a charging gun socket. Each AC power line is electrically connected to the charging gun socket via the relay. The sampling circuit is connected to the power lines. The method includes: When the AC charging pile is powered on, the sampling circuit self-test and the relay self-test are performed in sequence. When the AC charging pile receives a charging command, it performs a leakage current self-test and closes the relay to start charging based on the result of the leakage current self-test. During the charging process, the sampling circuit detects the power parameters of each line. Based on the comparison results between the power parameters of each of the aforementioned lines, it is determined whether the AC charging pile has a fault; When a fault is detected in the AC charging station, the relay is disconnected to stop charging.

2. The method according to claim 1, characterized in that, The sampling circuit includes multiple redundant sampling channels, each sampling channel being connected to a corresponding detection line. The self-test of the sampling circuit includes: When the relay is closed, the electrical energy parameters of the line are obtained through the multiple sampling channels, including line voltage, current, and ground voltage. Based on the comparison results between the power parameters of the multiple sampling channels, it is determined whether any one of the multiple sampling channels is faulty.

3. The method according to claim 2, characterized in that, The sampling channel includes a metering chip, and the sampling circuit further includes a reference voltage source and a switching switch corresponding to the sampling channel. The metering chip is connected to the reference voltage source or the sampling channel through the switching switch. The self-test of the sampling circuit also includes: The first voltage value detected when the metering chip is connected to the reference voltage source is obtained; Based on the comparison between the first voltage value and the reference voltage value of the reference voltage source, it is determined whether the metering chip of each sampling channel is faulty.

4. The method according to claim 3, characterized in that, The self-test of the sampling circuit also includes: If it is determined that the metering chip is not faulty, the metering chip is connected to the sampling channel by the switching switch, and the metering chip is used to obtain the power parameters of the line corresponding to the sampling channel; If it is determined that the metering chip is faulty, the sampling channel corresponding to the metering chip is also faulty.

5. The method according to claim 4, characterized in that, The self-test of the sampling circuit also includes: Sequentially determine whether any of the multiple sampling channels are faulty; Connect the sampling channels that are determined to be normal among the plurality of sampling channels to the corresponding lines; and remove the sampling channels that are determined to be faulty from the sampling circuit. If multiple sampling channels for detecting the power parameters of the same line are faulty, the AC charging pile is determined to be unusable.

6. The method according to claim 1, characterized in that, The relay self-test includes: Obtain the first switching state of the relay; The power supply voltage of the relay is converted from a first voltage to a second voltage; The relay is controlled to perform a switching action, and the second switching state of the relay is obtained after a first preset time. Based on the first switch state and the second switch state, determine whether the relay has malfunctioned.

7. The method according to claim 6, characterized in that, The step of determining whether the relay has malfunctioned based on the first switch state and the second switch state includes: When the first switch state and the second switch state are the same, multiple third switch states of the relay are acquired multiple times within a second preset time period; If multiple consecutive switch states among the plurality of third switch states are the same as the first switch state, it is determined that the relay has malfunctioned.

8. The method according to any one of claims 1 to 7, characterized in that, The AC charging pile includes a controller and memory. Before sequentially performing the sampling circuit self-test and relay self-test, the method further includes: Perform a self-test on the controller and memory.

9. An AC charging pile, characterized in that, include: The sampling circuit, relay, and charging gun socket are provided. Each AC power line is electrically connected to the charging gun socket through the relay. The sampling circuit is connected to the relay and the lines. The controller is electrically connected to the sampling circuit, the relay, and the charging gun socket, respectively, and the controller is used to perform the method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, It stores a computer program, which includes program instructions that, when executed by the controller, cause the controller to perform the method as described in any one of claims 1-8.