A voltage and current adaptive monitoring method for a vehicle-mounted charging pile
By using an adaptive voltage and current monitoring method, the compatibility issue of single-phase and three-phase use of charging piles was solved, enabling adaptive monitoring of electric vehicle charging piles and improving the utilization rate and anti-interference capability of charging piles.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2026-03-24
AI Technical Summary
Existing charging piles are difficult to adapt to the single-phase and three-phase charging needs of electric vehicles, resulting in low utilization of charging piles and poor anti-interference ability in voltage and current fault detection.
An adaptive voltage and current monitoring method is adopted. The voltage and current status of phases L1, L2, and L3 are monitored by an MCU controller, faults are identified and handled in a graded manner, and adaptive voltage and current monitoring is achieved.
It improves the compatibility and anti-interference capabilities of charging piles, enables more precise fault detection, and increases the utilization rate of charging piles.
Smart Images

Figure CN116022021B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the field of automobile electronics, in particular to a voltage and current adaptive monitoring method for a vehicle-mounted charging pile. BACKGROUND
[0002] At present, mainstream charging piles on the market are divided into single-phase charging piles and three-phase charging piles, the single-phase charging pile only supports input and output of L1 phase and N phase, and the three-phase charging pile supports input and output of L1 phase, L2 phase, L3 phase and N phase. However, many installation environments only support single-phase power input, and some electric vehicles also only support single-phase current input charging, so that the charging pile with three-phase configuration cannot be used. At present, each vehicle factory customizes the corresponding single-phase or three-phase charging pile according to the vehicle type, and it is difficult to make a charging pile adapt to all charging requirements of the vehicle end, which causes waste of charging pile investment to some extent. Meanwhile, the voltage fault and current fault detection are relatively simple, and in extreme environments, once a false alarm occurs, the charging pile will stop charging, so that the anti-interference ability of the charging pile is poor. Therefore, it is urgent to develop a voltage and current adaptive monitoring method for a vehicle-mounted charging pile to solve the single-phase and three-phase use compatibility problem of the electric vehicle charging pile, so as to maximize the utilization rate of the charging pile. SUMMARY
[0003] The application aims to provide a voltage and current adaptive monitoring method for a vehicle-mounted charging pile. The application solves the single-phase and three-phase use compatibility problem of the electric vehicle charging pile, can adapt to all charging requirements of the vehicle end, and has good anti-interference ability.
[0004] The technical scheme of the application is a voltage and current adaptive monitoring method for a vehicle-mounted charging pile, comprising the following steps:
[0005] Step S1, the charging pile MCU controller is powered on and started, first makes the voltage monitoring module enter an idle mode, waits for the initialization of each module of the charging pile system, then makes the voltage monitoring module enter a self-checking mode, detects the input mode of the input voltage, and finally makes the voltage monitoring module enter a normal mode;
[0006] Step S2, three channels corresponding to L1 phase, L2 phase and L3 phase are set, a voltage configuration table is defined according to the three channels, the voltage state of L1, L2 and L3 phases is monitored by the MCU controller, and when the voltage is abnormal, the corresponding fault is identified and reported;
[0007] Step S3, the working mode of the current monitoring module is judged, when the current monitoring module is in the idle mode, waits for the initialization of each module of the charging pile system, and then makes the current monitoring module enter a waiting mode;
[0008] Step S4, when the current monitoring module enters the waiting mode, first wait for the voltage monitoring module to complete self-checking, and then make the current monitoring module enter the normal mode;
[0009] Step S5, when the current monitoring module enters the normal mode, confirm the output mode of the charging current at the vehicle end when the charging pile is charging;
[0010] Step S6, three channels are set, respectively corresponding to L1 phase, L2 phase and L3 phase, a current configuration table is defined according to the three channels, the current state of L1, L2 and L3 phases is monitored by the MCU controller, when the current is abnormal, the corresponding fault is identified and reported;
[0011] Step S7, according to the input mode of the voltage and the output mode of the current, the voltage and the current of each channel are monitored adaptively, and the reported voltage and current faults are processed in stages.
[0012] Compared with the prior art, the beneficial effects of the present application are reflected in that: when the charging pile is started, the input mode of the voltage is first confirmed by the self-checking of the voltage monitoring module, then the output mode of the charging current at the vehicle end when the charging pile is charging is confirmed by judging the working mode of the current monitoring module, at the same time, the voltage configuration table and the current configuration table are defined in three channels, the voltage and current faults are monitored and identified at any time, finally, according to the input mode of the voltage and the output mode of the current, the voltage and the current of each channel are monitored adaptively, and the faults are processed differently according to the severity, the single-phase and three-phase use compatibility problem of the electric vehicle charging pile is solved, the detection of the voltage fault and the current fault is more accurate, and the charging pile has strong anti-interference ability.
[0013] The foregoing voltage and current adaptive monitoring method of a vehicle-mounted charging pile, wherein the step S1 specifically comprises the following sub-steps:
[0014] S101, the voltage monitoring module of the MCU controller first enters the idle mode, then judges whether the voltage monitoring module state is opened and the system initialization is ready, if the voltage monitoring module state is opened and the system modules are initialized, enters S102, otherwise, enters step S3;
[0015] S102, the MCU controller sets the voltage input mode effective state as a single-phase input mode, the voltage monitoring module enters the self-checking mode, and enters S103;
[0016] S103, in the self-checking mode, the voltage input mode detection time is added by 1 in each period task, if the voltage input mode detection time is greater than or equal to the voltage input mode detection timeout time, enters S106, otherwise, enters S104;
[0017] S104, the MCU controller reads the effective value of the L2 and L3 input voltage, if the L2 input voltage effective value and the L3 input voltage effective value are both greater than the input voltage existing threshold value, the voltage input mode temporary state is three-phase input mode; otherwise, the voltage input mode temporary state is single-phase input mode; enter S105;
[0018] S105, filter the state of the voltage input mode, if the voltage input mode temporary state is three-phase input mode, and the duration is greater than or equal to the input existing filtering time, set the voltage input mode effective state to three-phase input mode; if the voltage input mode temporary state is single-phase input mode, and the duration is greater than or equal to the input existing filtering time, set the voltage input mode effective state to single-phase input mode; enter S106;
[0019] S106, set the voltage input mode self-checking work to be completed, enter S107;
[0020] S107, if the voltage input mode effective state is single-phase input mode, set the L1 phase voltage detection enable calibration quantity to 1, set the L2 phase voltage detection enable calibration quantity to 0, and set the L3 phase voltage detection enable calibration quantity to 0; if the voltage input mode effective state is three-phase input mode, set the L1 phase voltage detection enable calibration quantity to 1, set the L2 phase voltage detection enable calibration quantity to 1, and set the L3 phase voltage detection enable calibration quantity to 1; enter S108;
[0021] S108, the voltage monitoring module enters the normal mode, and enters step S2.
[0022] In the foregoing voltage and current adaptive monitoring method of the vehicle-mounted charging pile, the input voltage existing threshold value of the L2 phase and the L3 phase is 150V; the input voltage existing filtering time of the L2 phase and the L3 phase is 0.5 seconds; and the voltage input mode detection timeout time is 5 seconds.
[0023] In the foregoing voltage and current adaptive monitoring method of the vehicle-mounted charging pile, the step S2 specifically includes the following substeps:
[0024] S201, the voltage monitoring module of the MCU controller first judges whether the voltage monitoring module state is started, if the voltage monitoring module state is started, enter S202; otherwise, enter S208;
[0025] S202, divide into 3 channels, channel serial number 0 corresponds to the L1 phase, channel serial number 1 corresponds to the L2 phase, and channel serial number 2 corresponds to the L3 phase; the channel serial number initial value is 0; define a voltage configuration table according to the 3 channels, the voltage configuration table includes each phase voltage detection enable calibration quantity address and an interface for obtaining the corresponding channel voltage effective value; if the channel serial number is less than 3, enter S203; otherwise, enter S209;
[0026] S203, read the phase voltage detection enable calibration quantity address data corresponding to the current channel sequence number in the voltage configuration table, judge whether the phase voltage detection enable calibration quantity is 1, if it is 1, enter S204; if it is not 1, enter S207;
[0027] S204, read the interface of the effective voltage value corresponding to the current channel sequence number in the voltage configuration table, obtain the current channel effective voltage value, if the effective voltage value of the corresponding channel is greater than or equal to the entering one-level overvoltage fault threshold, set the corresponding one-level overvoltage fault temporary state to 1; if the effective voltage value of the corresponding channel is less than the exiting one-level overvoltage fault threshold, set the corresponding one-level overvoltage fault temporary state to 0; if the effective voltage value of the corresponding channel is less than the entering one-level overvoltage fault threshold and greater than or equal to the exiting one-level overvoltage fault threshold, judge whether the corresponding one-level overvoltage fault effective state is 0, if it is 0, set the corresponding one-level overvoltage fault temporary state to 0;
[0028] Further filter the state of the one-level overvoltage fault, if the one-level overvoltage fault temporary state is 1 and the duration is greater than or equal to the entering one-level overvoltage fault filtering time, set the corresponding one-level overvoltage fault effective state to 1, and report the corresponding fault effective state to the error processing module; if the one-level overvoltage fault temporary state is 0 and the duration is greater than or equal to the exiting one-level overvoltage fault filtering time, set the corresponding one-level overvoltage fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S205;
[0029] S205, if the effective voltage value of the corresponding channel is greater than or equal to the entering two-level overvoltage fault threshold, set the corresponding two-level overvoltage fault temporary state to 1; if the effective voltage value of the corresponding channel is less than the exiting two-level overvoltage fault threshold, set the corresponding two-level overvoltage fault temporary state to 0; if the effective voltage value of the corresponding channel is less than the entering two-level overvoltage fault threshold and greater than or equal to the exiting two-level overvoltage fault threshold, judge whether the corresponding two-level overvoltage fault effective state is 0, if it is 0, set the corresponding two-level overvoltage fault temporary state to 0;
[0030] Further filter the state of the two-level overvoltage fault, if the two-level overvoltage fault temporary state is 1 and the duration is greater than or equal to the entering two-level overvoltage fault filtering time, set the corresponding two-level overvoltage fault effective state to 1, and report the corresponding fault effective state to the error processing module; if the two-level overvoltage fault temporary state is 0 and the duration is greater than or equal to the exiting two-level overvoltage fault filtering time, set the corresponding two-level overvoltage fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S206;
[0031] S206, if the effective voltage value of the corresponding channel is less than or equal to the entering low-voltage fault threshold value, the corresponding low-voltage fault temporary state is set to 1; if the effective voltage value of the corresponding channel is greater than the exiting low-voltage fault threshold value, the corresponding low-voltage fault temporary state is set to 0; if the effective voltage value of the corresponding channel is greater than the entering low-voltage fault threshold value and less than or equal to the exiting low-voltage fault threshold value, it is determined whether the corresponding low-voltage fault effective state is 0, if yes, the corresponding low-voltage fault temporary state is set to 0;
[0032] The state of the low-voltage fault is filtered again, if the low-voltage fault temporary state is 1 and the duration is greater than or equal to the entering low-voltage fault filtering time, the corresponding low-voltage fault effective state is set to 1, and the corresponding fault effective state is reported to the error processing module; if the low-voltage fault temporary state is 0 and the duration is greater than or equal to the exiting low-voltage fault filtering time, the corresponding low-voltage fault effective state is set to 0, and the corresponding fault effective state is reported to the error processing module; enter S207;
[0033] S207, the channel serial number is incremented by 1, and the process returns to S202;
[0034] S208, the voltage monitoring module enters the idle mode, and enters S209;
[0035] S209, the voltage fault detection is completed, and step S3 is entered.
[0036] The foregoing voltage and current adaptive monitoring method of the vehicle-mounted charging pile specifically comprises the following sub-steps in step S3:
[0037] S301, the working mode of the current monitoring module is determined, if it is the idle mode, step S302 is entered; if it is the waiting mode, step S4 is entered; if it is the normal mode, step S5 is entered;
[0038] S302, it is determined whether the current monitoring module state is on and the system initialization is ready, if the current monitoring module state is on and the system modules are initialized, the current current mode is set to the single-phase charging mode, the working mode of the current monitoring module is set to the waiting mode, and the process returns to S301.
[0039] The foregoing voltage and current adaptive monitoring method of the vehicle-mounted charging pile specifically comprises the following sub-steps in step S4:
[0040] S401, in the waiting mode, it is periodically queried whether the voltage input mode self-checking working state is completed, if yes, step S402 is entered; otherwise, step S407 is entered;
[0041] S402, judge whether the voltage input mode is a single-phase input mode or a three-phase input mode, if the voltage input mode is the single-phase input mode, set the current output mode as the single-phase charging mode; if the voltage input mode is the three-phase input mode, set the current output mode as the three-phase charging mode; remember the current output mode as the current output mode; enter S403;
[0042] S403, if the current output mode is the single-phase charging mode, set the L1 phase current detection enabling flag as 1, set the L2 phase current detection enabling flag as 0, and set the L3 phase current detection enabling flag as 0; if the current output mode is the three-phase charging mode, set the L1 phase current detection enabling flag as 1, set the L2 phase current detection enabling flag as 1, and set the L3 phase current detection enabling flag as 1; enter S404;
[0043] S404, if the current output mode is the single-phase charging mode, set the initial rated current value as the single-phase initial rated current value; if the current output mode is the three-phase charging mode, set the initial rated current value as the three-phase initial rated current value; read the corresponding diagnostic configuration rated current data stored in the EEPROM, if the reading is successful and the diagnostic configuration rated current value is greater than or equal to 6A and less than the initial rated current value, set the rated current value variable as the diagnostic configuration rated current value; otherwise, set the rated current value variable as the initial rated current value; set the CP rated current value as the rated current value variable; enter S405;
[0044] S405, if the rated current value is less than or equal to 20A, set the entry level overcurrent threshold value as the rated current value plus 2A, set the exit level overcurrent threshold value as the entry level overcurrent threshold value minus 0.1A, set the entry level overcurrent threshold value as the rated current value plus 4A, and set the exit level overcurrent threshold value as the entry level overcurrent threshold value minus 0.1A; if the rated current value is greater than 20A, set the entry level overcurrent threshold value as 1.1 times the rated current value, set the exit level overcurrent threshold value as the entry level overcurrent threshold value minus 0.1A, set the entry level overcurrent threshold value as 1.25 times the rated current value, and set the exit level overcurrent threshold value as the entry level overcurrent threshold value minus 0.1A; enter S406;
[0045] S406, the current monitoring module enters the normal mode, and enter S407;
[0046] S407, return to step S3.
[0047] The foregoing voltage and current adaptive monitoring method of the vehicle-mounted charging pile specifically comprises the following sub-steps in step S5:
[0048] S501, in normal mode, judge whether the current monitoring module state is the open state, if yes, enter S502; otherwise, enter S512;
[0049] S502, judge whether the charging pile is in charging state, if yes, enter S503; otherwise, enter S512;
[0050] S503, judge whether the output end adaptive detection state is completed, if not, enter S504; otherwise, enter S507;
[0051] S504, in each periodic task, the output end adaptive detection timing is added by 1, if the output end adaptive detection timing is greater than or equal to the output end adaptive detection timeout time, enter S506; otherwise, enter S505;
[0052] S505, the MCU controller reads the L1 phase, L2 phase and L3 phase effective current value, if the L1 phase effective current value is greater than the current existing threshold and the L2 phase and L3 phase current values are less than the current non-existing threshold, the duration is greater than or equal to the current mode filtering time, the current output mode is set to single-phase charging mode, the output end adaptive detection state is set to complete; if the L2 phase or L3 phase current value is greater than the current non-existing threshold, and the duration is greater than or equal to the current mode filtering time, the current output mode is set to three-phase charging mode, and the output end adaptive detection state is set to complete; enter S507;
[0053] S506, set the output end adaptive detection state to complete, enter S507;
[0054] S507, if the current current output mode is not equal to the memory current output mode, enter S508; otherwise, enter S511;
[0055] S508, the memory current output mode is equal to the current current output mode, if the current current output mode is equal to the single-phase charging mode, the L1 phase current detection enable calibration quantity is set to 1, the L2 phase current detection enable calibration quantity is set to 0, and the L3 phase current detection enable calibration quantity is set to 0; if the current current output mode is equal to the three-phase charging mode, the L1 phase current detection enable calibration quantity is set to 1, the L2 phase current detection enable calibration quantity is set to 1, and the L3 phase current detection enable calibration quantity is set to 1; enter S509;
[0056] S509, if the current current output mode is equal to the single-phase charging mode, the initial rated current value is equal to the single-phase initial rated current value; if the current current output mode is equal to the three-phase charging mode, the initial rated current value is equal to the three-phase initial rated current value; read the corresponding diagnostic configuration rated current data stored in the EEPROM, if the read is successful and the diagnostic configuration rated current value is greater than or equal to 6A and less than the initial rated current value, set the rated current value variable equal to the diagnostic configuration rated current value; otherwise, set the rated current value variable equal to the initial rated current value; set the CP rated current value equal to the rated current value variable; enter S510;
[0057] S510, if the rated current value is less than or equal to 20A, enter the first-level overcurrent threshold equal to the rated current value plus 2A, exit the first-level overcurrent threshold equal to the entering first-level overcurrent threshold minus 0.1A, enter the second-level overcurrent threshold equal to the rated current value plus 4A, and exit the second-level overcurrent threshold equal to the entering second-level overcurrent threshold minus 0.1A; if the rated current value is greater than 20A, enter the first-level overcurrent threshold equal to 1.1 times the rated current value, exit the first-level overcurrent threshold equal to the entering first-level overcurrent threshold minus 0.1A, enter the second-level overcurrent threshold equal to 1.25 times the rated current value, and exit the second-level overcurrent threshold equal to the entering second-level overcurrent threshold minus 0.1A; enter S511;
[0058] S511, enter step S6;
[0059] S512, if the current monitoring module state is the off state, directly set its working mode to the idle mode, and return to step S3.
[0060] The foregoing voltage and current adaptive monitoring method of a vehicle-mounted charging pile, wherein the step S6 specifically comprises the following sub-steps:
[0061] S601, divide into 3 channels, channel serial number 0 corresponds to L1 phase, channel serial number 1 corresponds to L2 phase, and channel serial number 2 corresponds to L3 phase; the channel serial number initial value is 0; define a current configuration table according to the 3 channels; the current configuration table includes phase voltage detection enable calibration quantity address data corresponding to the current channel serial number, and an interface for obtaining the corresponding channel current effective value; the channel serial number initial value is 0; enter S602;
[0062] S602, if the channel serial number is less than 3, enter S603; otherwise, enter S607;
[0063] S603, read the phase voltage detection enable calibration quantity address data corresponding to the current channel serial number in the current configuration table; determine whether the phase voltage detection enable calibration quantity is 1; if yes, enter S604; if no, enter S606;
[0064] S604, read the interface of the current channel sequence number corresponding to the current current configuration table, get the current channel effective current value, if the corresponding channel effective current value is greater than or equal to the entering one overflow threshold, set the corresponding one overflow fault temporary state to 1; if the corresponding channel effective current value is less than the exiting one overflow threshold, set the corresponding one overflow fault temporary state to 0; if the corresponding channel effective current value is less than the entering one overflow threshold and greater than or equal to the exiting one overflow threshold, judge whether the corresponding one overflow fault effective state is 0, if yes, set the corresponding one overflow fault temporary state to 0;
[0065] The state of the one overflow fault is filtered again, if the one overflow fault temporary state is 1 and the duration is greater than or equal to the entering one overflow fault filtering time, set the corresponding one overflow fault effective state to 1, and report the corresponding fault effective state to the error processing module; if the one overflow fault temporary state is 0 and the duration is greater than or equal to the exiting one overflow fault filtering time, set the corresponding one overflow fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S605;
[0066] S605, if the corresponding channel effective current value is greater than or equal to the entering two overflow threshold, set the corresponding two overflow fault temporary state to 1; if the corresponding channel effective current value is less than the exiting two overflow threshold, set the corresponding two overflow fault temporary state to 0; if the corresponding channel effective current value is less than the entering two overflow threshold and greater than or equal to the exiting two overflow threshold, judge whether the corresponding two overflow fault effective state is 0, if yes, set the corresponding two overflow fault temporary state to 0;
[0067] The state of the two overflow fault is filtered again, if the two overflow fault temporary state is 1 and the duration is greater than or equal to the entering two overflow fault filtering time, set the corresponding two overflow fault effective state to 1, and report the corresponding fault effective state to the error processing module; if the two overflow fault temporary state is 0 and the duration is greater than or equal to the exiting two overflow fault filtering time, set the corresponding two overflow fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S606;
[0068] S606, the channel sequence number is added by 1, return to S602;
[0069] S607, the current fault detection is completed, return to step S3.
[0070] In the foregoing method for adaptively monitoring voltage and current of a vehicle-mounted charging pile, the fault processing module of the MCU controller in step S7 works in a normal mode, queries and processes all fault states, defines a fault configuration structure array according to the number of faults, the number of the fault configuration structure array is the maximum number of faults, each fault structure includes a fault bit offset position, a fault temporary level, a fault final level, a fault flag, a fault maximum number and a fault recovery time; a current serial number, a fault state, a current fault level, a memory fault level, a query serial number, a fault number array and a fault recovery timer array are further defined.
[0071] In the foregoing method for adaptively monitoring voltage and current of a vehicle-mounted charging pile, step S7 specifically includes the following sub-steps.
[0072] S701, when each periodic task is running, first determine whether the fault of the current serial number is cleared, obtain the fault bit offset position corresponding to the array of the current serial number in the fault configuration structure array, and then perform an AND operation on the corresponding fault bit offset position and fault state; if the result is 0, set the current serial number to 0 and the current fault level to 0; otherwise, retain the values of the current serial number and the current fault level; proceed to S702;
[0073] S702, query all faults, initialize the query serial number to 0, and proceed to S703;
[0074] S703, if the query serial number is less than the maximum number of faults, proceed to S704; if the query serial number does not satisfy the condition of being less than the maximum number of faults, proceed to S713;
[0075] S704, obtain the fault bit offset position corresponding to the array of the query serial number in the fault configuration structure array, and then perform an AND operation on the corresponding fault bit offset position and fault state; if the result is not 0, proceed to S705; if the result is 0, proceed to S711;
[0076] S705, determine whether the fault flag corresponding to the array of the query serial number in the fault configuration structure array exists a fault multiple flag; if not, proceed to S706; if yes, proceed to S707;
[0077] S706, determine whether the fault final level corresponding to the array of the query serial number in this fault structure array is greater than the current fault level; if yes, set the current fault level to be equal to the fault final level and the current serial number to be equal to the query serial number; proceed to S712;
[0078] S707, if the fault number corresponding to the query serial number is less than the fault maximum number corresponding to the array of the query serial number in this fault structure array, proceed to S708; otherwise, proceed to S710;
[0079] S708, if the fault recovery timer corresponding to the query sequence number is equal to 0, then the fault number corresponding to the query sequence number is added by 1; it is judged whether the temporary fault level corresponding to the fault is greater than the current fault level, if yes, then the current fault level is equal to the temporary fault level, and the current sequence number is equal to the query sequence number; the fault recovery timer is added by 1; S709 is entered;
[0080] S709, it is judged whether the fault flag corresponding to the array of the query sequence number in the fault configuration structure array exists a fault clearing flag, if yes, it is judged whether the fault recovery timer time is greater than or equal to the maximum waiting time, if yes, the fault recovery timer variable is set to 0, and the fault state bit corresponding to the query sequence number is cleared to 0; S712 is entered;
[0081] S710, if the fault number corresponding to the query sequence number is greater than or equal to the corresponding maximum fault number, it is judged whether the final fault level corresponding to the fault is greater than the current fault level, if yes, then the current fault level is equal to the final fault level, and the current sequence number is equal to the query sequence number; S712 is entered;
[0082] S711, the fault recovery timer of the fault is set to 0, and S712 is entered;
[0083] S712, the query sequence number is added by 1, and S703 is returned;
[0084] S713, it is judged whether the current fault level is equal to the memory fault level, if not, S714 is entered;
[0085] S714, the memory fault level is equal to the current fault level; if the current fault level is equal to 0 or 1, the fault charging condition is to allow charging; if the current fault level is equal to 2, the fault charging condition is to charge at a reduced power; if the current fault level is equal to 3, the fault charging condition is to suspend charging; if the current fault level is equal to 4, the fault charging condition is to stop charging; if the current fault level is equal to 5, the fault charging condition is to safely stop charging.
[0086] In the foregoing method for adaptively monitoring voltage and current of a vehicle-mounted charging pile, after the step S7 ends, a step S8 is further provided, in which the charging management module of the charging pile determines whether to charge according to the authorization request and the fault charging condition, and specifically includes the following sub-steps:
[0087] S801, it is judged whether the fault charging condition is to safely stop charging, if yes, S808 is entered; otherwise, S802 is entered;
[0088] S802, judge whether the charging pile charging state is in charging, if not charging, enter S803; if charging, enter S807;
[0089] S803, judge whether the request charging state is 1, if the request charging state is 1, enter S804; if the request charging state is 0, enter S805;
[0090] S804, detect whether the fault charging condition is allowed charging or reduced charging, if satisfied, start charging, control CP connection line output corresponding PWM signal, close relay again, set charging state to charging; enter S809;
[0091] S805, detect whether there is an authorized request, if there is an authorized request charging, enter S806; otherwise, enter S809;
[0092] S806, loop query all faults, clear all faults according to fault configuration information; if a fault flag is configured as fault multiple flag, the fault times is equal to 0, and the fault recovery timer variable is equal to 0; if a fault flag is configured as fault clear flag, clear the fault state bit to 0, set the request charging state to 1, MCU controller controls CP connection line output corresponding PWM signal, close relay again, set charging state to charging; enter S809;
[0093] S807, when the charging pile is in charging, detect the fault charging condition, if the fault charging condition is reduced charging, reduce charging; if the fault charging condition is suspended charging, stop charging, set charging state to not charging; if the fault charging condition is stop charging, stop charging, set charging state to not charging, set the request charging state to 0; enter S809;
[0094] S808, if the fault charging condition is safety stop charging, and the charging pile charging state is charging, MCU controller controls CP connection line to stop output corresponding PWM signal, disconnect relay, stop charging, set charging state to not charging, set the request charging state to 0; enter S809;
[0095] S809, return to step S1. BRIEF DESCRIPTION OF DRAWINGS
[0096] Figure 1 is the workflow diagram of the present application. DETAILED DESCRIPTION
[0097] The present application will be further described below in conjunction with the drawings and examples, but not as the basis for limiting the present application.
[0098] Embodiment: A voltage and current adaptive monitoring method of a vehicle-mounted charging pile, the working process is as shown in Figure 1 The method comprises the following steps:
[0099] Step S1, the charging pile MCU controller is powered on and started, first make the voltage monitoring module enter idle mode, after waiting for the initialization of each module of the charging pile system, make the voltage monitoring module enter self-checking mode, in the self-checking mode, it is needed to detect whether the input mode of input voltage is single-phase or three-phase input, the task period is 20 milliseconds, after the self-checking is completed, make the voltage monitoring module enter normal mode.
[0100] Step S1 specifically comprises the following sub-steps:
[0101] S101, the voltage monitoring module of the MCU controller first enters idle mode, and then judges whether the voltage monitoring module state is opened and the system initialization is ready, if the voltage monitoring module state is opened and the initialization of each module of the system is ready, enter S102; otherwise, enter step S3;
[0102] S102, the MCU controller sets the voltage input mode effective state to single-phase input mode, the voltage monitoring module enters self-checking mode, and enters S103;
[0103] S103, in the self-checking mode, the voltage input mode detection timer is added by 1 in each period task, if the voltage input mode detection timer is greater than or equal to the voltage input mode detection timeout time (5 seconds), enter S106; otherwise, enter S104;
[0104] S104, the MCU controller reads the effective value of L2 and L3 input voltage, if the effective value of L2 input voltage and the effective value of L3 input voltage are both greater than the input voltage existing threshold value, the temporary state of voltage input mode is three-phase input mode; otherwise, the temporary state of voltage input mode is single-phase input mode; enter S105;
[0105] S105, filter the state of voltage input mode, if the temporary state of voltage input mode is three-phase input mode, and the duration is greater than or equal to the input existing filtering time, set the voltage input mode effective state to three-phase input mode; if the temporary state of voltage input mode is single-phase input mode, and the duration is greater than or equal to the input existing filtering time, set the voltage input mode effective state to single-phase input mode; enter S106;
[0106] S106, set the voltage input mode self-checking work to be completed, enter S107;
[0107] S107, if the voltage input mode valid state is a single-phase input mode, set the L1 phase voltage detection enable calibration quantity to 1, set the L2 phase voltage detection enable calibration quantity to 0, and set the L3 phase voltage detection enable calibration quantity to 0; if the voltage input mode valid state is a three-phase input mode, set the L1 phase voltage detection enable calibration quantity to 1, set the L2 phase voltage detection enable calibration quantity to 1, and set the L3 phase voltage detection enable calibration quantity to 1; proceed to S108;
[0108] S108, the voltage monitoring module enters a normal mode and proceeds to step S2.
[0109] Configuration items:
[0110] The input voltages of the L2 phase and the L3 phase have a threshold value that is configurable by default as 150V;
[0111] The input voltages of the L2 phase and the L3 phase have a filtering time that is configurable by default as 0.5 seconds;
[0112] The input voltage mode detection timeout time is configurable by default as 5 seconds.
[0113] Step S2, the voltage monitoring module of the MCU controller is in a normal mode, needs to monitor the voltage states of the L1, L2 and L3 phases, needs to identify the corresponding faults when the voltage is abnormal, and needs to report the faults. Three channels are defined, channel number 0 corresponds to the L1 phase, channel number 1 corresponds to the L2 phase, and channel number 2 corresponds to the L3 phase. The channel number initial value is 0. A voltage configuration table is defined according to the three channels, and the voltage configuration table includes the phase voltage detection enable calibration quantity address and the interface for obtaining the corresponding channel voltage effective value.
[0114] Step S2 specifically includes the following sub-steps:
[0115] S201, the voltage monitoring module of the MCU controller first judges whether the voltage monitoring module state is started, if the voltage monitoring module state is started, proceed to S202; otherwise, proceed to S208;
[0116] S202, three channels are defined, channel number 0 corresponds to the L1 phase, channel number 1 corresponds to the L2 phase, and channel number 2 corresponds to the L3 phase. The channel number initial value is 0. A voltage configuration table is defined according to the three channels, and the voltage configuration table includes the phase voltage detection enable calibration quantity address and the interface for obtaining the corresponding channel voltage effective value. If the channel number is less than 3, proceed to S203; otherwise, proceed to S209;
[0117] S203, read the phase voltage detection enable calibration quantity address data corresponding to the current channel number in the voltage configuration table, judge whether the phase voltage detection enable calibration quantity is 1, if yes, proceed to S204; if not, proceed to S207;
[0118] S204, read the interface of the voltage configuration table corresponding to the current channel sequence number of the effective value of the voltage, get the current channel effective voltage value, if the effective voltage value of the corresponding channel is greater than or equal to the entering one-level overvoltage fault threshold, set the corresponding one-level overvoltage fault temporary state to 1; if the effective voltage value of the corresponding channel is less than the exiting one-level overvoltage fault threshold, set the corresponding one-level overvoltage fault temporary state to 0; if the effective voltage value of the corresponding channel is less than the entering one-level overvoltage fault threshold and greater than or equal to the exiting one-level overvoltage fault threshold, determine whether the corresponding one-level overvoltage fault effective state is 0, if it is 0, set the corresponding one-level overvoltage fault temporary state to 0;
[0119] Filter the state of the one-level overvoltage fault again, if the one-level overvoltage fault temporary state is 1, and the duration is greater than or equal to the entering one-level overvoltage fault filtering time, set the corresponding one-level overvoltage fault effective state to 1, and report the corresponding fault effective state to the error processing module; if the one-level overvoltage fault temporary state is 0, and the duration is greater than or equal to the exiting one-level overvoltage fault filtering time, set the corresponding one-level overvoltage fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S205;
[0120] S205, if the effective voltage value of the corresponding channel is greater than or equal to the entering two-level overvoltage fault threshold, set the corresponding two-level overvoltage fault temporary state to 1; if the effective voltage value of the corresponding channel is less than the exiting two-level overvoltage fault threshold, set the corresponding two-level overvoltage fault temporary state to 0; if the effective voltage value of the corresponding channel is less than the entering two-level overvoltage fault threshold and greater than or equal to the exiting two-level overvoltage fault threshold, determine whether the corresponding two-level overvoltage fault effective state is 0, if it is 0, set the corresponding two-level overvoltage fault temporary state to 0;
[0121] Filter the state of the two-level overvoltage fault again, if the two-level overvoltage fault temporary state is 1, and the duration is greater than or equal to the entering two-level overvoltage fault filtering time, set the corresponding two-level overvoltage fault effective state to 1, and report the corresponding fault effective state to the error processing module; if the two-level overvoltage fault temporary state is 0, and the duration is greater than or equal to the exiting two-level overvoltage fault filtering time, set the corresponding two-level overvoltage fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S206;
[0122] S206, if the effective voltage value of the corresponding channel is less than or equal to the entering low-voltage fault threshold value, the corresponding low-voltage fault temporary state is set to 1; if the effective voltage value of the corresponding channel is greater than the exiting low-voltage fault threshold value, the corresponding low-voltage fault temporary state is set to 0; if the effective voltage value of the corresponding channel is greater than the entering low-voltage fault threshold value and less than or equal to the exiting low-voltage fault threshold value, it is judged whether the corresponding low-voltage fault effective state is 0, if it is 0, the corresponding low-voltage fault temporary state is set to 0;
[0123] The state of the low-voltage fault is filtered again, if the low-voltage fault temporary state is 1 and the duration is greater than or equal to the entering low-voltage fault filtering time, the corresponding low-voltage fault effective state is set to 1, and the corresponding fault effective state is reported to the error processing module; if the low-voltage fault temporary state is 0 and the duration is greater than or equal to the exiting low-voltage fault filtering time, the corresponding low-voltage fault effective state is set to 0, and the corresponding fault effective state is reported to the error processing module; enter S207;
[0124] S207, the channel serial number is incremented by 1, and the process returns to S202;
[0125] S208, the voltage monitoring module enters the idle mode, and enters S209;
[0126] S209, the voltage fault detection is completed, and step S3 is entered.
[0127] Configuration items:
[0128] The entering primary overvoltage fault threshold value is configurable, and the default is 250; the exiting primary overvoltage fault threshold value is configurable, and the default is 240; the entering primary overvoltage fault filtering time is configurable, and the default is 5 seconds; the exiting primary overvoltage fault filtering time is configurable, and the default is 5 seconds; the entering secondary overvoltage fault threshold value is configurable, and the default is 265; the exiting secondary overvoltage fault threshold value is configurable, and the default is 255; the entering secondary overvoltage fault filtering time is configurable, and the default is 1 second; the exiting secondary overvoltage fault filtering time is configurable, and the default is 5 seconds; the entering low-voltage fault threshold value is configurable, and the default is 165; the exiting low-voltage fault threshold value is configurable, and the default is 175; the L1 phase entering low-voltage fault filtering time is configurable, and the default is 5 seconds; the exiting low-voltage fault filtering time is configurable, and the default is 5 seconds.
[0129] Step S3, after the charging pile MCU controller is powered on and started, the current monitoring module sets the working mode to idle mode, and the current monitoring module selects different processing according to different modes, and the current detection task period is 20 milliseconds. It is necessary to judge the working mode of the current monitoring module, when the current monitoring module is in idle mode, after waiting for the initialization of each module of the charging pile system to be ready, the current monitoring module enters the waiting mode.
[0130] Step S3 specifically comprises the following sub-steps:
[0131] S301, judging the working mode of the current monitoring module, if it is idle mode, entering S302; if it is waiting mode, entering step S4; if it is normal mode, entering step S5;
[0132] S302, judging whether the current monitoring module state is opened and the system initialization is ready, if the current monitoring module state is opened and the system modules initialization is ready, setting the current mode as single-phase charging mode, setting the working mode of the current monitoring module as waiting mode, returning to S301.
[0133] Step S4, after the charging pile MCU controller normally operates, when the current monitoring module enters the waiting mode, first waiting for the voltage monitoring module self-checking to be completed, then making the current monitoring module enter the normal mode.
[0134] Step S4 specifically comprises the following sub-steps:
[0135] S401, in the waiting mode, periodically inquiring whether the voltage input mode self-checking working state is completed, if the voltage input mode self-checking working state is completed, entering S402; otherwise, entering S407;
[0136] S402, judging whether the voltage input mode is single-phase input mode or three-phase input mode, if the voltage input mode is single-phase input mode, setting the current output mode as single-phase charging mode; if the voltage input mode is three-phase input mode, setting the current output mode as three-phase charging mode; memorizing the current output mode equaling the current output mode; entering S403;
[0137] S403, if the current output mode equals the single-phase charging mode, setting the L1 phase current detection enabling demarcation quantity as 1, setting the L2 phase current detection enabling demarcation quantity as 0, setting the L3 phase current detection enabling demarcation quantity as 0; if the current output mode equals the three-phase charging mode, setting the L1 phase current detection enabling demarcation quantity as 1, setting the L2 phase current detection enabling demarcation quantity as 1, setting the L3 phase current detection enabling demarcation quantity as 1; entering S404;
[0138] S404, if the current current output mode is equal to the single-phase charging mode, the initial rated current value is equal to the single-phase initial rated current value; if the current current output mode is equal to the three-phase charging mode, the initial rated current value is equal to the three-phase initial rated current value; read the corresponding diagnostic configuration rated current data stored in the EEPROM, if the reading is successful and the diagnostic configuration rated current value is greater than or equal to 6A and less than the initial rated current value, set the rated current value variable equal to the diagnostic configuration rated current value; otherwise, set the rated current value variable equal to the initial rated current value; set the CP rated current value equal to the rated current value variable; enter S405;
[0139] S405, if the rated current value is less than or equal to 20A, enter the first-level overcurrent threshold equal to the rated current value plus 2A, exit the first-level overcurrent threshold equal to the entering first-level overcurrent threshold minus 0.1A, enter the second-level overcurrent threshold equal to the rated current value plus 4A, and exit the second-level overcurrent threshold equal to the entering second-level overcurrent threshold minus 0.1A; if the rated current value is greater than 20A, enter the first-level overcurrent threshold equal to 1.1 times the rated current value, exit the first-level overcurrent threshold equal to the entering first-level overcurrent threshold minus 0.1A, enter the second-level overcurrent threshold equal to 1.25 times the rated current value, and exit the second-level overcurrent threshold equal to the entering second-level overcurrent threshold minus 0.1A; enter S406;
[0140] S406, the current monitoring module enters the normal mode, and enters S407;
[0141] S407, return to step S3.
[0142] Step S5, after the charging pile MCU controller is normally running, when the current monitoring module enters the normal mode, it is necessary to confirm the charging current output mode of the vehicle end during charging, and to detect whether there is an overcurrent fault during charging.
[0143] Step S5 specifically includes the following sub-steps:
[0144] S501, in the normal mode, judge whether the current monitoring module state is in the open state, if it is in the open state, enter S502; otherwise, enter S512;
[0145] S502, judge whether the charging pile is in the charging state, if it is in the charging state, enter S503; otherwise, enter S512;
[0146] S503, judge whether the output end adaptive detection state is completed, if it is not completed, enter S504; otherwise, enter S507;
[0147] S504, the output end adaptive detection timing in each periodic task is added by 1, if the output end adaptive detection timing is greater than or equal to the output end adaptive detection timeout time (10 seconds), S506 is entered; otherwise, S505 is entered;
[0148] S505, the MCU controller reads the L1 phase, L2 phase and L3 phase effective current values, if the L1 phase effective current value is greater than the current existing threshold value and the L2 phase and L3 phase current values are both less than the current non-existing threshold value, the duration is greater than or equal to the current mode filtering time, the current current output mode (vehicle end) is set to the single-phase charging mode, and the output end adaptive detection state is set to complete; if the L2 phase or L3 phase current value is greater than the current non-existing threshold value, and the duration is greater than or equal to the current mode filtering time, the current current output mode (vehicle end) is set to the three-phase charging mode, and the output end adaptive detection state is set to complete; S507 is entered;
[0149] S506, the output end adaptive detection state is set to complete, and S507 is entered;
[0150] S507, if the current current output mode is not equal to the memory current output mode, S508 is entered; otherwise, S511 is entered;
[0151] S508, the memory current output mode is equal to the current current output mode, if the current current output mode is equal to the single-phase charging mode, the L1 phase current detection enable calibration quantity is set to 1, the L2 phase current detection enable calibration quantity is set to 0, and the L3 phase current detection enable calibration quantity is set to 0; if the current current output mode is equal to the three-phase charging mode, the L1 phase current detection enable calibration quantity is set to 1, the L2 phase current detection enable calibration quantity is set to 1, and the L3 phase current detection enable calibration quantity is set to 1; S509 is entered;
[0152] S509, if the current current output mode is equal to the single-phase charging mode, the initial rated current value is equal to the single-phase initial rated current value; if the current current output mode is equal to the three-phase charging mode, the initial rated current value is equal to the three-phase initial rated current value; the corresponding diagnostic configuration rated current data stored in the EEPROM is read, if the reading is successful and the diagnostic configuration rated current value is greater than or equal to 6A and less than the initial rated current value, the rated current value variable is set to be equal to the diagnostic configuration rated current value; otherwise, the rated current value variable is set to be equal to the initial rated current value; the CP rated current value is set to be equal to the rated current value variable; S510 is entered;
[0153] S510, if the rated current value is less than or equal to 20A, then entering a first overcurrent threshold value is equal to the rated current value plus 2A, exiting a first overcurrent threshold value is equal to the entering a first overcurrent threshold value minus 0.1A, entering a second overcurrent threshold value is equal to the rated current value plus 4A, and exiting a second overcurrent threshold value is equal to the entering a second overcurrent threshold value minus 0.1A; if the rated current value is greater than 20A, then entering a first overcurrent threshold value is equal to 1.1 times the rated current value, exiting a first overcurrent threshold value is equal to the entering a first overcurrent threshold value minus 0.1A, entering a second overcurrent threshold value is equal to 1.25 times the rated current value, and exiting a second overcurrent threshold value is equal to the entering a second overcurrent threshold value minus 0.1A; enter S511;
[0154] S511, enter step S6;
[0155] S512, if the current monitoring module state is a closed state, then directly set its working mode to an idle mode, and return to step S3.
[0156] Step S6, the current monitoring module of the MCU controller needs to monitor the L1, L2, and L3 phase current states in the normal mode, identify the corresponding fault when the current is abnormal, and report the fault. There are three channels, channel number 0 corresponds to the L1 phase, channel number 1 corresponds to the L2 phase, and channel number 2 corresponds to the L3 phase. The channel number initial value is 0. At the same time, a current configuration table is defined according to the three channels. The current configuration table includes the phase current detection enable calibration address, and the interface for obtaining the corresponding channel current effective value.
[0157] Step S6 specifically includes the following sub-steps:
[0158] S601, the channel number initial value is 0, and enter S602;
[0159] S602, if the channel number is less than 3, then enter S603; otherwise, enter S607;
[0160] S603, read the phase voltage detection enable calibration address data corresponding to the current channel number in the current configuration table, and determine whether the phase voltage detection enable calibration is 1. If it is 1, then enter S604; if it is not 1, then enter S606;
[0161] S604, read the interface of the current channel sequence number corresponding to the current effective value of the current in the current configuration table, get the current effective current value, if the effective current value of the corresponding channel is greater than or equal to the entering one level overflow threshold, set the corresponding one level overflow fault temporary state to 1; if the effective current value of the corresponding channel is less than the exit one level overflow threshold, set the corresponding one level overflow fault temporary state to 0; if the effective current value of the corresponding channel is less than the entering one level overflow threshold and greater than or equal to the exit one level overflow threshold, determine whether the corresponding one level overflow fault effective state is 0, if it is 0, set the corresponding one level overflow fault temporary state to 0;
[0162] The state of the one level overflow fault is filtered again, if the one level overflow fault temporary state is 1, and the duration is greater than or equal to the entering one level overflow fault filtering time, set the one level overflow fault effective state of the corresponding channel to 1, and report the corresponding fault effective state to the error processing module; if the one level overflow fault temporary state is 0, and the duration is greater than or equal to the exit one level overflow fault filtering time, set the corresponding one level overflow fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S605;
[0163] S605, if the effective current value of the corresponding channel is greater than or equal to the entering two level overflow threshold, set the corresponding two level overflow fault temporary state to 1; if the effective current value of the corresponding channel is less than the exit two level overflow threshold, set the corresponding two level overflow fault temporary state to 0; if the effective current value of the corresponding channel is less than the entering two level overflow threshold and greater than or equal to the exit two level overflow threshold, determine whether the corresponding two level overflow fault effective state is 0, if it is 0, set the corresponding two level overflow fault temporary state to 0;
[0164] The state of the two level overflow fault is filtered again, if the two level overflow fault temporary state is 1, and the duration is greater than or equal to the entering two level overflow fault filtering time, set the two level overflow fault effective state of the corresponding channel to 1, and report the corresponding fault effective state to the error processing module; if the two level overflow fault temporary state is 0, and the duration is greater than or equal to the exit two level overflow fault filtering time, set the corresponding two level overflow fault effective state to 0, and report the corresponding fault effective state to the error processing module; enter S606;
[0165] S606, the channel sequence number is incremented by 1, and returns to S602;
[0166] S607, the current fault detection is completed, and returns to step S3.
[0167] Step S7, according to the input mode of the voltage and the output mode of the current, adaptively monitor the voltage and current of each channel, and perform hierarchical processing on the reported voltage and current faults.
[0168] The fault processing module of the MCU controller in step S7 works in a normal mode, inquires and processes all fault states, defines a fault configuration structure array according to the number of faults, the number of the fault configuration structure array is the maximum number of faults, each fault structure includes a fault bit offset position (the fault state is 32 bits, if in bit 0, the offset position is 0x01, if in bit 1, the offset position is 0x02), a temporary fault level, a final fault level, a fault flag, a maximum number of faults and a fault recovery time, and further defines a current serial number, a fault state (32 bits), a current fault level, a memory fault level, an inquiry serial number, a fault number array and a fault recovery timer array, each fault corresponds to a recovery timer.
[0169] Each phase voltage fault is divided into a first overvoltage fault, a second overvoltage fault and an under-voltage fault, wherein the first overvoltage fault and the under-voltage fault can be configured to be multiple, the temporary fault level is fault level 3, the final fault level is fault level 4, and the second overvoltage fault is fault level 4; each phase current fault is divided into a first over-current fault and a second over-current fault, both of which can be configured to be multiple, the temporary fault level is 3, the final fault level of the first over-current fault is 4, and the final fault level of the second over-current fault is 5.
[0170] Step S7 specifically includes the following sub-steps:
[0171] S701, when each periodic task is running, first determine whether the fault of the current serial number is cleared, obtain the fault bit offset position corresponding to the array of the current serial number in the fault configuration structure array, and then perform an AND operation on the corresponding fault bit offset position and the fault state, if the result is 0, it means that the fault is cleared, then the current serial number is set to 0 and the current fault level is set to 0; otherwise, the values of the current serial number and the current fault level are retained; enter S702;
[0172] S702, inquire all faults, initialize the inquiry serial number to 0, and enter S703;
[0173] S703, if the inquiry serial number is less than the maximum number of faults, enter S704; if the inquiry serial number does not satisfy the condition of being less than the maximum number of faults, enter S713;
[0174] S704, obtain the fault bit offset position corresponding to the array of the inquiry serial number in the fault configuration structure array, and then perform an AND operation on the corresponding fault bit offset position and the fault state, if the result is not 0, it means that the fault exists, then enter S705; if the result is 0, it means that the fault does not exist, then enter S711;
[0175] S705, judge whether the fault flag corresponding to the array of the query serial number in the fault configuration structure array exists the fault multiple flag, if not, enter S706; if yes, enter S707;
[0176] S706, judge whether the fault final level corresponding to the array of the query serial number in the fault configuration structure array is greater than the current fault level, if yes, the current fault level equals to the fault final level, and the current serial number equals to the query serial number; enter S712;
[0177] S707, if the fault times corresponding to the query serial number is less than the fault maximum times corresponding to the array of the query serial number in the fault configuration structure array, enter S708; otherwise, enter S710;
[0178] S708, if the fault recovery timer corresponding to the query serial number equals to 0, the fault times corresponding to the query serial number is added by 1; judge whether the fault temporary level corresponding to the fault is greater than the current fault level, if yes, the current fault level equals to the fault temporary level, and the current serial number equals to the query serial number; the fault recovery timer is added by 1; enter S709;
[0179] S709, judge whether the fault flag corresponding to the array of the query serial number in the fault configuration structure array exists the fault clear flag, if yes, judge whether the fault recovery timer time is greater than or equal to the maximum waiting time, if yes, set the fault recovery timer variable to 0, and clear the fault state bit corresponding to the query serial number to 0; enter S712;
[0180] S710, if the fault times corresponding to the query serial number is greater than or equal to the fault maximum times, judge whether the fault final level corresponding to the fault is greater than the current fault level, if yes, the current fault level equals to the fault final level, and the current serial number equals to the query serial number; enter S712;
[0181] S711, the fault recovery timer of the fault is set to 0, enter S712;
[0182] S712, the query serial number is added by 1, return to S703;
[0183] S713, judge whether the current fault level is equal to the memory fault level, if not, enter S714; otherwise, enter S715;
[0184] S714, the memory fault level is equal to the current fault level; if the current fault level is equal to 0 or 1, the fault charging condition is to allow charging; if the current fault level is equal to 2, the fault charging condition is to charge at reduced power; if the current fault level is equal to 3, the fault charging condition is to suspend charging; if the current fault level is equal to 4, the fault charging condition is to stop charging; if the current fault level is equal to 5, the fault charging condition is to safely stop charging; enter S715;
[0185] S715, enter step S8.
[0186] Step S8, the charging pile charging management module determines whether to charge according to the authorization request and the fault charging condition.
[0187] Step S8 specifically includes the following sub-steps:
[0188] S801, first, determine whether the fault charging condition is to safely stop charging, if it is to safely stop charging, enter S808; otherwise, enter S802;
[0189] S802, determine whether the charging pile charging state is in charging, if it is not charging, enter S803; if it is in charging, enter S807;
[0190] S803, determine whether the request charging state is 1, if the request charging state is 1, enter S804; if the request charging state is 0, enter S805;
[0191] S804, detect whether the fault charging condition is to allow charging or to charge at reduced power, if it is satisfied, start charging, control the CP connection line to output the corresponding PWM signal, close the relay, etc., set the charging state to be in charging; enter S809;
[0192] S805, detect whether there is an authorization request, if there is an authorization request to charge, enter S806; otherwise, enter S809;
[0193] S806, loop to query all faults, and clear all faults according to the fault configuration information; if a fault flag is configured as a fault multiple flag, the fault times is equal to 0, and the fault recovery timer variable is equal to 0; if a fault flag is configured as a fault clearing flag, clear the fault state bit to be 0, set the request charging state to be 1, control the CP connection line to output the corresponding PWM signal by the charging pile device MCU controller, close the relay, etc., set the charging state to be in charging; enter S809;
[0194] S807, when the charging pile is in charging, a fault charging condition is detected, if the fault charging condition is reduced charging, the reduced charging is performed; if the fault charging condition is suspended charging, the charging is stopped, the charging state is set as not charging; if the fault charging condition is stopped charging, the charging is stopped, the charging state is set as not charging, the request charging state is set as 0; S809 is entered;
[0195] S808, if the fault charging condition is safety stopped charging, and the charging state of the charging pile is in charging, the CP connection line is controlled by the MCU controller of the charging pile equipment to stop outputting the corresponding PWM signal, and the relay is disconnected, the charging is stopped, the charging state is set as not charging, the request charging state is set as 0; S809 is entered;
[0196] S809, return to step S1.
[0197] The above is only the preferred embodiment of the present application, the protection scope of the present application is not limited to the above-mentioned examples, any technical scheme belonging to the idea of the present application is within the protection scope of the present application. It should be pointed out that, for ordinary skilled in the art, some improvements and decorations without departing from the principle of the present application, these improvements and decorations should also be considered as the protection scope of the present application.
Claims
1. A method for adaptive monitoring of voltage and current of an on-board charging pile, characterized in that: Includes the following steps: Step S1: The charging pile MCU controller is powered on and started. First, the voltage monitoring module is put into idle mode. After the charging pile system modules are initialized and ready, the voltage monitoring module is put into self-test mode to detect the input voltage. Finally, the voltage monitoring module is put into normal mode. Step S2: Set up 3 channels, corresponding to phases L1, L2 and L3 respectively. Define a voltage configuration table according to the 3 channels. The MCU controller monitors the voltage status of each phase L1, L2 and L3. When the voltage is abnormal, it identifies the corresponding fault and reports the fault. Step S3: Determine the working mode of the current monitoring module. When the current monitoring module is in idle mode, wait for all modules of the charging pile system to be initialized and ready before putting the current monitoring module into waiting mode. Step S4: When the current monitoring module enters the waiting mode, first wait for the voltage monitoring module to complete its self-test, and then allow the current monitoring module to enter the normal mode. Step S5: When the current monitoring module enters normal mode, confirm the output mode of the vehicle-side charging current when the charging pile is charging. Step S6: Set up 3 channels, corresponding to phases L1, L2 and L3 respectively. Define a current configuration table according to the 3 channels. The MCU controller monitors the current status of each phase L1, L2 and L3. When the current is abnormal, the corresponding fault is identified and the fault is reported. Step S7: Based on the voltage input mode and current output mode, adaptively monitor the voltage and current of each channel, and classify and process the reported voltage and current faults. Specifically, step S2 includes the following sub-steps: S201. The voltage monitoring module of the MCU controller first determines whether the voltage monitoring module is enabled. If the voltage monitoring module is enabled, proceed to S202; otherwise, proceed to S208. S202. Divide into 3 channels. Channel number 0 corresponds to phase L1, channel number 1 corresponds to phase L2, and channel number 2 corresponds to phase L3. The initial value of the channel number is 0. Define a voltage configuration table according to the 3 channels. The voltage configuration table includes the voltage detection enable calibration address of each phase and the interface for obtaining the effective value of the corresponding channel voltage. If the channel number is less than 3, proceed to S203; otherwise, proceed to S209. S203. Read the phase voltage detection enable calibration address data corresponding to the current channel number in the voltage configuration table, and determine whether the phase voltage detection enable calibration value is 1. If it is 1, proceed to S204; if it is not 1, proceed to S207. S204. Read the interface corresponding to the effective voltage value of the current channel number in the voltage configuration table, obtain the effective voltage value of the current channel. If the effective voltage value of the corresponding channel is greater than or equal to the threshold for entering the first-level overvoltage fault, set the corresponding temporary state of the first-level overvoltage fault to 1; if the effective voltage value of the corresponding channel is less than the threshold for exiting the first-level overvoltage fault, set the corresponding temporary state of the first-level overvoltage fault to 0; if the effective voltage value of the corresponding channel is less than the threshold for entering the first-level overvoltage fault and greater than or equal to the threshold for exiting the first-level overvoltage fault, determine whether the effective state of the corresponding first-level overvoltage fault is 0. If it is 0, set the corresponding temporary state of the first-level overvoltage fault to 0. Next, the status of the first-level overvoltage fault is filtered. If the temporary status of the first-level overvoltage fault is 1 and the duration is greater than or equal to the filtering time for entering the first-level overvoltage fault, the corresponding valid status of the first-level overvoltage fault is set to 1, and the corresponding valid status of the fault is reported to the error handling module. If the temporary status of the first-level overvoltage fault is 0 and the duration is greater than or equal to the filtering time for exiting the first-level overvoltage fault, the corresponding valid status of the first-level overvoltage fault is set to 0, and the corresponding valid status of the fault is reported to the error handling module. Proceed to S205. S205. If the effective voltage value of the corresponding channel is greater than or equal to the threshold for entering the second-level overvoltage fault, then the corresponding temporary state of the second-level overvoltage fault is set to 1; if the effective voltage value of the corresponding channel is less than the threshold for exiting the second-level overvoltage fault, then the corresponding temporary state of the second-level overvoltage fault is set to 0; if the effective voltage value of the corresponding channel is less than the threshold for entering the second-level overvoltage fault and greater than or equal to the threshold for exiting the second-level overvoltage fault, then it is determined whether the effective state of the corresponding second-level overvoltage fault is 0. If it is 0, then the corresponding temporary state of the second-level overvoltage fault is set to 0. Next, the status of the secondary overvoltage fault is filtered. If the temporary status of the secondary overvoltage fault is 1 and the duration is greater than or equal to the filtering time for entering the secondary overvoltage fault, the corresponding valid status of the secondary overvoltage fault is set to 1, and the corresponding valid status of the fault is reported to the error handling module. If the temporary status of the secondary overvoltage fault is 0 and the duration is greater than or equal to the filtering time for exiting the secondary overvoltage fault, the corresponding valid status of the secondary overvoltage fault is set to 0, and the corresponding valid status of the fault is reported to the error handling module. Proceed to S206. S206. If the effective voltage value of the corresponding channel is less than or equal to the low-voltage fault threshold, the corresponding low-voltage fault temporary state is set to 1; if the effective voltage value of the corresponding channel is greater than the low-voltage fault exit threshold, the corresponding low-voltage fault temporary state is set to 0; if the effective voltage value of the corresponding channel is greater than the low-voltage fault threshold and less than or equal to the low-voltage fault exit threshold, it is determined whether the corresponding low-voltage fault effective state is 0. If it is 0, the corresponding low-voltage fault temporary state is set to 0. Next, the low-voltage fault status is filtered. If the temporary low-voltage fault status is 1 and the duration is greater than or equal to the low-voltage fault filtering time, the corresponding valid low-voltage fault status is set to 1, and the corresponding valid fault status is reported to the error handling module. If the temporary low-voltage fault status is 0 and the duration is greater than or equal to the low-voltage fault filtering time, the corresponding valid low-voltage fault status is set to 0, and the corresponding valid fault status is reported to the error handling module. Proceed to S207. S207, Increment the channel number by 1, then return to S202; S208, The voltage monitoring module enters idle mode, then proceeds to S209; S209. Voltage fault detection ends, proceed to step S3.
2. The adaptive monitoring method for voltage and current of an on-board charging pile according to claim 1, characterized in that: Step S1 specifically includes the following sub-steps: S101. The voltage monitoring module of the MCU controller first enters the idle mode, and then determines whether the voltage monitoring module is enabled and whether the system initialization is ready. If the voltage monitoring module is enabled and all modules of the system are initialized and ready, then proceed to S102. Otherwise, proceed to step S3; S102, The MCU controller sets the voltage input mode to single-phase input mode, the voltage monitoring module enters self-test mode, and then enters S103; S103. In self-test mode, the voltage input mode detection timer is incremented by 1 in each cycle task. If the voltage input mode detection timer is greater than or equal to the voltage input mode detection timeout time, then proceed to S106. Otherwise, proceed to S104; S104: The MCU controller reads the effective values of the L2 and L3 input voltages. If the effective values of both L2 and L3 input voltages are greater than the input voltage existence threshold, the temporary voltage input mode is three-phase input mode; otherwise, the temporary voltage input mode is single-phase input mode; proceed to S105. S105. Filter the state of the voltage input mode. If the temporary state of the voltage input mode is three-phase input mode and the duration is greater than or equal to the input filtering time, then set the effective state of the voltage input mode to three-phase input mode; if the temporary state of the voltage input mode is single-phase input mode and the duration is greater than or equal to the input filtering time, then set the effective state of the voltage input mode to single-phase input mode; proceed to S106. S106. The self-test for setting the voltage input mode is complete. Proceed to S107. S107. If the effective state of the voltage input mode is single-phase input mode, then set the L1 phase voltage detection enable calibration value to 1, set the L2 phase voltage detection enable calibration value to 0, and set the L3 phase voltage detection enable calibration value to 0. If the effective state of the voltage input mode is three-phase input mode, then set the L1 phase voltage detection enable calibration value to 1, set the L2 phase voltage detection enable calibration value to 1, and set the L3 phase voltage detection enable calibration value to 1. Enter S108; S108, The voltage monitoring module enters normal mode, proceed to step S2.
3. The adaptive monitoring method for voltage and current of an on-board charging pile according to claim 2, characterized in that: The input voltage threshold for L2 and L3 phases is 150V; the input voltage filtering time for L2 and L3 phases is 0.5 seconds; and the voltage input mode detection timeout is 5 seconds.
4. The adaptive monitoring method for voltage and current of an on-board charging pile according to claim 1, characterized in that: Step S3 specifically includes the following sub-steps: S301. Determine the operating mode of the current monitoring module. If it is in idle mode, proceed to S302; if it is in waiting mode, proceed to step S4; if it is in normal mode, proceed to step S5. S302. Determine whether the current monitoring module is enabled and whether the system initialization is ready. If the current monitoring module is enabled and all modules of the system are initialized and ready, set the current current mode to single-phase charging mode, set the working mode of the current monitoring module to waiting mode, and return to S301.
5. The voltage and current adaptive monitoring method for an on-board charging pile according to claim 4, characterized in that: Step S4 specifically includes the following sub-steps: S401. In the waiting mode, periodically check whether the voltage input mode self-test is completed. If the voltage input mode self-test is completed, proceed to S402. Otherwise, proceed to S407; S402. Determine whether the voltage input mode is single-phase or three-phase. If the voltage input mode is single-phase, set the current output mode to single-phase charging mode; if the voltage input mode is three-phase, set the current output mode to three-phase charging mode; remember the current output mode is equal to the current output mode; proceed to S403. S403. If the current current output mode is equal to the single-phase charging mode, then set the L1 phase current detection enable calibration value to 1, set the L2 phase current detection enable calibration value to 0, and set the L3 phase current detection enable calibration value to 0. If the current output mode is equal to the three-phase charging mode, then set the L1 phase current detection enable calibration value to 1, set the L2 phase current detection enable calibration value to 1, and set the L3 phase current detection enable calibration value to 1. Enter S404; S404. If the current current output mode is equal to the single-phase charging mode, then the initial rated current value is equal to the single-phase initial rated current value. If the current output mode is equal to the three-phase charging mode, then the initial rated current value is equal to the initial rated current value of the three phases; Read the corresponding diagnostic configuration rated current data stored in EEPROM. If the read is successful and the diagnostic configuration rated current value is greater than or equal to 6A and less than the initial rated current value, then set the rated current value variable to equal the diagnostic configuration rated current value; otherwise, set the rated current value variable to equal the initial rated current value; set the CP rated current value to equal the rated current value variable; enter S405. S405. If the rated current is less than or equal to 20A, then entering the first-level overcurrent threshold is equal to the rated current plus 2A, exiting the first-level overcurrent threshold is equal to entering the first-level overcurrent threshold minus 0.1A, entering the second-level overcurrent threshold is equal to the rated current plus 4A, exiting the second-level overcurrent threshold is equal to entering the second-level overcurrent threshold minus 0.1A; if the rated current is greater than 20A, then entering the first-level overcurrent threshold is equal to 1.1 times the rated current, exiting the first-level overcurrent threshold is equal to entering the first-level overcurrent threshold minus 0.1A, entering the second-level overcurrent threshold is equal to 1.25 times the rated current, exiting the second-level overcurrent threshold is equal to entering the second-level overcurrent threshold minus 0.1A; proceed to S406; S406, The current monitoring module enters normal mode, then enters S407; S407, Return to step S3.
6. The voltage and current adaptive monitoring method for an on-board charging pile according to claim 5, characterized in that: Step S5 specifically includes the following sub-steps: S501. In normal mode, determine whether the current monitoring module is in the on state. If it is in the on state, proceed to S502; otherwise, proceed to S512. S502. Determine whether the charging pile is in a charging state. If it is in a charging state, proceed to S503; otherwise, proceed to S512. S503. Determine whether the adaptive detection status at the output terminal is complete. If not, proceed to S504; otherwise, proceed to S507. S504. In each cycle task, increment the output adaptive detection timer by 1. If the output adaptive detection timer is greater than or equal to the output adaptive detection timeout, proceed to S506; otherwise, proceed to S505. The S505 MCU controller reads the effective current values of phases L1, L2, and L3. If the effective current value of phase L1 is greater than the current presence threshold and the current values of phases L2 and L3 are both less than the current absence threshold, and the duration is greater than or equal to the current mode filtering time, then the current output mode is set to single-phase charging mode, and the output adaptive detection status is set to complete. If the current value of phase L2 or L3 is greater than the current absence threshold, and the duration is greater than or equal to the current mode filtering time, then the current output mode is set to three-phase charging mode, and the output adaptive detection status is set to complete. Enter S507; S506, Set the output adaptive detection status to complete, then proceed to S507; S507. If the current current output mode is not equal to the memory current output mode, proceed to S508; otherwise, proceed to S511. S508, the memory current output mode is equal to the current current output mode. If the current current output mode is equal to the single-phase charging mode, then set the L1 phase current detection enable calibration value to 1, set the L2 phase current detection enable calibration value to 0, and set the L3 phase current detection enable calibration value to 0. If the current output mode is equal to the three-phase charging mode, then set the L1 phase current detection enable calibration value to 1, set the L2 phase current detection enable calibration value to 1, and set the L3 phase current detection enable calibration value to 1. Enter S509; S509. If the current current output mode is equal to the single-phase charging mode, then the initial rated current value is equal to the single-phase initial rated current value. If the current output mode is equal to the three-phase charging mode, then the initial rated current value is equal to the initial rated current value of the three phases; Read the corresponding diagnostic configuration rated current data stored in EEPROM. If the read is successful and the diagnostic configuration rated current value is greater than or equal to 6A and less than the initial rated current value, then set the rated current value variable to equal the diagnostic configuration rated current value; otherwise, set the rated current value variable to equal the initial rated current value; set the CP rated current value to equal the rated current value variable; enter S510. S510. If the rated current is less than or equal to 20A, then entering the first-level overcurrent threshold is equal to the rated current plus 2A, exiting the first-level overcurrent threshold is equal to entering the first-level overcurrent threshold minus 0.1A, entering the second-level overcurrent threshold is equal to the rated current plus 4A, exiting the second-level overcurrent threshold is equal to entering the second-level overcurrent threshold minus 0.1A; if the rated current is greater than 20A, then entering the first-level overcurrent threshold is equal to 1.1 times the rated current, exiting the first-level overcurrent threshold is equal to entering the first-level overcurrent threshold minus 0.1A, entering the second-level overcurrent threshold is equal to 1.25 times the rated current, exiting the second-level overcurrent threshold is equal to entering the second-level overcurrent threshold minus 0.1A; proceed to S511; S511, Proceed to step S6; S512. If the current monitoring module is in the off state, directly set its working mode to idle mode and return to step S3.
7. The voltage and current adaptive monitoring method for an on-board charging pile according to claim 6, characterized in that: Step S6 specifically includes the following sub-steps: S601. Divide into 3 channels. Channel number 0 corresponds to phase L1, channel number 1 corresponds to phase L2, and channel number 2 corresponds to phase L3. The initial value of the channel number is 0. Define a current configuration table according to the 3 channels. The current configuration table includes the current detection enable calibration address of each phase and the interface for obtaining the effective value of the current of the corresponding channel. The initial value of the channel number is 0. Enter S602. S602. If the channel number is less than 3, proceed to S603; otherwise, proceed to S607. S603. Read the phase current detection enable calibration address data corresponding to the current channel number in the current configuration table, and determine whether the phase current detection enable calibration value is 1. If it is 1, proceed to S604; if it is not 1, proceed to S606. S604. Read the interface corresponding to the current effective value of the current channel number in the current configuration table, obtain the effective current value of the current channel. If the effective current value of the corresponding channel is greater than or equal to the entry level 1 overcurrent threshold, set the corresponding level 1 overcurrent fault temporary state to 1; if the effective current value of the corresponding channel is less than the exit level 1 overcurrent threshold, set the corresponding level 1 overcurrent fault temporary state to 0; if the effective current value of the corresponding channel is less than the entry level 1 overcurrent threshold and greater than or equal to the exit level 1 overcurrent threshold, determine whether the corresponding level 1 overcurrent fault effective state is 0. If it is 0, set the corresponding level 1 overcurrent fault temporary state to 0. Then, the status of the first-level overcurrent fault is filtered. If the temporary status of the first-level overcurrent fault is 1 and the duration is greater than or equal to the filtering time of the first-level overcurrent fault, the effective status of the first-level overcurrent fault of the corresponding channel is set to 1, and the corresponding effective status of the fault is reported to the error handling module. If the temporary state of a first-level overcurrent fault is 0 and the duration is greater than or equal to the time for exiting the first-level overcurrent fault filtering, then the corresponding effective state of the first-level overcurrent fault is set to 0, and the corresponding effective state of the fault is reported to the error handling module. Enter S605; S605. If the effective current value of the corresponding channel is greater than or equal to the entry threshold for secondary overcurrent, then the corresponding secondary overcurrent fault temporary state is set to 1; if the effective current value of the corresponding channel is less than the exit threshold for secondary overcurrent, then the corresponding secondary overcurrent fault temporary state is set to 0; if the effective current value of the corresponding channel is less than the entry threshold for secondary overcurrent and greater than or equal to the exit threshold for secondary overcurrent, then it is determined whether the effective state of the corresponding secondary overcurrent fault is 0. If it is 0, then the corresponding secondary overcurrent fault temporary state is set to 0. Then, the status of the secondary overcurrent fault is filtered. If the temporary status of the secondary overcurrent fault is 1 and the duration is greater than or equal to the filtering time of the secondary overcurrent fault, the corresponding effective status of the secondary overcurrent fault is set to 1, and the corresponding effective status of the fault is reported to the error handling module. If the temporary state of the secondary overcurrent fault is 0 and the duration is greater than or equal to the exit time of the secondary overcurrent fault filtering, then the corresponding effective state of the secondary overcurrent fault is set to 0, and the corresponding effective state of the fault is reported to the error handling module. Enter S606; S606, Increment the channel number by 1, then return to S602; S607. Current fault detection completed. Return to step S3.
8. The adaptive monitoring method for voltage and current of an on-board charging pile according to claim 7, characterized in that: In step S7, the fault handling module of the MCU controller operates in normal mode, queries and processes all fault states, and defines a fault configuration structure array according to the number of faults. The number of fault configuration structure arrays is the maximum number of faults. Each fault structure includes fault bit offset position, fault temporary level, fault final level, fault flag, maximum number of faults, and fault recovery time. Furthermore, it defines an array of current sequence number, fault state, current fault level, remembered fault level, query sequence number, number of faults, and fault recovery timer. Step S7 specifically includes the following sub-steps: S701. When each periodic task runs, first determine whether the fault of the current sequence number has been cleared, obtain the fault bit offset position corresponding to the current sequence number in the fault configuration structure array, and then perform a AND operation with the corresponding fault bit offset position and fault status. If the result is 0, then the current sequence number is set to 0 and the current fault level is set to 0; otherwise, the values of the current sequence number and the current fault level are retained. Enter S702; S702. Query all faults, initialize the query sequence number to 0, and proceed to S703. S703. If the query sequence number is less than the maximum number of faults, proceed to S704; if the query sequence number is not less than the maximum number of faults, proceed to S713. S704. Obtain the fault position offset corresponding to the array of query numbers in the fault configuration structure array, and then perform a AND operation with the corresponding fault position offset and fault status. If the result is not 0, proceed to S705; if the result is 0, proceed to S711. S705. Determine whether there is a multiple fault flag in the array corresponding to the query sequence number in the fault configuration structure array. If there is no multiple fault flag, proceed to S706. If multiple fault indicators are present, proceed to S707; S706. Determine whether the final fault level corresponding to the array of query sequence numbers in this fault structure array is greater than the current fault level. If it is satisfied, then the current fault level is equal to the final fault level and the current sequence number is equal to the query sequence number. Enter S712; S707. If the number of faults corresponding to the query sequence number is less than the maximum number of faults corresponding to the query sequence number in this fault structure array, then proceed to S708; otherwise, proceed to S710. S708. If the fault recovery timer corresponding to the query sequence number is equal to 0, then the fault count corresponding to the query sequence number is incremented by 1. Next, determine whether the temporary fault level corresponding to this fault is greater than the current fault level. If it is, then the current fault level is equal to the temporary fault level, and the current sequence number is equal to the query sequence number. Increment the fault recovery timer by 1; Enter S709; S709. Determine whether there is a fault clearing flag in the array corresponding to the query number in the fault configuration structure array. If there is a fault clearing flag, then determine whether the fault recovery timer time is greater than or equal to the maximum waiting time. If it is satisfied, set the fault recovery timer variable to 0 and clear the fault status bit corresponding to the query number to 0. Enter S712; S710. If the number of faults corresponding to the query sequence number is greater than or equal to the maximum number of faults, then determine whether the final fault level corresponding to this fault is greater than the current fault level. If it is satisfied, then the current fault level is equal to the final fault level, and the current sequence number is equal to the query sequence number. Enter S712; S711. Set the fault recovery timer for this fault to 0 and proceed to S712; S712, Increment the query sequence number by 1, and return to S703; S713. Determine whether the current fault level is equal to the memory fault level. If they are not equal, proceed to S714. S714, The memory fault level is equal to the current fault level; If the current fault level is 0 or 1, the fault charging condition is to allow charging; if the current fault level is 2, the fault charging condition is to derate charging; if the current fault level is 3, the fault charging condition is to pause charging; if the current fault level is 4, the fault charging condition is to stop charging; if the current fault level is 5, the fault charging condition is to safely stop charging.
9. The voltage and current adaptive monitoring method for an on-board charging pile according to claim 8, characterized in that: After step S7 is completed, step S8 is set. In step S8, the charging management module of the charging pile decides whether to charge based on the authorization request and the fault charging conditions. Specifically, it includes the following sub-steps: S801. Determine whether the fault charging condition is safe to stop charging. If it is safe to stop charging, proceed to S808; otherwise, proceed to S802. S802. Determine whether the charging pile is charging. If it is not charging, proceed to S803; if it is charging, proceed to S807. S803. Determine if the request charging state is 1. If the request charging state is 1, proceed to S804; if the request charging state is 0, proceed to S805. S804. Check if the fault charging condition is allowed charging or derating charging. If it is met, start charging, control the CP connection line to output the corresponding PWM signal, close the relay, and set the charging status to charging; proceed to S809. S805. Check if there is an authorization request. If there is an authorization request for charging, proceed to S806; otherwise, proceed to S809. S806. Loop through all faults and clear them according to the fault configuration information. If a fault flag is configured as a multiple fault flag, then the number of faults is equal to 0, and the fault recovery timer variable is equal to 0; if a fault flag is configured as a fault clear flag, then the fault status bit is cleared to 0, the request charging status is set to 1, the MCU controller controls the CP connection line to output the corresponding PWM signal, then closes the relay, sets the charging status to charging; enter S809; S807. When the charging pile is charging, detect the fault charging condition. If the fault charging condition is derating charging, then derating charging is performed. If the fault charging condition is paused charging, then charging is stopped and the charging status is set to not charging. If the fault charging condition is stopped charging, then charging is stopped and the charging status is set to not charging. Set the request charging status to 0. Proceed to S809. S808. If the fault charging condition is safe to stop charging, and the charging pile is charging in progress, the MCU controller controls the CP connection line to stop outputting the corresponding PWM signal, then disconnects the relay, stops charging, sets the charging status to not charging, and sets the request charging status to 0; then proceeds to S809. S809, Return to step S1.
Citation Information
Patent Citations
Fault processing method for AC / DC hybrid power supply system and device thereof
CN110445137A
Safe charging method for charging of new energy charging pile
CN114655050A
Alternating current charging pile compatible with three-phase power and single-phase power and charging method
CN115366720A