CN104125113B - Electric automobile battery charger battery management system protocol conformance test method - Google Patents

Electric automobile battery charger battery management system protocol conformance test method Download PDF

Info

Publication number
CN104125113B
CN104125113B CN201410370551.7A CN201410370551A CN104125113B CN 104125113 B CN104125113 B CN 104125113B CN 201410370551 A CN201410370551 A CN 201410370551A CN 104125113 B CN104125113 B CN 104125113B
Authority
CN
China
Prior art keywords
tested
message
protocol
test equipment
messages
Prior art date
Application number
CN201410370551.7A
Other languages
Chinese (zh)
Other versions
CN104125113A (en
Inventor
叶健诚
李旭玲
朱金大
施玉祥
董晨
马彦华
李志明
张萱
Original Assignee
国家电网公司
南京南瑞集团公司
国网电力科学研究院
国网山东省电力公司电力科学研究院
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 国家电网公司, 南京南瑞集团公司, 国网电力科学研究院, 国网山东省电力公司电力科学研究院 filed Critical 国家电网公司
Priority to CN201410370551.7A priority Critical patent/CN104125113B/en
Publication of CN104125113A publication Critical patent/CN104125113A/en
Application granted granted Critical
Publication of CN104125113B publication Critical patent/CN104125113B/en

Links

Abstract

The invention discloses a kind of electric automobile battery charger battery management system protocol conformance test method, it is whether consistent with standard using protocol test device authentication electric automobile battery charger battery management system agreement, related electric amount is adjusted using test apparatus, has coordinated the test of paired data accuracy.Test content includes the checking of the uniformity test, application function and data accuracy of agreement, and wherein testing protocol consistency includes charging message, charging flow, the proper testing of error message and negative test.Method of testing of the invention gives one system of electric automobile battery charger battery management system agreement, comprehensively test content and method of testing, the charging reliable and stable to ensure electric automobile, there is provided technical support, with critically important practical significance.

Description

Electric automobile battery charger-battery management system protocol conformance test method
Technical field
The present invention relates to a kind of electric automobile battery charger-battery management system protocol conformance test method, belong to test And metering field.
Background technology
Chinese society economic development faces the severe challenges such as energy supply shortage, ecological environmental pollution.Green energy conservation ring The electric automobile of guarantor is the Main way of China's new-energy automobile development, possesses vast potential for future development.Charging electric vehicle Machine feeds and the key equipment with power network two-way interaction as electric automobile energy, is the important foundation of electric automobile popularization and application Support, is also the important content in electric automobile commercialization, industrialization process.
Electric automobile battery charger-battery management system protocol realization charging electric vehicle, coordinates the work(of control charger Rate is exported, and ensures the stable operation of electrokinetic cell, is received much attention always.Electric automobile battery charger-battery management system of the current country What system agreement was mainly followed has three kinds of standard criterions, including GB/T 27930-2011, NB/T 33003-2010, Q/GDW 235- 2008。
In electric automobile battery charger-battery management system agreement in actual use, due to producer and use unit pair The cause that understands differently of the standard of agreement, implementation method is different, to actual interoperability issue, how to ensure charging electric vehicle The realization of machine-battery management system agreement and standard consistency, it is ensured that electric automobile battery charger-battery management system agreement it is mutual Operability is the emphasis of our research.
At present, in existing electric automobile battery charger-battery management system protocol test, charge function is mainly verified Whether realize, can such as complete to charge, charge data can be uploaded, have ignored the electric automobile battery charger-battery of bearing function Whether management system agreement meets the requirement of standard, and to the negative testing of agreement.So, charge function is to realize on surface But, may be because of the uniformity on protocol realization, to mutually associated when reality and electric automobile or charger are interconnected Come difficult, it is also possible to which when protocol massages are abnormal, some functions of device are affected, as run into actual test, when Protocol massages cause the deadlock of device when abnormal.Therefore, current electric automobile battery charger-battery management system protocol test side Method subject matter is to be unable to system, comprehensively the uniformity of examination protocol realization, to mutual associated between charger and electric automobile Hidden danger, improves electric automobile and uses fault rate.
The content of the invention
It is an object of the invention to provide a kind of electric automobile battery charger-battery management system testing protocol consistency side Method, solves the problems, such as to test the realization of an authentication function and ignore agreement and test in itself in the past.
Electric automobile battery charger-battery management system protocol conformance test method, comprises the following steps:
(1) tested device provides communications protocol explanation, and it is consistent to fill in electric automobile battery charger-battery management system agreement Property statement table;
(2) test platform is built, protocol test equipment is connected with tested device, connecting electric automobile charger and battery Management system;
(3) communication interface of tested device is recorded;
(4) physical layer communication rate test is carried out, the communication baud rate and tested dress of protocol test equipment is specially adjusted The communication baud rate put is consistent, and correct order is sent using protocol test equipment, checks the communication message that tested device is responded, To detect whether to support this traffic rate;
(5) test of data link layer PDU/PGN forms is carried out, specially correct communication is sent using protocol test equipment Message, including correct PDU forms, correct PGN, correct address distribution, and transport protocol capabilities connection initialization, Data transfer, connection closed follow the definition of standard transmission, check the response frame that can tested device correctly respond and return Form it is whether correct;The communication message of PDU format errors is sent using protocol test equipment, checks that whether tested device can The exception is responded;The communication message of PGN mistakes is sent using protocol test equipment, checks whether tested device abandons this Frame;
(6) data-link layer transfer protocol format test is carried out, specially:Using protocol test equipment send 9 bytes or During the data message of the above, do not transmitted according to transmission format protocol, check whether tested device responds;
(7) data-link layer address allocation for test is carried out, specially:Using protocol test equipment transmission source/destination address The communication message of mistake, logic judgment is carried out to the response frame that tested device is returned, and checks whether tested device filters the frame;
(8) charging message test is carried out, charger positive test, negative testing and battery management system is broadly divided into positive Test, negative testing;
Charger positive test, comprises the following steps:
8-11) identification code is the positive test of the CRM messages of 0X00, and test platform is built after finishing, and checks tested device The CRM message responses that identification code is 0X00 can be used;
8-12) identification code is the positive test of the CRM messages of 0XAA, and protocol test equipment sends BRM and reports to tested device Text, checks that tested device can be properly received and with the CRM message responses that identification code is 0XAA;
8-13) the positive test of CTS and CML messages, protocol test equipment sends BCP messages to tested device, checks quilt Surveying device can be properly received and with CTS and CML message responses;
8-14) the positive test of CRO messages, protocol test equipment sends BRO messages to tested device, checks tested device Can be properly received and use CRO message responses;
8-15) the positive test of CCS messages, protocol test equipment sends BCL and BCS messages to tested device, checks quilt Surveying device can be properly received and use CCS message responses;
8-16) the positive test of CST messages, protocol test equipment sends BST messages to tested device, checks tested device Can be properly received and use CST message responses;
8-17) the positive test of CSD messages, protocol test equipment sends BSD messages to tested device, checks tested device Can be properly received and use CSD message responses;
Charger negative testing, including:
8-21) identification code is the negative testing of the CRM messages of 0X00, and tested device can use the CRM that identification code is 0X00 During message response, after communication loop is untied, check that tested device can stop the CRM message responses that identification code is 0X00;
8-22) identification code is the negative testing of the CRM messages of 0XAA, and it is non-that protocol test equipment sends BRM to tested device Method message, checks that tested device can not use the CRM message responses that identification code is 0XAA;
8-23) the negative testing of CTS and CML messages, protocol test equipment sends BCP invalid packets, inspection to tested device Looking into tested device can not use CTS and CML message responses;
8-24) the negative testing of CRO messages, protocol test equipment sends BRO invalid packets to tested device, checks tested Device can not use CTO message responses;
8-25) the negative testing of CCS messages, protocol test equipment sends BCL and BCS invalid packets, inspection to tested device Looking into tested device can not use CCS message responses;
8-26) the negative testing of CST messages, protocol test equipment sends BST invalid packets to tested device, checks tested Device can not use CST message responses;
8-27) the negative testing of CSD messages, protocol test equipment sends BSD invalid packets to tested device, checks tested Device can not use CSD message responses;
Battery management system positive test, including:
8-31) the positive test of BRM messages, protocol test equipment sends identification code for the CRM of 0X00 is reported to tested device Text, checks that tested device can be properly received and use BRM message responses;
8-32) the positive test of BCP messages, protocol test equipment sends identification code for the CRM of 0XAA is reported to tested device Text, checks that tested device can be properly received and use BCP message responses;
8-33) the positive test of BRO messages, protocol test equipment sends CTS and CML messages to tested device, checks quilt Surveying device can be properly received and use BRO message responses;
8-34) the positive test of BCL, BCS message, protocol test equipment sends CRO messages to tested device, checks tested Device can be properly received and with BCL and BCS message responses;
8-35) the positive test of BSM, BMV, BMT and BSP message, in charging process, check tested device can send BSM, BMV, BMT and BSP message;
8-36) the positive test of BST messages, protocol test equipment sends CST messages to tested device, checks tested device Can be properly received and use BST message responses;
8-37) the positive test of BSD messages, control tested device stops charging, and checks that tested device can correctly send BST, with after CST message responses, tested device can use BSD message responses to protocol test equipment;
Battery management system negative testing, including:
8-41) the negative testing of BRM messages, protocol test equipment sends identification code for the CRM of 0X00 is non-to tested device Method message, checks that tested device can not use BRM message responses;
8-42) the negative testing of BCP messages, protocol test equipment sends identification code for the CRM of 0XAA is non-to tested device Method message, checks that tested device can not use BCP message responses;
8-43) the negative testing of BRO messages, protocol test equipment sends CTS and CML invalid packets, inspection to tested device Looking into tested device can not use BRO message responses;
8-44) the negative testing of BCL, BCS message, protocol test equipment sends CRO invalid packets to tested device, checks Tested device can not use BCL and BCS message responses;
8-45) the negative testing of BSM, BMV, BMT and BSP message, it is illegal that protocol test equipment sends CCS to tested device Message, checks that tested device can not use BSM, BMV, BMT and BSP message response;
8-46) the negative testing of BST messages, protocol test equipment sends CST invalid packets to tested device, checks tested Device can not use BST message responses;
8-47) the negative testing of BSD messages, control tested device stops charging, and checks that tested device can correctly send BST, after protocol test equipment is responded with CST invalid packets, tested device can not use BSD message responses;
(9) error message test is carried out, when carrying out reverse message test using protocol test equipment, tested device can be used BEM or CEM message responses, and flag definition is correct;Exceed regulation, quilt using protocol test equipment control message response time Surveying device can also use BEM or CEM message responses;
(10) charging flow test is carried out, the order in charging process each stage is adjusted using protocol test equipment, for just True charging flow, tested device is capable of identify that and correctly responds;For incorrect charging flow, tested device can stop Charging flow;
(11) retransmission mechanism test is carried out, postpones transmission message in test process using protocol test equipment, check quilt Can device be surveyed have retransmission mechanism;
(12) message period measuring is carried out, message is sent to tested device using protocol test equipment, adjust protocol test Can equipment sends the time, check the cycle of tested device repeating transmission message and meet standard requirement;
(13) multiframe message test is carried out, multiframe message is sent to tested device using protocol test equipment, check tested Can device normal response to multiframe message;Illegal multiframe message is sent to tested device using protocol test equipment, quilt is checked Can device be surveyed respond to abnormal;
(14) invalid information unit testing is carried out, message is sent to tested device using protocol test equipment, it is many when sending During the information unit of byte, can invalid or reserved byte set to 0 xFF in the response message of tested device, and invalid or pre- The potential energy that stays is no to be set to 1;
(15) data is activation mode test is carried out, message is sent to tested device using protocol test equipment, check tested Can device first be sent using low level, the transmission form sent after a high position;Check that tested device receives protocol test equipment hair During the message for sending, data can correctly be parsed according to the form;
(16) data area test is carried out, using defined byte in protocol test equipment change standard, and is exceeded The scope of regulation, checks that can tested device respond;
(17) application function test is carried out, according to the application function of tested device in protocol conformance statement table, inspection is every Whether one application function can be correctly completed;
(18) data accuracy test is carried out, applies electrical quantity to tested device using test apparatus, then using agreement Test equipment sends command frame, checks whether the data sent in tested device are correct.
Foregoing protocol test equipment is that can send various command frames according to simulation the need for test and to tested device, And receive the device of the response frame of tested device;Various command frames are preset in the protocol test equipment and relative to life Make the correct response frame of frame, protocol test equipment receive after the response frame of tested device return with the response frame pair for prestoring Than, logic judgment is carried out, verify the uniformity of the response message of tested device.
Foregoing tested device is electric automobile battery charger or battery management system, such as to verify electric automobile battery charger During to the response uniformity of message, electric automobile battery charger is connected with protocol test equipment, tested device is filled for electric automobile Motor;When verifying battery management system to the response uniformity of message, battery management system is connected with protocol test equipment, Tested device is battery management system.
Foregoing test apparatus connection tested device and protocol test equipment;The test apparatus is can be defeated according to demand Go out voltage, the device of current electrical amount;The test apparatus receives the coordination control of protocol test equipment, applies to tested device Electrical quantity.
Advantages of the present invention is:
1) comprehensively, test content includes testing for uniformity test, application function and the data accuracy of agreement to test content Card, wherein testing protocol consistency include charging message, charging flow, the test of error message, and this method of testing gives electricity Electrical automobile charger-the system of battery management system agreement one, comprehensively test content and method of testing, it is ensured that protocol realization one Cause property and interoperability.
2) open test thought, method of testing gives the positive test and negative testing method of charging message, can be with Find out the deep defects of measurand, it is ensured that the accordance of agreement and standard;
3) special electric automobile battery charger-battery management system protocol test equipment, is set using special protocol test It is standby to be more beneficial for finding the mistake in protocol massages;
4) suitable for various electric automobile battery chargers and the test specification and standard of battery management system, there is wider being applicable Property;
5) inspection test process can be in friendly way prompted the user with, message was sent out, is received message and test result etc., tool There is directly perceived, easily advantage;
6) side of effective detection, assessment protocol conformance and function can be provided for professional testing agency or producer Method and means.
Brief description of the drawings
Fig. 1 is test platform architecture figure of the invention.
Specific embodiment
The present invention is described in detail in conjunction with the drawings and specific embodiments.
Method of testing of the invention has been formulated and has comprehensively tested content in detail, and is completed using special protocol test equipment Testing protocol consistency.
Test content is as shown in table 1, including physical layer test, and data link layer is tested and application layer test.
Wherein,
Physical layer is tested, the traffic rate that main examination tested device is supported.
Data link layer is tested, and mainly examines or check transmission mode, PGN/PDU identifications, check code and link transmission state, it is ensured that In link layer normally or under abnormal conditions, tested device can provide correct response, and can normally run.
Application layer test includes:
Whether the positive test and negative testing of charging message, the form and transmitting procedure of main examination charging message meet The requirement of standard, and when charging message is abnormal, whether tested device responds to abnormal;
Error message is tested, and when main examination charges abnormal, can tested device send correct according to the requirement of standard Timeout packet, or whether can correctly be responded when timeout packet is received;
Whether charging flow is tested, and Row control in main examination charging process and redirects the requirement for meeting standard, when When flow is abnormal, whether tested device responds to abnormal;
Retransmission mechanism is tested, and in main examination charging process, the mode that can tested device resend according to the cycle is sent out Deliver newspaper text;
Message sends period measuring, and in main examination charging process, can tested device send according to the cycle of definition Message;
Multiframe message is tested, in main investigation charging process, when tested device sends and receives the data of 9 bytes or more Whether transport protocol capabilities are used;
Invalid information unit testing, in main examination charging process, tested device sends and receives the information list of multibyte Whether unit, the filling of invalid or reserved byte/position is correct;
Data is activation mode is tested, and in main examination charging process, whether tested device transmission data are first sent out using low level The form for sending;
Data area is tested, and whether main examination data area meets the requirement of standard, and when charge data exceeds model When enclosing, whether tested device can respond to abnormal;
Application function is tested, and is mainly examined or check on the basis of protocol conformance, and whether tested device application function is normal;
Data accuracy is tested, and on the basis of protocol conformance realization, whether the data sent in examination tested device are accurate Really.
Table 1 tests content item table
As shown in figure 1, electric automobile battery charger of the present invention-battery management system testing protocol consistency uses special association View test equipment, during test, protocol test equipment is connected with tested device, carries out testing protocol consistency;By protocol test Joint test instrument between equipment and tested device, applies electrical quantity, then using agreement by test apparatus to tested device Test equipment sends command frame, checks whether the data sent in tested device are correct.
Protocol test equipment of the invention is used can send various orders according to the need for test to tested device simulation Frame, and the device of the response frame of tested device is received, various command frames are preset in protocol test equipment and relative to life Make the correct response frame of frame, protocol test equipment receive after the response frame of tested device return with the response frame pair for prestoring Than, logic judgment is carried out, verify the uniformity of the response message of tested device.
Tested device of the invention is electric automobile battery charger or battery management system, such as to verify charging electric vehicle When machine is to the response uniformity of message, tested device is electric automobile battery charger, to verify sound of the battery management system to message When answering uniformity, tested device is battery management system.
Test apparatus of the invention for can output voltage according to demand, the device of current electrical amount, test apparatus receives The coordination control of protocol test equipment, electrical quantity is applied to tested device.
Protocol conformance test method is comprised the following steps that:
The first step:Tested device needs offer communications protocol to illustrate and fill in electric automobile battery charger-battery management system Protocol conformance statement table;
Second step:Test platform is built according to Fig. 1, protocol test equipment is connected with tested device, connecting electric automobile Charger and battery management system;
3rd step:Record the communication interface of tested device;
4th step:Physical layer communication rate test, specially adjusts the communication baud rate and tested dress of protocol test equipment The communication baud rate put is consistent, and correct order is sent using protocol test equipment, checks the communication message that tested device is responded, To detect whether to support this traffic rate;
5th step:Data link layer PDU/PGN forms are tested, and specially send correct communication using protocol test equipment Message, including correct PDU forms, correct PGN, correct address distribution, and transport protocol capabilities connection initialization, Data transfer, connection closed follow the definition of standard transmission, check the response frame that can tested device correctly respond and return Form it is whether correct;The communication message of PDU format errors is sent using protocol test equipment, checks that whether tested device can The exception is responded;The communication message of PGN mistakes is sent using protocol test equipment, checks whether tested device abandons this Frame;
6th step:Data-link layer transfer protocol format is tested, specially:Using protocol test equipment send 9 bytes or During the data message of the above, do not transmitted according to transmission format protocol, check whether tested device responds;
7th step:Data-link layer address allocation for test, specially:Using protocol test equipment transmission source/destination address The communication message of mistake, logic judgment is carried out to the response frame that tested device is returned, and checks whether tested device filters the frame;
8th step:Charging message is tested, and is broadly divided into charger positive test, negative testing and battery management system (BMS) positive test, negative testing;
Charger positive test, comprises the following steps:
8-1) the positive test of CRM (identification code 0X00) message, test platform is built after finishing, and checks that tested device can With CRM (identification code 0X00) message response;
8-2) the positive test of CRM (identification code 0XAA) message, protocol test equipment sends BRM messages to tested device, Check that tested device can be properly received and with CRM (identification code 0XAA) message response;
8-3) the positive test of CTS and CML messages, protocol test equipment sends BCP messages to tested device, checks tested Device can be properly received and with CTS and CML message responses;
8-4) the positive test of CRO messages, protocol test equipment sends BRO messages to tested device, checks tested device Can be properly received and use CRO message responses;
8-5) the positive test of CCS messages, protocol test equipment sends BCL and BCS messages to tested device, checks tested Device can be properly received and use CCS message responses;
8-6) the positive test of CST messages, protocol test equipment sends BST messages to tested device, checks tested device Can be properly received and use CST message responses;
8-7) the positive test of CSD messages, protocol test equipment sends BSD messages to tested device, checks tested device Can be properly received and use CSD message responses;
9th step:Charger negative testing, including:
9-1) the negative testing of CRM (identification code 0X00) message, tested device can be rung with CRM (identification code 0X00) message At once, after communication loop being untied, check that tested device can stop CRM (identification code 0X00) message response;
9-2) the negative testing of CRM (identification code 0XAA) message, protocol test equipment sends BRM and illegally reports to tested device Text, checks that tested device can not use CRM (identification code 0XAA) message response;
9-3) the negative testing of CTS and CML messages, protocol test equipment sends BCP invalid packets to tested device, checks Tested device can not use CTS and CML message responses;
9-4) the negative testing of CRO messages, protocol test equipment sends BRO invalid packets to tested device, checks tested Device can not use CTO message responses;
9-5) the negative testing of CCS messages, protocol test equipment sends BCL and BCS invalid packets to tested device, checks Tested device can not use CCS message responses;
9-6) the negative testing of CST messages, protocol test equipment sends BST invalid packets to tested device, checks tested Device can not use CST message responses;
9-7) the negative testing of CSD messages, protocol test equipment sends BSD invalid packets to tested device, checks tested Device can not use CSD message responses;
Tenth step, battery management system (BMS) positive test, including:
10-1) the positive test of BRM messages, protocol test equipment sends CRM (identification code 0X00) message to tested device, Check that tested device can be properly received and use BRM message responses;
10-2) the positive test of BCP messages, protocol test equipment sends CRM (identification code 0XAA) message to tested device, Check that tested device can be properly received and use BCP message responses;
10-3) the positive test of BRO messages, protocol test equipment sends CTS and CML messages to tested device, checks quilt Surveying device can be properly received and use BRO message responses;
10-4) the positive test of BCL, BCS message, protocol test equipment sends CRO messages to tested device, checks tested Device can be properly received and with BCL and BCS message responses;
10-5) the positive test of BSM, BMV, BMT and BSP message, in charging process, check tested device can send BSM, BMV, BMT and BSP message;
10-6) the positive test of BST messages, protocol test equipment sends CST messages to tested device, checks tested device Can be properly received and use BST message responses;
10-7) the positive test of BSD messages, control tested device stops charging, and checks that tested device can correctly send BST, with after CST message responses, tested device can use BSD message responses to protocol test equipment;
11st step, battery management system (BMS) negative testing, including:
11-1) the negative testing of BRM messages, it is illegal that protocol test equipment sends CRM (identification code 0X00) to tested device Message, checks that tested device can not use BRM message responses;
11-2) the negative testing of BCP messages, it is illegal that protocol test equipment sends CRM (identification code 0XAA) to tested device Message, checks that tested device can not use BCP message responses;
The negative testing of BRO messages, protocol test equipment sends CTS and CML invalid packets to tested device, checks tested Device can not use BRO message responses;
11-4) the negative testing of BCL, BCS message, protocol test equipment sends CRO invalid packets to tested device, checks Tested device can not use BCL and BCS message responses;
11-5) the negative testing of BSM, BMV, BMT and BSP message, it is illegal that protocol test equipment sends CCS to tested device Message, checks that tested device can not use BSM, BMV, BMT and BSP message response;
11-6) the negative testing of BST messages, protocol test equipment sends CST invalid packets to tested device, checks tested Device can not use BST message responses;
11-7) the negative testing of BSD messages, control tested device stops charging, and checks that tested device can correctly send BST, after protocol test equipment is responded with CST invalid packets, tested device can not use BSD message responses;
12nd step:Error message is tested, and when carrying out reverse message test using protocol test equipment, tested device can Defined correctly with BEM or CEM message responses, and flag;Exceed regulation using protocol test equipment control message response time, Tested device can also use BEM or CEM message responses;
13rd step:Charging flow is tested, and the order in charging process each stage is adjusted using protocol test equipment, for just True charging flow, tested device is capable of identify that and correctly responds;For incorrect charging flow, tested device can stop Charging flow;
14th step:Retransmission mechanism is tested, and postpones transmission message in test process using protocol test equipment, checks quilt Can device be surveyed have retransmission mechanism;
15th step:Message period measuring, message is sent using protocol test equipment to tested device, adjusts protocol test Can equipment sends the time, check the cycle of tested device repeating transmission message and meet standard requirement;
16th step:Multiframe message is tested, and multiframe message is sent to tested device using protocol test equipment, checks tested Can device normal response to multiframe message;Illegal multiframe message is sent to tested device using protocol test equipment, quilt is checked Can device be surveyed respond to abnormal
17th step:Invalid information unit testing, message is sent using protocol test equipment to tested device, many when sending During the information unit of byte, can invalid or reserved byte set to 0 xFF in the response message of tested device, and invalid or pre- The potential energy that stays is no to be set to 1;
18th step:Data is activation mode is tested, and message is sent to tested device using protocol test equipment, checks tested Can device first be sent using low level, the transmission form sent after a high position;Check that tested device receives protocol test equipment hair During the message for sending, data can correctly be parsed according to the form;
19th step:Data area is tested, and using defined byte in protocol test equipment change standard, and is exceeded The scope of regulation, checks that can tested device respond;
20th step:Application function is tested, and according to the application function of tested device in protocol conformance statement table, inspection is every Whether one application function can be correctly completed;
21st step:Data accuracy is tested, and electrical quantity is applied to tested device using test apparatus, then using association View test equipment sends command frame, checks whether the data sent in tested device are correct.

Claims (4)

1. electric automobile battery charger-battery management system protocol conformance test method, it is characterised in that comprise the following steps:
(1) tested device provides communications protocol explanation, and fills in electric automobile battery charger-battery management system protocol conformance sound Bright table;
(2) test platform is built, protocol test equipment is connected with tested device, connecting electric automobile charger and battery management System;
(3) communication interface of tested device is recorded;
(4) physical layer communication rate test is carried out, the communication baud rate and tested device of protocol test equipment is specially adjusted Communication baud rate is consistent, and correct order is sent using protocol test equipment, checks the communication message of tested device response to examine Whether survey supports this traffic rate;
(5) test of data link layer PDU/PGN forms is carried out, specially correct communication report is sent using protocol test equipment Text, including correct PDU forms, correct PGN, the distribution of correct address, and the connection of transport protocol capabilities are initialized, counted The definition of standard transmission is followed according to transmission, connection closed, checks that can tested device correctly respond and the response frame that returns Whether form is correct;The communication message of PDU format errors is sent using protocol test equipment, checks whether tested device can be right The communication message of the PDU format errors is responded;Using protocol test equipment send PGN mistakes communication message, check by Survey whether device abandons the frame;
(6) data-link layer transfer protocol format test is carried out, specially:9 bytes or more are sent using protocol test equipment Data message when, not according to transmission format protocol transmit, check whether tested device responds;
(7) data-link layer address allocation for test is carried out, specially:Using protocol test equipment transmission source/destination address mistake Communication message, to tested device return response frame carry out logic judgment, check whether tested device filters the frame;
(8) charging message test is carried out, the positive survey of charger positive test, negative testing and battery management system is broadly divided into Examination, negative testing;
Charger positive test, comprises the following steps:
8-11) identification code is the positive test of the CRM messages of 0X00, and test platform is built after finishing, and checks that tested device can With the CRM message responses that identification code is 0X00;
8-12) identification code is the positive test of the CRM messages of 0XAA, and protocol test equipment sends BRM messages, inspection to tested device Looking into tested device can be properly received and with the CRM message message responses that identification code is 0XAA;
8-13) the positive test of CTS and CML messages, protocol test equipment sends BCP messages to tested device, checks tested dress Putting can be properly received and with CTS and CML message responses;
8-14) the positive test of CRO messages, protocol test equipment sends BRO messages to tested device, checks that tested device can It is properly received and uses CRO message responses;
8-15) the positive test of CCS messages, protocol test equipment sends BCL and BCS messages to tested device, checks tested dress Putting can be properly received and use CCS message responses;
8-16) the positive test of CST messages, protocol test equipment sends BST messages to tested device, checks that tested device can It is properly received and uses CST message responses;
8-17) the positive test of CSD messages, protocol test equipment sends BSD messages to tested device, checks that tested device can It is properly received and uses CSD message responses;
Charger negative testing, including:
8-21) identification code is the negative testing of the CRM messages of 0X00, and tested device can use the CRM messages that identification code is 0X00 During response, after communication loop is untied, check that tested device can stop the CRM message responses that identification code is 0X00;
8-22) identification code is the negative testing of the CRM messages of 0XAA, and protocol test equipment sends BRM and illegally reports to tested device Text, checks that tested device can not use the CRM message responses that identification code is 0XAA;
8-23) the negative testing of CTS and CML messages, protocol test equipment sends BCP invalid packets to tested device, checks quilt Surveying device can not use CTS and CML message responses;
8-24) the negative testing of CRO messages, protocol test equipment sends BRO invalid packets to tested device, checks tested device CTO message responses can not be used;
8-25) the negative testing of CCS messages, protocol test equipment sends BCL and BCS invalid packets to tested device, checks quilt Surveying device can not use CCS message responses;
8-26) the negative testing of CST messages, protocol test equipment sends BST invalid packets to tested device, checks tested device CST message responses can not be used;
8-27) the negative testing of CSD messages, protocol test equipment sends BSD invalid packets to tested device, checks tested device CSD message responses can not be used;
Battery management system positive test, including:
8-31) the positive test of BRM messages, it is the CRM messages of 0X00, inspection that protocol test equipment sends identification code to tested device Looking into tested device can be properly received and use BRM message responses;
8-32) the positive test of BCP messages, it is the CRM messages of 0XAA, inspection that protocol test equipment sends identification code to tested device Looking into tested device can be properly received and use BCP message responses;
8-33) the positive test of BRO messages, protocol test equipment sends CTS and CML messages to tested device, checks tested dress Putting can be properly received and use BRO message responses;
8-34) the positive test of BCL, BCS message, protocol test equipment sends CRO messages to tested device, checks tested device Can be properly received and with BCL and BCS message responses;
8-35) the positive test of BSM, BMV, BMT and BSP message, in charging process, check tested device can send BSM, BMV, BMT and BSP messages;
8-36) the positive test of BST messages, protocol test equipment sends CST messages to tested device, checks that tested device can It is properly received and uses BST message responses;
8-37) the positive test of BSD messages, control tested device stops charging, and checks that tested device can correctly send BST, With after CST message responses, tested device can use BSD message responses to protocol test equipment;
Battery management system negative testing, including:
8-41) the negative testing of BRM messages, protocol test equipment sends identification code for the CRM of 0X00 is illegally reported to tested device Text, checks that tested device can not use BRM message responses;
8-42) the negative testing of BCP messages, protocol test equipment sends identification code for the CRM of 0XAA is illegally reported to tested device Text, checks that tested device can not use BCP message responses;
8-43) the negative testing of BRO messages, protocol test equipment sends CTS and CML invalid packets to tested device, checks quilt Surveying device can not use BRO message responses;
8-44) the negative testing of BCL, BCS message, protocol test equipment sends CRO invalid packets to tested device, checks tested Device can not use BCL and BCS message responses;
8-45) the negative testing of BSM, BMV, BMT and BSP message, protocol test equipment sends CCS and illegally reports to tested device Text, checks that tested device can not use BSM, BMV, BMT and BSP message response;
8-46) the negative testing of BST messages, protocol test equipment sends CST invalid packets to tested device, checks tested device BST message responses can not be used;
8-47) the negative testing of BSD messages, control tested device stops charging, and checks that tested device can correctly send BST, After protocol test equipment is responded with CST invalid packets, tested device can not use BSD message responses;
(9) error message test is carried out, when carrying out reverse message test using protocol test equipment, tested device can use BEM Or CEM message responses, and flag definition is correct;Exceed regulation using protocol test equipment control message response time, be tested Device can also use BEM or CEM message responses;
(10) charging flow test is carried out, the order in charging process each stage is adjusted using protocol test equipment, for correct Charging flow, tested device is capable of identify that and correctly responds;For incorrect charging flow, tested device can stop to charge Flow;
(11) retransmission mechanism test is carried out, postpones transmission message in test process using protocol test equipment, check tested dress Can put have retransmission mechanism;
(12) message period measuring is carried out, message is sent to tested device using protocol test equipment, adjust protocol test equipment The transmission time, can check the cycle of tested device repeating transmission message meet standard requirement;
(13) multiframe message test is carried out, multiframe message is sent to tested device using protocol test equipment, check tested device Can normal response to multiframe message;Illegal multiframe message is sent to tested device using protocol test equipment, tested dress is checked Can put respond to abnormal;
(14) invalid information unit testing is carried out, message is sent to tested device using protocol test equipment, when transmission multibyte Information unit when, can invalid or reserved byte set to 0 xFF in the response message of tested device, and invalid or reserved Potential energy is no to be set to 1;
(15) data is activation mode test is carried out, message is sent to tested device using protocol test equipment, check tested device Can first be sent using low level, the transmission form sent after a high position;Check that tested device receives the transmission of protocol test equipment During message, data can correctly be parsed according to the form;
(16) data area test is carried out, using defined byte in protocol test equipment change standard, and beyond regulation Scope, check that can tested device respond;
(17) application function test is carried out, according to the application function of tested device in protocol conformance statement table, each is checked Whether application function can be correctly completed;
(18) data accuracy test is carried out, applies electrical quantity to tested device using test apparatus, then using protocol test Equipment sends command frame, checks whether the data sent in tested device are correct.
2. electric automobile battery charger according to claim 1-battery management system protocol conformance test method, its feature It is that the protocol test equipment connects for that can send various command frames according to simulation the need for test and to tested device Receive the device of the response frame of tested device;Various command frames are preset in the protocol test equipment and relative to command frame Correct response frame, protocol test equipment receive tested device return response frame after with prestore response frame contrast, enter Row logic judgment, verifies the uniformity of the response message of tested device.
3. electric automobile battery charger according to claim 1-battery management system protocol conformance test method, its feature It is that the tested device is electric automobile battery charger or battery management system, such as verifies electric automobile battery charger to report During the response uniformity of text, electric automobile battery charger is connected with protocol test equipment, tested device is electric automobile battery charger; When verifying battery management system to the response uniformity of message, battery management system is connected with protocol test equipment, be tested Device is battery management system.
4. electric automobile battery charger according to claim 1-battery management system protocol conformance test method, its feature It is that the test apparatus connects tested device and protocol test equipment;The test apparatus is that can according to demand export electricity Pressure, the device of current electrical amount;The test apparatus receives the coordination control of protocol test equipment, applies electric to tested device Amount.
CN201410370551.7A 2014-07-30 2014-07-30 Electric automobile battery charger battery management system protocol conformance test method CN104125113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410370551.7A CN104125113B (en) 2014-07-30 2014-07-30 Electric automobile battery charger battery management system protocol conformance test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410370551.7A CN104125113B (en) 2014-07-30 2014-07-30 Electric automobile battery charger battery management system protocol conformance test method

Publications (2)

Publication Number Publication Date
CN104125113A CN104125113A (en) 2014-10-29
CN104125113B true CN104125113B (en) 2017-06-23

Family

ID=51770382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410370551.7A CN104125113B (en) 2014-07-30 2014-07-30 Electric automobile battery charger battery management system protocol conformance test method

Country Status (1)

Country Link
CN (1) CN104125113B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553771A (en) * 2015-12-16 2016-05-04 国网北京市电力公司 Message detection method and apparatus
CN106324392A (en) * 2016-08-12 2017-01-11 深圳天邦达科技有限公司 Interaction method for simulating charging pile and BMS through upper computer
CN108092835A (en) * 2016-11-23 2018-05-29 普天信息技术有限公司 The detection method and device of electric automobile charging pile
CN106740196B (en) * 2016-12-12 2019-08-09 国网北京市电力公司 Charging method and device for DC charging equipment
CN107678771A (en) * 2017-10-23 2018-02-09 无锡恩吉威新能源有限公司 A kind of method for optimizing battery management system online upgrading
CN108009088A (en) * 2017-11-30 2018-05-08 惠州市德赛西威汽车电子股份有限公司 A kind of automatization test system of underlying protocol
CN108965044B (en) * 2018-06-12 2020-07-31 南瑞集团有限公司 Electric vehicle charging facility communication data link health state testing device, system and method
CN109067617B (en) * 2018-08-27 2020-12-01 东软集团(北京)有限公司 V2X protocol consistency test method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103094633A (en) * 2013-01-08 2013-05-08 北京优科利尔能源设备有限公司 Detecting and maintaining system applied to electromobile power battery
CN103513190A (en) * 2013-10-24 2014-01-15 国家电网公司 Method and system for testing consistency of performances of batteries
CN103558849A (en) * 2013-11-18 2014-02-05 上汽通用五菱汽车股份有限公司 Method for achieving control strategy adjustment and network testing of blade electric vehicle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040060069A1 (en) * 2002-09-25 2004-03-25 Adc Broadband Access Systems, Inc. Testing and verification of cable modem systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103094633A (en) * 2013-01-08 2013-05-08 北京优科利尔能源设备有限公司 Detecting and maintaining system applied to electromobile power battery
CN103513190A (en) * 2013-10-24 2014-01-15 国家电网公司 Method and system for testing consistency of performances of batteries
CN103558849A (en) * 2013-11-18 2014-02-05 上汽通用五菱汽车股份有限公司 Method for achieving control strategy adjustment and network testing of blade electric vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于LabVIEW的动力蓄电池维护及测试系统的监控设计";张斌等;《机械与电子》;20100731;第276-279页全文 *

Also Published As

Publication number Publication date
CN104125113A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
US8107491B2 (en) System and method for providing communication between intelligent electronic devices via an open channel
CN101907694B (en) Device and method for testing low-voltage collecting meter reading system
CN102879662B (en) Device and method for detecting secondary virtual loop of intelligent transformer substation
CN107786967A (en) It is directly accessed the LoRa running gears and its data transmission method of LoRa message packets
CN104517366B (en) A kind of wireless charging method and corresponding vehicle-mounted charging equipment, equipment manager
CN105904986B (en) A kind of new energy car remote battery management detection method and system
CN104601331B (en) Charging pile monitor control system and method
CN105914816A (en) Charging pile system based on LoRa internet of things
CN204154825U (en) A kind of alternating-current charging pile failure detector
CN102164058A (en) IEC61850 standard transformer substation based communication network and system test method
CN103812885A (en) Internet of Things energy metering method and device
CN202720296U (en) Platform for detecting function and performance of power distribution automatic terminal apparatus
CN104978300B (en) Mobile terminal and its detection method being connect with external equipment and device
CN103312852B (en) A kind of mobile terminal electric current automatic test device and method of testing thereof
EP2264912A3 (en) Method and system for suppression of interferences between cells
Ouannes et al. Cell-wise monitoring of Lithium-ion batteries for automotive traction applications by using power line communication: battery modeling and channel characterization
CN204291050U (en) A kind of dispatching and monitoring information check system
CN104301122A (en) Method and device for node rousing
CN102004199B (en) Alternating current charging post in-situ test device and method
CN104518533A (en) Wireless charging method and wireless charging system
CN101944962B (en) Method and device for testing radio frequency performance of multiple TD-LTE (TD-SCDMA long term evolution) terminals simultaneously
CN102981137B (en) Based on voltage monitoring instrument long-distance intelligent calibration equipment and the method for GPRS/GSM network
CN101126795A (en) Battery performance testing system
CN105490839A (en) Website data security alarming method and device
US20200092379A1 (en) Method for establishing a communication connection, vehicle communication device and charging station communication device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Co-patentee after: NARI Group Corp.

Patentee after: State Grid Corporation of China

Co-patentee after: STATE GRID WUHAN HIGH VOLTAGE Research Institute

Co-patentee after: ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER Co.

Address before: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Co-patentee before: NARI Group CORPORATION STATE GRID ELECTRIC POWER INSTITUTE

Patentee before: State Grid Corporation of China

Co-patentee before: STATE GRID WUHAN HIGH VOLTAGE Research Institute

Co-patentee before: ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER Co.