Charging pile protocol consistency testing method

文档序号:974555 发布日期:2020-11-03 浏览:11次 中文

阅读说明:本技术 一种充电桩协议一致性测试方法 (Charging pile protocol consistency testing method ) 是由 刘涛 谢明 于 2020-07-02 设计创作,主要内容包括:本发明涉及新能源汽车技术领域,具体涉及一种充电桩协议一致性测试系统和方法,通过BMS模拟装置模拟电动汽车中的BMS系统与充电桩进行通信,在BMS模拟装置中建立多种协议的报文数据库,报文数据库中存储有各种报文,通过不同协议间报文的周期、字节长度和内容来确定属于何种协议,在进行测试时,BMS模拟装置全程检测来自充电桩的报文,通过分析报文的内容向充电桩发送对应的回复报文,从而进行对话,在进行一个完成的报文答复流程之后,BMS模拟装置统计所有来自充电桩的报文,并进行逐一分析,确定每一条报文属于何种协议,从而判断协议的一致性。(The invention relates to the technical field of new energy vehicles, in particular to a charging pile protocol consistency testing system and a method.)

1. The utility model provides a fill electric pile agreement conformance testing system which characterized in that: the BMS simulation device comprises a protocol simulator, a voltage simulator, a simulation interface and a main control unit, wherein the protocol simulator is arranged in the main control unit, the main control unit is connected with a control end of the voltage simulator, a communication contact is arranged in the simulation interface, the communication contact is connected with the main control unit, the to-be-tested charging pile is connected with the main control unit through the simulation interface, and the protocol simulator in the main control unit communicates with the to-be-tested charging pile according to related protocols.

2. The system of claim 1, wherein the system further comprises: the main control unit is a micro PC host.

3. The system of claim 2, wherein the system further comprises: the analog interface is internally provided with a positive charging contact, a negative charging contact, a grounding contact, a high-level communication contact, a low-level communication contact, a first insertion confirmation contact, a second insertion confirmation contact, an auxiliary power supply positive contact and an auxiliary power supply negative contact, wherein the high-level communication contact and the low-level communication contact are communication contacts and are connected with the micro PC host through an analog-to-digital converter and a serial port.

4. A charging pile protocol consistency test method is characterized by comprising the following steps: the method comprises the following steps:

s101, establishing a message database of various protocols;

s102, inserting a charging gun of a charging pile into a simulation interface, and establishing a test model;

s103, a protocol simulator in the main control unit detects the message sent by the charging pile, compares and analyzes the message with the message in the message database, and sends a prestored reply message according to the message of the charging pile;

s10301, detecting a handshake request CRM message from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, and executing the step S10302 if the detection result accords with the handshake request CRM message under any protocol;

s10302, the BMS simulation device sends a response handshake BRM message which is sent to the charging pile and is under the same protocol as the handshake request CRM message in the step S10301, and the step S10303 is executed;

s10303, sending a power storage battery configuration parameter BCP message which is sent by the BMS simulation device to the charging pile and is under the same protocol as the CRM message of the handshake request in the step S10301, and waiting for the charging pile to reply;

s10304, detecting a time synchronization information CTS message from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message;

s10305, detecting a CML message with the maximum output capacity from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, and if the detection result conforms to the CML message with the maximum output capacity under any protocol, executing the step S10306;

s10306, sending a ready BRO message under the same protocol as the CML message with the maximum output capacity in the step S10305 to the charging pile by the BMS simulation device, and waiting for the charging pile to reply;

s10307, detecting a ready message from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, and if the detection result conforms to the ready message under any protocol, executing the steps S10308 and S10309;

s10308, sending a BCL message, which is required by the battery and is under the same protocol as the ready message in the step S10307, to the charging pile by the BMS simulation device, and waiting for the charging pile to reply;

s10309, the BMS simulation device sends a BCS message of the battery charging state to the charging pile under the same protocol as the ready message in the step S10307, and waits for the charging pile to reply;

s10310, detecting a charging state CCS message from the charging pile, and executing steps S10311-S10313 or S10314 if the detection result conforms to the charging state CCS message under any protocol;

s10311, the BMS simulation device sends a BSM message of the battery state information under the same protocol as the CCS message of the charging state in the step S10310 to the charging pile, and waits for the charging pile to reply;

s10312, sending a BMV message of the single battery voltage information under the same protocol as the CCS message of the charging state in the step S1031 to the charging pile by the BMS simulation device, and waiting for the charging pile to reply;

s10313, the BMS simulation device sends a BMT message of the battery temperature information under the same protocol as the CCS message of the charging state in the step S10310 to the charging pile, and waits for the charging pile to reply;

s10314, the BMS simulation device sends a charging-stopping BST message which is sent to the charging pile and is in the same protocol as the charging state CCS message in the step S10310, and waits for the charging pile to reply;

s10315, detecting the charging suspension CST message from the charging pile, and executing the step S10316 if the detection result conforms to the charging suspension BST message under any protocol;

s10316, the BMS simulation device sends a data statistics BSD message to the charging pile under the same protocol as the charging stopping BST message in the step S10315, and waits for the charging pile to reply;

s10317, detecting a data statistics CSD message from the charging pile;

and S10318, counting all messages sent by the charging piles, performing protocol classification and counting, and judging whether all the messages sent by the charging piles belong to one protocol or multiple protocols.

5. The charging pile protocol consistency test method according to claim 4, wherein the charging pile protocol consistency test method comprises the following steps: the message database is established in the main control unit.

Technical Field

The invention relates to the technical field of new energy vehicles, in particular to a system and a method for testing protocol consistency of a charging pile.

Background

The socioeconomic development of China faces serious challenges such as energy supply shortage, ecological environment pollution and the like. The green energy-saving environment-friendly electric automobile is the main development direction of new energy automobiles in China and has wide development prospect. The electric vehicle charger is used as key equipment for supplying energy to the electric vehicle and performing two-way interaction with a power grid, is an important basic support for popularization and application of the electric vehicle, and is also important content in the commercialization and industrialization processes of the electric vehicle.

The electric vehicle charger-battery management system protocol realizes the charging of the electric vehicle, coordinates and controls the power output of the charger, ensures the stable operation of the power battery and is always concerned. At present, the domestic electric vehicle charger-battery management system protocol mainly follows three standard specifications, including GB/T27930-2011, NB/T33003-2010 and Q/GDW 235-2008.

In the actual use process of the electric vehicle charger-battery management system protocol, because manufacturers and using units have inconsistent understanding of the standards of the protocol, the implementation methods are different, and the problem of actual interoperability is solved, how to ensure the consistency of the implementation of the electric vehicle charger-battery management system protocol and the standards is ensured, and the guarantee of the interoperability of the electric vehicle charger-battery management system protocol is the key point of research.

At present, in the existing protocol test of the electric vehicle charger-battery management system, it is mainly verified whether the charging function is realized, if the charging is finished, whether the charging data can be uploaded, whether the electric vehicle charger-battery management system protocol with the bearing function meets the standard requirement, and a reverse test of the protocol. Therefore, the charging function is realized on the surface, but when the device is actually interconnected with the electric vehicle or the charger, difficulties are brought to interconnection due to the consistency of protocol realization, and certain functions of the device are influenced when the protocol message is abnormal, such as dead halt of the device caused by the abnormal protocol message in an actual test. Therefore, the main problems of the conventional protocol testing system and method for the electric vehicle charger-battery management system are that the consistency of protocol implementation cannot be systematically and comprehensively examined, so that a hidden danger is brought to interconnection between the charger and an electric vehicle, and the use failure rate of the electric vehicle is improved.

Disclosure of Invention

In view of the above, the present invention provides a system and a method for testing protocol consistency of a charging pile, which can solve the problems in the background art.

The charging pile protocol consistency testing system comprises a BMS simulation device and a charging pile to be tested, wherein the BMS simulation device comprises a protocol simulator, a voltage simulator, a simulation interface and a main control unit, the protocol simulator is arranged in the main control unit, the main control unit is connected with a control end of the voltage simulator, a communication contact is arranged in the simulation interface and connected with the main control unit, the charging pile to be tested is connected with the main control unit through the simulation interface, and the protocol simulator in the main control unit communicates with the charging pile to be tested according to related protocols.

Further, the main control unit is a micro PC host.

Furthermore, the inside of the analog interface is provided with a positive charging contact, a negative charging contact, a grounding contact, a high-level communication contact, a low-level communication contact, a first insertion confirmation contact, a second insertion confirmation contact, an auxiliary power supply positive contact and an auxiliary power supply negative contact, wherein the high-level communication contact and the low-level communication contact are communication contacts and are connected with the micro PC host through an analog-to-digital converter and a serial port.

The invention also provides a method for testing protocol consistency of the charging pile, which comprises the following steps:

s101, establishing a message database of various protocols;

s102, inserting a charging gun of a charging pile into a simulation interface, and establishing a test model;

s103, a protocol simulator in the main control unit detects the message sent by the charging pile, compares and analyzes the message with the message in the message database, and sends a prestored reply message according to the message of the charging pile;

s10301, detecting a handshake request CRM message from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, and executing the step S10302 if the detection result accords with the handshake request CRM message under any protocol;

s10302, the BMS simulation device sends a response handshake BRM message which is sent to the charging pile and is under the same protocol as the handshake request CRM message in the step S10301, and the step S10303 is executed;

s10303, sending a power storage battery configuration parameter BCP message which is sent by the BMS simulation device to the charging pile and is under the same protocol as the CRM message of the handshake request in the step S10301, and waiting for the charging pile to reply;

s10304, detecting a time synchronization information CTS message from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message;

s10305, detecting a CML message with the maximum output capacity from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, and if the detection result conforms to the CML message with the maximum output capacity under any protocol, executing the step S10306;

s10306, sending a ready BRO message under the same protocol as the CML message with the maximum output capacity in the step S10305 to the charging pile by the BMS simulation device, and waiting for the charging pile to reply;

s10307, detecting a ready message from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, and if the detection result conforms to the ready message under any protocol, executing the steps S10308 and S10309;

s10308, sending a BCL message, which is required by the battery and is under the same protocol as the ready message in the step S10307, to the charging pile by the BMS simulation device, and waiting for the charging pile to reply;

s10309, the BMS simulation device sends a BCS message of the battery charging state to the charging pile under the same protocol as the ready message in the step S10307, and waits for the charging pile to reply;

s10310, detecting a charging state CCS message from the charging pile, and executing steps S10311-S10313 or S10314 if the detection result conforms to the charging state CCS message under any protocol;

s10311, the BMS simulation device sends a BSM message of the battery state information under the same protocol as the CCS message of the charging state in the step S10310 to the charging pile, and waits for the charging pile to reply;

s10312, sending a BMV message of the single battery voltage information under the same protocol as the CCS message of the charging state in the step S1031 to the charging pile by the BMS simulation device, and waiting for the charging pile to reply;

s10313, the BMS simulation device sends a BMT message of the battery temperature information under the same protocol as the CCS message of the charging state in the step S10310 to the charging pile, and waits for the charging pile to reply;

s10314, the BMS simulation device sends a charging-stopping BST message which is sent to the charging pile and is in the same protocol as the charging state CCS message in the step S10310, and waits for the charging pile to reply;

s10315, detecting the charging suspension CST message from the charging pile, and executing the step S10316 if the detection result conforms to the charging suspension BST message under any protocol;

s10316, the BMS simulation device sends a data statistics BSD message to the charging pile under the same protocol as the charging stopping BST message in the step S10315, and waits for the charging pile to reply;

s10317, detecting a data statistics CSD message from the charging pile;

and S10318, counting all messages sent by the charging piles, performing protocol classification and counting, and judging whether all the messages sent by the charging piles belong to one protocol or multiple protocols.

Further, the message database is established in the main control unit.

The invention has the beneficial effects that: the invention relates to a charging pile protocol consistency test system and a method, which are characterized in that a BMS system in an electric automobile is simulated to communicate with a charging pile through a BMS simulation device, a message database with various protocols is established in the BMS simulation device, various messages are stored in the message database, which protocol belongs to is determined according to the period, the byte length and the content of the messages among different protocols, the BMS simulation device detects the messages from the charging pile in the whole process during testing, sends corresponding reply messages to the charging pile through analyzing the content of the messages so as to carry out conversation, and after a completed message reply process is carried out, the BMS simulation device counts all the messages from the charging pile, analyzes one by one, determines which protocol each message belongs to, and judges the protocol consistency.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.

FIG. 1 is a schematic diagram of the system of the present invention;

FIG. 2 is a flow chart of the method of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.

Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

As shown in fig. 1-2: the utility model provides a fill electric pile agreement conformance testing system, fill electric pile including BMS analogue means and examination to await measuring, BMS analogue means includes the agreement simulator, the voltage simulator, simulation interface and main control unit, the inside agreement simulator that is equipped with of main control unit, the main control unit is connected with the control end of voltage simulator, the inside of simulation interface is equipped with the communication contact, the communication contact is connected with the main control unit, the examination to await measuring fills electric pile and is connected with the main control unit through the simulation interface, the agreement simulator in the main control unit communicates with the examination stake of filling that awaits measuring according to relevant agreement, communication mainly goes on through the form of message.

In this embodiment, the main control unit is a micro PC host, and mainly includes a CPU, an operating memory, and a storage, where message databases of various protocols are stored in the storage.

The test system disclosed in this embodiment complies with the national standard for dc charging, and therefore the analog interface internally includes a positive charging contact, a negative charging contact, a ground contact, a high-level communication contact, a low-level communication contact, a first plug-in confirmation contact, a second plug-in confirmation contact, a positive auxiliary power supply contact, and a negative auxiliary power supply contact, wherein the high-level communication contact and the low-level communication contact are communication contacts and are connected to the micro PC host through an analog-to-digital converter and a serial port.

The invention also provides a method for testing protocol consistency of the charging pile, which comprises the following steps:

s101, establishing a message database of various protocols;

s102, inserting a charging gun of a charging pile into a simulation interface, and establishing a test model;

s103, a protocol simulator in the main control unit detects the message sent by the charging pile, compares and analyzes the message with the message in the message database, and sends a prestored reply message according to the message of the charging pile;

s10301, detecting a handshake request CRM message from the charging pile, wherein the detected content comprises a message period,

Byte length and content, if the detection result accords with the handshake request CRM message under any protocol, step S10302 is executed; taking national standard GB/T27930-2011 as an example, the data length of the CRM message is 8 bytes, the period is 250ms, and the specific meaning of the message is as follows:

Figure BDA0002567084420000071

s10302, the BMS simulation device sends a response handshake BRM message which is sent to the charging pile and is under the same protocol as the handshake request CRM message in the step S10301, and the step S10303 is executed; taking national standard GB/T27930-2011 as an example, BRM message data length is 41 bytes, a period is 250ms, the BRM message needs to be sent by multiple packets, and the specific meaning of the message is as follows:

s10303, sending a power storage battery configuration parameter BCP message which is sent by the BMS simulation device to the charging pile and is under the same protocol as the CRM message of the handshake request in the step S10301, and waiting for the charging pile to reply, wherein for example, the national standard GB/T27930-2011, the data length of the BCP message is 13 bytes, the period is 500ms, the BCP message needs to be sent by multiple packets, and the specific meaning of the message is as follows:

Figure BDA0002567084420000082

s10304, detecting a time synchronization information CTS message from the charging pile, wherein the detected content comprises a period, a byte length and a content of the message, the data length of the CTS message is 7 bytes, the period is 500ms, and the specific meaning is as follows:

s10305, detecting a CML message with the maximum output capacity from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, if the detection result conforms to the CML message with the maximum output capacity under any protocol, the step S10306 is executed, the data length of the CML message is 6 bytes, the period is 250ms, and the specific meaning is as follows:

and S10306, sending a ready BRO message which is sent by the BMS simulation device to the charging pile and is in the same protocol with the CML message with the maximum output capacity in the step S10305, and waiting for the charging pile to reply, wherein the data length of the BRO message is 1 byte, the period is 250ms, and the concrete meanings are as follows:

Figure BDA0002567084420000092

s10307, detecting a ready message from the charging pile, wherein the detected content comprises the period, the byte length and the content of the message, if the detection result conforms to the ready message under any protocol, executing the steps S10308 and S10309, wherein the data length is 1 byte, the period is 250ms, and the specific meaning is as follows:

Figure BDA0002567084420000093

s10308, sending a BCL message which is required by the battery and is in the same protocol as the ready message in the step S10307 to the charging pile by the BMS simulation device, and waiting for the charging pile to reply, wherein the data length of the BCL message is 5 bytes, and the period is 50 ms;

s10309, the BMS simulating device sends the BCS message of the battery charging state to the charging pile under the same protocol as the ready message in step S10307, and waits for the charging pile to reply, where the data length of the BCS message is 9 bytes, and the period is 250ms, and the specific meaning is:

Figure BDA0002567084420000101

s10310, detecting the CCS message from the charging pile, if the detection result accords with the CCS message under any protocol, executing the steps S10311-S10313 or S10314, wherein the data length of the CCS message is 6 bytes, the period is 50ms, and the specific meaning is as follows:

Figure BDA0002567084420000102

and S10311, sending a battery state information BSM message which is sent by the BMS simulation device to the charging pile and is under the same protocol with the charging state CCS message in the step S10310, waiting for the charging pile to reply, wherein the data length of the BSM message is 7 bytes, the period is 250ms, and the concrete meanings are as follows:

Figure BDA0002567084420000103

Figure BDA0002567084420000111

and S10312, sending a BMV message of the single battery voltage information to the charging pile by the BMS simulation device under the same protocol as the charging state CCS message in the step S10310, waiting for the charging pile to reply, wherein the length of the BMV message is indefinite and needs to be determined according to the number of the batteries, and the period is 1S, and the specific meanings are as follows:

Figure BDA0002567084420000112

and S10313, sending a BMT message of the battery temperature information to the charging pile by the BMS simulation device under the same protocol as the charging state CCS message in the step S10310, waiting for the charging pile to reply, wherein the length of the BMT message is indefinite and needs to be determined according to the number of the batteries, and the period is 1S, and the specific meanings are as follows:

s10314, the BMS simulation device sends a BST message for stopping charging to the charging pile under the same protocol as the CCS message of the charging state in the step S10310, the BST message is used for sending the reason for stopping charging to the charging pile and waiting for the charging pile to reply, the data length of the BST message is 4 bytes, the period is 10ms, and the specific meaning is as follows;

Figure BDA0002567084420000114

Figure BDA0002567084420000121

s10315, detecting a charging suspension CST message from the charging pile, and if the detection result conforms to the charging suspension CST message under any protocol and the CST message is used for sending charging suspension reasons to the charging pile, executing the step S10316, wherein the data length of the CST message is 4 bytes, the period is 10ms, and the specific meaning is as follows;

Figure BDA0002567084420000122

s10316, the BMS simulation device sends a data statistics BSD message to the charging pile under the same protocol as the charging CST stopping message in the step S10315, and waits for the charging pile to reply, wherein the data length of the BSD message is 7 bytes, the period is 250ms, and the concrete meaning is;

s10317, detecting data statistics CSD message from charging pile, the data length is 5 bytes, the period is 250ms, and the concrete meaning is

In addition, there are also error-occurring messages, such as BEN and CEM messages, which are only involved in fault simulation, and thus are not described in detail.

And S10318, counting all messages sent by the charging piles, classifying and counting protocols, judging that all messages sent by the charging piles belong to one protocol or multiple protocols, and finally obtaining the communication protocol of the charging piles to prompt a user of the risk of protocol mismatch, so that faults are avoided when the vehicle-mounted BMS system communicates with the charging piles of which the protocols are mismatched.

The invention relates to a charging pile protocol consistency test system and a method, which are characterized in that a BMS system in an electric automobile is simulated to communicate with a charging pile through a BMS simulation device, a message database with various protocols is established in the BMS simulation device, various messages are stored in the message database, which protocol belongs to is determined according to the period, the byte length and the content of the messages among different protocols, the BMS simulation device detects the messages from the charging pile in the whole process during testing, sends corresponding reply messages to the charging pile through analyzing the content of the messages so as to carry out conversation, and after a completed message reply process is carried out, the BMS simulation device counts all the messages from the charging pile, analyzes one by one, determines which protocol each message belongs to, and judges the protocol consistency.

Finally, the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered in the claims of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种通信的方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类