Multi-charging-gun random charging test method, device and equipment and storage medium
The state and mode of the charging gun are obtained and configured through the random mechanism to realize the random charging test of the multi-charging gun, which solves the problems of single test methods and long test cycles in the existing test methods, and improves the testing efficiency and accuracy.
Patent Information
- Application Number
- CN202411285779.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-31
AI Technical Summary
The existing multi-charging gun testing method is single, which cannot meet the needs of fast and complete testing and verification, and it is difficult to test multi-charging guns at the same time, and the test debugging cycle is long, which cannot meet the real charging scenario.
Use a random mechanism to obtain the status and address of the charging gun, randomly select the charging mode and generate charging information, configure the trigger and issue charging instructions until the end signal is triggered, obtain the settlement information and confirm the order, repeat this process until all triggers are completed, This method realizes the random charging test of the multi-charge gun.
This method can be closer to the real charging scenario, expand the test capacity, simplify the test process, effectively shorten the overall charging test time, and test the various functions of the charging gun.
Smart Images

Figure CN119224455A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of random charging test of multiple charging guns, and in particular to a random charging test method, device, equipment and storage medium for multiple charging guns. Background Art
[0002] With the rapid development of the new energy market, the charging power and charging current of charging piles are constantly increasing to shorten the charging time and improve the user's charging experience. In addition, charging piles have also developed a multi-charging gun design to improve the utilization rate of charging piles; charging piles with multi-charging gun designs contain multiple charging power modules, and the charging piles will be allocated according to the power requirements of the vehicles connected to the charging guns, and dynamically adjust each charging gun as the power requirements of the vehicles change.
[0003] Due to the complexity and diversity of actual usage scenarios, the charging test requirements for multiple charging guns are more stringent. On the one hand, it needs to be closer to the actual charging scenario, and on the other hand, it also needs to shorten the test and debugging cycle of multiple charging guns. In addition, charging guns have multiple charging functions, and the existing multi-gun charging test and debugging methods are relatively single and cannot meet the huge test capacity. It is difficult to perform fast and complete test verification of multiple charging guns at the same time. Summary of the invention
[0004] The purpose of the present invention is to provide a random charging test method, device, equipment and storage medium for multiple charging guns. By using a random mechanism, the charging test is made more in line with the actual charging scenario, and multiple charging functions of the charging gun can be tested. While expanding the test capacity, the charging test process is simplified, and the overall charging test time is effectively shortened.
[0005] In order to achieve the above object, the present invention discloses a multi-charging gun random charging test method, which comprises:
[0006] S101, obtaining the number of charging guns in a real-time state of being charged and their gun addresses;
[0007] S102, randomly generating a charging gun test quantity according to the acquired quantity;
[0008] S103, randomly generating a gun address of a test charging gun according to the acquired gun address and the number of charging gun tests;
[0009] S104, randomly selecting a charging mode for each of the test charging guns, where the charging mode includes charging by time, charging by amount, or charging by power;
[0010] S105, randomly generating charging information for each of the test charging guns according to the charging mode, wherein the charging information includes an end trigger value;
[0011] S106, issuing a charging instruction to each of the test charging guns, and changing its real-time status to charging;
[0012] S107, configuring a time trigger, a money trigger or a power trigger for each of the test charging guns according to the charging mode, and setting a corresponding end trigger value for the configured trigger;
[0013] S108, sending a stop charging instruction to the test charging gun corresponding to the trigger that triggers the end charging signal, and changing its real-time state to stop charging;
[0014] S109, obtaining settlement information of a charging gun whose real-time status is stopped charging, sending an order confirmation instruction to it, and changing its real-time status to being settled;
[0015] S110. Modify the real-time status of the charging gun of the confirmed order to waiting for charging.
[0016] S111, repeating steps S108 to S110 until all triggers trigger a charging end signal.
[0017] Furthermore, the charging gun test quantity, the gun address of the test charging gun and the end trigger value are randomly generated based on Zipf's law.
[0018] Furthermore, before step S101, the method further includes:
[0019] S11, randomly selecting a real-time random charging mode or a timed random charging mode, if the real-time random charging mode is selected, executing step S101, if the timed random charging mode is selected, executing step S12;
[0020] S12, setting the test time;
[0021] S13, determine whether the test time has arrived, if the test time has arrived, execute step S101, if the test time has not arrived, return to execute step S13.
[0022] Furthermore, before step S108, the following steps are also included:
[0023] S1080: Obtain the gun address, charging mode, and charging information of the test charging gun corresponding to the trigger that triggers the charging end signal.
[0024] Furthermore, the charging information also includes account, password, start time, initial balance, and initial power level.
[0025] Furthermore, the settlement information includes charging time, charging method, charging power, termination reason, electricity fee, service fee and total fee.
[0026] In order to achieve the above object, the present invention discloses a multi-charging gun random charging test device, which comprises:
[0027] The first acquisition module is used to acquire the number of charging guns in a real-time state of being charged and their gun addresses;
[0028] The first generating module is used to randomly generate the charging gun test quantity according to the acquired quantity;
[0029] A second generating module is used to randomly generate a gun address of a test charging gun according to the acquired gun address and the number of charging gun tests;
[0030] A selection module, used for randomly selecting a charging mode for each of the test charging guns, wherein the charging mode includes charging by time, charging by amount or charging by power;
[0031] A third generating module, configured to randomly generate charging information for each of the test charging guns according to the charging mode, wherein the charging information includes an end trigger value;
[0032] A first sending module is used to send a charging instruction to each of the test charging guns and modify its real-time status to charging;
[0033] A configuration module, configured to configure a time trigger, an amount trigger or an amount trigger for each of the test charging guns according to the charging mode, and set the corresponding end trigger value for the configured trigger;
[0034] The second sending module is used to send a stop charging instruction to the test charging gun corresponding to the trigger that triggers the end charging signal, and modify its real-time state to stop charging;
[0035] The second acquisition module is used to obtain the settlement information of the charging gun whose real-time status is stopped charging, send an order confirmation instruction to it, and change its real-time status to being settled;
[0036] The modification module is used to modify the real-time status of the charging gun of the confirmed order to waiting for charging.
[0037] In order to achieve the above object, the present invention discloses an electronic device, which includes:
[0038] one or more processors;
[0039] One or more memories are used to store one or more programs. When one or more of the programs are executed by the processor, the processor implements the multi-charging gun random charging test method as described above.
[0040] In order to achieve the above-mentioned purpose, the present invention discloses a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the random charging test method for multiple charging guns as mentioned above is implemented.
[0041] In the present application, a random charging test is performed on multiple charging guns through a random mechanism. First, the number of charging guns whose real-time status is to be charged and their gun addresses are obtained, and based on this, the gun address of the test charging gun is randomly generated. Then, a charging mode is randomly selected for each test charging gun and charging information is randomly generated. A charging instruction is issued to each test charging gun, and a corresponding trigger is configured according to its respective charging mode. When any trigger triggers an end charging signal, a stop charging instruction is sent to the corresponding test charging gun. Then, the settlement information of the charging gun that stops charging is obtained to send an order confirmation instruction to it. After the order is confirmed, its real-time status is changed to to be charged, and the above-mentioned stop charging and order confirmation operations are repeated until all triggers trigger an end charging signal. The random charging test of the charging gun performed by the above-mentioned random mechanism is more in line with the actual charging scenario, can test various charging functions of the charging gun, expand the test capacity, simplify the charging test process, and effectively shorten the overall charging test time. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 The present invention is a flowchart of a random charging test method for multiple charging guns according to an embodiment of the present invention.
[0043] Figure 2 This is a module diagram of a random charging test device for multiple charging guns according to an embodiment of the present invention.
[0044] Figure 3 4 is a system diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to explain the technical content, structural features, achieved objectives and effects of the present invention in detail, the following is a detailed description in conjunction with the implementation methods and the accompanying drawings.
[0046] Embodiment 1
[0047] See also Figure 1 The present invention discloses a random charging test method for multiple charging guns, which comprises:
[0048] Furthermore, before step S101, the method further includes:
[0049] S11, randomly selecting a real-time random charging mode or a timed random charging mode, if the real-time random charging mode is selected, executing step S101, if the timed random charging mode is selected, executing step S12;
[0050] S12, setting the test time;
[0051] S13, determine whether the test time has arrived, if the test time has arrived, execute step S101, if the test time has not arrived, return to execute step S13.
[0052] It can be understood that there are two types of charging test methods, one is a real-time random charging test method, and the other is a timed random charging test method. In this embodiment, a random charging test method is randomly selected for charging test, but it is not limited to this. In some embodiments, two random charging test methods can be turned on at the same time, and the real-time random charging test method has a higher priority than the timed random charging test method, that is, step S101 is directly executed to turn on the real-time random charging test method, and step S12 is executed at the same time to turn on the timed random charging test method.
[0053] S101, obtaining the number of charging guns in a real-time state of being charged and their gun addresses;
[0054] S102, randomly generating a charging gun test quantity according to the acquired quantity;
[0055] S103, randomly generating a gun address for testing the charging gun according to the acquired gun address and the number of charging gun tests;
[0056] Furthermore, the charging gun test quantity, the gun address of the test charging gun and the end trigger value are randomly generated based on Zipf's law.
[0057] It can be understood that after selecting the random charging test method, the charging start signal is triggered, the number of charging guns and the real-time status of each charging gun are obtained through the parameter configuration information of the charging gun, and the gun address of the charging gun is obtained from the HMI touch screen, and then the parameters such as the number of charging guns to be charged and the gun address of the charging gun whose real-time status is used as the initial parameters of the random data mechanism based on Zipf's law, and the number of random charging guns that are simultaneously turned on for charging and the corresponding gun addresses of the test charging guns are obtained by calculation;
[0058] It should be noted that in computer science and data analysis, Zipf's law is used to simulate data distribution in the real world, especially when it is necessary to generate random strings or random numbers. Therefore, based on the characteristics of Zipf's law, the number of charging guns that are simultaneously turned on and the corresponding gun addresses randomly generated by Zipf's law can be closer to the actual charging scenario, but is not limited to this.
[0059] S104, randomly selecting a charging mode for each test charging gun, the charging mode including charging by time, charging by amount, or charging by power;
[0060] It should be noted that the charging mode of charging according to power can also be divided into an automatic full charging mode and a charging mode of charging according to a set power. Combined with the charging mode of charging according to a set amount and the charging mode of charging according to a set time, a charging mode can be randomly selected from the four charging modes for the test charging gun, but is not limited to this.
[0061] S105, randomly generating charging information for each test charging gun according to the charging mode, where the charging information includes an end trigger value;
[0062] Zipf's law is used to simulate the charging scenarios in the real world to generate gun addresses, test the number of charging guns, charging modes and end trigger values, and construct basic charging information for multiple charging guns, which is closer to real commercial scenarios.
[0063] Furthermore, an end trigger value is randomly generated based on Zipf's law.
[0064] Furthermore, the charging information also includes account, password, start time, initial balance, and initial power level.
[0065] It can be understood that after the gun addresses of multiple test charging guns are randomly generated based on Zipf's law, the charging information of each test charging gun is constructed according to the data type of each data in the basic charging information in the following Table 1, including: gun address, account, password, start time, initial balance, initial power, charging mode, end trigger value, user type, start flag, etc.; among them, the accounts and passwords of different charging guns can be the same, but their gun addresses must be different.
[0066]
[0067]
[0068] Table 1 Basic charging information
[0069] S106, issuing a charging instruction to each test charging gun, and changing its real-time status to charging;
[0070] S107, configuring a time trigger, a money trigger or a power trigger for each test charging gun according to the charging mode, and setting a corresponding end trigger value for the configured trigger;
[0071] It can be understood that after the charging information of each test charging gun is prepared, a charging instruction is sent to the corresponding charging gun through human-computer interaction. After the charging module of the charging gun receives the charging start signal, the corresponding trigger is turned on according to the charging mode of the charging gun, and the end trigger value of the trigger is set. The charging gun starts charging, and the trigger counts according to the set end trigger value. Once the count reaches the end trigger value, the end charging signal is triggered to trigger the execution of step S1071.
[0072] For example, if the charging mode of the charging gun is to charge according to the set time, then the time trigger will be turned on, and the end trigger value will be used as the count value of the time trigger. For example, if the time trigger counts for 2 hours, the end of the time trigger will trigger the end of charging signal.
[0073] Furthermore, before step S108, the method further includes:
[0074] S1080: Obtain the gun address, charging mode, and charging information of the test charging gun corresponding to the trigger that triggers the charging end signal.
[0075] Furthermore, the charging information also includes account, password, start time, initial balance, and initial power level.
[0076] S108, sending a stop charging instruction to the test charging gun corresponding to the trigger that triggers the end charging signal, and changing its real-time state to stop charging;
[0077] S109, obtaining settlement information of a charging gun whose real-time status is stopped charging, sending an order confirmation instruction to it, and changing its real-time status to being settled;
[0078] Furthermore, the settlement information includes charging time, charging method, charging amount, termination reason, electricity fee, service fee and total fee.
[0079] It should be noted that when the charging gun stops charging, a settlement signal will be triggered. At this time, the charging fee of the charging gun is confirmed based on the charging information of the charging gun, and relevant data records are obtained to generate settlement information, which will be sent to the HMI touch screen of the charging gun as a bill together with the bill confirmation instruction, but not limited to this.
[0080] S110. Modify the real-time status of the charging gun of the confirmed order to waiting for charging.
[0081] It is understandable that after the settlement information of the bill is confirmed through the HMI touch screen of the charging gun, the real-time status of the corresponding charging gun is modified to waiting for charging, but not limited to this.
[0082] S111, repeating steps S108 to S110 until all triggers trigger a charging end signal.
[0083] It is understandable that the time when the trigger corresponding to each test charging gun triggers the charging end signal is generally different. Therefore, when the trigger corresponding to any test charging gun triggers the charging end signal, steps S108 to S110 are required to perform charging settlement and order confirmation for the corresponding test charging gun.
[0084] It should be noted that the random charging test method for multiple charging guns of the present invention can test the functions of starting charging, stopping charging, and bill settlement of the charging gun. Abnormal alarms or charging gun failures that occur during the charging test can be tracked and located through the log of the charging device background, and there is no need to add additional hardware equipment, which is cost-effective.
[0085] In the present application, a random charging test is performed on multiple charging guns through a random mechanism. First, the number of charging guns whose real-time status is to be charged and their gun addresses are obtained, and based on this, the gun address of the test charging gun is randomly generated. Then, a charging mode is randomly selected for each test charging gun and charging information is randomly generated. A charging instruction is issued to each test charging gun, and a corresponding trigger is configured according to its respective charging mode. When any trigger triggers an end charging signal, a stop charging instruction is sent to the corresponding test charging gun. Then, the settlement information of the charging gun that stops charging is obtained to send an order confirmation instruction to it. After the order is confirmed, its real-time status is changed to to be charged, and the above-mentioned stop charging and order confirmation operations are repeated until all triggers trigger an end charging signal. The random charging test of the charging gun performed by the above-mentioned random mechanism is more in line with the actual charging scenario, can test various charging functions of the charging gun, expand the test capacity, simplify the charging test process, and effectively shorten the overall charging test time.
[0086] Embodiment 2
[0087] See also Figure 1 and Figure 2 The present invention discloses a multi-charging gun random charging test device, which comprises:
[0088] Module for
[0089] The first acquisition module 201 is used to acquire the number of charging guns in a real-time state of being charged and their gun addresses;
[0090] A first generating module 202, configured to randomly generate a charging gun test quantity according to the acquired quantity;
[0091] The second generating module 203 is used to randomly generate a gun address of a test charging gun according to the acquired gun address and the number of charging gun tests;
[0092] A selection module 204, configured to randomly select a charging mode for each of the test charging guns, wherein the charging mode includes charging by time, charging by amount, or charging by power;
[0093] A third generating module 205, configured to randomly generate charging information for each of the test charging guns according to the charging mode, wherein the charging information includes an end trigger value;
[0094] The first sending module 206 is used to send a charging instruction to each of the test charging guns and modify its real-time status to charging;
[0095] A configuration module 207, configured to configure a time trigger, a money trigger or a power trigger for each of the test charging guns according to the charging mode, and set the corresponding end trigger value for the configured trigger;
[0096] The second sending module 208 is used to send a stop charging instruction to the test charging gun corresponding to the trigger that triggers the end charging signal, and modify its real-time state to stop charging;
[0097] The second acquisition module 209 is used to obtain the settlement information of the charging gun whose real-time status is stopped charging, send an order confirmation instruction to it, and change its real-time status to being settled;
[0098] The modification module 210 is used to modify the real-time status of the charging gun of the confirmed order to be ready for charging.
[0099] Embodiment 3
[0100] See also Figure 1 and Figure 3 , the present invention discloses an electronic device, comprising:
[0101] One or more processors 301;
[0102] The one or more memories 302 are used to store one or more programs. When the one or more programs are executed by the processor, the processor implements the aforementioned multi-charging gun random charging test method.
[0103] Embodiment 4
[0104] An embodiment of the present application discloses a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the aforementioned multi-charging gun random charging test method is implemented.
[0105] Embodiment 5
[0106] The embodiment of the present application discloses a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the above-mentioned multi-charging gun random charging test method.
[0107] It should be understood that in the embodiments of the present application, the processor referred to may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by hardware related to computer program instructions, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0109] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention are still within the scope covered by the present invention.
Claims
1. A random charging test method for multiple charging guns, characterized in that: include: S101, obtaining the number of charging guns in a real-time state of being charged and their gun addresses; S102, randomly generating a charging gun test quantity according to the acquired quantity; S103, randomly generating a gun address of a test charging gun according to the acquired gun address and the number of charging gun tests; S104, randomly selecting a charging mode for each of the test charging guns, where the charging mode includes charging by time, charging by amount, or charging by power; S105, randomly generating charging information for each of the test charging guns according to the charging mode, wherein the charging information includes an end trigger value; S106, issuing a charging instruction to each of the test charging guns, and changing its real-time status to charging; S107, configuring a time trigger, a money trigger or a power trigger for each of the test charging guns according to the charging mode, and setting a corresponding end trigger value for the configured trigger; S108, sending a stop charging instruction to the test charging gun corresponding to the trigger that triggers the end charging signal, and changing its real-time state to stop charging; S109, obtaining settlement information of a charging gun whose real-time status is stopped charging, sending an order confirmation instruction to it, and changing its real-time status to being settled; S110. Modify the real-time status of the charging gun of the confirmed order to waiting for charging. S111, repeating steps S108 to S110 until all triggers trigger a charging end signal.
2. The random charging test method for multiple charging guns according to claim 1, characterized in that: The charging gun test quantity, the gun address of the test charging gun and the end trigger value are randomly generated based on Zipf's law.
3. The random charging test method of multiple charging guns according to claim 1, characterized in that: Before step S101, the method further includes: S11, randomly selecting a real-time random charging mode or a timed random charging mode, if the real-time random charging mode is selected, executing step S101, if the timed random charging mode is selected, executing step S12; S12, setting the test time; S13, determine whether the test time has arrived, if the test time has arrived, execute step S101, if the test time has not arrived, return to execute step S13.
4. The random charging test method for multiple charging guns according to claim 1, characterized in that: Before step S108, the method further includes: S1080: Obtain the gun address, charging mode, and charging information of the test charging gun corresponding to the trigger that triggers the charging end signal.
5. The random charging test method of multiple charging guns according to claim 1, characterized in that: The charging information also includes account, password, start time, initial balance, and initial power.
6. The random charging test method of multiple charging guns according to claim 1, characterized in that: The settlement information includes charging time, charging method, charging amount, termination reason, electricity fee, service fee and total fee.
7. A multi-charging gun random charging test device, characterized in that: include: The first acquisition module is used to acquire the number of charging guns in a real-time state of being charged and their gun addresses; The first generating module is used to randomly generate the charging gun test quantity according to the acquired quantity; A second generating module is used to randomly generate a gun address of a test charging gun according to the acquired gun address and the number of charging gun tests; A selection module, used for randomly selecting a charging mode for each of the test charging guns, wherein the charging mode includes charging by time, charging by amount or charging by power; A third generating module, configured to randomly generate charging information for each of the test charging guns according to the charging mode, wherein the charging information includes an end trigger value; A first sending module is used to send a charging instruction to each of the test charging guns and modify its real-time status to charging; A configuration module, configured to configure a time trigger, an amount trigger or an amount trigger for each of the test charging guns according to the charging mode, and set the corresponding end trigger value for the configured trigger; The second sending module is used to send a stop charging instruction to the test charging gun corresponding to the trigger that triggers the end charging signal, and modify its real-time state to stop charging; The second acquisition module is used to obtain the settlement information of the charging gun whose real-time status is stopped charging, send an order confirmation instruction to it, and change its real-time status to being settled; The modification module is used to modify the real-time status of the charging gun of the confirmed order to waiting for charging.
8. An electronic device, characterized in that: include: one or more processors; One or more memories are used to store one or more programs. When one or more of the programs are executed by the processor, the processor implements the multi-charging gun random charging test method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the random charging test method for multiple charging guns as described in any one of claims 1 to 6 is implemented.
