Test method and device based on simulation charging pile, electronic equipment and medium

By running simulated charging pile applications on electronic devices and simulating abnormal scenarios of charging piles, the problem of charging abnormalities in charging stations is solved, and the software-side optimization verification is achieved, which reduces the testing cost and complexity and improves the user experience.

CN118897786APending Publication Date: 2024-11-05ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310499984.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-05
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In the actual operation of charging stations, hardware failure of charging piles and unstable network signals lead to charging abnormalities, making it difficult for users to charge or fail to settle after charging, which affects the user experience, and reproducing these abnormal scenarios during software optimization is complex and costly.

Method used

By running the simulated charging pile application on the electronic device, the interaction between the charging pile and the control platform is simulated, and the test message is sent to simulate abnormal scenes of the charging pile, such as loss of heartbeat messages, fault messages, charging process interruptions, etc. Reproduce the abnormal situation of the charging pile and verify the effectiveness of the software-side optimization measures.

Benefits of technology

Effectively reproduce the abnormal situation of the charging pile on the software side, verify the effect of optimization measures, reduce the cost and complexity of on-site testing, and improve the user's charging experience and the reliability of the charging station.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897786A_ABST
    Figure CN118897786A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a test method and device based on a simulation charging pile, electronic equipment and a medium, the simulation charging pile is an application program running in the electronic equipment, and the method comprises the following steps: carrying out equipment authentication on the simulation charging pile to a control platform; after the authentication is passed, establishing a long connection between the simulation charging pile and the control platform, so that the simulation charging pile and the control platform communicate based on the long connection; and the simulation charging pile sends a test message to the control platform, and the sending condition of the test message is used for simulating an abnormal scene of the charging pile, so that the control platform processes the abnormal scene of the charging pile according to the sending condition of the test message. According to the method, the abnormal condition of the charging pile can be effectively simulated to complete optimization verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of automated testing technology, and in particular to a testing method, device, electronic device, and medium based on a simulated charging pile. Background Art

[0002] In the context of energy conservation and emission reduction, people are increasingly choosing new energy vehicles, such as electric or hybrid vehicles, which has also promoted the development of charging infrastructure. In the actual operation of charging stations, abnormalities such as charging pile hardware failures and charging pile offline due to poor network signals or unstable networks may occur. These abnormalities prevent users from charging or unable to settle accounts after charging, seriously affecting the user's charging experience. To reduce these abnormalities, the charging pile hardware and control platform software need to be optimized in a coordinated manner. When optimizing the software, these abnormal scenarios need to be reproduced to verify the optimized results. However, reproducing these abnormalities in a real environment is relatively complex. Summary of the Invention

[0003] In view of this, the embodiments of the present disclosure provide at least one testing method, device, electronic device and medium based on a simulated charging pile, which can effectively reproduce the abnormal conditions of these charging piles and complete optimization verification.

[0004] Specifically, the embodiments of the present disclosure are implemented through the following technical solutions:

[0005] In a first aspect, a test method based on a simulated charging pile is provided, where the simulated charging pile is an application running on an electronic device, the method comprising:

[0006] Performing device authentication on the simulated charging pile to the control platform;

[0007] After the authentication is passed, a long connection is established between the simulated charging pile and the control platform, so that the simulated charging pile and the control platform communicate based on the long connection;

[0008] The simulated charging pile sends a test message to the control platform, and the sending status of the test message is used to simulate an abnormal charging pile scenario, so that the control platform processes the abnormal charging pile scenario according to the sending status of the test message.

[0009] In combination with any embodiment provided in the present disclosure, the sending of a test message by the simulated charging pile to the control platform includes:

[0010] The simulated charging pile does not send a heartbeat message to the control platform at a preset time interval, so that the control platform generates a first maintenance instruction according to the sending status of the heartbeat message;

[0011] After determining that the first maintenance instruction is issued, the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

[0012] In combination with any embodiment provided in the present disclosure, the method further includes:

[0013] The simulated charging pile disconnects the long connection, so that the control platform generates a second maintenance instruction after determining that the long connection is disconnected;

[0014] After determining that the second maintenance instruction is issued, a long connection is re-established between the simulated charging pile and the control platform, and the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

[0015] In combination with any embodiment provided in the present disclosure, the sending of a test message by the simulated charging pile to the control platform includes:

[0016] The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a third maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message;

[0017] After determining that the third maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available state.

[0018] In combination with any embodiment provided in the present disclosure, the sending of a test message by the simulated charging pile to the control platform includes:

[0019] The simulated charging pile sends a start charging message to the control platform to notify the control platform that the charging pile has entered the charging state;

[0020] Sending a charging process message to the control platform, wherein the charging process message includes data of the charging process;

[0021] The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a fourth maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message;

[0022] After determining that the fourth maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available state.

[0023] In combination with any embodiment provided in the present disclosure, after the simulated charging pile sends the device fault message and the fault status message to the control platform, the method further includes:

[0024] The simulated charging pile sends a charging end message to the control platform to notify the control platform that the charging pile has exited the charging state and settled the charging order.

[0025] In combination with any embodiment provided in the present disclosure, the step of performing device authentication on the simulated charging pile to the control platform includes:

[0026] The simulated charging pile sends a first authentication file to the control platform, so that the control platform authenticates the first authentication file; and / or,

[0027] The simulated charging pile receives the second authentication file sent by the control platform and authenticates the second authentication file.

[0028] In a second aspect, a test device based on a simulated charging pile is provided, wherein the simulated charging pile is an application running on an electronic device, and the device includes:

[0029] A device authentication module, configured to authenticate the simulated charging pile to a control platform;

[0030] A connection establishment module, configured to establish a long connection between the simulated charging pile and the control platform after authentication is passed, so that the simulated charging pile and the control platform communicate based on the long connection;

[0031] The test simulation module is used to send a test message from the simulated charging pile to the control platform. The sending of the test message is used to simulate the abnormal charging pile scenario, so that the control platform can process the abnormal charging pile scenario according to the sending of the test message.

[0032] In a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions that can be executed on the processor, and the processor is used to implement the test method based on a simulated charging pile described in any embodiment of the present disclosure when executing the computer instructions.

[0033] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the test method based on the simulated charging pile described in any embodiment of the present disclosure is implemented.

[0034] In the test method based on the simulated charging pile provided in the embodiment of the present disclosure, an application running in the electronic device is used as a simulated charging pile to simulate the interaction between the actual charging pile and the control platform. The abnormal charging pile scenario is simulated by simulating the sending of test messages between the charging pile and the control platform, thereby reproducing the abnormal charging pile scenario on the software side and verifying the optimization results on the software side. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in one or more embodiments of the present disclosure or related technologies, the following briefly introduces the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0036] Figure 1 This is a flow chart of a test method based on a simulated charging pile according to at least one embodiment of the present disclosure;

[0037] Figure 2 is a schematic diagram illustrating a device registration interaction between a simulated charging pile and a control platform according to at least one embodiment of the present disclosure;

[0038] Figure 3 is a schematic diagram illustrating the interaction between a charging pile and a control platform during a charging process, as shown in at least one embodiment of the present disclosure;

[0039] Figure 4 is a schematic diagram illustrating offline and offline recovery of a simulated charging pile and a control platform according to at least one embodiment of the present disclosure;

[0040] Figure 5 is a schematic diagram illustrating the interaction between a simulated charging pile and a control platform when a fault occurs in an idle state, as shown in at least one embodiment of the present disclosure;

[0041] Figure 6 is a schematic diagram illustrating the interaction between a charging pile and a control platform when a fault occurs in a charging state, as shown in at least one embodiment of the present disclosure;

[0042] Figure 7 is a block diagram of a test device based on a simulated charging pile according to at least one embodiment of the present disclosure;

[0043] Figure 8 This is a schematic diagram of the hardware structure of an electronic device shown in at least one embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with this specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of this specification, as detailed in the appended claims.

[0045] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. As used in this specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0046] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information without departing from the scope of this specification. Depending on the context, the term "if" as used herein may be interpreted as "when," "when," or "in response to determining."

[0047] Charging piles are devices that replenish energy to new energy vehicles (including pure electric and plug-in hybrid vehicles). In actual operation, there are problems with poor facility layout, such as being built in places with unstable signals, unstable performance and high failure rates. In order to overcome the above problems and improve the user charging experience, in addition to taking measures such as enhancing the network signal of the charging pile and improving the hardware of charging-related equipment, certain backup measures are also needed in the software. For example, if the network signal is unstable and causes message loss or retransmission, while the charging pile itself is normal, certain optimization measures need to be taken on the control platform side of the software to ensure normal use and settlement of orders by users. For example, after determining that the charging equipment has failed, it is necessary to ensure that the control platform can quickly generate a maintenance work order or notify the operator. After optimization and improvement on the software side, it is necessary to verify the optimization results on the software side in a timely, rapid and reliable manner. However, when testing abnormal conditions of charging piles, it is currently necessary to go to the site to reproduce the abnormal conditions of the actual charging piles. This method is very costly and time-consuming. Based on this, the present disclosure provides at least one testing method based on simulated charging piles, which can effectively reproduce the abnormal conditions of these charging piles on the software side and verify the effectiveness of the optimization measures on the software side.

[0048] like Figure 1 As shown, Figure 1This is a flowchart of a test method based on a simulated charging pile according to at least one embodiment of the present disclosure. The simulated charging pile is an application running on an electronic device, which is used to simulate an actual charging device. The method can be used on electronic devices such as computers and mobile phones, and includes the following steps:

[0049] In step 102, the simulated charging pile is authenticated to the control platform.

[0050] When the simulated charging pile accesses the control platform, device authentication is required to establish a connection. This embodiment does not limit the specific method of device authentication, which can be determined according to the charging device protocol. Device authentication can be one-way authentication or two-way authentication, and can use key authentication or certificate authentication.

[0051] In one embodiment, authentication can be performed through an authentication file. This step includes: the simulated charging pile sends a first authentication file to the control platform so that the control platform authenticates the first authentication file; and / or, the simulated charging pile receives a second authentication file sent by the control platform and authenticates the second authentication file.

[0052] The first authentication file is the certificate for the simulated charging station, also known as the client certificate, and the second authentication file is the certificate for the control platform, also known as the server certificate. Authentication can be one-way based on either the first or the second authentication file, or bidirectional based on both.

[0053] The execution timing of this step can be the verification process after each optimization and improvement of the software side. It should be noted that the optimization of the software side in the present disclosure can be the optimization of the control platform side, the optimization of the charging pile side, or the optimization of both at the same time, such as improving the communication method between the two. The goal of the optimization can be to speed up the control platform side's fault judgment speed, improve the hit rate of forming maintenance work orders or notifying operators, ensure normal use and settlement of orders by users, or increase the speed of the charging pile side to go online again after the device is offline.

[0054] In step 104 , after the authentication is passed, a long connection is established between the simulated charging pile and the control platform, so that the simulated charging pile and the control platform communicate based on the long connection.

[0055] The persistent connection established in this step can be based on the HTTP (Hypertext Transfer Protocol) or Websocket protocol, enabling full-duplex communication between the simulated charging pile and the control platform. The specific persistent connection method used can be determined based on the actual communication method between the charging pile to be tested and the control platform. In addition, after establishing a persistent connection, the device registration process can also be simulated, such as sending a registration message based on the JSON format to the control platform to simulate the charging pile registration on the control platform side.

[0056] For example, Figure 2 As shown in the figure, when establishing a persistent connection based on the websocket protocol at the transport layer, the device authentication process in the previous step needs to simulate a two-way authentication process according to the charging device protocol. That is, the simulated charging pile provides the authentication file to the control platform and passes the authentication. At the same time, the simulated charging pile authenticates the file sent by the control platform. After the two-way authentication passes, a persistent connection is established. This persistent connection can be called a business persistent connection. After the persistent connection is established, the simulated charging pile periodically sends heartbeat messages to the control platform to maintain the active state of the persistent connection. The simulated charging pile then sends a device status message to the control platform to notify the control platform of the current device status. After that, the normal business state is entered. Subsequently, various charging protocol messages can be exchanged based on the persistent connection to simulate various abnormal conditions of the charging pile.

[0057] In one embodiment, the normal charging situation of the charging pile can also be simulated to test the effect of the software side in handling the normal charging situation. Figure 3 To simulate the interaction process between the charging pile and the control platform according to the charging device protocol under normal circumstances, the charging pile program simulates. When entering the normal business state, the user inserts the charging gun into the vehicle charging port, the state of the charging gun changes, and the simulated charging pile sends a device status message to the control platform. After receiving the status message, the control platform updates the device status. After the user scans the code to charge and clicks to start charging, the control platform sends a start charging instruction after receiving the information sent by the user scanning the code. The simulated charging pile responds to the instruction and sends a start charging message to the control platform. The device enters the charging state. The simulated charging pile periodically sends data messages during the charging process to the control platform, such as current, voltage, SOC (System on Chip) and other data to simulate actual charging data. After the user clicks to end charging, the control platform receives the instruction sent by the user and sends an end charging instruction to the simulated charging pile. The simulated charging pile responds to the instruction and sends an end charging message to the control platform. The device exits the charging state, the state of the charging gun changes, and the simulated charging pile sends a device status message to the control platform again to notify the control platform of the change in the charging gun's state.

[0058] In step 106, the simulated charging pile sends a test message to the control platform. The sending of the test message is used to simulate an abnormal charging pile scenario, so that the control platform processes the abnormal charging pile scenario according to the sending of the test message.

[0059] Test messages are messages sent by the simulated charging pile and the control platform during interaction. For example, the simulated charging pile periodically sends heartbeat messages to the control platform to simulate the charging pile's keep-alive mechanism. For another example, after the simulated charging pile and the control platform establish and maintain a long connection, various charging protocol messages are sent to and responded to the control platform to achieve the interaction effect of actual charging equipment.

[0060] The test message sending situation simulates the number, type, time interval and whether the charging pile sends test messages to the control platform. Different test message sending situations are used to simulate different charging pile abnormal scenarios. The following examples show several abnormal scenarios.

[0061] Example 1: Simulate an abnormal scenario where the device is offline and verify the results after repair

[0062] Figure 4 The online interaction and offline determination process between the simulated charging pile and the control platform are shown. Under normal circumstances, the charging pile regularly sends heartbeat messages to the control platform to maintain the liveness of the long connection. In actual use, two abnormal charging pile scenarios may occur. The first is that the charging pile network signal is poor or the device is down, resulting in the long connection existing but no heartbeat messages are sent or the interval between sending heartbeat messages is very long. The second is that the device crashes, resulting in the long connection being directly disconnected. When these two situations occur, the control platform will determine that the charging pile is offline. The simulated charging pile program can be used to simulate this process.

[0063] Simulating the first situation: In one embodiment, the online interaction between the charging pile and the platform and the offline determination process, wherein the simulated charging pile sends a test message to the control platform, includes:

[0064] The simulated charging pile does not send a heartbeat message to the control platform at a preset time interval, so that the control platform generates a first maintenance instruction according to the sending status of the heartbeat message;

[0065] After determining that the first maintenance instruction is issued, the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

[0066] Not sending a heartbeat message to the control platform at a preset time interval may mean not sending a heartbeat message to the control platform anymore, or sending it after a long interval. For example, after a long connection is normally established between a simulated charging pile and a control platform, a heartbeat message is no longer actively sent. After a certain period of time, if the control platform does not receive a heartbeat message for a period of time exceeding a preset threshold, it is considered that the device is offline and a first maintenance instruction is generated. The first maintenance instruction is used to repair the offline situation of the device, such as forming a maintenance work order or notifying the operator that the device is offline. After the maintenance is completed, the device returns to normal and the simulated charging pile is used again to send heartbeat messages to the control platform regularly to maintain the long connection alive. This simulation mechanism can be used to simulate the process of the device being offline and then going online again after processing.

[0067] Simulating the second situation: In yet another embodiment, the method further comprises:

[0068] The simulated charging pile disconnects the long connection, so that the control platform generates a second maintenance instruction after determining that the long connection is disconnected;

[0069] After determining that the second maintenance instruction is issued, a long connection is re-established between the simulated charging pile and the control platform, and the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

[0070] The simulated charging pile actively disconnects the long connection. When the long connection is disconnected, the control platform cannot connect to the simulated charging pile, which means that the device is offline. After determining that the device is offline, the control platform generates a second maintenance instruction. The second maintenance instruction is used to repair the offline situation of this type of device, such as generating a maintenance work order or notifying the operator that the device is offline. After the maintenance is completed, the device returns to normal. The offline recovery process is simulated below. If the long connection can still be activated, the simulated charging pile can be used to send heartbeat messages to the control platform regularly to maintain the long connection, or the simulated charging pile and the control platform can re-establish a long connection, and the simulated charging pile can send heartbeat messages to the control platform regularly to maintain the long connection. This simulation mechanism can be used to simulate the process of the device being offline and then going online again after processing.

[0071] Example 2: Simulate an abnormal scenario of device failure in idle state and verify the results after repair

[0072] In this example, the sending of a test message by the simulated charging pile to the control platform includes:

[0073] The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a third maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message;

[0074] After determining that the third maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available state.

[0075] The test messages include device fault messages, fault status messages, and device status messages.

[0076] Figure 4 The diagram shows the interaction process between the simulated charging pile and the control platform when a fault occurs in the idle state. When a fault occurs, the simulated charging pile will actively send a device fault message containing fault information and a fault status message containing the fault status of the device to the control platform. After receiving the message, the control platform will set the status of the charging pile to a fault state, and at the same time determine the equipment fault and generate a third maintenance instruction. The second maintenance instruction is used to repair the fault information, such as forming a maintenance work order or notifying the operator of the fault information. After processing, the equipment returns to normal and the charging pile status changes from fault to available. The fault recovery process is simulated below. The simulated charging pile actively sends a device status message to the control platform to set the status of the charging pile on the control platform to an available state, and then enters the normal business state.

[0077] Example 3: Simulate an abnormal scenario of device failure during charging and verify the results after repair

[0078] In this example, the sending of a test message by the simulated charging pile to the control platform includes:

[0079] The simulated charging pile sends a start charging message to the control platform to notify the control platform that the charging pile has entered the charging state;

[0080] Sending a charging process message to the control platform, wherein the charging process message includes data of the charging process;

[0081] The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a fourth maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message;

[0082] After determining that the fourth maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available state.

[0083] Among them, the test message includes a device fault message and a fault status message related to the fault, and a start charging message, a charging process message, and a device status message related to the charging process. When the simulated charging pile starts charging, the simulated charging pile sends a start charging message to the control platform and periodically sends a charging process message containing charging process data. The simulated charging pile enters the charging state. When a fault occurs during the charging process, the simulated charging pile sends a fault status message containing the device fault status and a device fault message containing fault information to the control platform. The control platform determines that the device is faulty and generates a fourth maintenance instruction. The fourth maintenance instruction is used to repair the fault information, such as forming a maintenance work order or notifying the operator of the fault information. After that, the device returns to normal, and the status of the simulated charging pile changes from faulty to available. The fault recovery process is simulated below. The simulated charging pile sends a device status message to the control platform and enters the normal business state.

[0084] After the simulated charging pile sends the device fault message and the fault status message to the control platform, the method further includes:

[0085] The simulated charging pile sends a charging end message to the control platform to notify the control platform that the charging pile has exited the charging state and settled the charging order.

[0086] Figure 6 In order to simulate the interaction process between the charging pile and the control platform when a fault occurs in the charging state, when the simulated charging pile starts charging, the simulated charging pile sends a start charging message to the control platform, and regularly sends a charging process message containing charging process data. The simulated charging pile enters the charging state. When a fault occurs during the charging process, the simulated charging pile sends a fault status message containing the device fault status, a device fault message containing fault information, and an end charging message to the control platform to notify the control platform to exit the charging state. After receiving the end charging message, the control platform will end the order and settle the account, and at the same time determine the equipment fault, form a maintenance work order or notify the operator. After that, the equipment returns to normal, and the status of the simulated charging pile changes from fault to available. The fault recovery process is simulated below. The simulated charging pile sends a device status message to the control platform and enters the normal business state.

[0087] By running an application in an electronic device as a simulated charging pile, the interaction between the actual charging pile and the control platform is simulated. By simulating the sending of test messages between the charging pile and the control platform, abnormal scenarios such as charging pile disconnection and failure are simulated, thereby reproducing the abnormal scenarios of the charging pile on the software side and verifying the optimization results on the software side.

[0088] like Figure 7 As shown, Figure 7 This is a block diagram of a test device based on a simulated charging pile, illustrating at least one embodiment of the present disclosure. The simulated charging pile is an application running on an electronic device. The device includes:

[0089] The device authentication module 71 is used to authenticate the simulated charging pile to the control platform;

[0090] A connection establishing module 72 is configured to establish a long connection between the simulated charging pile and the control platform after the authentication is passed, so that the simulated charging pile and the control platform communicate based on the long connection;

[0091] The test simulation module 73 is used to send a test message from the simulated charging pile to the control platform. The sending of the test message is used to simulate the abnormal charging pile scenario, so that the control platform can process the abnormal charging pile scenario according to the sending of the test message.

[0092] In some optional embodiments, the test simulation module 73 is specifically configured to:

[0093] The simulated charging pile does not send a heartbeat message to the control platform at a preset time interval, so that the control platform generates a first maintenance instruction according to the sending status of the heartbeat message;

[0094] After determining that the first maintenance instruction is issued, the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

[0095] In some optional embodiments, the test simulation module 73 is further configured to:

[0096] The simulated charging pile disconnects the long connection, so that the control platform generates a second maintenance instruction after determining that the long connection is disconnected;

[0097] After determining that the second maintenance instruction is issued, a long connection is re-established between the simulated charging pile and the control platform, and the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

[0098] In some optional embodiments, the test simulation module 73 is specifically configured to:

[0099] The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a third maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message;

[0100] After determining that the third maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available state.

[0101] In some optional embodiments, the test simulation module 73 is specifically configured to:

[0102] The simulated charging pile sends a start charging message to the control platform to notify the control platform that the charging pile has entered the charging state;

[0103] Sending a charging process message to the control platform, wherein the charging process message includes data of the charging process;

[0104] The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a fourth maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message;

[0105] After determining that the fourth maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available state.

[0106] In some optional embodiments, the test simulation module 73 is further configured to:

[0107] The simulated charging pile sends a charging end message to the control platform to notify the control platform that the charging pile has exited the charging state and settled the charging order.

[0108] In some optional embodiments, the device authentication module 71 is specifically configured to:

[0109] The simulated charging pile sends a first authentication file to the control platform, so that the control platform authenticates the first authentication file; and / or,

[0110] The simulated charging pile receives the second authentication file sent by the control platform and authenticates the second authentication file.

[0111] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0112] The present disclosure also provides an electronic device, such as Figure 8 As shown, the electronic device includes a memory 81 and a processor 82, wherein the memory 81 is used to store computer instructions that can be executed on the processor, and the processor 82 is used to implement the test method based on the simulated charging pile described in any embodiment of the present disclosure when executing the computer instructions.

[0113] An embodiment of the present disclosure further provides a computer program product, which includes a computer program / instruction. When the computer program / instruction is executed by a processor, the test method based on the simulated charging pile described in any embodiment of the present disclosure is implemented.

[0114] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the test method based on the simulated charging pile described in any embodiment of the present disclosure is implemented.

[0115] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0116] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0117] Other embodiments of the present invention will readily occur to those skilled in the art upon consideration of the present invention and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present invention being indicated by the following claims.

[0118] It should be understood that the present description is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0119] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A test method based on a simulated charging pile, It is characterized in that The simulated charging pile is an application program running on an electronic device, and the method includes: Performing device authentication on the simulated charging pile to the control platform; After the authentication is passed, a long connection is established between the simulated charging pile and the control platform, so that the simulated charging pile and the control platform communicate based on the long connection; The simulated charging pile sends a test message to the control platform, and the sending of the test message is used to simulate an abnormal charging pile scenario, so that the control platform processes the abnormal charging pile scenario according to the sending of the test message.

2. The method according to claim 1, It is characterized in that The sending of a test message by the simulated charging pile to the control platform includes: The simulated charging pile does not send a heartbeat message to the control platform at a preset time interval, so that the control platform generates a first maintenance instruction according to the sending status of the heartbeat message; After determining that the first maintenance instruction is issued, the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

3. The method according to claim 1, It is characterized in that The method further comprises: The simulated charging pile disconnects the long connection, so that the control platform generates a second maintenance instruction after determining that the long connection is disconnected; After determining that the second maintenance instruction is issued, the simulated charging pile and the control platform are re-established with a long connection, and the simulated charging pile sends a heartbeat message to the control platform at a preset time interval to maintain the long connection.

4. The method according to claim 1, It is characterized in that The sending of a test message by the simulated charging pile to the control platform includes: The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a third maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message; After determining that the third maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available status.

5. The method according to claim 1, It is characterized in that The sending of a test message by the simulated charging pile to the control platform includes: The simulated charging pile sends a start charging message to the control platform to notify the control platform that the charging pile has entered a charging state; Sending a charging process message to the control platform, wherein the charging process message includes data of the charging process; The simulated charging pile sends a device fault message and a fault status message to the control platform, wherein the device fault message includes fault information of the charging pile, so that the control platform generates a fourth maintenance instruction after receiving the device fault message and sets the state of the charging pile to the fault state after receiving the fault status message; After determining that the fourth maintenance instruction is issued, the simulated charging pile sends a device status message to the control platform, so that the control platform sets the status of the charging pile to an available status.

6. The method according to claim 5, It is characterized in that After the simulated charging pile sends a device fault message and a fault status message to the control platform, the method further includes: The simulated charging pile sends a charging end message to the control platform to notify the control platform that the charging pile has exited the charging state and settled the charging order.

7. The method according to claim 1, It is characterized in that The step of performing device authentication on the simulated charging pile to the control platform includes: The simulated charging pile sends a first authentication file to the control platform, so that the control platform authenticates the first authentication file; and / or, The simulated charging pile receives the second authentication file sent by the control platform, and authenticates the second authentication file.

8. A test device based on a simulated charging pile, It is characterized in that The simulated charging pile is an application program running on an electronic device, and the device includes: A device authentication module, used to authenticate the simulated charging pile to the control platform; A connection establishment module, used to establish a long connection between the simulated charging pile and the control platform after the authentication is passed, so that the simulated charging pile and the control platform communicate based on the long connection; The test simulation module is used to send a test message from the simulated charging pile to the control platform, and the sending of the test message is used to simulate the abnormal scene of the charging pile, so that the control platform processes the abnormal scene of the charging pile according to the sending of the test message.

9. An electronic device, It is characterized in that The device includes a memory and a processor, wherein the memory is used to store computer instructions that can be executed on the processor, and the processor is used to implement the test method based on a simulated charging pile as described in any one of claims 1 to 7 when executing the computer instructions.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the testing method based on a simulated charging pile according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Charging pile test simulation system

    CN121880212A