Plug-and-Charge Function Testing Method, Device, Equipment and Medium

Through the interaction between the test equipment and the server, the charging information verification and feedback data are used to determine whether the plug-and-play charging function of the charging pile is started normally, solving the problem of lack of testing methods in the existing technology, and achieving effective testing of the plug-and-play charging function and confirmation of the operating status.

CN115097237BActive Publication Date: 2025-08-01ZHEJIANG HAOHAN ENERGY TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210695872.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2025-08-01
Estimated Expiration
2042-06-20

AI Technical Summary

Technical Problem

There is a lack of a test method for whether the plug-and-play charging function can be started normally in the prior art, which makes it impossible to ensure whether the plug-and-play charging function of the charging pile works normally.

Method used

The test equipment simulates the interaction between the charging pile and the server, sends a charging information verification test request, and the server generates feedback data based on the request, and the test equipment determines whether the feedback data is the same as the preset data to determine whether the plug-and-play charging function of the charging pile is activated normally.

Benefits of technology

The normal startup and operation status of the charging pile plug-and-play charging function is realized, and the testing efficiency and accuracy are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115097237B_ABST
    Figure CN115097237B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, device and medium for testing the plug-and-charge function. In this method, a test device simulates a charging pile and sends a charging information verification test request to a server. The server then generates charging information verification feedback data according to whether the information in the test request is complete and whether an error occurs during the operation, and sends it to the test device. When the test device receives the feedback data, it determines whether the plug-and-charge function of the charging pile can be normally started according to whether the feedback data is the same as the preset charging information verification passed data. This solution realizes the test of whether the plug-and-charge function can be normally started by simulating the interaction between the charging pile and the server through facilities and equipment and then judging whether the feedback data is the same as the preset verification passed data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle charging, and particularly to a method, device, equipment and medium for testing the plug-and-charge function. Background Art

[0002] With the rapid development of technology, in the field of vehicles, more and more new functions have been realized. Vehicles have evolved from using fuel as the energy source to using electric energy as the energy source.

[0003] In the prior art, for electric vehicles, when the vehicle battery level is low, charging is required, and generally a charging pile is selected for charging. For charging using a charging pile, the operation has evolved from the need to swipe a card, enter a password or scan a QR code for authorization before charging to the current plug-and-charge function, which is convenient to use and has higher efficiency.

[0004] However, there is no solution in the prior art to test whether the plug-and-charge function can be started normally. Summary of the Invention

[0005] Embodiments of the present application provide a method, device, equipment and medium for testing the plug-and-charge function, which are used to solve the problem of how to test whether the plug-and-charge function can be started normally.

[0006] In a first aspect, embodiments of the present application provide a method for testing the plug-and-charge function, which is applied to a test device, and the method includes:

[0007] Sending a charging information verification test request to a server, where the charging information verification test request includes user information, electric vehicle information, and charging station information;

[0008] If receiving the charging information verification feedback data for the charging information verification test request sent by the server, then determining whether the plug-and-charge function of the charging pile can be started normally according to whether the charging information verification feedback data is the same as the preset charging information verification passed data.

[0009] In a specific embodiment, the charging information verification feedback data is an error code generated when the server runs in error, or an information complete response data generated when the server determines that the information in the charging information verification test request is complete;

[0010] Correspondingly, the determining whether the plug-and-charge function of the charging pile can be started normally according to whether the charging information verification feedback data is the same as the preset charging information verification passed data includes:

[0011] If the charging information verification feedback data is the same as the preset charging information verification passed data, it is determined that the plug-and-charge function of the charging pile is normally started;

[0012] If the charging information verification feedback data is different from the preset charging information verification passed data, it is determined that the plug-and-charge function of the charging pile is abnormal.

[0013] In a specific implementation manner, after determining that the plug-and-charge function of the charging pile is normally started, the method further includes:

[0014] Sending an authentication test instruction to the server;

[0015] If the authentication feedback data sent by the server for the authentication test instruction is received, it is determined whether the authentication feedback data is the same as the preset authentication verification passed data; the authentication feedback data is an operation error code generated when the server runs in error, or an order normal response data generated by the server when it determines that the number of unfinished orders in the existing orders that match the user information and the vehicle information is less than the preset number according to the user information and the vehicle information;

[0016] If the authentication feedback data is the same as the preset authentication verification passed data, it is determined that the plug-and-charge function normally verifies the order.

[0017] In a specific implementation manner, the method further includes:

[0018] Sending a start charging test instruction and an order generation query instruction to the server;

[0019] If the start charging verification feedback data and the order generation set sent by the server for the start charging test instruction are received, it is determined whether the start charging verification feedback data is the same as the preset start charging verification passed data, and whether there is an order in the generated orders that is the same as the preset generated verification passed order; the start charging verification feedback data is an operation error code generated when the server runs in error, or a start charging instruction.

[0020] If the start charging verification feedback data is the same as the preset start charging verification passed data, and there is an order in the order generation set that is the same as the preset generated verification passed order, it is determined that the plug-and-charge function normally generates a start charging instruction.

[0021] In a specific implementation manner, the method further includes:

[0022] Sending charging process data, an end charging test instruction, and an updated order query instruction to the server;

[0023] If the end - charging verification feedback data for the end - charging test instruction and the updated order set sent by the server are received, then determine whether the end - charging verification feedback data is the same as the preset end - charging verification - passed data, and whether there is an order in the updated order set that is the same as the preset updated verification - passed order; the end - charging verification feedback data is an error code generated when the server runs incorrectly, or an end - charging instruction.

[0024] If the end - charging verification feedback data is the same as the preset end - charging verification - passed data, and there is an order in the updated order set that is the same as the preset updated verification - passed order, then determine that the plug - and - charge function is running normally.

[0025] In a specific implementation manner, before sending the charging information verification test request to the server, the method further includes:

[0026] Send an Internet Protocol (IP) address acquisition request to the registration center;

[0027] Establish a connection with the server according to the IP address returned by the registration center and the preset port number.

[0028] In a second aspect, an embodiment of the present application provides a plug - and - charge function test method applied to a server. The method includes:

[0029] Receive a charging information verification test request sent by a test device, where the charging information verification test request includes user information, electric vehicle information, and charging station information;

[0030] If the information in the charging information verification test request is complete, then generate information - complete response data, and determine whether an error occurs during the running process;

[0031] If an error occurs during the running process, then generate an error code and determine the error code as the charging information verification feedback data; otherwise, determine the information - complete response data as the charging information verification feedback data;

[0032] Send the charging information verification feedback data to the test device.

[0033] In a specific implementation manner, the method further includes:

[0034] Receive an authentication test instruction sent by the test device;

[0035] If the number of unfinished orders in the existing orders that match the user information and the vehicle information is less than a preset number, then generate order - normal response data, and determine whether an error occurs during the running process;

[0036] If an error occurs during the operation, a running error code is generated and the running error code is determined as the authentication feedback data; otherwise, the normal response data of the order is determined as the authentication feedback data;

[0037] Send the authentication feedback data to the test device.

[0038] In a specific embodiment, the method further includes:

[0039] Receive a start charging test instruction and a generate order query instruction sent by the test device;

[0040] Generate a start charging instruction according to the start charging test instruction, and generate an order according to the information in the charging information verification test request, and determine whether an error occurs during the operation;

[0041] If an error occurs during the operation, a running error code is generated and the running error code is determined as the start charging verification feedback data; otherwise, the start charging instruction is determined as the start charging verification feedback data;

[0042] Obtain a generated order set according to the generate order query instruction;

[0043] Send the start charging verification feedback data and the generated order set to the test device.

[0044] In a specific embodiment, the method further includes:

[0045] Receive charging process data, an end charging test instruction and an update order query instruction sent by the test device;

[0046] Generate an end charging instruction according to the end charging test instruction, and update the order generated according to the information in the charging information verification test request according to the charging process data, and determine whether an error occurs during the operation; <..

[0047] If an error occurs during the operation, a running error code is generated and the running error code is determined as the end charging verification feedback data; otherwise, the end charging instruction is determined as the end charging verification feedback data;

[0048] Obtain an updated order set according to the update order query instruction;

[0049] Send the end charging verification feedback data and the updated order set to the test device.

[0050] In a third aspect, an embodiment of the present application provides a plug-and-charge function test device, including:

[0051] A sending module, configured to send a charging information verification test request to a server, where the charging information verification test request includes user information, electric vehicle information, and charging station information;

[0052] A processing module, configured to, if receiving charging information verification feedback data for the charging information verification test request sent by the server, determine whether the plug-and-charge function of the charging pile can be normally started according to whether the charging information verification feedback data is the same as preset charging information verification passed data.

[0053] In a fourth aspect, an embodiment of the present application provides a plug-and-charge function test device, including:

[0054] A receiving module, configured to receive a charging information verification test request sent by a test device, where the charging information verification test request includes user information, electric vehicle information, and charging station information;

[0055] A processing module, configured to, if the information in the charging information verification test request is complete, generate information complete response data and determine whether an error occurs during operation;

[0056] A generating module, configured to, if an error occurs during the operation, generate an operation error code and determine the operation error code as the charging information verification feedback data, otherwise determine the information complete response data as the charging information verification feedback data;

[0057] A sending module, configured to send the charging information verification feedback data to the test device.

[0058] In a fifth aspect, an embodiment of the present application provides a test device, including:

[0059] A processor, a memory, and a communication interface;

[0060] The memory is configured to store executable instructions of the processor;

[0061] Wherein, the processor is configured to execute the plug-and-charge function test method according to any one of the first aspect by executing the executable instructions.

[0062] In a sixth aspect, an embodiment of the present application provides a server, including:

[0063] A processor, a memory, and a communication interface;

[0064] The memory is configured to store executable instructions of the processor; [[ID=URL=40]] [[ID=URL=41]]

[0065] Wherein, the processor is configured to execute the plug-and-charge function test method according to any one of the second aspect by executing the executable instructions.

[0066] In a seventh aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the plug-and-charge function testing method according to any one of the first aspect to the second aspect is implemented.

[0067] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it is used to implement the plug-and-charge function testing method according to any one of the first aspect to the second aspect.

[0068] The plug-and-charge function testing method, device, equipment and medium provided by the embodiments of the present application simulate a charging pile to send a charging information verification test request to the server through a testing device. The server then generates charging information verification feedback data and sends it to the testing device according to whether the information in the test request is complete and whether there is an error during the operation process. When the testing device receives the feedback data, it determines whether the plug-and-charge function of the charging pile can be normally started according to whether the feedback data is the same as the preset charging information verification passed data. This solution realizes the test of whether the plug-and-charge function can be normally started by simulating the interaction between the charging pile and the server through facilities and equipment and then determining whether the feedback data is the same as the preset verification passed data. Description of the Drawings

[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0070] Figure 1 It is a schematic flowchart of the first embodiment of the plug-and-charge function testing method provided by the present application;

[0071] Figure 2 It is a schematic flowchart of the second embodiment of the plug-and-charge function testing method provided by the present application;

[0072] Figure 3 It is a schematic flowchart of the third embodiment of the plug-and-charge function testing method provided by the present application;

[0073] Figure 4 It is a schematic flowchart of the fourth embodiment of the plug-and-charge function testing method provided by the present application;

[0074] Figure 5 It is a schematic flowchart of the fifth embodiment of the plug-and-charge function testing method provided by the present application;

[0075] Figure 6Schematic diagram of the first embodiment of the plug-and-charge function testing device provided by this application;

[0076] Figure 7 Schematic diagram of the second embodiment of the plug-and-charge function testing device provided by this application;

[0077] Figure 8 Schematic diagram of a testing device provided by this application;

[0078] Figure 9 Schematic diagram of a server provided by this application. Detailed implementation manners

[0079] To make the objectives, technical solutions and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some but not all of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of this application under the inspiration of this embodiment belong to the scope protected by this application.

[0080] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned accompanying drawings are used to distinguish similar objects and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order different from those illustrated or described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0081] With the development of technology and the improvement of people's living standards, people have put forward higher requirements in aspects such as clothing, food, housing and transportation. In terms of travel, the emergence of electric vehicles has met people's requirements for environmental protection.

[0082] For electric vehicles, when the vehicle battery level is low, charging is required, and generally a charging pile is selected for charging. In the prior art, for charging using a charging pile, the operations have evolved from the original need to swipe a card, enter a password or scan a QR code for authorization before charging to the current plug-and-charge method, which is convenient to use and has higher efficiency. However, there is currently no solution that can implement a method for testing whether the plug-and-charge function can be started normally.

[0083] In view of the problems existing in the prior art, during the research on the plug-and-charge function testing method, the inventors found that a testing device can be used to simulate the interaction between a charging pile and a server, and the testing device sends a test request to the server. According to the test request, the server generates feedback data according to the plug-and-charge function and returns it to the testing device. The testing device determines whether the plug-and-charge function of the charging pile can be started normally based on whether the feedback data is the same as the preset verified passed data. Based on the above inventive concept, the plug-and-charge function testing scheme in this application is designed.

[0084] Exemplarily, the application scenario of the plug-and-charge function testing method provided in this application will be described below.

[0085] In order to test whether the plug-and-charge function can be started normally and whether this function can operate normally, and to improve the testing efficiency, testers can use a testing device to simulate the interaction between a charging pile and a server to complete the test.

[0086] The testing device sends a charging information verification test request to the server. The charging information verification test request includes user information, electric vehicle information, and charging station information, and the information in the charging information verification test request is complete. The server verifies whether the information in the charging information verification test request is complete and determines whether an error occurs during the operation, and then generates charging information verification feedback data and sends it to the testing device. The testing device determines whether the generated charging information verification feedback data is the same as the preset charging information verified passed data. If the two are the same, it is determined that the plug-and-charge function of the charging pile can be started normally; if the two are different, it is determined that the plug-and-charge function is abnormal.

[0087] After determining that the plug-and-charge function is started normally, in order to determine whether the plug-and-charge function can operate normally subsequently, the testing device also sends a corresponding test instruction to the server. The server generates corresponding data according to the plug-and-charge function, determines whether a problem occurs during the operation, and then generates feedback data and sends it to the testing device. The testing device determines whether the plug-and-charge function can operate normally based on whether the feedback data is the same as the preset verified passed data.

[0088] It should be noted that the testing device can be a computer, or a terminal device, a server, or other devices that can simulate a charging pile and interact with the server. This application does not limit it, and it can be determined according to actual needs.

[0089] It should be noted that the above application scenario is only a schematic representation of an application scenario provided by the embodiments of this application. The embodiments of this application do not limit the actual forms of various devices included in this application scenario, nor do they limit the interaction methods between devices. In the specific application of the solution, it can be set according to actual needs.

[0090] Next, the technical solution of the present application will be described in detail through specific embodiments. It should be noted that the following several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0091] Figure 1 As shown in the flowchart of the first embodiment of the plug-and-charge function test method provided by the present application, the embodiment of the present application describes the process of testing whether the plug-and-charge function can be started normally. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. As Figure 1 shown, the plug-and-charge function test method specifically includes the following steps:

[0092] S101: The test device sends a charging information verification test request to the server.

[0093] In order to test whether the plug-and-charge function of the charging pile can be started normally, the tester needs to use the test device to simulate the charging pile and then establish a connection with the server.

[0094] In this step, after the test device establishes a connection with the server, testing can be carried out. The test device sends a charging information verification test request to the server, and the charging information verification test request includes user information, electric vehicle information, and charging station information.

[0095] It should be noted that the information in the charging information verification test request is complete.

[0096] S102: After the server receives the charging information verification test request sent by the test device, it determines whether the information in the charging information verification test request is complete.

[0097] In this step, after the test device sends a charging information verification test request to the server, the server can receive the charging information verification test request sent by the test device. The charging information verification test request includes user information, electric vehicle information, and charging station information. Then the server determines whether the information in the charging information verification test request is complete. Since the information in the charging information verification test request sent by the test device is complete, the server can determine that the information is complete.

[0098] S103: If the server determines that the information in the charging information verification test request is complete, it generates information complete response data and determines whether an error occurs during the operation process; if an error occurs during the operation process, it executes S104; if no error occurs during the operation process, it executes S105.

[0099] S104: The server generates an operation error code and determines the operation error code as the charging information verification feedback data.

[0100] S105: The server determines the information complete response data as the charging information verification feedback data.

[0101] S106: The server sends the charging information verification feedback data to the test device.

[0102] In the above steps, if the server determines that the information in the charging information verification test request is complete, it generates the information complete response data and determines whether an error occurs during the operation. If an error occurs during the operation, it indicates that the plug and charge function is abnormal. The server generates an operation error code and determines the operation error code as the charging information verification feedback data. If no error occurs during the operation, it indicates that the plug and charge function can be started normally, and the information complete response data is determined as the charging information verification feedback data. Then, the charging information verification feedback data is sent to the test device for subsequent verification by the test device.

[0103] S107: If the test device receives the charging information verification feedback data for the charging information verification test request sent by the server, it determines whether the plug and charge function of the charging pile can be started normally according to whether the charging information verification feedback data is the same as the preset charging information verification passed data.

[0104] In this step, after the server sends the charging information verification feedback data to the test device, if the test device receives the charging information verification feedback data for the charging information verification test request sent by the server, it determines whether the plug and charge function of the charging pile can be started normally according to whether the charging information verification feedback data is the same as the preset charging information verification passed data.

[0105] Specifically, because the charging information verification feedback data is the operation error code generated when the server runs in error, or the information complete response data generated when the server determines that the information in the charging information verification test request is complete, and the preset charging information verification passed data is the same as the information complete response data, so if the charging information verification feedback data is the same as the preset charging information verification passed data, that is, the charging information verification feedback data is the information complete response data, it is determined that the plug and charge function of the charging pile starts normally.

[0106] If the charging information verification feedback data is not the same as the preset charging information verification passed data, that is, the charging information verification feedback data is the operation error code, it is determined that the plug and charge function of the charging pile is abnormal, the test ends, the test device disconnects from the server, and then the test device can output a test report for the tester to view.

[0107] It should be noted that if the test device does not receive the charging information verification feedback data, it indicates that there is an abnormality in the network or the server. Furthermore, it indicates that the plug-and-charge function is abnormal. The test ends, the test device disconnects from the server, and then the test device can output a test report for the testers to view.

[0108] For the plug-and-charge function test method provided in this embodiment, the test device simulates a charging pile to establish a connection with the server and sends a charging information verification test request to the server. The server determines whether the information in the test request is complete according to the plug-and-charge function, and whether there is an error during operation to obtain the charging information verification feedback data and send it to the test device. The test device compares the feedback data with the preset charging information verification passed data, and determines whether the plug-and-charge function of the charging pile can be normally started according to whether they are the same, realizing the test of whether the plug-and-charge function of the charging pile can be normally started.

[0109] Figure 2 As shown in the flowchart of Embodiment 2 of the plug-and-charge function test method provided in this application, on the basis of the above embodiment, if the plug-and-charge function can be normally started, it is necessary to test the subsequent operation of the plug-and-charge function. This application embodiment describes the process of testing whether the plug-and-charge function can normally verify an order. As Figure 2 shown, the plug-and-charge function test method specifically includes the following steps:

[0110] S201: The test device sends an authentication test instruction to the server.

[0111] In this step, in order to test whether the plug-and-charge function can normally verify an order, the test device needs to send an authentication test instruction to the server.

[0112] S202: After receiving the authentication test instruction sent by the test device, the server determines whether the number of unfinished orders that match the user information and vehicle information in the existing orders is less than the preset number.

[0113] In this step, after the test device sends an authentication test instruction to the server, the server can receive the authentication test instruction sent by the test device. Furthermore, the server determines whether the number of unfinished orders that match the user information and vehicle information in the existing orders is less than the preset number.

[0114] It should be noted that due to the settings of the user information and vehicle information in the charging information verification test request by the tester, the number of unfinished orders that match the user information and vehicle information in the charging information verification test request is less than the preset number. Therefore, the server can determine that the number of unfinished orders that match the user information and vehicle information in the existing orders is less than the preset number.

[0115] It should be noted that the unfinished orders include the unsettled orders and / or the unpaid orders.

[0116] It should be noted that the preset quantity is set in the server by the staff before the implementation of this solution, and is used to determine whether the number of unfinished orders matching the user information and vehicle information in the existing orders is less than the preset quantity. The preset quantity can be 1, 2, or 5. The embodiments of the present application do not specifically limit the preset quantity, and can be set according to the actual situation.

[0117] S203: If the server determines that the number of unfinished orders matching the user information and vehicle information in the existing orders is less than the preset quantity, it generates order normal response data and determines whether an error occurs during the operation; if an error occurs during the operation, it executes S204; if no error occurs during the operation, it executes S205.

[0118] S204: The server generates a running error code and determines the running error code as the authentication feedback data.

[0119] S205: The server determines the order normal response data as the authentication feedback data.

[0120] S206: The server sends the authentication feedback data to the test device.

[0121] In the above steps, if the server determines that the number of unfinished orders matching the user information and vehicle information in the existing orders is less than the preset quantity, it generates order normal response data and determines whether an error occurs during the operation. If an error occurs during the operation, it indicates that the plug-and-charge function is abnormal, and the server generates a running error code and determines the running error code as the authentication feedback data. If no error occurs during the operation, it indicates that the plug-and-charge function can normally verify the order, and the order normal response data is determined as the authentication feedback data. Then, the authentication feedback data is sent to the test device for subsequent verification by the test device.

[0122] Optionally, if no error occurs during the operation, the server can also generate a random code and send it to the test device, so that when the test device sends instructions, data, etc. to the server later, the random code is carried at the same time, and the server can determine the communication security according to the received random code.

[0123] Optionally, after the server determines that the number of unfinished orders matching the user information and vehicle information in the existing orders is less than the preset quantity, it can also determine whether the user has enabled the plug-and-charge function and the password-free payment function according to the user information. Due to the setting of the user information in the charging information verification test request by the tester, the server can determine that the user has enabled the plug-and-charge function and the password-free payment function, and thus can generate order normal response data.

[0124] S207: If the test device receives the authentication feedback data for the authentication test instruction sent by the server, it determines whether the authentication feedback data is the same as the preset authentication passed data; if the authentication feedback data is the same as the preset authentication passed data, it executes S208; if the authentication feedback data is not the same as the preset authentication passed data, it executes S209.

[0125] S208: The test device determines that the plug and charge function is normally verified for the order.

[0126] S209: The test device determines that the plug and charge function is abnormal.

[0127] In the above steps, after the server sends the authentication feedback data to the test device, if the test device receives the authentication feedback data for the authentication test instruction sent by the server, it determines whether the authentication feedback data is the same as the preset authentication passed data.

[0128] Since the authentication feedback data is the running error code generated when the server runs incorrectly, or the order normal response data generated when the server determines that the number of unfinished orders matching the user information and vehicle information in the existing orders is less than the preset number according to the user information and vehicle information, and the preset authentication passed data is the same as the order normal response data, so if the authentication feedback data is the same as the preset authentication passed data, that is, the authentication feedback data is the order normal response data, it is determined that the plug and charge function can normally verify the order.

[0129] If the authentication feedback data is not the same as the preset authentication passed data, that is, the authentication feedback data is the running error code, it is determined that the plug and charge function of the charging pile is abnormal, the test ends, the test device disconnects from the server, and then the test device can output a test report for the tester to view.

[0130] Optionally, if the server sends a random code to the test device, the test device will also receive and store the random code.

[0131] It should be noted that if the test device does not receive the authentication feedback data, it means that the network or the server is abnormal, which further means that the plug and charge function is abnormal, the test ends, the test device disconnects from the server, and then the test device can output a test report for the tester to view.

[0132] In the plug-and-charge function test method provided in this embodiment, the test device sends an authentication test instruction to the server. The server determines whether the number of unfinished orders in the existing orders that match the user information and vehicle information is less than a preset number according to the plug-and-charge function, and whether an error occurs during the operation to obtain the authentication feedback data and send it to the test device. The test device compares the feedback data with the preset authentication verification passed data, and determines whether the plug-and-charge function of the charging pile can normally verify the order according to whether the two are the same, realizing the test of whether the plug-and-charge function of the charging pile can normally verify the order.

[0133] Figure 3 FIG. 4 is a schematic flowchart of Embodiment 3 of the plug-and-charge function test method provided in this application. On the basis of the above embodiment, if the plug-and-charge function can normally verify the order, further tests are required. This application embodiment describes the process of testing whether the plug-and-charge function can normally generate a start charging instruction. As Figure 3 shown, the plug-and-charge function test method specifically includes the following steps:

[0134] S301: The test device sends a start charging test instruction and an order generation query instruction to the server.

[0135] In this step, in order to test whether the plug-and-charge function can normally generate a start charging instruction, the test device needs to send a start charging test instruction and an order generation query instruction to the server.

[0136] Optionally, when sending the start charging test instruction and the order generation query instruction to the server, the test device can also carry a random code generated by the server and sent to the test device at the same time. [[ID=,17]]

[0137] S302: The server generates a start charging instruction according to the received start charging test instruction, and generates an order by verifying the information in the test request according to the charging information, and determines whether an error occurs during the operation; if an error occurs during the operation, execute S303; if no error occurs during the operation, execute S304.

[0138] S303: The server generates a running error code and determines the running error code as the start charging verification feedback data.

[0139] S304: The server determines the start charging instruction as the start charging verification feedback data.

[0140] In the above steps, after the test device sends the start charging test instruction and the generate order query instruction to the server, the server can receive the start charging test instruction and the generate order query instruction sent by the test device. Furthermore, the server generates a start charging instruction according to the received start charging test instruction, generates an order based on the information in the charging information verification test request, and determines whether an error occurs during the operation.

[0141] If an error occurs during the operation, it indicates that the plug and charge function is abnormal. The server generates an operation error code and determines the operation error code as the start charging verification feedback data. If no error occurs during the operation, it indicates that the plug and charge function can normally generate the start charging instruction, and the start charging instruction is determined as the start charging verification feedback data.

[0142] Exemplarily, since the charging information verification test request includes user information, electric vehicle information, and charging station information. The user information includes identity identification, contact information, etc. The electric vehicle information includes vehicle identification, battery information, etc. The charging station information includes charging pile identification, charging gun identification, charging station identification, etc. Therefore, the server can generate an empty order and write the user information, electric vehicle information, and charging station information in the charging information verification test request into the empty order, that is, generate an order.

[0143] It should be noted that the above example is only an example of the process of the server generating an order according to the information in the charging information verification test request, and does not specifically limit the content included in the user information, electric vehicle information, and charging station information, which can be set according to the actual situation.

[0144] Optionally, when the test device sends the start charging test instruction and the generate order query instruction to the server, if a random code is carried at the same time, the server will verify the random code to determine whether it is the same as the random code generated by the server itself. If they are the same, it indicates communication security; if they are different, it indicates communication insecurity, and then a prompt message will be sent to the staff to prompt the staff that the communication is insecure for the staff to perform maintenance.

[0145] S305: The server obtains the generated order set according to the received generate order query instruction.

[0146] S306: The server sends the start charging verification feedback data and the generated order set to the test device.

[0147] In the above steps, after the server receives the generate order query instruction, according to this instruction, it obtains the generated order set from the orders stored in itself. Furthermore, the start charging verification feedback data and the generated order set are sent to the test device for subsequent verification by the test device.

[0148] Optionally, to improve the efficiency of the server, the staff can set a preset duration in the server, and the server obtains the order set generated within the preset duration. The preset duration can be 1 minute, 3 minutes, or 5 minutes. The embodiments of the present application do not specifically limit the preset duration, which can be set according to the actual situation.

[0149] S307: If the test device receives the start charging verification feedback data for the start charging test instruction sent by the server and the generated order set, it determines whether the start charging verification feedback data is the same as the preset start charging verification passed data; if the start charging verification feedback data is the same as the preset start charging verification passed data, it executes S308; if the start charging verification feedback data is not the same as the preset start charging verification passed data, it executes S310.

[0150] S308: The test device determines whether there is an order in the generated orders that is the same as the preset generated verification passed order; if there is an order in the generated orders that is the same as the preset generated verification passed order, it executes S309, and if there is no order in the generated orders that is the same as the preset generated verification passed order, it executes S310.

[0151] S309: The test device determines that the plug-and-charge function normally generates a start charging instruction.

[0152] S310: The test device determines that the plug-and-charge function is abnormal. [[ID=##**WARN**##]]

[0153] In the above steps, after the server sends the start charging verification feedback data and the generated order set to the test device, if the test device receives the start charging verification feedback data for the start charging test instruction sent by the server and the generated order set, in order to determine whether the plug-and-charge function can normally generate a start charging instruction, it is necessary to determine whether the start charging verification feedback data is the same as the preset start charging verification passed data.

[0154] Since the start charging verification feedback data is the running error code generated when the server runs incorrectly, or the start charging instruction, and the preset start charging verification passed data is the same as the start charging instruction, if the start charging verification feedback data is not the same as the preset start charging verification passed data, that is, the start charging verification feedback data is the running error code, it is determined that the plug-and-charge function of the charging pile is abnormal, the test ends, the test device disconnects from the server, and then the test device can output a test report for the tester to view.

[0155] If the start charging verification feedback data is the same as the preset start charging verification passed data, that is, the start charging verification feedback data is the start charging instruction, it is necessary to further determine whether there is an order in the generated orders that is the same as the preset generated verification passed order.

[0156] Since the preset generated verified passed order is the same as the order generated by the server based on the charging information to verify the information in the test request, if there is an order in the generated order that is the same as the preset generated verified passed order, that is, the server generates an order based on the charging information to verify the information in the test request, it is determined that the plug-and-charge function normally generates a start charging instruction.

[0157] If there is no order in the generated order that is the same as the preset generated verified passed order, that is, the server does not generate an order based on the charging information to verify the information in the test request, it is determined that the plug-and-charge function of the charging pile is abnormal, the test ends, the test device disconnects from the server, and then the test device can output a test report for testers to view.

[0158] It should be noted that the execution order of determining whether the start charging verification feedback data is the same as the preset start charging verified passed data and step S308 can be to first determine whether the start charging verification feedback data is the same as the preset start charging verified passed data, and then execute step S308; it can also be to first execute step S308, and then determine whether the start charging verification feedback data is the same as the preset start charging verified passed data; it can also be to execute both at the same time. The embodiment of the present application does not limit the execution order of determining whether the start charging verification feedback data is the same as the preset start charging verified passed data and step S308, and can be selected according to the actual situation.

[0159] It should be noted that if the test device does not receive the start charging verification feedback data and / or the generated order set, it indicates that there is an abnormality in the network or the server, and further indicates that the plug-and-charge function is abnormal. The test ends, the test device disconnects from the server, and then the test device can output a test report for testers to view.

[0160] In the plug-and-charge function test method provided in this embodiment, the test device sends a start charging test instruction and a generated order query instruction to the server. The server generates a start charging instruction and an order according to the plug-and-charge function, and obtains the start charging verification feedback data according to whether there is an error during the operation, and then obtains the generated order set. Then, the generated order set and the start charging verification feedback data are sent to the test device. The test device verifies the generated order set and the start charging verification feedback data to determine whether the plug-and-charge function of the charging pile can normally generate a start charging instruction, realizing the test of whether the plug-and-charge function of the charging pile can normally generate a start charging instruction.

[0161] Figure 4This is a schematic flowchart of the fourth embodiment of the plug-and-charge function test method provided by this application. Based on the above embodiments, if the plug-and-charge function can generate a start charging instruction, further testing is required. This application embodiment describes the process of testing whether the plug-and-charge function can operate normally. As Figure 4 shown, the plug-and-charge function test method specifically includes the following steps:

[0162] S401: The test device sends charging process data, an end charging test instruction, and an updated order query instruction to the server.

[0163] In this step, in order to test whether the plug-and-charge function can operate normally, the test device sends charging process data, an end charging test instruction, and an updated order query instruction to the server.

[0164] Optionally, when the test device sends charging process data, an end charging test instruction, and an updated order query instruction to the server, it can also carry a random code generated by the server and sent to the test device at the same time.

[0165] S402: The server generates an end charging instruction according to the received end charging test instruction, and updates the order generated by verifying the information in the test request according to the charging information based on the received charging process data, and determines whether an error occurs during the operation; if an error occurs during the operation, execute S403; if no error occurs during the operation, execute S404.

[0166] S403: The server generates an operation error code and determines the operation error code as the end charging verification feedback data.

[0167] S404: The server determines the end charging instruction as the end charging verification feedback data.

[0168] In the above steps, after the test device sends charging process data, an end charging test instruction, and an updated order query instruction to the server, the server can receive the charging process data, the end charging test instruction, and the updated order query instruction sent by the test device. Then, the server generates an end charging instruction according to the received end charging test instruction, and updates the order generated by verifying the information in the test request according to the charging information based on the received charging process data, and determines whether an error occurs during the operation.

[0169] If an error occurs during the operation, it indicates that the plug-and-charge function is abnormal. The server generates an operation error code and determines the operation error code as the end charging verification feedback data. If no error occurs during the operation, it indicates that the plug-and-charge function can operate normally, and the end charging instruction is determined as the end charging verification feedback data.

[0170] Exemplarily, in the third embodiment, since the server generated an order based on the charging information to verify the information in the test request, and the charging process data includes the amount of charge, charging time, etc. Therefore, the server updates the order according to the charging process data, and during the actual charging process, settlement can be performed according to the updated order.

[0171] It should be noted that the above example is only an example of the process of the server updating the order, and does not specifically limit the content included in the charging process data, which can be set according to the actual situation.

[0172] Optionally, when the test device sends the charging process data, the end charging test instruction, and the updated order query instruction to the server, a random code is carried at the same time. The server will verify the random code to determine whether the random code is the same as the random code generated by the server itself. If they are the same, it indicates that the communication is secure; if they are different, it indicates that the communication is insecure, and then a prompt message will be sent to the staff to prompt the staff that the communication is insecure for the staff to perform maintenance.

[0173] S405: The server obtains the updated order set according to the received updated order query instruction.

[0174] S406: The server sends the end charging verification feedback data and the updated order set to the test device.

[0175] In the above steps, after receiving the updated order query instruction, the server obtains the updated order set from the orders stored in itself according to the instruction. Then, the end charging verification feedback data and the updated order set are sent to the test device for subsequent verification by the test device.

[0176] Optionally, in order to improve the efficiency of the server, the staff can set a preset duration in the server, and the server obtains the updated order set within the preset duration. The preset duration can be 1 minute, 3 minutes, or 5 minutes. The embodiments of the present application do not specifically limit the preset duration, which can be set according to the actual situation.

[0177] S407: If the test device receives the end charging verification feedback data and the updated order set for the end charging test instruction sent by the server, it determines whether the end charging verification feedback data is the same as the preset end charging verification passed data; if the end charging verification feedback data is the same as the preset end charging verification passed data, it executes S408; if the end charging verification feedback data is different from the preset end charging verification passed data, it executes S410.

[0178] S408: The test device determines whether there is an order in the updated order set that is the same as the preset updated verified order; if there is an order in the updated order set that is the same as the preset updated verified order, then S409 is executed; if there is no order in the updated order set that is the same as the preset updated verified order, then S410 is executed.

[0179] S409: The test device determines that the plug and charge function is operating normally.

[0180] S410: The test device determines that the plug and charge function is abnormal.

[0181] In the above steps, after the server sends the end charging verification feedback data and the updated order set to the test device, if the test device receives the end charging verification feedback data and the updated order set for the end charging test instruction sent by the server, in order to determine whether the plug and charge function can operate normally, it is necessary to check whether the end charging verification feedback data is the same as the preset end charging verified data.

[0182] Since the end charging verification feedback data is the error code generated when the server runs incorrectly, or the end charging instruction, and the preset end charging verified data is the same as the end charging instruction, so if the end charging verification feedback data is not the same as the preset end charging verified data, that is, the end charging verification feedback data is the error code, it is determined that the plug and charge function of the charging pile is abnormal, the test ends, the test device disconnects from the server, and then the test device can output a test report for testers to view.

[0183] If the end charging verification feedback data is the same as the preset end charging verified data, that is, the end charging verification feedback data is the end charging instruction, it is necessary to further determine whether there is an order in the updated order set that is the same as the preset updated verified order.

[0184] Since the preset updated verified order is the same as the order after the server updates the order generated by verifying the information in the charging information verification test request according to the charging process data, so if there is an order in the updated order set that is the same as the preset updated verified order, that is, the server updates the order according to the charging process data and the update is correct, it is determined that the plug and charge function is operating normally.

[0185] If there is no order in the updated order set that is the same as the preset updated verified order, that is, the server does not update the order according to the charging process data, or the server updates the order, but the updated order is incorrect, it is determined that the plug and charge function of the charging pile is abnormal, the test ends, the test device disconnects from the server, and then the test device can output a test report for testers to view.

[0186] It should be noted that the execution order of determining whether the end - charging verification feedback data is the same as the preset end - charging verification - passed data and step S408 can be: first determine whether the end - charging verification feedback data is the same as the preset end - charging verification - passed data, and then execute step S408; it can also be: first execute step S408, and then determine whether the end - charging verification feedback data is the same as the preset end - charging verification - passed data; it can also be that both are executed simultaneously. The embodiments of the present application do not limit the execution order of determining whether the end - charging verification feedback data is the same as the preset end - charging verification - passed data and step S308, and can be selected according to the actual situation.

[0187] It should be noted that if the test device does not receive the end - charging verification feedback data, and / or updates the order set, it indicates that there is an abnormality in the network or the server, which further indicates that the plug - and - charge function is abnormal. The test ends, the test device disconnects from the server, and then the test device can output a test report for testers to view.

[0188] In the plug - and - charge function test method provided in this embodiment, the test device sends charging process data, an end - charging test instruction, and an updated order query instruction to the server. The server generates an end - charging instruction according to the plug - and - charge function, updates the order according to the charging process data, and obtains the end - charging verification feedback data based on whether there is an error during the operation process, and then obtains the updated order set. Then, the updated order set and the end - charging verification feedback data are sent to the test device. The test device verifies the updated order set and the end - charging verification feedback data to determine whether the plug - and - charge function of the charging pile can operate normally, realizing the test of whether the plug - and - charge function of the charging pile can operate normally.

[0189] Figure 5 It is a flowchart of the fifth embodiment of the plug - and - charge function test method provided by the present application. Because it is necessary to maintain the connection between the test device and the server during the test of the plug - and - charge function, it is necessary to establish a connection between the test device and the server before the test. The embodiments of the present application describe the process of establishing a connection between the test device and the server. The execution subject of the embodiments of the present application is the test device. As Figure 5 shown, the plug - and - charge function test method specifically includes the following steps:

[0190] S501: Send an Internet Protocol (IP) address acquisition request to the registration center.

[0191] To establish a connection with the server, an IP address and a port number are required. To ensure the security of communication, the IP address of the server is dynamically changed, and the dynamically changed IP address is stored in the registration center.

[0192] In this step, in order to establish a connection with the server and obtain the IP address, the test device sends an IP address acquisition request to the registration center, and then the registration center returns the IP address of the server to the test device.

[0193] S502: Establish a connection with the server according to the IP address returned by the registration center and the preset port number.

[0194] In this step, after receiving the IP address, since the port number of the server is preset in the test device by the staff, the test device establishes a connection with the server according to the IP address returned by the registration center and the preset port number.

[0195] The plug-and-charge function test method provided in this embodiment effectively improves the communication security by establishing a connection with the server by obtaining the IP address from the registration center.

[0196] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For the details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0197] Figure 6 It is a schematic structural diagram of the first embodiment of the plug-and-charge function test device provided by the present application. As Figure 6 shown, the plug-and-charge function test device 60 includes:

[0198] A sending module 61, configured to send a charging information verification test request to the server, where the charging information verification test request includes user information, electric vehicle information, and charging station information;

[0199] A processing module 62, configured to, if receiving the charging information verification feedback data for the charging information verification test request sent by the server through the receiving module 63, determine whether the plug-and-charge function of the charging pile can be normally started according to whether the charging information verification feedback data is the same as the preset charging information verification passed data.

[0200] Further, the charging information verification feedback data is an operation error code generated when the server runs in error, or information complete response data generated when the server determines that the information in the charging information verification test request is complete; the processing module 62 is specifically configured to:

[0201] If the charging information verification feedback data is the same as the preset charging information verification passed data, determine that the plug-and-charge function of the charging pile is normally started;

[0202] If the charging information verification feedback data is different from the preset charging information verification passed data, determine that the plug-and-charge function of the charging pile is abnormal.

[0203] Further, the sending module 61 is further configured to send an authentication test instruction to the server;

[0204] Further, the processing module 62 is further configured to:

[0205] If the authentication feedback data for the authentication test instruction sent by the server is received through the receiving module 63, determine whether the authentication feedback data is the same as the preset authentication verification passed data; the full authentication feedback data is an error code generated when the server runs incorrectly, or an order normal response data generated by the server when it determines that the number of unfinished orders matching the user information and the vehicle information in the existing orders is less than the preset number according to the user information and the vehicle information;

[0206] If the authentication feedback data is the same as the preset authentication verification passed data, determine that the plug-and-charge function normally verifies the order.

[0207] Further, the sending module 61 is further configured to send a start charging test instruction and an order generation query instruction to the server;

[0208] Further, the processing module 62 is further configured to:

[0209] If the start charging verification feedback data for the start charging test instruction sent by the server and the order generation set are received through the receiving module 63, determine whether the start charging verification feedback data is the same as the preset start charging verification passed data, and whether there is an order in the generated orders that is the same as the preset generated verification passed order; the start charging verification feedback data is an error code generated when the server runs incorrectly, or a start charging instruction;

[0210] If the start charging verification feedback data is the same as the preset start charging verification passed data, and there is an order in the order generation set that is the same as the preset generated verification passed order, determine that the plug-and-charge function normally generates a start charging instruction.

[0211] Further, the sending module 61 is further configured to send charging process data, an end charging test instruction, and an updated order query instruction to the server;

[0212] Further, the processing module 62 is further configured to:

[0213] If the end - charging verification feedback data for the end - charging test instruction sent by the server and the updated order set are received through the receiving module 63, it is determined whether the end - charging verification feedback data is the same as the preset end - charging verification - passed data, and whether there is an order in the updated order set that is the same as the preset updated verification - passed order; the end - charging verification feedback data is an error code generated when the server runs incorrectly, or an end - charging instruction.

[0214] If the end - charging verification feedback data is the same as the preset end - charging verification - passed data, and there is an order in the updated order set that is the same as the preset updated verification - passed order, it is determined that the plug - and - charge function is operating normally.

[0215] Furthermore, the sending module 61 is also used to send an IP address acquisition request to the registration center.

[0216] Furthermore, the processing module 62 is also used to establish a connection with the server according to the IP address returned by the registration center and the preset port number.

[0217] The plug - and - charge function test device provided in this embodiment is used to execute the technical solutions of the test device in any of the foregoing method embodiments, and its implementation principle and technical effects are similar, so they will not be elaborated here.

[0218] Figure 7 It is a schematic structural diagram of Embodiment 2 of the plug - and - charge function test device provided in this application; as Figure 7 shown, the plug - and - charge function test device 70 includes:

[0219] A receiving module 71, configured to receive a charging information verification test request sent by a test device, where the charging information verification test request includes user information, electric vehicle information, and charging station information.

[0220] A processing module 72, configured to generate information - complete response data if the information in the charging information verification test request is complete, and determine whether an error occurs during the operation.

[0221] A generating module 73, configured to generate an error code during operation and determine the error code as the charging information verification feedback data if an error occurs during the operation, otherwise determine the information - complete response data as the charging information verification feedback data.

[0222] A sending module 74, configured to send the charging information verification feedback data to the test device.

[0223] Furthermore, the receiving module 71 is also used to receive an authentication test instruction sent by the test device.

[0224] Further, the processing module 72 is further configured to generate order normal response data if the number of unfinished orders in the existing orders that match the user information and the vehicle information is less than a preset number, and determine whether an error occurs during the operation;

[0225] Further, the generating module 73 is further configured to generate an operation error code and determine the operation error code as the authentication feedback data if an error occurs during the operation, otherwise determine the order normal response data as the authentication feedback data;

[0226] Further, the sending module 74 is further configured to send the authentication feedback data to the test device.

[0227] Further, the receiving module 71 is further configured to receive a start charging test instruction and generate an order query instruction sent by the test device;

[0228] Further, the generating module 73 is further configured to generate a start charging instruction according to the start charging test instruction;

[0229] Further, the processing module 72 is further configured to generate an order according to the information in the test request verified by the charging information, and determine whether an error occurs during the operation;

[0230] Further, the generating module 73 is further configured to generate an operation error code and determine the operation error code as the start charging verification feedback data if an error occurs during the operation, otherwise determine the start charging instruction as the start charging verification feedback data;

[0231] Further, the processing module 72 is further configured to obtain a generated order set according to the generated order query instruction;

[0232] Further, the sending module 74 is further configured to send the start charging verification feedback data and the generated order set to the test device.

[0233] Further, the receiving module 71 is further configured to receive charging process data, an end charging test instruction, and an updated order query instruction sent by the test device;

[0234] Further, the generating module 73 is further configured to generate an end charging instruction according to the end charging test instruction;

[0235] Further, the processing module 72 is further configured to update the order generated according to the information in the test request verified by the charging information according to the charging process data, and determine whether an error occurs during the operation;

[0236] Further, the generating module 73 is further configured to generate an operation error code and determine the operation error code as the end charging verification feedback data if an error occurs during the operation, otherwise determine the end charging instruction as the end charging verification feedback data;

[0237] Further, the processing module 72 is further configured to obtain an updated order set according to the updated order query instruction;

[0238] Further, the sending module 74 is further configured to send the end charging verification feedback data and the updated order set to the test device.

[0239] The plug-and-charge function test device provided in this embodiment is used to execute the technical solutions of the server in any of the foregoing method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated here.

[0240] Figure 8 FIG. is a schematic structural diagram of a test device provided by the present application. As Figure 8 shown, the test device 80 includes:

[0241] a processor 81, a memory 82, and a communication interface 83;

[0242] The memory 82 is used to store executable instructions of the processor 81;

[0243] Wherein, the processor 81 is configured to execute the technical solutions of the test device in any of the foregoing method embodiments by executing the executable instructions.

[0244] Optionally, the memory 82 can be either independent or integrated with the processor 81.

[0245] Optionally, when the memory 82 is a device independent of the processor 81, the test device 80 may further include:

[0246] a bus 84, and the memory 82 and the communication interface 83 are connected to the processor 81 through the bus 84 to complete mutual communication, and the communication interface 83 is used to communicate with other devices.

[0247] Optionally, the communication interface 83 can be specifically implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.

[0248] The bus 84 can be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience in representation, only a thick line is used in the figure to represent it, but it does not mean that there is only one bus or one type of bus.

[0249] The above-mentioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0250] This test device is used to execute the technical solution of the test device in any of the foregoing method embodiments. Its implementation principle and technical effects are similar and will not be elaborated here.

[0251] Figure 9 This is a schematic structural diagram of a server provided by this application. As Figure 9 shown, the server 90 includes:

[0252] A processor 91, a memory 92, and a communication interface 93;

[0253] The memory 92 is used to store the executable instructions of the processor 91;

[0254] Among them, the processor 91 is configured to execute the technical solution of the server in any of the foregoing method embodiments by executing the executable instructions.

[0255] Optionally, the memory 92 can be either independent or integrated with the processor 91.

[0256] Optionally, when the memory 92 is a device independent of the processor 91, the server 90 may further include:

[0257] A bus 94. The memory 92 and the communication interface 93 are connected to the processor 91 through the bus 94 to complete mutual communication, and the communication interface 93 is used to communicate with other devices.

[0258] Optionally, the communication interface 93 may be specifically implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk memory.

[0259] The bus 94 may be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0260] The foregoing processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0261] This server is used to execute the technical solutions of the server in any of the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be elaborated here.

[0262] This application embodiment also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the technical solutions provided in any of the foregoing method embodiments.

[0263] This application embodiment also provides a computer program product, including a computer program, which is used to implement the technical solutions provided in any of the foregoing method embodiments when the computer program is executed by a processor.

[0264] Those of ordinary skill in the art can understand that all or part of the steps of implementing the foregoing method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk, etc., which can store program codes.

[0265] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A plug-and-charge function testing method, characterized in that, Applied to a test device, the method includes: Sending a charging information verification test request to a server so that the server determines whether the information in the charging information verification test request is complete and whether an error occurs during operation to obtain charging information verification feedback data. The charging information verification test request includes user information, electric vehicle information, and charging station information; If receiving the charging information verification feedback data for the charging information verification test request sent by the server, then determine whether the plug-and-charge function of the charging pile can be normally started according to whether the charging information verification feedback data is the same as the preset charging information verification passed data; After determining that the plug-and-charge function of the charging pile is normally started, the method further includes: Sending an authentication test instruction to the server; If receiving the authentication feedback data for the authentication test instruction sent by the server, then determine whether the authentication feedback data is the same as the preset authentication verification passed data; the authentication feedback data is an error code generated when the server runs in error, or order normal response data generated by the server when it determines that the number of unfinished orders matching the user information and the vehicle information in the existing orders is less than the preset number according to the user information and the vehicle information; If the authentication feedback data is the same as the preset authentication verification passed data, then determine that the plug-and-charge function normally verifies the order.

2. The method according to claim 1, wherein The charging information verification feedback data is an error code generated when the server runs in error, or information complete response data generated by the server when it determines that the information in the charging information verification test request is complete; Correspondingly, the determining whether the plug-and-charge function of the charging pile can be normally started according to whether the charging information verification feedback data is the same as the preset charging information verification passed data includes: If the charging information verification feedback data is the same as the preset charging information verification passed data, then determine that the plug-and-charge function of the charging pile is normally started; If the charging information verification feedback data is not the same as the preset charging information verification passed data, then determine that the plug-and-charge function of the charging pile is abnormal.

3. The method according to claim 1, characterized in that, The method further includes: Sending a start charging test instruction and a generate order query instruction to the server; If receiving the start charging verification feedback data and a generate order set for the start charging test instruction sent by the server, then determine whether the start charging verification feedback data is the same as the preset start charging verification passed data, and whether there is an order in the generated orders that is the same as the preset generated verification passed order; the start charging verification feedback data is an error code generated when the server runs in error, or a start charging instruction; If the start charging verification feedback data is the same as the preset start charging verification passed data, and there is an order in the generated order set that is the same as the preset generated verification passed order, then determine that the plug-and-charge function normally generates a start charging instruction.

4. The method according to claim 3, characterized in that, The method further includes: Send charging process data, end charging test instructions, and updated order query instructions to the server; If the end charging verification feedback data for the end charging test instruction and the updated order set sent by the server are received, determine whether the end charging verification feedback data is the same as the preset end charging verification passed data, and whether there is an order in the updated order set that is the same as the preset updated verification passed order; the end charging verification feedback data is the error code generated when the server runs incorrectly, or the end charging instruction; If the end charging verification feedback data is the same as the preset end charging verification passed data, and there is an order in the updated order set that is the same as the preset updated verification passed order, determine that the plug-and-charge function is running normally.

5. The method according to any one of claims 1 to 4, characterized in that, Before sending the charging information verification test request to the server, the method further includes: Send an Internet Protocol (IP) address acquisition request to the registration center; Establish a connection with the server according to the IP address returned by the registration center and the preset port number.

6. A plug-and-play function testing method, characterized in that, Applied to the server, the method includes: Receive a charging information verification test request sent by the test device, where the charging information verification test request includes user information, electric vehicle information, and charging station information; If the information in the charging information verification test request is complete, generate information complete response data, and determine whether an error occurs during the operation; If an error occurs during the operation, generate an error code and determine the error code as the charging information verification feedback data, otherwise determine the information complete response data as the charging information verification feedback data; Send the charging information verification feedback data to the test device, so that the test device determines whether the plug-and-charge function of the charging pile can be started normally according to whether the charging information verification feedback data is the same as the preset charging information verification passed data; The method further includes: Receive an authentication test instruction sent by the test device; If the number of unfinished orders in the existing orders that match the user information and the vehicle information is less than the preset number, generate order normal response data, and determine whether an error occurs during the operation; If an error occurs during the operation, generate an error code and determine the error code as the authentication feedback data, otherwise determine the order normal response data as the authentication feedback data; Send the authentication feedback data to the test device.

7. The method according to claim 6, wherein The method further includes: Receive a start charging test instruction and a generated order query instruction sent by the test device; Generate a start charging instruction according to the start charging test instruction, and generate an order according to the information in the charging information verification test request, and determine whether an error occurs during the operation; If an error occurs during the operation, generate an error code and determine the error code as the start charging verification feedback data, otherwise determine the start charging instruction as the start charging verification feedback data; Obtain the generated order set according to the generated order query instruction; Send the start charging verification feedback data and the generated order set to the test device.

8. The method according to claim 7, wherein The method further includes: Receiving charging process data, an end charging test instruction, and an updated order query instruction sent by a test device; Generating an end charging instruction according to the end charging test instruction, and updating the order generated according to the information in the charging information verification test request according to the charging process data, and determining whether an error occurs during the operation; If an error occurs during the operation, generating an operation error code and determining the operation error code as the end charging verification feedback data, otherwise determining the end charging instruction as the end charging verification feedback data; Obtaining an updated order set according to the updated order query instruction; Sending the end charging verification feedback data and the updated order set to the test device.

9. A plug-and-charge function testing device, characterized in that, It includes: A sending module, configured to send a charging information verification test request to a server, so that the server determines whether the information in the charging information verification test request is complete, and whether an error occurs during the operation to obtain charging information verification feedback data, where the charging information verification test request includes user information, electric vehicle information, and charging station information; A processing module, configured to, if receiving the charging information verification feedback data for the charging information verification test request sent by the server, determine whether the plug-and-charge function of the charging pile can be normally started according to whether the charging information verification feedback data is the same as the preset charging information verification passed data; The sending module is further configured to send an authentication test instruction to the server; The processing module is further configured to, if receiving the authentication feedback data for the authentication test instruction sent by the server, determine whether the authentication feedback data is the same as the preset authentication verification passed data; the authentication feedback data is an operation error code generated when the server has an error, or order normal response data generated by the server when it is determined that the number of unfinished orders matching the user information and the vehicle information in the existing orders is less than a preset number according to the user information and the vehicle information; If the authentication feedback data is the same as the preset authentication verification passed data, determining that the plug-and-charge function is normally verified for orders.

10. A plug-and-play function test device, characterized in that, It includes: A receiving module, configured to receive a charging information verification test request sent by a test device, where the charging information verification test request includes user information, electric vehicle information, and charging station information; A processing module, configured to, if the information in the charging information verification test request is complete, generate information complete response data, and determine whether an error occurs during the operation; A generating module, configured to, if an error occurs during the operation, generate an operation error code and determine the operation error code as the charging information verification feedback data, otherwise determining the information complete response data as the charging information verification feedback data; A sending module, configured to send the charging information verification feedback data to the test device, so that the test device determines whether the plug-and-charge function of the charging pile can be normally started according to whether the charging information verification feedback data is the same as the preset charging information verification passed data; The receiving module is further configured to receive an authentication test instruction sent by a test device; The processing module is further configured to generate order normal response data if the number of unfinished orders in the existing orders that match the user information and the vehicle information is less than a preset number, and determine whether an error occurs during the operation; The generating module is further configured to generate an operation error code and determine the operation error code as the authentication feedback data if an error occurs during the operation, otherwise determine the order normal response data as the authentication feedback data; The sending module is further configured to send the authentication feedback data to the test device.

11. A testing device, characterized in that, Comprising: A processor, a memory, and a communication interface; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the plug-and-charge function test method according to any one of claims 1 to 5 by executing the executable instructions.

12. A server, characterized in that, Comprising: A processor, a memory, and a communication interface; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the plug-and-charge function test method according to any one of claims 6 to 8 by executing the executable instructions.

13. A readable storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by a processor, it implements the plug-and-charge function test method according to any one of claims 1 to 8.

14. A computer program product, characterized in that, Comprising a computer program, which is used to implement the plug-and-charge function test method according to any one of claims 1 to 8 when executed by a processor.

Citation Information

Patent Citations

  • Charging pile simulation method and device

    CN108399303A

  • Charging method and system and related equipment

    CN109484237A

  • Charging control method, control device and charging system

    CN112070626A

  • Plug-and-play charging verification method and system

    CN113815469A