Testing methods, apparatus, equipment, and media for charging platforms based on simulated charging piles.
By creating virtual charging piles and connecting them to the charging platform, and sending charging pile operation data for testing, the problem of incomplete performance testing of the charging platform is solved. This enables comprehensive performance testing and complex scenario simulation of the charging platform, and reduces testing costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BESCORE NEW ENERGY TECH (QINGDAO) CO LTD
- Filing Date
- 2026-04-23
- Publication Date
- 2026-07-14
AI Technical Summary
In existing technologies, the charging pile motherboard cannot simulate multiple application scenarios of the charging pile in real operation, resulting in incomplete performance testing of the charging platform.
By acquiring charging pile configuration and operation data, a virtual charging pile is created and connected to the charging platform. The virtual charging pile is then controlled to send charging pile operation data for testing, thus achieving comprehensive testing of the charging platform.
It enables comprehensive performance testing of the charging platform, reduces testing costs, and can simulate multiple charging piles concurrently and complex abnormal scenarios, thereby improving the comprehensiveness and accuracy of the test.
Smart Images

Figure CN122385994A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging platform testing technology, specifically providing a charging platform testing method, apparatus, equipment, and medium based on simulated charging piles.
[0002] Background technology.
[0003] With the large-scale construction of electric vehicle charging networks, the number of charging piles that a charging platform needs to connect to simultaneously is also constantly increasing. This charging platform needs to handle tasks such as device access, status monitoring, charging control, data reporting, fault diagnosis, and order settlement. Furthermore, before going live, charging platforms typically undergo stress testing, performance testing, stability testing, and abnormal scenario testing to verify their handling capabilities under high concurrency, weak network conditions, and device malfunctions.
[0004] In existing technologies, when testing a charging platform, the charging pile's motherboard establishes a communication connection with the charging platform, and then basic information such as device number and protocol is configured in the charging platform. However, this testing scheme can only test the connectivity between the charging platform and the charging pile, and cannot simulate application scenarios such as charging and multiple charging piles operating concurrently. This leads to the technical problem that the performance of the charging platform cannot be comprehensively tested.
[0005] Accordingly, there is a need in the field for a new charging platform testing method based on simulated charging piles to solve the above problems. Summary of the Invention
[0006] In order to overcome the above-mentioned defects, this application is made to provide a solution or at least a partial solution to the technical problem in the prior art that the charging pile motherboard cannot simulate multiple application scenarios of the charging pile in the actual operation process, and thus cannot comprehensively test the performance of the charging platform.
[0007] Firstly, this application provides a charging platform testing method based on a simulated charging pile, comprising:
[0008] Obtain charging pile configuration data and charging pile operation data;
[0009] Based on the charging pile configuration data, a virtual charging pile is created;
[0010] Connect the virtual charging pile to the charging platform;
[0011] The virtual charging pile is controlled to send its operation data to the charging platform to obtain test results.
[0012] In one technical solution of the above-mentioned charging platform testing method based on simulated charging piles, the step of creating a virtual charging pile according to the charging pile configuration data includes:
[0013] Obtain charging pile attribute data and charging pile execution methods;
[0014] Based on the charging pile attribute data and the charging pile execution method, a virtual charging pile class is created;
[0015] The charging pile configuration data is input into the virtual pile class to obtain a virtual charging pile.
[0016] In one technical solution of the above-mentioned charging platform testing method based on simulated charging piles, connecting the virtual charging pile to the charging platform includes:
[0017] Control the virtual charging pile to communicate with the charging platform;
[0018] The virtual charging station is registered.
[0019] The virtual charging pile is controlled to report heartbeat data to the charging platform.
[0020] In one technical solution of the above-mentioned charging platform testing method based on simulated charging piles, the step of controlling the virtual charging pile to send the charging pile operation data to the charging platform to obtain test results includes:
[0021] Obtain the communication protocol between the virtual charging pile and the charging platform;
[0022] According to the communication protocol, the charging pile operation data is encapsulated to obtain encapsulated data;
[0023] The encapsulation data is sent to the charging platform so that the charging platform can provide feedback control commands based on the encapsulation data;
[0024] The control command is sent to the virtual charging station to obtain the execution result;
[0025] The execution result is compared with the preset execution result to obtain the test result.
[0026] In one technical solution of the above-mentioned charging platform testing method based on simulated charging piles, the step of sending the encapsulated data to the charging platform includes:
[0027] Obtain the socket and transmission queue of the virtual charging pile;
[0028] The encapsulated data is added to the sending queue to obtain queue data;
[0029] If the encapsulated data is determined to be at the beginning of the queue data, then the encapsulated data is retrieved from the queue data.
[0030] The encapsulation data is sent to the charging platform according to the socket.
[0031] In one technical solution of the above-mentioned charging platform testing method based on simulated charging piles, after connecting the virtual charging pile to the charging platform, the method further includes:
[0032] Obtain vehicle battery data;
[0033] Send the vehicle's battery data to the virtual charging station;
[0034] Based on the vehicle's battery data, the virtual charging station is controlled to simulate charging the vehicle.
[0035] The vehicle's battery data is fed back to the charging platform to obtain control commands;
[0036] The control command is sent to the virtual charging station to obtain the execution result;
[0037] The test result is obtained by comparing the execution result with the preset execution result.
[0038] In one technical solution of the above-mentioned charging platform testing method based on simulated charging piles, after controlling the virtual charging pile to send the charging pile operation data to the charging platform and obtaining the test results, the method further includes:
[0039] If the test result is determined to be an anomaly, then the anomaly type and duration of the anomaly of the virtual charging pile are obtained.
[0040] By analyzing the test anomaly type and the duration of the anomaly, the defects of the charging platform can be identified.
[0041] The defects of the charging platform are sent to the maintenance personnel's terminal so that the maintenance personnel can repair the charging platform according to the defects.
[0042] Secondly, this application provides a charging platform testing device, comprising:
[0043] The acquisition module is used to acquire charging pile configuration data and charging pile operation data;
[0044] A creation module is used to create virtual charging piles based on the charging pile configuration data;
[0045] The control module is used to connect the virtual charging pile to the charging platform;
[0046] The control module is also used to control the virtual charging pile to send the charging pile operation data to the charging platform to obtain test results.
[0047] Thirdly, this application provides a charging platform testing device, including at least one processor and a memory; wherein,
[0048] The memory stores computer-executed instructions;
[0049] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method described in any one of the first aspects.
[0050] Fourthly, this application provides a computer-readable storage medium storing a plurality of program codes adapted to be loaded and run by a processor to perform the method described in any one of the first aspects.
[0051] This application provides a charging platform testing method, apparatus, equipment, and medium based on simulated charging piles. The method specifically includes: acquiring charging pile configuration data and charging pile operation data; creating a virtual charging pile based on the charging pile configuration data; connecting the virtual charging pile to the charging platform; controlling the virtual charging pile to send the charging pile operation data to the charging platform to obtain test results, thereby achieving comprehensive testing of the charging platform. Attached Figure Description
[0052] The disclosure of this application will become more readily understood with reference to the accompanying drawings. It will be readily understood by those skilled in the art that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. Furthermore, similar numbers in the drawings are used to denote similar components, wherein:
[0053] Figure 1 This is a structural diagram of a charging platform testing system provided in an embodiment of this application;
[0054] Figure 2 This is a flowchart illustrating a first embodiment of a charging platform testing method based on a simulated charging pile provided in this application.
[0055] Figure 3 This is a flowchart illustrating a second embodiment of a charging platform testing method based on a simulated charging pile provided in this application.
[0056] Figure 4 This is a flowchart illustrating a third embodiment of a charging platform testing method based on a simulated charging pile provided in this application.
[0057] Figure 5 This is a flowchart illustrating Embodiment 4 of a charging platform testing method based on a simulated charging pile provided in this application.
[0058] Figure 6 This is a flowchart illustrating Embodiment 5 of a charging platform testing method based on a simulated charging pile provided in this application.
[0059] Figure 7 This is a flowchart illustrating a sixth embodiment of a charging platform testing method based on a simulated charging pile provided in this application.
[0060] Figure 8 This is a flowchart illustrating Embodiment Seven of a charging platform testing method based on a simulated charging pile provided in this application.
[0061] Figure 9 This is a schematic diagram of the structure of a charging platform testing device provided in an embodiment of this application;
[0062] Figure 10 This is a schematic diagram of the structure of a charging platform testing device provided in an embodiment of this application.
[0063] List of reference numerals in the attached diagram:
[0064] 11: Parameter configuration module; 12: Modeling module; 13: Platform interaction module; 14: Exception injection module; 21: Acquisition module; 22: Creation module; 23: Control module; 31: Processor; 32: Memory. Detailed Implementation
[0065] Some embodiments of this application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of this application and are not intended to limit the scope of protection of this application.
[0066] In the description of this application, "module" and "processor" can include hardware, software, or a combination of both. A module can include hardware circuitry, various suitable sensors, communication ports, memory, and can also include software components, such as program code, or a combination of software and hardware. A processor can be a central processing unit, microprocessor, image processor, digital signal processor, or any other suitable processor. The processor has data and / or signal processing capabilities. The processor can be implemented in software, in hardware, or a combination of both. Non-transitory computer-readable storage media includes any suitable medium capable of storing program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The terms "at least one A or B" or "at least one of A and B" have a similar meaning to "A and / or B" and can include only A, only B, or A and B. The singular terms "a" or "this" can also include plural forms.
[0067] In existing technologies, to reduce testing costs, the motherboards of multiple charging piles are used as test hardware to test the performance of a charging platform. However, this test hardware lacks a charging power module, high-voltage circuit, and vehicle battery management system interface. It can only test connectivity functions such as charging pile online status and heartbeat, but cannot test complex anomalies such as charging pile charging or multi-pile concurrency. Therefore, it fails to meet the requirements for performance stress testing and full-scenario verification of the charging platform.
[0068] Based on this, in order to solve the above-mentioned technical problems, the technical concept of this application is to provide a new charging platform testing method based on simulated charging piles, so as to achieve comprehensive testing of the performance of the charging platform.
[0069] Figure 1 This is a structural diagram of a charging platform testing system based on a simulated charging pile, provided in an embodiment of this application. Figure 1 As shown, the charging platform testing system includes: a parameter configuration module 11, a modeling module 12, a platform interaction module 13, and an exception injection module 14. The modeling module 12 creates virtual charging piles based on the charging pile configuration data. Then, the parameter configuration module 11 obtains the charging pile configuration data and batch configures the parameters of the virtual charging piles. The platform interaction module 13 connects the virtual charging piles to the charging platform. The exception injection module 14 controls the virtual charging piles to send their operating data to the charging platform to obtain the test results.
[0070] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0071] Figure 2 This is a flowchart illustrating an embodiment of a charging platform testing method based on a simulated charging pile provided in this application. Figure 2 As shown, specifically, the method includes:
[0072] Step S101: Obtain charging pile configuration data and charging pile operation data.
[0073] In this embodiment, the charging pile configuration data includes the number of charging piles, device type, communication address, protocol type, heartbeat cycle, and reporting interval. The charging pile operation data includes voltage, current, battery level, battery temperature, device offline status, communication interruption, message loss, data anomaly, large-scale concentrated offline status of a large number of charging piles within seconds, high-frequency heartbeat message jitter, intermittent message loss, and stepped communication delay.
[0074] Step S102: Create a virtual charging station based on the charging station configuration data.
[0075] In this embodiment, virtual charging pile attributes are generated based on the charging pile configuration data, and virtual charging piles are created based on the virtual charging pile attributes.
[0076] Step S103: Connect the virtual charging station to the charging platform.
[0077] In this embodiment, the virtual charging pile can establish a connection with the charging platform using a long connection mode based on the TCP / IP protocol stack. After confirming a successful connection, the virtual charging pile periodically reports online data to the charging platform to ensure the stability of the connection between the virtual charging pile and the charging platform.
[0078] Step S104: Control the virtual charging pile to send the charging pile operation data to the charging platform to obtain the test results.
[0079] In this embodiment, according to the communication protocol between the virtual charging pile and the charging platform, the charging operation data is packaged and sent to the charging platform. The charging platform sends control commands to the virtual charging pile, and the virtual charging pile obtains the operation results according to the control commands. The operation results are compared with the preset results to obtain the test results.
[0080] In this embodiment, by acquiring charging pile configuration data and charging pile operation data, and creating a virtual charging pile based on the charging pile configuration data, the virtual charging pile is then connected to the charging platform. Finally, the virtual charging pile is controlled to send the charging pile operation data to the charging platform to obtain test results. Compared to the prior art, where the charging pile motherboard cannot simulate multiple application scenarios of the charging pile operation process, and thus cannot comprehensively test the performance of the charging platform, this application creates a virtual charging pile based on the charging pile configuration data, establishes a connection between the virtual charging pile and the charging platform, and after confirming a successful connection, sends the charging pile operation data to the charging platform to obtain the test results of the charging platform, thereby achieving comprehensive testing of the charging platform.
[0081] Figure 3 This is a flowchart illustrating a second embodiment of a charging platform testing method based on a simulated charging pile, provided in this application. Based on the above embodiments, as... Figure 3 As shown, the specific implementation of step S102 includes:
[0082] Step S201: Obtain charging pile attribute data and charging pile execution method.
[0083] In this embodiment, the charging pile attribute data includes data belonging to the charging pile's own attributes, such as the type, power, number, and protocol of the virtual charging pile. The charging pile execution method refers to the methods representing the charging pile's functions, such as the data processing steps and control processes.
[0084] Step S202: Create a virtual charging pile class based on the charging pile attribute data and the charging pile execution method.
[0085] In this embodiment, charging pile attribute data and charging pile execution methods are added to a class. The charging pile attribute data can be represented by characters, and the charging pile execution methods can be represented by program code or pseudocode. By adding the characters representing the charging attribute data and the program code representing the charging execution methods to declare the charging pile attributes and charging pile execution methods, a virtual pile class is obtained.
[0086] Step S203: Input the charging pile configuration data into the virtual pile class to obtain the virtual charging pile.
[0087] In this embodiment, the charging pile configuration data of each charging pile is input into the virtual pile class, that is, the virtual pile class is instantiated to obtain the virtual charging pile.
[0088] In this embodiment, the configuration data of multiple charging piles can be input into the virtual pile class in batches, which can quickly instantiate the virtual pile class and thus quickly obtain virtual charging piles.
[0089] In this embodiment, there is no data interaction between each virtual stub class, and each virtual stub runs independently.
[0090] In this embodiment, charging pile attribute data and charging pile execution method are first obtained. Then, a virtual pile class is created based on the charging pile attribute data and charging pile execution method. It is best to input the charging pile configuration data into the virtual pile class to obtain a virtual charging pile. By creating a virtual charging pile in the form of software or code, instead of using physical devices such as charging pile motherboards or charging piles, the testing cost of the charging platform is reduced.
[0091] Figure 4 This is a flowchart illustrating a third embodiment of a charging platform testing method based on a simulated charging pile, provided in this application. Based on the above embodiments, as... Figure 4 As shown, the specific implementation of step S103 includes:
[0092] Step S301: Control the virtual charging pile to establish a communication connection with the charging platform.
[0093] In this embodiment, the virtual charging pile initiates a connection request to the charging platform. After receiving the connection request, the charging platform establishes a communication connection with the virtual charging pile.
[0094] In this embodiment, the communication protocol between the virtual charging pile and the charging platform can be the Open Charging Point Protocol or an Internet-based protocol.
[0095] Step S302: Register the virtual charging station.
[0096] In this embodiment, after the virtual charging pile is successfully connected to the charging platform, the virtual charging pile sends information such as its identifier, location, and model to the charging platform, and the charging platform registers the virtual charging pile.
[0097] Step S303: Control the virtual charging pile to report heartbeat data to the charging platform.
[0098] In this embodiment, in order to maintain a persistent connection between the virtual charging pile and the charging platform, the virtual charging pile needs to periodically report heartbeat data to the charging platform.
[0099] In this embodiment, after the virtual charging pile establishes a communication connection with the charging platform, the virtual charging pile is registered. After successful registration, in order to maintain a long-term connection between the virtual charging pile and the charging platform, the virtual charging pile reports heartbeat data to the charging platform, thereby achieving a stable connection between the virtual charging pile and the charging platform.
[0100] Figure 5 This is a flowchart illustrating Embodiment 4 of a charging platform testing method based on a simulated charging pile, provided in this application. Based on the above embodiments, as... Figure 5 As shown, the specific implementation of step S104 includes:
[0101] Step S401: Obtain the communication protocol between the virtual charging pile and the charging platform.
[0102] In this embodiment, the virtual charging pile and the charging platform transmit data through a communication protocol, and the communication protocol is different for different types of data.
[0103] Step S402: According to the communication protocol, the charging pile operation data is encapsulated to obtain encapsulated data.
[0104] In this embodiment, the charging pile operation data can be normal operation data or abnormal fault data.
[0105] In this embodiment, the communication protocol generally includes field names, data types, and data lengths. Based on the field names in the communication protocol, the charging pile operation data is converted into the corresponding data type and data length. Then, the converted data is filled into the communication protocol to obtain encapsulated data.
[0106] Step S403: Send the packaging data to the charging platform so that the charging platform can provide feedback control commands based on the packaging data.
[0107] In this embodiment, the encapsulated data is sent to the charging platform. After parsing the encapsulated data, the charging platform obtains the charging pile operation data. Then, the charging platform analyzes the charging pile operation data to obtain control commands for the virtual charging pile.
[0108] In this embodiment, the encapsulated data can be sent to the charging platform in a timed, quantitative, targeted, and sequential manner.
[0109] Step S404: Send the control command to the virtual charging station and obtain the execution result.
[0110] In this embodiment, after the charging platform sends the control command to the platform interaction module, the platform interaction module sends the control command to the virtual charging pile. The virtual charging pile executes the control command, obtains the execution result, and sends the execution result to the platform interaction module.
[0111] Step S405: Compare the execution result with the preset execution result to obtain the test result.
[0112] In this embodiment, there is a preset correspondence between charging pile operation data and preset execution results. The execution results are compared with the preset execution results. If they are the same, the test result is normal; if they are different, the test result is abnormal.
[0113] In this embodiment, the communication protocol between the virtual charging pile and the charging platform is obtained; according to the communication protocol, the charging pile operation data is encapsulated to obtain encapsulated data; the encapsulated data is sent to the charging platform so that the charging platform can provide feedback control commands based on the encapsulated data; the control commands are sent to the virtual charging pile to obtain the execution result; the execution result is compared with the preset execution result to obtain the test result. The virtual charging pile can generate various abnormal data, and after sending various abnormal data to the charging platform, the charging platform is tested, thereby realizing a comprehensive test of the charging platform.
[0114] Figure 6 This is a flowchart illustrating Embodiment 5 of a charging platform testing method based on a simulated charging pile, provided in this application. Based on the above embodiments, as... Figure 6 As shown, specifically, in step S403, sending the encapsulation data to the charging platform includes:
[0115] Step S501: Obtain the socket and send queue of the virtual charging pile.
[0116] In this embodiment, each virtual charging station has an independent communication link; therefore, each virtual charging station corresponds to a socket. Furthermore, to prevent data congestion, the data sent by the virtual charging station to the charging platform needs to be temporarily stored in a transmission queue, and each virtual charging station corresponds to a transmission queue.
[0117] Step S502: Add the encapsulated data to the sending queue to obtain queue data.
[0118] In this embodiment, when the virtual charging pile generates new encapsulation data, the new encapsulation data is added to the tail of the sending queue to obtain queue data.
[0119] Step S503: If the encapsulated data is determined to be at the beginning of the queue data, then the encapsulated data is retrieved from the queue data.
[0120] In this embodiment, when the charging platform processes the encapsulation data of the virtual charging pile, it retrieves the data from the head of the queue data. Therefore, when it is determined that the encapsulation data is at the head or tail of the queue data, the encapsulation data is retrieved from the queue data.
[0121] Step S504: Send the encapsulation data to the charging platform according to the socket.
[0122] In this embodiment, the encapsulated data is sent to the charging platform according to the socket.
[0123] In this embodiment, the socket and transmission queue of the virtual charging pile are obtained; the encapsulated data is added to the transmission queue to obtain queue data; if the encapsulated data is determined to be at the beginning of the queue data, the encapsulated data is retrieved from the queue data; and the encapsulated data is sent to the charging platform according to the socket. This ensures that multiple virtual charging piles do not interfere with each other when a large amount of data is transmitted concurrently, and reduces the system resource consumption.
[0124] Figure 7 This is a flowchart illustrating a sixth embodiment of a charging platform testing method based on a simulated charging pile provided in this application. Based on the above embodiments, as... Figure 7 As shown, specifically, after step S103, the method further includes:
[0125] Step S601: Obtain vehicle battery data.
[0126] In this embodiment, the vehicle's battery data includes data such as battery charge, voltage, current, and temperature, which are pre-stored in memory.
[0127] Step S602: Send the vehicle's battery data to the virtual charging station.
[0128] In this embodiment, the vehicle's battery data is packaged and sent to the virtual charging station according to the preset communication protocol between the vehicle and the virtual charging station.
[0129] Step S603: Based on the vehicle's battery data, control the virtual charging station to simulate charging the vehicle.
[0130] In this embodiment, the charging current and charging voltage are obtained based on the vehicle's battery data, and the vehicle is simulated to be charged based on the charging current and charging voltage.
[0131] Step S604: Feed back the vehicle's battery data to the charging platform to obtain control commands.
[0132] During simulated charging of a vehicle, the vehicle's battery data is constantly changing. It is necessary to periodically send this battery data back to the charging platform to receive control commands for the virtual charging station. These control commands can include starting charging, stopping charging, etc.
[0133] Step S605: Send the control command to the virtual charging station and obtain the execution result.
[0134] In this embodiment, the platform interaction module sends control commands to the virtual charging pile, the virtual charging pile executes the control commands, and generates execution results after execution is completed.
[0135] Step S606: Compare the execution result with the preset execution result to obtain the test result.
[0136] In this embodiment, there is a preset correspondence between vehicle battery data and preset execution results. By obtaining the current vehicle battery data, the matching preset execution result is obtained from the correspondence, and the preset execution result is compared with the execution result. If they are the same, the test result is normal; if they are different, the test result is abnormal.
[0137] In this embodiment, the vehicle's battery data is acquired; the vehicle's battery data is sent to a virtual charging pile; based on the vehicle's battery data, the virtual charging pile is controlled to simulate charging the vehicle; the vehicle's battery data is fed back to the charging platform to obtain control commands; the control commands are sent to the virtual charging pile to obtain execution results; and the execution results are compared with preset execution results to obtain test results. Since the vehicle's battery data is generated manually, there is no need for the charging platform to interact with the vehicle's battery management system, thus achieving lightweight design and reducing the testing cost of the charging platform.
[0138] Figure 8 This is a flowchart illustrating Embodiment Seven of a charging platform testing method based on a simulated charging pile, provided in this application. Based on the above embodiments, as... Figure 8As shown, specifically, after step S104, the method further includes:
[0139] Step S701: If the test result is determined to be an anomaly, then obtain the test anomaly type and anomaly duration of the virtual charging pile.
[0140] Step S702: Analyze the test anomaly type and duration to identify defects in the charging platform.
[0141] In this embodiment, the exception handling logic corresponding to the type of test exception is analyzed, and it is determined whether the processing time of the exception handling logic is the duration of the exception, thereby obtaining the defects of the charging platform.
[0142] Step S703: Send the defects of the charging platform to the maintenance personnel's terminal so that the maintenance personnel can repair the charging platform according to the defects.
[0143] In this embodiment, after the defects of the charging platform are sent to the maintenance personnel's terminal, the maintenance personnel reproduce and analyze the defects, obtain solutions, and thus repair the charging platform.
[0144] In this embodiment, if the test result is determined to be an anomaly, the test anomaly type and duration of the virtual charging pile are obtained; the test anomaly type and duration are analyzed to identify the defects of the charging platform; the defects of the charging platform are sent to the maintenance personnel's terminal so that the maintenance personnel can repair the charging platform according to the defects, thereby improving the fault tolerance capability of the charging platform in extreme scenarios.
[0145] It should be noted that although the steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effect of this application, different steps do not necessarily have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders, and these variations are all within the scope of protection of this application.
[0146] Furthermore, this application also provides a charging platform testing device.
[0147] Figure 9 This is a schematic diagram of the structure of a charging platform testing device provided in an embodiment of this application. Figure 9As shown, the charging platform testing device in this embodiment mainly includes an acquisition module 21, a creation module 22, and a control module 23. In some embodiments, one or more of the acquisition module 21, creation module 22, and control module 23 can be combined into a single module. In some embodiments, the acquisition module 21 can be configured to acquire charging pile configuration data and charging pile operation data. The creation module 22 can be configured to create a virtual charging pile based on the charging pile configuration data. The control module 23 can be configured to connect the virtual charging pile to the charging platform. The control module 23 can also be configured to control the virtual charging pile to send the charging pile operation data to the charging platform to obtain test results.
[0148] The aforementioned charging platform testing device is used for performing Figures 2 to 8 The embodiments of the charging platform testing method based on simulated charging piles shown are similar in technical principle, technical problem solved and technical effect. Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process and related descriptions of the charging platform testing device can be referred to the contents described in the embodiments of the charging platform testing method based on simulated charging piles, and will not be repeated here.
[0149] Those skilled in the art will understand that all or part of the processes in the method of the above-described embodiment can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium can include any entity or device capable of carrying the computer program code, a medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0150] Furthermore, this application also provides a charging platform testing device.
[0151] Figure 10 This is a schematic diagram of the structure of a charging platform testing device provided in an embodiment of this application. Figure 10As shown, the charging platform testing device includes a processor 31 and a memory 32. The memory 32 can be configured to store a program for executing the charging platform testing method based on a simulated charging pile as described in the above-described method embodiments. The processor 31 can be configured to execute the program stored in the memory, which includes, but is not limited to, the program for executing the charging platform testing method based on a simulated charging pile as described in the above-described method embodiments. For ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the method section of the embodiments of this application. The charging platform testing device can be a control device device comprising various electronic devices.
[0152] Furthermore, this application also provides a computer-readable storage medium. In one embodiment of the computer-readable storage medium according to this application, the computer-readable storage medium can be configured to store a program that executes the above-described method embodiment of the charging platform testing method based on a simulated charging pile. This program can be loaded and run by a processor to implement the above-described method of testing a charging platform based on a simulated charging pile. For ease of explanation, only the parts related to the embodiments of this application are shown; for specific technical details not disclosed, please refer to the method section of the embodiments of this application. The computer-readable storage medium can be a storage device device including various electronic devices. Optionally, in the embodiments of this application, the computer-readable storage medium is a non-transitory computer-readable storage medium.
[0153] Furthermore, it should be understood that since the various modules are only provided to illustrate the functional units of the device described in this application, the physical devices corresponding to these modules may be the processor itself, or a part of the processor's software, hardware, or a combination of both. Therefore, the number of modules shown in the figures is merely illustrative.
[0154] Those skilled in the art will understand that the various modules in the device can be adaptively split or combined. Such splitting or combining of specific modules will not cause the technical solution to deviate from the principles of this application; therefore, the technical solutions after splitting or combining will fall within the protection scope of this application.
[0155] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. Without departing from the principles of this application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of this application.
Claims
1. A testing method for a charging platform based on a simulated charging pile, characterized in that, include: Obtain charging pile configuration data and charging pile operation data; Based on the charging pile configuration data, a virtual charging pile is created; Connect the virtual charging pile to the charging platform; The virtual charging pile is controlled to send its operation data to the charging platform to obtain test results.
2. The method according to claim 1, characterized in that, The step of creating a virtual charging station based on the charging station configuration data includes: Obtain charging pile attribute data and charging pile execution methods; Based on the charging pile attribute data and the charging pile execution method, a virtual charging pile class is created; The charging pile configuration data is input into the virtual pile class to obtain a virtual charging pile.
3. The method according to claim 2, characterized in that, Connecting the virtual charging pile to the charging platform includes: Control the virtual charging pile to communicate with the charging platform; The virtual charging station is registered. The virtual charging pile is controlled to report heartbeat data to the charging platform.
4. The method according to claim 1, characterized in that, The process of controlling the virtual charging pile to send its operation data to the charging platform and obtaining test results includes: Obtain the communication protocol between the virtual charging pile and the charging platform; According to the communication protocol, the charging pile operation data is encapsulated to obtain encapsulated data; The encapsulation data is sent to the charging platform so that the charging platform can provide feedback control commands based on the encapsulation data; The control command is sent to the virtual charging station to obtain the execution result; The execution result is compared with the preset execution result to obtain the test result.
5. The method according to claim 4, characterized in that, Sending the encapsulation data to the charging platform includes: Obtain the socket and transmission queue of the virtual charging pile; The encapsulated data is added to the sending queue to obtain queue data; If the encapsulated data is determined to be at the beginning of the queue data, then the encapsulated data is retrieved from the queue data. The encapsulation data is sent to the charging platform according to the socket.
6. The method according to claim 1, characterized in that, After connecting the virtual charging pile to the charging platform, the method further includes: Obtain vehicle battery data; Send the vehicle's battery data to the virtual charging station; Based on the vehicle's battery data, the virtual charging station is controlled to simulate charging the vehicle. The vehicle's battery data is fed back to the charging platform to obtain control commands; The control command is sent to the virtual charging station to obtain the execution result; The test result is obtained by comparing the execution result with the preset execution result.
7. The method according to claim 1, characterized in that, After controlling the virtual charging pile to send the charging pile operation data to the charging platform and obtaining the test results, the method further includes: If the test result is determined to be an anomaly, then the anomaly type and duration of the anomaly of the virtual charging pile are obtained. By analyzing the test anomaly type and the duration of the anomaly, the defects of the charging platform can be identified. The defects of the charging platform are sent to the maintenance personnel's terminal so that the maintenance personnel can repair the charging platform according to the defects.
8. A charging platform testing device, characterized in that, include: The acquisition module is used to acquire charging pile configuration data and charging pile operation data; A creation module is used to create virtual charging piles based on the charging pile configuration data; The control module is used to connect the virtual charging pile to the charging platform; The control module is also used to control the virtual charging pile to send the charging pile operation data to the charging platform to obtain test results.
9. A charging platform testing device, comprising at least one processor and a memory; wherein, The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a plurality of program codes, characterized in that, The program code is adapted to be loaded and run by a processor to perform the method of any one of claims 1 to 7.