A charging module state control method, device and storage medium

By re-dividing and clarifying the status boundaries and functions of the charging module, the problems of uncontrollable status and low safety performance in the prior art are solved, and more efficient, safe and flexible charging module status control is achieved.

CN119749288APending Publication Date: 2025-04-04SUZHOU XINYUAN ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510027765.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The status division and planning of existing charging modules are chaotic, resulting in uncontrollable status, difficult to change in the initial planning, easy to software logic errors, reduce safety performance and easy to occur.

Method used

Re-dividing the state boundaries of the charging module and setting clear states for it, such as initialization, waiting, soft start, operation, discharge, fault and no output states, to ensure that the state jump is clear and controllable.

Benefits of technology

It improves the functionality and safety of the charging module, realizes more flexible protection functions and precise status control, reduces subsequent maintenance and inspection tasks, and divides the status of the charging module scientifically, efficiently and safely.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119749288A_ABST
    Figure CN119749288A_ABST
Patent Text Reader

Abstract

The present invention provides a state control method for a charging module, which can meet all functional requirements of a charging module for a new energy vehicle, and can ensure the safety and controllability of the charging module in various states, and set states for the charging module: when in an initialization state, initialization is performed; when in a waiting state, a safety measurement task required by the charging module is performed, and a power-on command is waited for after the safety measurement task is completed; when in a soft start state, all actions required for the soft start are performed, and the charging module gradually raises the voltage and current until the voltage and current of the charging module reach a predetermined value; when in a working state, power is supplied according to the charging requirements of the new energy vehicle; when in a discharging state, the charging module starts discharging; when the charging module is in a fault state, charging and discharging are turned off, and fault removal information of the charging module is waited for; when in a no-output state, the charging module cannot be recovered by itself and cannot be restarted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of system control of a charging module, and in particular to a state control method, device, storage medium and program product of a charging module. Background Art

[0002] With the trend of technological development of contemporary new energy vehicles, solving the charging problem of new energy vehicles has become an important part of the contemporary automotive field that cannot be ignored. In the existing technology, the state division and planning of the charging module is an unavoidable problem.

[0003] In the modules that are more common on the market, the status of each module is often chaotic and random, making the module status uncontrollable at a certain time, and not easy to change after the initial planning is completed. After the change, it is easier to have software logic errors, making the module's safety performance worse and more prone to jump errors. Summary of the invention

[0004] In response to the above problems, the present invention provides a state control method, device, storage medium and program product for a charging module, which can meet all functional requirements of the charging module of a new energy vehicle, and at the same time ensure the safety and controllability of the charging module in various states.

[0005] The technical solution is as follows: a state control method for a charging module, characterized in that the following states are set for the charging module:

[0006] Initialization state: The charging module is initialized when it is in the initialization state;

[0007] Waiting state: When the charging module is in the waiting state, the safety measurement task required by the charging module is executed, and after the safety measurement task is completed, the power-on command is waited for;

[0008] Soft start state: When the charging module is in the soft start state, all actions required for soft start are performed, and the charging module gradually increases the voltage and current until the voltage and current of the charging module reach the predetermined value;

[0009] Working state: When the charging module is in working state, it supplies power according to the charging requirements of new energy vehicles;

[0010] Discharging state: When the charging module is in the discharging state, the charging module starts discharging;

[0011] Fault state: When the charging module is in a fault state, shut down the charging and discharging, and wait for the fault elimination information of the charging module;

[0012] No output state: When the charging module is in the no output state, the charging module cannot recover by itself and cannot be restarted.

[0013] Furthermore, the state of the charging module jumps according to the following steps:

[0014] When the charging module is in the initialization state, it is initialized, and after completing the initialization state, it jumps to the waiting state;

[0015] When the charging module is in the waiting state, the safety measurement task required by the charging module is executed. After the safety measurement task is completed, the charging module waits for the power-on command. When the safety measurement task of the charging module fails, it will jump to the discharging state. When the safety measurement task is completed and the charging module obtains the power-on command, the charging module jumps to the soft start state.

[0016] When the charging module is in the soft start state, all actions required for the soft start are performed. The charging module gradually increases the voltage and current. After the voltage and current of the charging module reach the predetermined values, the charging module jumps to the normal working state. Once the protection mechanism is triggered during the soft start state, the charging module jumps to the discharge state.

[0017] When the charging module is in working state, it supplies power according to the charging requirements of new energy vehicles. If the protection mechanism is triggered in the working state, the charging module jumps to the discharging state;

[0018] When the charging module is in the discharging state, the charging module starts discharging, and waits for the amount of electricity stored in the capacitor of the charging module to be discharged to the standard value, and then the charging module jumps to the fault state. In the discharging state, if the charging module cannot be discharged to the standard value, the charging module enters the no-output state;

[0019] When the charging module is in a fault state, wait for the fault of the charging module to be cleared. After the fault of the charging module is cleared, the charging module jumps to the initialization state and restarts the charging module. When the charging module detects that the fault of the charging module cannot be cleared at this time, it enters a no-output state;

[0020] When the charging module is in a no-output state, the charging module cannot recover by itself and cannot be restarted.

[0021] Furthermore, when the charging module is powered on, it enters an initialization state.

[0022] Furthermore, when the charging module enters the initialization state, all flags, variables, and functional measurements required by the charging module are initialized, and the status of the module is cleared. The flag is used to indicate whether the charging module meets the set conditions, the variable is used to indicate the parameters of the charging module, and the functional measurement is used to indicate the detection or calculation process of the charging module to evaluate the performance or status of the module.

[0023] Furthermore, when the charging module enters the waiting state, the safety measurement tasks required by the charging module include: overvoltage protection, undervoltage protection, overcurrent protection, battery type and specification identification, insulation resistance test, short circuit detection, and temperature detection.

[0024] Furthermore, it also includes a switching mode state. In the switching mode state, the charging module can allow the user or the external control system to select different charging modes.

[0025] Furthermore, when the charging module completes the safety measurement and receives the mode selection instruction, it jumps to the switching mode state. When the charging mode is selected, the charging module automatically jumps to the soft start state. If an error is detected in the switching mode state or the user cancels the operation, the charging module returns to the waiting state.

[0026] Furthermore, it also includes a direct start state, in which the charging module directly enters the direct start state after initialization is completed, and then enters the soft start state.

[0027] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the state control method of a charging module as described above when executing the computer program.

[0028] A computer-readable storage medium stores a program, which, when executed by a processor, implements the state control method of a charging module as described above.

[0029] A computer program product comprises a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0030] The present invention redivides the boundaries of all states based on the original required states of the charging module and re-modifies the functions of the states on this basis, modularizing all states, so that the current state of the charging module and the state to be jumped to can be more clear and standardized, and the functionality and safety of the charging module can be greatly increased. It can more flexibly implement various protection functions of the module, more accurately implement the control tasks of the module in various states, make the working state of the charging module clearer, and at the same time greatly reduce the subsequent maintenance and detection tasks of the module. The scheme designed by the method can divide the state of the charging module more scientifically, efficiently and safely. Under this method, the state of the charging module can be made more scientific, safer, more flexible and more replaceable. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a schematic diagram of the state adjustment of the charging module in the first embodiment;

[0032] Figure 2 is a schematic diagram of the state adjustment of the charging module in the second embodiment;

[0033] Figure 3 is a schematic diagram of the state adjustment of the charging module in the third embodiment;

[0034] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0035] In an embodiment of the present invention, a state control method for a charging module sets the following states for the charging module:

[0036] Initialization state: The charging module is initialized when it is in the initialization state;

[0037] Waiting state: When the charging module is in the waiting state, the safety measurement task required by the charging module is executed, and after the safety measurement task is completed, the power-on command is waited for;

[0038] Soft start state: When the charging module is in the soft start state, all actions required for soft start are performed, and the charging module slowly and gradually increases the voltage and current until the voltage and current of the charging module reach the predetermined value;

[0039] Working state: When the charging module is in working state, it supplies power according to the charging requirements of new energy vehicles;

[0040] Discharging state: When the charging module is in the discharging state, the charging module starts discharging;

[0041] Fault state: When the charging module is in a fault state, shut down the charging and discharging, and wait for the fault elimination information of the charging module;

[0042] No output state: When the charging module is in the no output state, the charging module cannot recover by itself and cannot be restarted.

[0043] See Figure 1 In the embodiment, the state of the charging module can be jumped according to the following steps:

[0044] Step S1: Initialize the charging module when it is in the initialization state. Usually, the charging module can enter the initialization state after it is powered on. When the charging module enters the initialization state, all the flags, variables, and function measurements required by the charging module are initialized, and the module status is completely cleared.

[0045] In implementation, the flag is used to indicate whether the charging module meets the set conditions. The flag is usually a binary variable used to indicate whether a condition is true (usually 1) or false (usually 0). In the charging module, the flag can be used to indicate the current state of the module, such as whether charging has started, ended, or whether a fault has occurred; variables are used to represent the parameters of the charging module, which can change during the operation of the charging module. In the charging module, variables can store data such as current, voltage, temperature, and charging time; functional measurement is used to represent the detection or calculation process of the charging module to evaluate the performance or status of the module. In the charging module, it may include measurements of charging efficiency, battery health, power factor, etc.; after completing the initialization state, jump to the waiting state.

[0046] Step S2: When the charging module is in a waiting state, the safety measurement tasks required by the charging module are executed. In the embodiment, the safety measurement tasks required by the charging module include: overvoltage protection, undervoltage protection, overcurrent protection, battery type and specification identification, insulation resistance test, short circuit detection, and temperature detection. Among them, overvoltage protection and undervoltage protection are to check whether the voltage of the battery is within a predetermined safety range to prevent overcharging or over-discharging; overcurrent protection is to confirm whether the charging current is below the safety limit to avoid overcurrent damage to the battery or charging module; battery type and specification identification can confirm the type and specification of the connected battery to ensure that the correct charging parameters are used; insulation resistance test is to measure the insulation resistance between the charging module and the battery to ensure that there is no leakage; short circuit detection can detect whether a short circuit occurs in the charging circuit; temperature detection can measure the temperature of the battery and the charging module to ensure that they are within a safe operating temperature range; in addition, safety measurement tasks can also include charging interface inspection, protection circuit function test, and communication protocol verification.

[0047] After the safety measurement task is completed, the charging module waits for the power-on command. When the safety measurement task of the charging module fails, it will jump to the discharge state. When the safety measurement task is completed and the charging module obtains the power-on command, the charging module jumps to the soft start state.

[0048] Step S3: When the charging module is in the soft start state, all actions required for the soft start are performed, and the charging module slowly and gradually increases the voltage and current. At this stage, the surge current of the module will be reduced to the maximum extent, which greatly increases the life and safety performance of the module, and also minimizes the damage to energy vehicles; after waiting for the voltage and current of the charging module to reach the predetermined value, the charging module jumps to the normal working state. Once the protection mechanism is triggered during the soft start state, the charging module jumps to the discharge state.

[0049] Step S4: When the charging module is in the working state, power is supplied according to the charging requirements of the new energy vehicle. If a protection mechanism is triggered in the working state, the charging module jumps to the discharging state.

[0050] Step S5: When the charging module is in the discharging state, the charging module starts discharging and waits for the amount of electricity stored in the capacitor of the charging module to be discharged to a standard value. Then, the charging module jumps to a fault state. If the charging module cannot be discharged to a standard value in the discharging state, the charging module enters a no-output state.

[0051] Step S6: When the charging module is in a fault state, wait for the fault of the charging module to be resolved. After the fault of the charging module is resolved, the charging module jumps to the initialization state and restarts the charging module. When the charging module itself detects that the fault of the charging module cannot be resolved at this time, it enters a no output state.

[0052] Step S7: When the charging module is in a no-output state, the charging module cannot be restored by itself or restarted, and can only be restored by an external system or by replacing hardware.

[0053] In the embodiment, the state of the charging module is divided into 7 clear states, including initialization state, waiting state, soft start state, working state, fault state, discharge state, and no output state. The function and jump condition of each state are set to ensure that the jump of the charging module between different states is clearer and controllable, avoiding the problems of state confusion and uncontrollable jump in the prior art; the standardized state definition and clear conversion logic provided in the embodiment reduce the probability of system errors, make fault diagnosis and troubleshooting easier, and facilitate tracking the cause and time of each state transition, providing a basis for subsequent analysis and optimization;

[0054] In the embodiment, by setting clear jump conditions and protection mechanisms in each state, it is ensured that the module can follow the predetermined logic when the state jumps, avoiding the loss of control of the charging module due to jump errors. The settings in the embodiment significantly improve the safety performance of the charging module, so that the charging module can detect and handle faults in time during operation, avoiding module damage or safety accidents caused by state jump errors or faults.

[0055] In an embodiment of the present invention, it is allowed to flexibly insert new states based on the existing state diagram, and the enabling logic of the module can be reorganized, so that the module can better adapt to different application scenarios and needs, and can flexibly complete single charging module testing tasks and new energy vehicle charging tasks, and states can be directly regrouped and decomposed, which greatly increases the adaptability of the module.

[0056] In one embodiment, the charging module also includes a switching mode state. In the switching mode state, the charging module can allow the user or the external control system to select different charging modes, and can quickly switch to a suitable charging mode when needed, such as fast charging or economic charging mode, thereby improving user convenience and satisfaction.

[0057] See Figure 2 In this embodiment, the state of the charging module can be changed according to the following steps:

[0058] Step S1: When the charging module is in the initialization state, it is initialized to initialize all the flags, variables, and functional measurements required by the charging module, and the module status is completely cleared. After completing the initialization state, it jumps to the waiting state.

[0059] Step S2: When the charging module is in a waiting state, the safety measurement task required by the charging module is executed. After the safety measurement task is completed, the charging module waits for a command. When the charging module receives a mode selection instruction, it jumps to a switching mode state.

[0060] Step S3: In the switching mode state, the charging module can allow the user or the external control system to select different charging modes. When the charging mode is selected, the charging module automatically jumps to the soft start state. If an error is detected in the switching mode state or the user cancels the operation, the charging module returns to the waiting state;

[0061] Step S4: When the charging module is in the soft start state, all actions required for the soft start are performed, the charging module slowly and gradually increases the voltage and current, and after the voltage and current of the charging module reach a predetermined value, the charging module jumps to the normal working state. Once the protection mechanism is triggered during the soft start state, the charging module jumps to the discharge state;

[0062] Step S5: When the charging module is in the working state, power is supplied according to the charging requirements of the new energy vehicle. If a protection mechanism is triggered in the working state, the charging module jumps to the discharging state;

[0063] Step S6: When the charging module is in the discharging state, the charging module starts discharging, and waits for the amount of electricity stored in the capacitor of the charging module to be discharged to a standard value, and then the charging module jumps to a fault state. If the charging module cannot be discharged to a standard value in the discharging state, the charging module enters a no-output state;

[0064] Step S7: when the charging module is in a fault state, wait for the fault of the charging module to be cleared, and when the fault of the charging module is cleared, the charging module jumps to the initialization state, restarts the charging module, and when the charging module detects that the fault of the charging module cannot be cleared at this time, enters the no-output state;

[0065] Step S8: When the charging module is in a no-output state, the charging module cannot recover by itself and cannot be restarted.

[0066] In one embodiment, the charging module also includes a direct start state. After initialization is completed, the charging module directly enters the direct start state and then enters the soft start state. The direct start state can be inserted after the initialization state as a shortcut path to skip the waiting state and the switching mode state and directly enter the soft start state. It is suitable for emergency charging or quick response needs.

[0067] See Figure 3 In this embodiment, the state of the charging module can be changed according to the following steps:

[0068] Step S1: When the charging module is in the initialization state, it is initialized to initialize all the flags, variables, and function measurements required by the charging module, and the module status is completely cleared. After completing the initialization state, it jumps to the direct startup state;

[0069] Step S2: When the charging module enters the direct start state, it automatically jumps to the soft start state;

[0070] Step S3: When the charging module is in the soft start state, all actions required for the soft start are performed, the charging module slowly and gradually increases the voltage and current, and after the voltage and current of the charging module reach the predetermined values, the charging module jumps to the normal working state. Once the protection mechanism is triggered during the soft start state, the charging module jumps to the discharge state;

[0071] Step S4: When the charging module is in the working state, power is supplied according to the charging requirements of the new energy vehicle. If the protection mechanism is triggered in the working state, the charging module jumps to the discharging state;

[0072] Step S5: When the charging module is in the discharging state, the charging module starts discharging, and waits for the amount of electricity stored in the capacitor of the charging module to be discharged to a standard value, and then the charging module jumps to a fault state. If the charging module cannot be discharged to a standard value in the discharging state, the charging module enters a no-output state;

[0073] Step S6: when the charging module is in a fault state, wait for the fault of the charging module to be cleared, and when the fault of the charging module is cleared, the charging module jumps to the initialization state and restarts the charging module. When the charging module detects that the fault of the charging module cannot be cleared at this time, it enters a no-output state;

[0074] Step S7: When the charging module is in a no-output state, the charging module cannot recover by itself and cannot be restarted.

[0075] The present invention allows flexible insertion of new states based on the existing state diagram and reorganizes the module's enabling logic, greatly enhancing the flexibility and scalability of the charging module without affecting the stability of the overall system. Flexible state grouping and decomposition enables the charging module to quickly adapt to new technologies and market changes.

[0076] In an embodiment of the present invention, a computer device is further provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the state control method of the charging module as described above when executing the computer program.

[0077] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected by a bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a state control method of a charging module is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0078] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instruction.

[0079] The processor can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as: CPU), a network processor (Network Processor, referred to as: NP), etc. The processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0080] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0081] In an embodiment of the present invention, a computer-readable storage medium is further provided, on which a program is stored, characterized in that when the program is executed by a processor, the state control method of the charging module as described above is implemented.

[0082] Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, computer devices, or computer program products. Therefore, the embodiments of the present invention may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Moreover, the embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0083] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, computer devices, or computer program products according to the embodiments of the present invention. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in the flowcharts and / or.

[0084] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in the flowchart.

[0085] In an embodiment of the present invention, a computer program product is further provided, comprising a computer program / instruction, wherein the computer program / instruction implements the steps of the above method when executed by a processor.

[0086] In actual application, the above-mentioned computer program products include but are not limited to: charging stations, charging piles, new energy vehicles, smart phones, desktop computers, laptops, tablet computers, host computers and server platforms, etc., and no specific restrictions are made here.

[0087] The above describes in detail the application of the state control method, system, computer device, computer-readable storage medium, and computer program product of the charging module provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A state control method for a charging module, characterized in that: Set the following states for the charging module: Initialization state: The charging module is initialized when it is in the initialization state; Waiting state: When the charging module is in the waiting state, the safety measurement task required by the charging module is executed, and after the safety measurement task is completed, the power-on command is waited for; Soft start state: When the charging module is in the soft start state, all actions required for soft start are performed, and the charging module gradually increases the voltage and current until the voltage and current of the charging module reach the predetermined value; Working state: When the charging module is in working state, it supplies power according to the charging requirements of new energy vehicles; Discharging state: When the charging module is in the discharging state, the charging module starts discharging; Fault state: When the charging module is in a fault state, shut down the charging and discharging, and wait for the fault elimination information of the charging module; No output state: When the charging module is in the no output state, the charging module cannot recover by itself and cannot be restarted.

2. A state control method for a charging module according to claim 1, characterized in that: The state of the charging module jumps according to the following steps: When the charging module is in the initialization state, it is initialized, and after completing the initialization state, it jumps to the waiting state; When the charging module is in the waiting state, the safety measurement task required by the charging module is executed. After the safety measurement task is completed, the charging module waits for the power-on command. When the safety measurement task of the charging module fails, it will jump to the discharging state. When the safety measurement task is completed and the charging module obtains the power-on command, the charging module jumps to the soft start state. When the charging module is in the soft start state, all actions required for the soft start are performed. The charging module gradually increases the voltage and current. After the voltage and current of the charging module reach the predetermined values, the charging module jumps to the normal working state. Once the protection mechanism is triggered during the soft start state, the charging module jumps to the discharge state. When the charging module is in working state, it supplies power according to the charging requirements of new energy vehicles. If the protection mechanism is triggered in the working state, the charging module jumps to the discharging state; When the charging module is in the discharging state, the charging module starts discharging, and waits for the amount of electricity stored in the capacitor of the charging module to be discharged to the standard value, and then the charging module jumps to the fault state. In the discharging state, if the charging module cannot be discharged to the standard value, the charging module enters the no-output state; When the charging module is in a fault state, wait for the fault of the charging module to be cleared. After the fault of the charging module is cleared, the charging module jumps to the initialization state and restarts the charging module. When the charging module detects that the fault of the charging module cannot be cleared at this time, it enters a no-output state; When the charging module is in a no-output state, the charging module cannot recover by itself and cannot be restarted.

3. A state control method for a charging module according to claim 2, characterized in that: When the charging module is powered on, it enters the initialization state.

4. A state control method for a charging module according to claim 2, characterized in that: When the charging module enters the initialization state, all flags, variables, and functional measurements required by the charging module are initialized, and the status of the module is cleared. The flag is used to indicate whether the charging module meets the set conditions, the variable is used to indicate the parameters of the charging module, and the functional measurement is used to indicate the detection or calculation process of the charging module to evaluate the performance or status of the module.

5. A state control method for a charging module according to claim 2, characterized in that: When the charging module enters the waiting state, the safety measurement tasks required by the charging module include: overvoltage protection, undervoltage protection, overcurrent protection, battery type and specification identification, insulation resistance test, short circuit detection, and temperature detection.

6. A state control method for a charging module according to claim 2, characterized in that: It also includes a switching mode state. In the switching mode state, the charging module can allow the user or external control system to select different charging modes. When the charging module completes the safety measurement and receives the mode selection instruction, it jumps to the switching mode state. When the charging mode is selected, the charging module automatically jumps to the soft start state. If an error is detected in the switching mode state or the user cancels the operation, the charging module returns to the waiting state.

7. A state control method for a charging module according to claim 2, characterized in that: It also includes a direct start state. After the charging module is initialized, it directly enters the direct start state and then enters the soft start state.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the state control method of the charging module as claimed in claim 1 is implemented.

9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by the processor, the state control method of the charging module as claimed in claim 1 is implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to claim 1 are implemented.