Plug-and-play function test method, device, equipment, medium and program product
By detecting the communication and PWM signal rules between the vehicle and the charging station, the problem of low testing efficiency of the plug-and-charge function was solved, and efficient and reliable automated testing was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-15
- Publication Date
- 2026-03-10
AI Technical Summary
Existing plug-and-charge functionality testing methods rely on manual or semi-automatic operations, which are inefficient and lack sufficient coverage, making it difficult to meet the needs of batch testing.
By determining whether communication has been established between the vehicle and the charging station, and detecting whether the vehicle has received a PWM signal that meets the preset encoding rules, the number of receptions and verification results are obtained, and the final test result is generated.
It improves testing efficiency, enhances the repeatability and reliability of the testing process, reduces manual intervention, supports multiple protocols and vehicle models, has strong compatibility, automatically generates reports, and facilitates later traceability and analysis.
Smart Images

Figure CN121625870A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, in particular to a plug-and-charge function test method, device, equipment, medium and program product. BACKGROUND
[0002] With the rapid development of new energy vehicles, efficient communication between vehicles and piles has become an important part of electric vehicle charging technology, and plug-and-charge technology has emerged as the times require.
[0003] In related technologies, plug-and-charge function is usually completed by realizing automatic communication handshake, parameter configuration and identification operation, automatic start of charging process and other operations between vehicles and charging piles, without the need for users to swipe cards or scan codes for authentication, involving multiple links such as alternating current charging piles, vehicle-mounted charging systems and communication protocols.
[0004] However, the plug-and-charge function verification test method in related technologies mostly relies on manual operation or semi-automatic testing, which is low in efficiency and prone to errors, and it is difficult to meet the needs of batch testing covering all use scenarios and user needs, which needs to be solved urgently. SUMMARY
[0005] The present application provides a plug-and-charge function test method, device, equipment, medium and program product to solve the problems of plug-and-charge function test in related technologies relying on manual or semi-automatic operation, low efficiency and insufficient coverage, improve the test efficiency, and enhance the repeatability and reliability of the test process.
[0006] The first aspect embodiment of the present application provides a plug-and-charge function test method, comprising the following steps: determining whether communication is established between a vehicle and a charging pile; if communication is established between the vehicle and the charging pile, detecting whether the vehicle receives a PWM signal satisfying a preset encoding rule sent by the charging pile; if the vehicle receives the PWM signal satisfying the preset encoding rule, obtaining the number of times the vehicle receives the PWM signal satisfying the preset encoding rule, and obtaining a final test result according to the number of times and / or the verification result of the PWM signal satisfying the preset encoding rule each time.
[0007] Optionally, obtaining the final test result according to the number of times and / or the verification result of the PWM signal satisfying the preset encoding rule each time comprises: determining whether the number of times is a preset number of times; if the number of times is the preset number of times, determining that the final test result is verified to pass when the verification results of the preset number of times are all correct or there is only one error in the verification results of the preset number of times.
[0008] Optionally, after determining that the receiving frequency is the preset frequency, the method further comprises: determining whether the PWM signals in the verification results of the preset frequency are within a preset error range; if the PWM signals in the verification results of the preset frequency are all within the preset error range, determining that the final test result is a verification pass.
[0009] Optionally, after determining whether the PWM signals in the verification results of the preset frequency are within the preset error range, the method further comprises: if any of the PWM signals in the verification results of the preset frequency is not within the preset error range, determining that the final test result is a verification fail.
[0010] Optionally, after determining whether the receiving frequency is the preset frequency, the method further comprises: if the receiving frequency is not the preset frequency, determining that the final test result is a verification fail.
[0011] The second aspect embodiment of the application provides a plug-and-charge function test device, comprising: a determination module configured to determine whether communication is established between a vehicle and a charging pile; a detection module configured to, in a case where communication is established between the vehicle and the charging pile, detect whether the vehicle receives a PWM signal satisfying a preset coding rule sent by the charging pile; a determination module configured to, if the vehicle receives the PWM signal satisfying the preset coding rule, obtain a receiving frequency of the vehicle receiving the PWM signal satisfying the preset coding rule, and obtain a final test result according to the receiving frequency and / or a verification result of the PWM signal satisfying the preset coding rule each time.
[0012] Optionally, the determination module is specifically configured to: determine whether the receiving frequency is a preset frequency; if the receiving frequency is the preset frequency, determine that the final test result is a verification pass when the verification results of the preset frequency are all correct or there is only one error in the verification results of the preset frequency.
[0013] Optionally, after determining that the receiving frequency is the preset frequency, the determination module is further configured to: determine whether the PWM signals in the verification results of the preset frequency are within a preset error range; If the PWM signals in the preset number of verification results are all within the preset error range, it is determined that the final test result is verified to pass.
[0014] Optionally, after judging whether the PWM signals in the preset number of verification results are within the preset error range, the determination module is further configured to: If any of the PWM signals in the preset number of verification results is not within the preset error range, it is determined that the final test result is verified to fail.
[0015] Optionally, after judging whether the receiving number is the preset number, the determination module is further configured to: If the receiving number is not the preset number, it is determined that the final test result is verified to fail.
[0016] The third aspect of the present application provides an electronic device, comprising: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are configured to execute the plug-and-charge function test method as described in the above embodiments.
[0017] The fourth aspect of the present application provides a computer readable storage medium having a computer program stored thereon, and the program is executed by a processor to implement the plug-and-charge function test method as described in the above embodiments.
[0018] The fifth aspect of the present application provides a computer program product, and the computer program product stores a computer program, and the program is executed by a processor to implement the plug-and-charge function test method as described in the above embodiments.
[0019] Therefore, in the determination of the communication between the vehicle and the charging pile, the present application detects whether the vehicle receives the PWM signal satisfying the preset coding rule sent by the charging pile; when the vehicle receives the PWM signal satisfying the preset coding rule, the receiving number of the vehicle receiving the PWM signal satisfying the preset coding rule is obtained, and the final test result is obtained according to the receiving number and / or the verification result of each time to the PWM signal satisfying the preset coding rule. Therefore, by simulating the communication between the charging pile and the vehicle-mounted controller, simulating the plug-in action and verifying the interaction process, the problems such as dependence on manual or semi-automatic operation, low efficiency and insufficient coverage in related technologies are solved, the test efficiency is improved, and the repeatability and reliability of the test process are enhanced.
[0020] Additional aspects and advantages of the present application will be in part apparent and in part pointed out hereinafter. BRIEF DESCRIPTION OF DRAWINGS
[0021] The above and / or additional aspects and advantages of the present application will become apparent and readily understood from the following description, taken in conjunction with the accompanying drawings, in which: Figure 1 A flowchart of a plug-and-charge function test method according to an embodiment of the present application; Figure 2 A schematic diagram of CP encoding rules of a plug-and-charge function test method according to an embodiment of the present application; Figure 3 A schematic diagram of a system structure of a plug-and-charge function test method according to an embodiment of the present application; Figure 4 A flowchart of an automated test of a plug-and-charge function test method according to an embodiment of the present application; Figure 5 A schematic diagram of a plug-and-charge function test device according to an embodiment of the present application; Figure 6 A schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] Embodiments of the present application are described in detail below with reference to the accompanying drawings, in which like or similar elements or components are denoted throughout by like reference characters, and further where appropriate, the embodiments described below are merely examples that are intended to explain the present application and are not to be understood as limiting to the present application.
[0023] The plug-and-charge function test method, device, equipment, medium and program product of the embodiments of the present application are described below with reference to the accompanying drawings. In view of the problems of the related art that the plug-and-charge function test relies on manual or semi-automatic operation, has low efficiency and insufficient coverage, the present application provides a plug-and-charge function test method, in which, when it is determined that communication is established between a vehicle and a charging pile, the present application embodiment detects whether the vehicle receives a PWM signal satisfying a preset encoding rule sent by the charging pile; when the vehicle receives the PWM signal satisfying the preset encoding rule, the number of times of receiving the PWM signal satisfying the preset encoding rule by the vehicle is obtained, and a final test result is obtained according to the number of times of receiving and / or the verification result of each time of the PWM signal satisfying the preset encoding rule. Thus, by simulating the communication between the charging pile and the vehicle-mounted controller, simulating the plug-in action and verifying the interaction process, the problems of the related art that the plug-and-charge function test relies on manual or semi-automatic operation, has low efficiency and insufficient coverage are solved, the test efficiency is improved, and the repeatability and reliability of the test process are enhanced.
[0024] Specifically,Figure 1 A flowchart of a plug-and-charge function test method provided by an embodiment of the present application.
[0025] As shown in the figure, Figure 1 the plug-and-charge function test method includes the following steps: In step S101, it is determined whether communication is established between the vehicle and the charging pile. Specifically, after the charging gun is connected, whether communication is established between the vehicle and the charging pile can be determined by the following methods, including but not limited to: detecting whether the CP (Control Pilot) signal voltage is a standard voltage (for example, 9V), confirming that the vehicle PDCU (Power Distribution Control Unit) controller has been woken up and is in a working state; checking whether the vehicle and the charging pile have completed a handshake protocol, including message interaction, identity authentication and charging parameter negotiation; if the PDCU analysis is correct and the protocol interaction is correct, the system enters the plug-and-charge process; otherwise, it is degraded to a normal slow charging mode; the test device automatically determines whether the communication is successfully established by comparing the real-time collected communication data with the expected results.
[0026] In step S102, in the case that communication is established between the vehicle and the charging pile, it is detected whether the vehicle receives a PWM signal sent by the charging pile and satisfying a preset encoding rule.
[0027] Specifically, after the vehicle and the charging pile successfully establish a communication connection, the vehicle PDCU controller will monitor the PWM (Pulse Width Modulation) signal sent by the charging pile through the CP line in real time, detect whether its key parameters meet the preset encoding rule, including a frequency of 1kHz±3%, a duty cycle of 5%±0.5% and an amplitude of 9V±0.5V; the controller will decode the signal, count the number of PWM wave periods and verify whether the duration matches the encoding rule (for example, 10 periods / 10ms corresponding to the number 1, 20 periods / 20ms corresponding to the number 2, etc.); at the same time, the system will check the continuous reception of the signal; for the PWM signal that does not meet the preset encoding rule (such as a too large frequency deviation, a wrong duty cycle or an abnormal amplitude), the controller will refuse to receive and record the error type; based on the signal characteristics, decoding accuracy and reception stability, it is determined whether the vehicle successfully receives and correctly identifies the PWM signal that meets the preset encoding rule.
[0028] It should be noted that, as shown in the figure, Figure 2 Figure 2 A schematic diagram of the CP coding rule of the plug-and-charge function test method of an embodiment of the present application; the preset coding rule is represented by the number of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, and is specifically expressed as follows: number 1: 10 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 10 ms; number 2: 20 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 20 ms; number 3: 30 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 30 ms; number 4: 40 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 40 ms; number 5: 50 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 50 ms; number 6: 60 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 60 ms; number 7: 70 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 70 ms; number 8: 80 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 80 ms; number 9: 90 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 90 ms; number 0: 100 cycles of PWM waves with a frequency of 1 KHZ and a duty cycle of 5%, a duration of 100 ms.
[0029] In step S103, if the vehicle receives the PWM signal satisfying the preset coding rule, the number of times of receiving the PWM signal satisfying the preset coding rule is obtained, and the final test result is obtained according to the number of times of receiving and / or the verification result of each time of the PWM signal satisfying the preset coding rule. Specifically, when the vehicle successfully receives the PWM signal satisfying the preset coding rule, the system records the number of valid receptions, and verifies each received signal; the system comprehensively analyzes the number of reception statistics and single verification result (including signal parameter accuracy, decoding correctness and other dimensions) to automatically generate the final test result, and records detailed test data for subsequent analysis; based on the double judgment mechanism of the number of receptions and the verification result, the test rigor is ensured, and the intermittent communication problem can be effectively identified.
[0030] Optionally, in some embodiments, the final test result is obtained according to the number of times of receiving and / or the verification result of each time of the PWM signal satisfying the preset coding rule, including: judging whether the number of times of receiving is a preset number of times; if the number of times of receiving is the preset number of times, the final test result is determined to be verified when the verification results of the preset number of times are all correct, or there is only one error in the verification results of the preset number of times.
[0031] The preset number of times can be a threshold value preset by a user, a threshold value obtained through a limited number of experiments, or a threshold value obtained through a limited number of computer simulations, and is not limited herein.
[0032] It can be understood that, if the number of times meets the number of times requirement or there is an individual error (for example, one error in three times), the system can still determine that the verification is passed; but if the number of errors exceeds the preset number of times (for example, two or more errors in three times), the verification is determined to fail. Through double verification, it is ensured that the test result meets the rigor of the standard requirement and can adapt to the reasonable error that can occur in actual communication to determine the final test result to pass.
[0033] Optionally, in some embodiments, after determining that the number of times of receiving is the preset number of times, the method further includes: determining whether the PWM signals in the verification results of the preset number of times are within the preset error range; and if the PWM signals in the verification results of the preset number of times are all within the preset error range, determining that the final test result is verification passed.
[0034] Optionally, in some embodiments, after determining whether the PWM signals in the verification results of the preset number of times are within the preset error range, the method further includes: if any of the PWM signals in the verification results of the preset number of times is not within the preset error range, determining that the final test result is verification failed.
[0035] The preset error range can be a threshold value preset by a user, a threshold value obtained through a limited number of experiments, or a threshold value obtained through a limited number of computer simulations, and is not limited herein.
[0036] It can be understood that, only when all the received signals meet the error range requirement, the verification is determined to pass; otherwise, as long as there is a signal exceeding the allowed error range, the verification is immediately determined to fail, which improves the rigor of the test and can accurately identify the case of unstable signal quality, and ensures that only the signal completely meeting the technical specification can pass the verification.
[0037] Optionally, in some embodiments, after determining whether the number of times of receiving is the preset number of times, the method further includes: if the number of times of receiving is not the preset number of times, determining that the final test result is verification failed.
[0038] It can be understood that, if the number of times of actually received PWM signals does not meet the preset number of times, the system directly determines that the final test result is verification failed, effectively identifies the basic problems such as communication link interruption and unstable signal transmission, and avoids subsequent invalid error analysis; this determination standard and the error range verification together constitute a complete test evaluation system, which ensures that only the signal completely meeting the number of times requirement and parameter standard can pass the verification.
[0039] Therefore, the embodiments of the present application improve the test efficiency and consistency, reduce manual intervention; and support multiple protocols and vehicle model adaptation, have strong compatibility; can automatically generate a report, facilitating later tracing and analysis; and can be deployed in the controller development stage, improving the development efficiency. To make the person skilled in the art further understand the plug-and-charge function test method of the embodiments of the present application, the embodiments are described in detail below.
[0040] Specifically, for example, when the final test result is verification pass, the following cases are included: The charging gun is connected, the CP voltage is 9V, the vehicle PDCU controller is woken up and starts working; the simulation module simulates the charging pile CP circuit output, simulates the PWM signal (frequency 1000Hz, 5% duty cycle, amplitude 9V) conforming to the specific coding rule and continuously transmits it to the controller PDCU end for 3 times; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies the pass to enter normal charging.
[0041] The charging gun is connected, the CP voltage is 9V, the vehicle PDCU controller is woken up and starts working; the simulation module simulates the charging pile CP circuit output, simulates the PWM signal (frequency 1000Hz, 5% duty cycle, amplitude 9V) conforming to the specific coding rule and continuously transmits it to the controller PDCU end for 3 times, wherein any 2 times of sending coding rule is correct, and any 1 time of coding rule is incorrect; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies the pass to enter normal charging.
[0042] The charging gun is connected, the CP voltage is 9V, the vehicle PDCU controller is woken up and starts working; the simulation module simulates the charging pile CP circuit output, simulates the PWM signal (frequency 3%, 5% duty cycle error 0.5%, amplitude 8V~9.5V) conforming to the specific coding rule within the error allowed range and continuously transmits it to the controller PDCU end for 3 times to verify the interface stability of the PDCU; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies the pass to enter normal charging.
[0043] Further, for example, when the final test result is verification fail, the following cases are included: The charging gun connection is completed, the CP voltage is 9V, the vehicle PDCU controller is woken up and starts to work; the simulation module simulates the CP circuit output of the charging pile, simulates the PWM signal (frequency 1000Hz, 5% duty cycle, amplitude 9V) conforming to a specific coding rule and continuously transmits 3 times to the controller PDCU end, and any 2 times of sending coding rule error or any 3 times of coding rule error; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies that it does not pass into the ordinary slow charging process.
[0044] The charging gun connection is completed, the CP voltage is 6V, the vehicle PDCU controller is woken up and starts to work; the simulation module simulates the CP circuit output of the charging pile, simulates the PWM signal (frequency 1000Hz, 5% duty cycle, amplitude 6V) conforming to a specific coding rule and continuously transmits 3 times to the controller PDCU end; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies that it does not pass into the ordinary slow charging process. The charging gun connection is completed, the CP voltage is 9V, the vehicle PDCU controller is woken up and starts to work; the simulation module simulates the CP circuit output of the charging pile, simulates the PWM signal (frequency 1000Hz, 8% duty cycle, amplitude 9V) conforming to a specific coding rule and continuously transmits 3 times to the controller PDCU end; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies that it does not pass into the ordinary slow charging process. The charging gun connection is completed, the CP voltage is 9V, the vehicle PDCU controller is woken up and starts to work; the simulation module simulates the CP circuit output of the charging pile, simulates the PWM signal (frequency 500Hz, 5% duty cycle, amplitude 9V) conforming to a specific coding rule and continuously transmits 3 times to the controller PDCU end; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies that it does not pass into the ordinary slow charging process. The charging gun connection is completed, the CP voltage is 9V, the vehicle PDCU controller is woken up and starts to work; the simulation module simulates the CP circuit output of the charging pile, simulates the PWM signal (frequency 1000Hz, 5% duty cycle, amplitude 9V) conforming to a specific coding rule and continuously transmits 3 times to the controller PDCU end; the PDCU collects the correct CP signal and analyzes the PWM signal according to the sending rule, and verifies that it does not pass into the ordinary slow charging process.
[0045] The application embodiment further provides an electric vehicle plug-and-charge function automatic test device, which comprises a simulation module, a communication protocol processing module, a mechanical execution module, a data acquisition module, a test management module and a display and operation interface.
[0046] Specifically, as Figure 3 shown, Figure 3 A system structure diagram of a plug-and-charge function test method according to an embodiment of the present application; a simulation module is used to simulate the communication behavior of the on-board charging controller and / or the charging pile controller; the simulation module includes an EV (Electric Vehicle) simulation module and a charging pile simulation module, which can simulate the behaviors of the on-board charging controller (Electric Vehicle Communication Controller, EVCC) and the supply equipment communication controller (Supply Equipment Communication Controller, SECC) respectively; the simulation module mainly simulates the encoding rules of the slow charging CP signal transmission. A communication protocol processing module is used to simulate the establishment of the connection communication between the communication protocol of the alternating current charging pile and the tested object, and to record and check the information such as the message generation, analysis and interaction of the charging communication protocol by the test equipment during the test process. A mechanical execution module is used to execute the simulation of the alternating current gun insertion action. A data acquisition module is used to acquire the communication message data, voltage, current and other information during the test process. A test management module is used to configure the test case, control the test process, judge the test result and generate the test report. A display and operation interface is used to set the test parameters, view the test status and export the report.
[0047] Further, as Figure 4 shown, Figure 4 An automatic test flowchart of a plug-and-charge function test method according to an embodiment of the present application, the test management module executes the test, including the following steps: S1: initializing the test environment and loading the communication protocol and the test case; S2: executing the gun insertion action and the CC and CP signal connection process by the mechanical execution module; S3: starting the simulation communication flow, and automatically establishing the communication link between the EV and the EVSE by analyzing the communication protocol (simulating the CP signal acquisition and analysis process of the PDCU); S4: simulating the sending of the identity authentication code and the charging process, and sequentially executing the designed test cases; S5: acquiring the communication data, all input and output parameter values in real time during the test process, and comparing them with the expected results; S6: automatically judging the results (pass / fail), and outputting the test results and the report.
[0048] Therefore, the embodiment of the present application completes the plug-and-charge control and guidance function of the electric vehicle and the charging pile and other charging system related parts of the whole vehicle through information interaction based on the PDCU architecture, improves the test efficiency, reduces the manual intervention, and enhances the repeatability and reliability of the test process.
[0049] According to the plug-and-charge function test method provided in the embodiments of the present application, when it is determined that communication is established between the vehicle and the charging pile, the present application detects whether the vehicle receives the PWM signal satisfying the preset coding rule sent by the charging pile; when the vehicle receives the PWM signal satisfying the preset coding rule, the number of times that the vehicle receives the PWM signal satisfying the preset coding rule is obtained, and the final test result is obtained according to the number of times and / or the verification result of each time on the PWM signal satisfying the preset coding rule. In this way, by simulating the communication between the charging pile and the vehicle-mounted controller, simulating the gun insertion action and verifying the interaction process, the problems in the related art, such as the dependence of the plug-and-charge function test on manual or semi-automatic operation, low efficiency and insufficient coverage, are solved, the test efficiency is improved, and the repeatability and reliability of the test process are enhanced.
[0050] Secondly, the plug-and-charge function test device provided in the embodiments of the present application is described with reference to the accompanying drawings.
[0051] Figure 5 FIG. 1 is a block schematic diagram of the plug-and-charge function test device according to the embodiments of the present application.
[0052] As shown in FIG. 1, the plug-and-charge function test device 10 includes a determination module 100, a detection module 200 and a determination module 300. Figure 5
[0053] The determination module 100 is configured to determine whether communication is established between the vehicle and the charging pile. The detection module 200 is configured to, in the case that communication is established between the vehicle and the charging pile, detect whether the vehicle receives the PWM signal satisfying the preset coding rule sent by the charging pile. The determination module 300 is configured to, if the vehicle receives the PWM signal satisfying the preset coding rule, obtain the number of times that the vehicle receives the PWM signal satisfying the preset coding rule, and obtain the final test result according to the number of times and / or the verification result of each time on the PWM signal satisfying the preset coding rule.
[0054] Optionally, in some embodiments, the determination module is specifically configured to: determine whether the number of times is a preset number of times; if the number of times is the preset number of times, determine that the final test result is verified to be passed when the verification results of the preset number of times are all correct or there is only one error in the verification results of the preset number of times.
[0055] Optionally, in some embodiments, after it is determined that the number of times is the preset number of times, the determination module is further configured to: determine whether the PWM signals in the verification results of the preset number of times are within a preset error range; if the PWM signals in the verification results of the preset number of times are all within the preset error range, determine that the final test result is verified to be passed.
[0056] Optionally, in some embodiments, after determining whether the PWM signal in the preset number of verification results is within the preset error range, the determining module is further configured to: if any of the PWM signals in the preset number of verification results is not within the preset error range, determining that the final test result is a verification failure.
[0057] Optionally, in some embodiments, after determining whether the number of receptions is the preset number, the determining module is further configured to: if the number of receptions is not the preset number, determining that the final test result is a verification failure.
[0058] It should be noted that the foregoing explanation of the plug-in charging function test method embodiment is also applicable to the plug-in charging function test device of the embodiment, which will not be described here again.
[0059] According to the plug-in charging function test device provided in the embodiments of the present application, when determining that the vehicle and the charging pile establish communication, the vehicle is detected whether to receive the PWM signal satisfying the preset encoding rule sent by the charging pile; when the vehicle receives the PWM signal satisfying the preset encoding rule, the number of receptions of the vehicle receiving the PWM signal satisfying the preset encoding rule is obtained, and the final test result is obtained according to the number of receptions and / or the verification result of the PWM signal satisfying the preset encoding rule each time. Therefore, by simulating the communication between the charging pile and the vehicle-mounted controller, simulating the plug-in action and verifying the interaction process, the problems of the related art, such as the dependence of the plug-in charging function test on manual or semi-automatic operation, low efficiency and insufficient coverage, are solved, the test efficiency is improved, and the repeatability and reliability of the test process are enhanced.
[0060] Figure 6 The structure schematic diagram of the electronic device provided in the embodiments of the present application is shown. The electronic device can include: The memory 601, the processor 602 and the computer program stored in the memory 601 and executable on the processor 602.
[0061] The processor 602 implements the plug-in charging function test method provided in the above embodiments when executing the program.
[0062] Further, the electronic device further includes: The communication interface 603 is used for communication between the memory 601 and the processor 602.
[0063] The memory 601 is used for storing the computer program executable on the processor 602.
[0064] The memory 601 can include a high-speed RAM memory, and can also include a non-volatile memory, such as at least one disk memory.
[0065] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected with each other through a bus and complete communication between each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For convenience of representation, Figure 6 In the figure, only one thick line is used to represent the bus, but it does not mean that there is only one bus or only one type of bus.
[0066] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can complete communication between each other through an internal interface.
[0067] The processor 602 can be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0068] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the above plug-and-charge function test method.
[0069] The embodiments of the present application also provide a computer program product, which stores a computer program, and the program is executed by a processor to implement the above plug-and-charge function test method.
[0070] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or N embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples, without contradiction.
[0071] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "N" is at least two, for example, two, three, etc., unless otherwise specifically limited.
[0072] Any process or method descriptions in flow charts or described herein in other ways can be understood as representing code modules, segments, or portions of code that include one or more executable instructions for implementing the specified logical functions or processes, and the preferred embodiments of the present application also include additional implementation involving other processes or methods. It will be appreciated that the steps or functions illustrated in the flow charts or described herein can be performed in an order different than that shown or discussed, including substantially concurrently or in reverse order, as will be apparent to those having ordinary skill in the art to which the embodiments of the present application pertain.
[0073] It should be understood that portions of the present application can be realized with hardware, software, firmware or a combination thereof. In the above-described embodiments, the N steps or methods can be realized with software or firmware stored in a memory and executed by a suitable instruction execution system. As in another embodiment, if realized with hardware, any one or a combination of the following technologies known in the art can be used: discrete logic circuit with logic gate circuit for implementing logical functions on data signals, application specific integrated circuit with suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA), etc.
[0074] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiment method can be completed by a program instructing the relevant hardware, and the program can be stored in a computer readable storage medium. The program, when executed, includes one or a combination of the steps of the method embodiment.
Claims
1. A plug and charge function test method, characterized by, The method comprises the following steps: determining whether communication is established between the vehicle and the charging pile; if communication is established between the vehicle and the charging pile, detecting whether the vehicle receives a PWM signal satisfying a preset coding rule sent by the charging pile; if the vehicle receives the PWM signal satisfying the preset coding rule, obtaining a receiving frequency of the vehicle receiving the PWM signal satisfying the preset coding rule, and obtaining a final test result according to the receiving frequency and / or a verification result of the PWM signal satisfying the preset coding rule each time.
2. The method of claim 1, wherein, The final test result is obtained according to the receiving frequency and / or the verification result of the PWM signal satisfying the preset coding rule each time, which comprises: determining whether the receiving frequency is a preset frequency; if the receiving frequency is the preset frequency, determining that the final test result is verified to be passed when the verification results of the preset frequency are all correct or there is only one error in the verification results of the preset frequency.
3. The method of claim 2, wherein, After determining that the receiving frequency is the preset frequency, the method further comprises: determining whether the PWM signal in the verification results of the preset frequency is within a preset error range; if the PWM signal in the verification results of the preset frequency is within the preset error range, determining that the final test result is verified to be passed.
4. The method of claim 3, wherein, After determining whether the PWM signal in the verification results of the preset frequency is within the preset error range, the method further comprises: if any of the PWM signals in the verification results of the preset frequency is not within the preset error range, determining that the final test result is verified to be failed.
5. The method of claim 2, wherein, After determining whether the receiving frequency is the preset frequency, the method further comprises: if the receiving frequency is not the preset frequency, determining that the final test result is verified to be failed.
6. A plug-and-charge function test apparatus characterized by comprising: The method comprises: a judging module for judging whether communication is established between the vehicle and the charging pile; a detecting module for detecting whether the vehicle receives a PWM signal satisfying a preset coding rule sent by the charging pile if communication is established between the vehicle and the charging pile; a determining module for obtaining a receiving frequency of the vehicle receiving the PWM signal satisfying the preset coding rule if the vehicle receives the PWM signal satisfying the preset coding rule, and obtaining a final test result according to the receiving frequency and / or a verification result of the PWM signal satisfying the preset coding rule each time.
7. The apparatus of claim 6, wherein, The determining module is specifically configured to: determine whether the receiving frequency is a preset frequency; if the receiving frequency is the preset frequency, determine that the final test result is verified to be passed when the verification results of the preset frequency are all correct or there is only one error in the verification results of the preset frequency.
8. An electronic device, comprising: The method comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the plug-and-charge function test method according to any one of claims 1-5.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the plug-and-charge function test method according to any one of claims 1-5.
10. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the plug and charge function test method according to any one of claims 1-5.