CN104125113A - Method for testing consistency on a protocol for electric automobile charger and battery management system - Google Patents

Method for testing consistency on a protocol for electric automobile charger and battery management system Download PDF

Info

Publication number
CN104125113A
CN104125113A CN201410370551.7A CN201410370551A CN104125113A CN 104125113 A CN104125113 A CN 104125113A CN 201410370551 A CN201410370551 A CN 201410370551A CN 104125113 A CN104125113 A CN 104125113A
Authority
CN
China
Prior art keywords
message
tested device
protocol
test equipment
response
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201410370551.7A
Other languages
Chinese (zh)
Other versions
CN104125113B (en
Inventor
叶健诚
李旭玲
朱金大
施玉祥
董晨
马彦华
李志明
张萱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Wuhan High Voltage Research Institute
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Shandong Electric Power Co Ltd
NARI Group Corp
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Shandong Electric Power Co Ltd
Nanjing NARI Group Corp
State Grid Electric Power Research Institute
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 State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Shandong Electric Power Co Ltd, Nanjing NARI Group Corp, State Grid Electric Power Research Institute filed Critical State Grid Corp of China SGCC
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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a method for testing consistency on a protocol for an electric automobile charger and battery management system. The method comprises the following steps of verifying whether the protocol for the electric automobile charger and battery management system is consistent to a standard or not by using protocol testing equipment; adjusting relevant electrical quantities by using a testing instrument; and testing data accuracy in a coordinating manner. Testing contents comprise protocol consistency testing, application function verification and data accuracy verification; and the protocol consistency testing comprises normal testing and negative testing on charging messages, a charging process and wrong messages. By the method for testing the consistency on the protocol for the electric automobile charger and battery management system, the testing contents are systemic and comprehensive; a technical support is provided for stably and reliably charging an electric automobile; and the method has an important actual 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.The electric automobile of energy-saving and environment friendly is the main direction of China's new-energy automobile development, is having vast potential for future development.Electric automobile battery charger as electric automobile energy supply and with the key equipment of electrical network two-way interaction, be that the important foundation that electric automobile is applied supports, be also the important content in electric automobile commercialization, industrialization process.
Electric automobile battery charger-battery management system agreement has realized charging electric vehicle, coordinates to control the power stage of charger, ensures the stable operation of electrokinetic cell, receives much attention always.Current domestic electric automobile battery charger-battery management system agreement is mainly followed three kinds of standard criterions, comprises GB/T 27930-2011, NB/T 33003-2010, Q/GDW 235-2008.
In the actual use procedure of electric automobile battery charger-battery management system agreement, because producer and applying unit cause understanding differently of the standard of agreement, implementation method is different, give actual interoperability issue, how to guarantee realization and the standard consistency of electric automobile battery charger-battery management system agreement, guarantee that the interoperability of electric automobile battery charger-battery management system agreement is the emphasis of our research.
At present, in existing electric automobile battery charger-battery management system protocol test, mainly whether checking charge function is realized, as completed charging, can upload charging data, whether electric automobile battery charger-battery management system agreement of having ignored bearing function meets the requirement of standard and the negative testing to agreement.Like this, on surface, charge function is to have realized, but the consistency that may realize because of agreement when interconnected at actual and electric automobile or charger, give the interconnected difficulty of bringing, also likely in some function of the abnormal timer of protocol massages, be affected, as run into, when protocol massages is abnormal, cause the deadlock of device in reality test.Therefore, current electric automobile battery charger-battery management system protocol testing method subject matter is can not system, comprehensively examines or check the consistency that agreement realizes, and gives the interconnected band hidden danger between charger and electric automobile, has promoted electric automobile operational failure rate.
Summary of the invention
The object of the present invention is to provide a kind of electric automobile battery charger-battery management system protocol conformance test method, solve the problem of testing the realization of an authentication function in the past and ignoring agreement test itself.
Electric automobile battery charger-battery management system protocol conformance test method, comprises the following steps:
(1) tested device provides communications protocol explanation, and fills in electric automobile battery charger-battery management system protocol conformance statement table;
(2) build test platform, protocol test equipment is connected with tested device, connecting electric automobile charger and battery management system;
(3) record the communication interface of tested device;
(4) carry out physical layer communication rate test, the communication baud rate that is specially adjustment protocol test equipment is consistent with the communication baud rate of tested device, utilize protocol test equipment to send correct order, check the communication message that tested device is responded, detect and whether support this traffic rate;
(5) carry out the test of data link layer PDU/PGN form, be specially and utilize protocol test equipment to send correct communication message, comprise correct PDU form, correct PGN, correct address assignment, and the connection initialization of transport protocol capabilities, transfer of data, connection closed are followed the definition of standard transmission, check that whether the form of the response frame that can tested device correctly respond and return is correct; Utilize protocol test equipment to send the communication message of PDU format error, check whether tested device can make response extremely to this; Utilize protocol test equipment to send the communication message of PGN mistake, check whether tested device abandons this frame;
(6) carry out the test of data link layer transmission format protocol, be specially: while utilizing protocol test equipment to send 9 bytes or above data message, not according to transmission format protocol transmission, check whether tested device responds;
(7) carry out data-link layer address allocation for test, be specially: utilize the communication message of protocol test equipment transmission source/destination address mistake, the response frame that tested device is returned carries out logic judgement, check whether tested device filters this frame;
(8) charge message test, is mainly divided into charger positive test, negative testing and battery management system positive test, negative testing;
Charger positive test, comprises the following steps:
The positive test of the CRM message that 8-11) identification code is 0X00, after test platform is built, checks the CRM message response that the enough identification codes of tested device energy are 0X00;
The positive test of the CRM message that 8-12) identification code is 0XAA, protocol test equipment sends BRM message to tested device, checks that it is the CRM message response of 0XAA that tested device can correctly receive and use identification code;
8-13) the positive test of CTS and CML message, protocol test equipment sends BCP message to tested device, checks that tested device can correctly receive and use CTS and CML message response;
8-14) the positive test of CRO message, protocol test equipment sends BRO message to tested device, checks that tested device can correctly receive and use CRO message response;
8-15) the positive test of CCS message, protocol test equipment sends BCL and BCS message to tested device, checks that tested device can correctly receive and use CCS message response;
8-16) the positive test of CST message, protocol test equipment sends BST message to tested device, checks that tested device can correctly receive and use CST message response;
8-17) the positive test of CSD message, protocol test equipment sends BSD message to tested device, checks that tested device can correctly receive and use CSD message response;
Charger negative testing, comprising:
The negative testing of the CRM message that 8-21) identification code is 0X00, during CRM message response that tested device can enough identification codes is 0X00, after communication loop is untied, checks that tested device can stop the CRM message response that identification code is 0X00;
The negative testing of the CRM message that 8-22) identification code is 0XAA, protocol test equipment sends BRM invalid packet to tested device, checks the CRM message response that tested device can not be 0XAA by identification code;
8-23) the negative testing of CTS and CML message, protocol test equipment sends BCP invalid packet to tested device, and inspection tested device can not be used CTS and CML message response;
8-24) the negative testing of CRO message, protocol test equipment sends BRO invalid packet to tested device, and inspection tested device can not be used CTO message response;
8-25) the negative testing of CCS message, protocol test equipment sends BCL and BCS invalid packet to tested device, and inspection tested device can not be used CCS message response;
8-26) the negative testing of CST message, protocol test equipment sends BST invalid packet to tested device, and inspection tested device can not be used CST message response;
8-27) the negative testing of CSD message, protocol test equipment sends BSD invalid packet to tested device, and inspection tested device can not be used CSD message response;
Battery management system positive test, comprising:
8-31) the positive test of BRM message, protocol test equipment sends to tested device the CRM message that identification code is 0X00, checks that tested device can correctly receive and use BRM message response;
8-32) the positive test of BCP message, protocol test equipment sends to tested device the CRM message that identification code is 0XAA, checks that tested device can correctly receive and use BCP message response;
8-33) the positive test of BRO message, protocol test equipment sends CTS and CML message to tested device, checks that tested device can correctly receive and use BRO message response;
8-34) the positive test of BCL, BCS message, protocol test equipment sends CRO message to tested device, checks that tested device can correctly receive and use BCL and BCS message response;
8-35) the positive test of BSM, BMV, BMT and BSP message, in charging process, checks that tested device can send BSM, BMV, BMT and BSP message;
8-36) the positive test of BST message, protocol test equipment sends CST message to tested device, checks that tested device can correctly receive and use BST message response;
8-37) the positive test of BSD message, controls tested device and stops charging, checks that tested device can correctly send BST, and protocol test equipment is with after CST message response, and tested device can be used BSD message response;
Battery management system negative testing, comprising:
8-41) the negative testing of BRM message, protocol test equipment sends to tested device the CRM invalid packet that identification code is 0X00, and inspection tested device can not be used BRM message response;
8-42) the negative testing of BCP message, protocol test equipment sends to tested device the CRM invalid packet that identification code is 0XAA, and inspection tested device can not be used BCP message response;
8-43) the negative testing of BRO message, protocol test equipment sends CTS and CML invalid packet to tested device, and inspection tested device can not be used BRO message response;
8-44) the negative testing of BCL, BCS message, protocol test equipment sends CRO invalid packet to tested device, and inspection tested device can not be used BCL and BCS message response;
8-45) the negative testing of BSM, BMV, BMT and BSP message, protocol test equipment sends CCS invalid packet to tested device, and inspection tested device can not be used BSM, BMV, BMT and BSP message response;
8-46) the negative testing of BST message, protocol test equipment sends CST invalid packet to tested device, and inspection tested device can not be used BST message response;
8-47) the negative testing of BSD message, controls tested device and stops charging, checks that tested device can correctly send BST, and protocol test equipment is with after the response of CST invalid packet, and tested device can not be used BSD message response;
(9) carry out error message test, while utilizing protocol test equipment to carry out reverse message test, the tested device enough BEM of energy or CEM message response, and flag definition is correct; Utilize protocol test equipment to control message response time and surpass regulation, tested device also can enough BEM or CEM message response;
(10) carry out charging flow test, utilize protocol test equipment to adjust the order in each stage of charging process, for correct charging flow, tested device can be identified and correctly response; For incorrect charging flow, tested device can be ended charging flow;
(11) carry out retransmission mechanism test, utilize protocol test equipment delayed delivery message in test process, check that can tested device have retransmission mechanism;
(12) carry out message period measuring, utilize protocol test equipment to send message to tested device, adjust protocol test equipment transmitting time, check that can the cycle of tested device repeating transmission message meet standard-required;
(13) carry out the test of multiframe message, utilize protocol test equipment to send multiframe message to tested device, check that can tested device normal response to multiframe message; Utilize protocol test equipment to send illegal multiframe message to tested device, check that can tested device extremely to making response;
(14) carry out invalid information unit testing, utilize protocol test equipment to send message to tested device, when sending multibyte information unit, can byte invalid or reserved in the response message of tested device set to 0 xFF, and invalid or reserved potential energy is no is set to 1;
(15) carry out the test of data receiver formula, utilize protocol test equipment to send message to tested device, check that can tested device adopt low level first to send, the high-order rear transmission form sending; Check when tested device receives the message of protocol test equipment transmission, can to data, correctly resolve according to this form;
(16) carry out data area test, utilize defined byte in protocol test equipment change standard, and exceed the scope of regulation, check that can tested device make response;
(17) carry out application function test, according to the application function of tested device in protocol conformance statement table, check each application function whether can correctly complete;
(18) carry out data accuracy test, utilize test apparatus to apply electric parameters to tested device, then utilize protocol test equipment to send command frame, check that whether the data of sending in tested device are correct.
Aforesaid protocol test equipment is and to send various command frame to tested device according to the needs simulation of test, and receives the device of the response frame of tested device; On described protocol test equipment, preset various command frame and with respect to the correct response frame of command frame, protocol test equipment receives after the response frame that tested device returns and the response frame contrast prestoring, carry out logic judgement, the consistency of the response message of checking tested device.
Aforesaid tested device is electric automobile battery charger or battery management system, and as will be verified electric automobile battery charger to the response consistency of message time, by electric automobile battery charger and protocol test equipment connection, tested device is electric automobile battery charger; While verifying battery management system to the response consistency of message, by battery management system and protocol test equipment connection, tested device is battery management system.
Aforesaid test apparatus connects tested device and protocol test equipment; Described test apparatus is output voltage according to demand, the device of current electrical amount; Described test apparatus is accepted the coordination of protocol test equipment and is controlled, and to tested device, applies electric parameters.
Advantage of the present invention is:
1) content measurement is comprehensive, content measurement comprises the checking of uniformity test, application function and the data accuracy of agreement, wherein testing protocol consistency comprises the test of charging message, charging flow, error message, this method of testing has provided system of electric automobile battery charger-battery management system agreement, comprehensive content measurement and method of testing, and guarantee agreement is realized consistency and interoperability.
2) open test thought, method of testing has provided positive test and the negative testing method of charging message, can find out the degree of depth defect of measurand, has guaranteed the accordance of protocols and standards;
3) special electric automobile battery charger-battery management system protocol test equipment, is used special protocol test equipment to be more conducive to find the mistake in protocol massages;
4) be applicable to test specification and the standard of various electric automobile battery chargers and battery management system, have wider applicability;
5) mode that can be friendly is pointed out inspection test process, sent out message, is received message and test result etc. to user, has intuitively, advantage easily;
6) can provide for professional testing agency or producer method and the means of effective detection, assessment protocol conformance and function.
Accompanying drawing explanation
Fig. 1 is test platform architecture figure of the present invention.
Embodiment
Now describe the present invention in detail with embodiment by reference to the accompanying drawings.
Method of testing of the present invention has been formulated in detail comprehensively content measurement, and utilizes special protocol test equipment to complete testing protocol consistency.
Content measurement is as shown in table 1, comprises physical layer test, data link layer test and application layer test.
Wherein,
Physical layer test, mainly examines or check the traffic rate that tested device is supported.
Data link layer test, mainly examines or check transmission mode, PGN/PDU identification, and check code and link transmission state, guarantee that under or abnormal conditions normal at link layer, tested device can provide correct response, and can normally move.
Application layer test comprises:
Positive test and the negative testing of charging message, the form of main examination charging message and the requirement whether transmitting procedure meets standard, and when charging message is abnormal, whether tested device is to extremely making response;
Error message test, when main examination charging is abnormal, whether can tested device send correct timeout packet according to the requirement of standard, or can correctly respond when receive time-out message;
Charging flow test, mainly examines or check that flow process in charging process is controlled and whether redirect meets the requirement of standard, and when flow process is abnormal, whether tested device is to extremely making response;
Retransmission mechanism test, mainly examines or check in charging process, and can tested device send message according to the mode that the cycle resends;
Message sends period measuring, mainly examines or check in charging process, and can tested device send message according to the cycle of definition;
Multiframe message test, mainly investigates in charging process, whether uses transport protocol capabilities when tested device sending and receiving 9 bytes or above data;
Invalid information unit testing, mainly examines or check in charging process, the multibyte information unit of tested device sending and receiving, and whether the filling of invalid or reserved byte/position is correct;
The test of data receiver formula, mainly examines or check in charging process, the form whether tested device transmission data adopt low level first to send;
Data area test, mainly examines or check the requirement whether data area meets standard, and when charging Data Out of Range, whether tested device can be to making response extremely;
Application function test, mainly examines or check on the basis of protocol conformance, and whether tested device application function is normal;
Data accuracy test, on the basis of realizing in protocol conformance, whether the data of sending in examination tested device are accurate.
Table 1 content measurement repertory
As shown in Figure 1, electric automobile battery charger-battery management system testing protocol consistency of the present invention adopts special protocol test equipment, during test, protocol test equipment is connected with tested device, carries out testing protocol consistency; By joint test instrument between protocol test equipment and tested device, by test apparatus, to tested device, apply electric parameters, then utilize protocol test equipment to send command frame, check that whether the data of sending in tested device are correct.
Protocol test equipment of the present invention adopts and can need to send various command frame to tested device simulation according to what test, and receive the device of the response frame of tested device, on protocol test equipment, preset various command frame and with respect to the correct response frame of command frame, protocol test equipment receives after the response frame that tested device returns and the response frame contrast prestoring, carry out logic judgement, the consistency of the response message of checking tested device.
Tested device of the present invention is electric automobile battery charger or battery management system, as will be verified electric automobile battery charger to the response consistency of message time, tested device is electric automobile battery charger, while verifying battery management system to the response consistency of message, tested device is battery management system.
Test apparatus of the present invention is output voltage according to demand, the device of current electrical amount, and test apparatus is accepted the coordination of protocol test equipment and is controlled, and to tested device, applies electric parameters.
The concrete steps of protocol conformance test method are as follows:
The first step: tested device need to provide communications protocol to illustrate and fill in electric automobile battery charger-battery management system protocol conformance statement table;
Second step: build test platform according to Fig. 1, protocol test equipment is connected with tested device, connecting electric automobile charger and battery management system;
The 3rd step: the communication interface that records tested device;
The 4th step: physical layer communication rate test, the communication baud rate that is specially adjustment protocol test equipment is consistent with the communication baud rate of tested device, utilize protocol test equipment to send correct order, check the communication message that tested device is responded, detect and whether support this traffic rate;
The 5th step: data link layer PDU/PGN form test, be specially and utilize protocol test equipment to send correct communication message, comprise correct PDU form, correct PGN, correct address assignment, and the connection initialization of transport protocol capabilities, transfer of data, connection closed are followed the definition of standard transmission, check that whether the form of the response frame that can tested device correctly respond and return is correct; Utilize protocol test equipment to send the communication message of PDU format error, check whether tested device can make response extremely to this; Utilize protocol test equipment to send the communication message of PGN mistake, check whether tested device abandons this frame;
The 6th step: data link layer transmission format protocol test, is specially: while utilizing protocol test equipment to send 9 bytes or above data message, not according to transmission format protocol transmission, check whether tested device responds;
The 7th step: data-link layer address allocation for test, is specially: utilize the communication message of protocol test equipment transmission source/destination address mistake, the response frame that tested device is returned carries out logic judgement, checks whether tested device filters this frame;
The 8th step: the test of charging message, is mainly 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, after test platform is built, checks tested device energy enough CRM (identification code 0X00) message response;
8-2) the positive test of CRM (identification code 0XAA) message, protocol test equipment sends BRM message to tested device, checks that tested device can correctly receive and use CRM (identification code 0XAA) message response;
8-3) the positive test of CTS and CML message, protocol test equipment sends BCP message to tested device, checks that tested device can correctly receive and use CTS and CML message response;
8-4) the positive test of CRO message, protocol test equipment sends BRO message to tested device, checks that tested device can correctly receive and use CRO message response;
8-5) the positive test of CCS message, protocol test equipment sends BCL and BCS message to tested device, checks that tested device can correctly receive and use CCS message response;
8-6) the positive test of CST message, protocol test equipment sends BST message to tested device, checks that tested device can correctly receive and use CST message response;
8-7) the positive test of CSD message, protocol test equipment sends BSD message to tested device, checks that tested device can correctly receive and use CSD message response;
The 9th step: charger negative testing, comprising:
9-1) the negative testing of CRM (identification code 0X00) message, during tested device energy enough CRM (identification code 0X00) message response, after communication loop is untied, checks 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 invalid packet to tested device, and inspection tested device can not be used CRM (identification code 0XAA) message response;
9-3) the negative testing of CTS and CML message, protocol test equipment sends BCP invalid packet to tested device, and inspection tested device can not be used CTS and CML message response;
9-4) the negative testing of CRO message, protocol test equipment sends BRO invalid packet to tested device, and inspection tested device can not be used CTO message response;
9-5) the negative testing of CCS message, protocol test equipment sends BCL and BCS invalid packet to tested device, and inspection tested device can not be used CCS message response;
9-6) the negative testing of CST message, protocol test equipment sends BST invalid packet to tested device, and inspection tested device can not be used CST message response;
9-7) the negative testing of CSD message, protocol test equipment sends BSD invalid packet to tested device, and inspection tested device can not be used CSD message response;
The tenth step, battery management system (BMS) positive test, comprising:
10-1) the positive test of BRM message, protocol test equipment sends CRM (identification code 0X00) message to tested device, checks that tested device can correctly receive and use BRM message response;
10-2) the positive test of BCP message, protocol test equipment sends CRM (identification code 0XAA) message to tested device, checks that tested device can correctly receive and use BCP message response;
10-3) the positive test of BRO message, protocol test equipment sends CTS and CML message to tested device, checks that tested device can correctly receive and use BRO message response;
10-4) the positive test of BCL, BCS message, protocol test equipment sends CRO message to tested device, checks that tested device can correctly receive and use BCL and BCS message response;
10-5) the positive test of BSM, BMV, BMT and BSP message, in charging process, checks that tested device can send BSM, BMV, BMT and BSP message;
10-6) the positive test of BST message, protocol test equipment sends CST message to tested device, checks that tested device can correctly receive and use BST message response;
10-7) the positive test of BSD message, controls tested device and stops charging, checks that tested device can correctly send BST, and protocol test equipment is with after CST message response, and tested device can be used BSD message response;
The 11 step, battery management system (BMS) negative testing, comprising:
11-1) the negative testing of BRM message, protocol test equipment sends CRM (identification code 0X00) invalid packet to tested device, and inspection tested device can not be used BRM message response;
11-2) the negative testing of BCP message, protocol test equipment sends CRM (identification code 0XAA) invalid packet to tested device, and inspection tested device can not be used BCP message response;
The negative testing of BRO message, protocol test equipment sends CTS and CML invalid packet to tested device, and inspection tested device can not be used BRO message response;
11-4) the negative testing of BCL, BCS message, protocol test equipment sends CRO invalid packet to tested device, and inspection tested device can not be used BCL and BCS message response;
11-5) the negative testing of BSM, BMV, BMT and BSP message, protocol test equipment sends CCS invalid packet to tested device, and inspection tested device can not be used BSM, BMV, BMT and BSP message response;
11-6) the negative testing of BST message, protocol test equipment sends CST invalid packet to tested device, and inspection tested device can not be used BST message response;
11-7) the negative testing of BSD message, controls tested device and stops charging, checks that tested device can correctly send BST, and protocol test equipment is with after the response of CST invalid packet, and tested device can not be used BSD message response;
The 12 step: error message test, while utilizing protocol test equipment to carry out reverse message test, the tested device enough BEM of energy or CEM message response, and flag definition is correct; Utilize protocol test equipment to control message response time and surpass regulation, tested device also can enough BEM or CEM message response;
The 13 step: charging flow test, utilize protocol test equipment to adjust the order in each stage of charging process, for correct charging flow, tested device can be identified and correctly response; For incorrect charging flow, tested device can be ended charging flow;
The 14 step: retransmission mechanism test, utilize protocol test equipment delayed delivery message in test process, check that can tested device have retransmission mechanism;
The 15 step: message period measuring, utilize protocol test equipment to send message to tested device, adjust protocol test equipment transmitting time, check that can the cycle of tested device repeating transmission message meet standard-required;
The 16 step: multiframe message test, utilize protocol test equipment to send multiframe message to tested device, check that can tested device normal response to multiframe message; Utilize protocol test equipment to send illegal multiframe message to tested device, check that can tested device extremely to making response
The 17 step: invalid information unit testing, utilize protocol test equipment to send message to tested device, when sending multibyte information unit, can byte invalid or reserved in the response message of tested device set to 0 xFF, and invalid or reserved potential energy is no is set to 1;
The 18 step: the test of data receiver formula, utilize protocol test equipment to send message to tested device, check that can tested device adopt low level first to send, the high-order rear transmission form sending; Check when tested device receives the message of protocol test equipment transmission, can to data, correctly resolve according to this form;
The 19 step: data area test, utilize defined byte in protocol test equipment change standard, and exceed the scope of regulation, check that can tested device make response;
The 20 step: application function test, according to the application function of tested device in protocol conformance statement table, check each application function whether can correctly complete;
The 21 step: data accuracy test, utilize test apparatus to apply electric parameters to tested device, then utilize protocol test equipment to send command frame, check that whether the data of sending in tested device are correct.

Claims (4)

1. electric automobile battery charger-battery management system protocol conformance test method, is characterized in that, comprises the following steps:
(1) tested device provides communications protocol explanation, and fills in electric automobile battery charger-battery management system protocol conformance statement table;
(2) build test platform, protocol test equipment is connected with tested device, connecting electric automobile charger and battery management system;
(3) record the communication interface of tested device;
(4) carry out physical layer communication rate test, the communication baud rate that is specially adjustment protocol test equipment is consistent with the communication baud rate of tested device, utilize protocol test equipment to send correct order, check the communication message that tested device is responded, detect and whether support this traffic rate;
(5) carry out the test of data link layer PDU/PGN form, be specially and utilize protocol test equipment to send correct communication message, comprise correct PDU form, correct PGN, correct address assignment, and the connection initialization of transport protocol capabilities, transfer of data, connection closed are followed the definition of standard transmission, check that whether the form of the response frame that can tested device correctly respond and return is correct; Utilize protocol test equipment to send the communication message of PDU format error, check whether tested device can make response extremely to this; Utilize protocol test equipment to send the communication message of PGN mistake, check whether tested device abandons this frame;
(6) carry out the test of data link layer transmission format protocol, be specially: while utilizing protocol test equipment to send 9 bytes or above data message, not according to transmission format protocol transmission, check whether tested device responds;
(7) carry out data-link layer address allocation for test, be specially: utilize the communication message of protocol test equipment transmission source/destination address mistake, the response frame that tested device is returned carries out logic judgement, check whether tested device filters this frame;
(8) charge message test, is mainly divided into charger positive test, negative testing and battery management system positive test, negative testing;
Charger positive test, comprises the following steps:
The positive test of the CRM message that 8-11) identification code is 0X00, after test platform is built, checks the CRM message response that the enough identification codes of tested device energy are 0X00;
The positive test of the CRM message that 8-12) identification code is 0XAA, protocol test equipment sends BRM message to tested device, checks that it is the CRM message response of 0XAA that tested device can correctly receive and use identification code;
8-13) the positive test of CTS and CML message, protocol test equipment sends BCP message to tested device, checks that tested device can correctly receive and use CTS and CML message response;
8-14) the positive test of CRO message, protocol test equipment sends BRO message to tested device, checks that tested device can correctly receive and use CRO message response;
8-15) the positive test of CCS message, protocol test equipment sends BCL and BCS message to tested device, checks that tested device can correctly receive and use CCS message response;
8-16) the positive test of CST message, protocol test equipment sends BST message to tested device, checks that tested device can correctly receive and use CST message response;
8-17) the positive test of CSD message, protocol test equipment sends BSD message to tested device, checks that tested device can correctly receive and use CSD message response;
Charger negative testing, comprising:
The negative testing of the CRM message that 8-21) identification code is 0X00, during CRM message response that tested device can enough identification codes is 0X00, after communication loop is untied, checks that tested device can stop the CRM message response that identification code is 0X00;
The negative testing of the CRM message that 8-22) identification code is 0XAA, protocol test equipment sends BRM invalid packet to tested device, checks the CRM message response that tested device can not be 0XAA by identification code;
8-23) the negative testing of CTS and CML message, protocol test equipment sends BCP invalid packet to tested device, and inspection tested device can not be used CTS and CML message response;
8-24) the negative testing of CRO message, protocol test equipment sends BRO invalid packet to tested device, and inspection tested device can not be used CTO message response;
8-25) the negative testing of CCS message, protocol test equipment sends BCL and BCS invalid packet to tested device, and inspection tested device can not be used CCS message response;
8-26) the negative testing of CST message, protocol test equipment sends BST invalid packet to tested device, and inspection tested device can not be used CST message response;
8-27) the negative testing of CSD message, protocol test equipment sends BSD invalid packet to tested device, and inspection tested device can not be used CSD message response;
Battery management system positive test, comprising:
8-31) the positive test of BRM message, protocol test equipment sends to tested device the CRM message that identification code is 0X00, checks that tested device can correctly receive and use BRM message response;
8-32) the positive test of BCP message, protocol test equipment sends to tested device the CRM message that identification code is 0XAA, checks that tested device can correctly receive and use BCP message response;
8-33) the positive test of BRO message, protocol test equipment sends CTS and CML message to tested device, checks that tested device can correctly receive and use BRO message response;
8-34) the positive test of BCL, BCS message, protocol test equipment sends CRO message to tested device, checks that tested device can correctly receive and use BCL and BCS message response;
8-35) the positive test of BSM, BMV, BMT and BSP message, in charging process, checks that tested device can send BSM, BMV, BMT and BSP message;
8-36) the positive test of BST message, protocol test equipment sends CST message to tested device, checks that tested device can correctly receive and use BST message response;
8-37) the positive test of BSD message, controls tested device and stops charging, checks that tested device can correctly send BST, and protocol test equipment is with after CST message response, and tested device can be used BSD message response;
Battery management system negative testing, comprising:
8-41) the negative testing of BRM message, protocol test equipment sends to tested device the CRM invalid packet that identification code is 0X00, and inspection tested device can not be used BRM message response;
8-42) the negative testing of BCP message, protocol test equipment sends to tested device the CRM invalid packet that identification code is 0XAA, and inspection tested device can not be used BCP message response;
8-43) the negative testing of BRO message, protocol test equipment sends CTS and CML invalid packet to tested device, and inspection tested device can not be used BRO message response;
8-44) the negative testing of BCL, BCS message, protocol test equipment sends CRO invalid packet to tested device, and inspection tested device can not be used BCL and BCS message response;
8-45) the negative testing of BSM, BMV, BMT and BSP message, protocol test equipment sends CCS invalid packet to tested device, and inspection tested device can not be used BSM, BMV, BMT and BSP message response;
8-46) the negative testing of BST message, protocol test equipment sends CST invalid packet to tested device, and inspection tested device can not be used BST message response;
8-47) the negative testing of BSD message, controls tested device and stops charging, checks that tested device can correctly send BST, and protocol test equipment is with after the response of CST invalid packet, and tested device can not be used BSD message response;
(9) carry out error message test, while utilizing protocol test equipment to carry out reverse message test, the tested device enough BEM of energy or CEM message response, and flag definition is correct; Utilize protocol test equipment to control message response time and surpass regulation, tested device also can enough BEM or CEM message response;
(10) carry out charging flow test, utilize protocol test equipment to adjust the order in each stage of charging process, for correct charging flow, tested device can be identified and correctly response; For incorrect charging flow, tested device can be ended charging flow;
(11) carry out retransmission mechanism test, utilize protocol test equipment delayed delivery message in test process, check that can tested device have retransmission mechanism;
(12) carry out message period measuring, utilize protocol test equipment to send message to tested device, adjust protocol test equipment transmitting time, check that can the cycle of tested device repeating transmission message meet standard-required;
(13) carry out the test of multiframe message, utilize protocol test equipment to send multiframe message to tested device, check that can tested device normal response to multiframe message; Utilize protocol test equipment to send illegal multiframe message to tested device, check that can tested device extremely to making response;
(14) carry out invalid information unit testing, utilize protocol test equipment to send message to tested device, when sending multibyte information unit, can byte invalid or reserved in the response message of tested device set to 0 xFF, and invalid or reserved potential energy is no is set to 1;
(15) carry out the test of data receiver formula, utilize protocol test equipment to send message to tested device, check that can tested device adopt low level first to send, the high-order rear transmission form sending; Check when tested device receives the message of protocol test equipment transmission, can to data, correctly resolve according to this form;
(16) carry out data area test, utilize defined byte in protocol test equipment change standard, and exceed the scope of regulation, check that can tested device make response;
(17) carry out application function test, according to the application function of tested device in protocol conformance statement table, check each application function whether can correctly complete;
(18) carry out data accuracy test, utilize test apparatus to apply electric parameters to tested device, then utilize protocol test equipment to send command frame, check that whether the data of sending in tested device are correct.
2. electric automobile battery charger-battery management system protocol conformance test method according to claim 1, it is characterized in that, described protocol test equipment is and to send various command frame to tested device according to the needs simulation of test, and receives the device of the response frame of tested device; On described protocol test equipment, preset various command frame and with respect to the correct response frame of command frame, protocol test equipment receives after the response frame that tested device returns and the response frame contrast prestoring, carry out logic judgement, the consistency of the response message of checking tested device.
3. electric automobile battery charger-battery management system protocol conformance test method according to claim 1, it is characterized in that, described tested device is electric automobile battery charger or battery management system, as will be verified electric automobile battery charger to the response consistency of message time, by electric automobile battery charger and protocol test equipment connection, tested device is electric automobile battery charger; While verifying battery management system to the response consistency of message, by battery management system and protocol test equipment connection, tested device is battery management system.
4. electric automobile battery charger-battery management system protocol conformance test method according to claim 1, is characterized in that, described test apparatus connects tested device and protocol test equipment; Described test apparatus is output voltage according to demand, the device of current electrical amount; Described test apparatus is accepted the coordination of protocol test equipment and is controlled, and to tested device, applies electric parameters.
CN201410370551.7A 2014-07-30 2014-07-30 Electric automobile battery charger battery management system protocol conformance test method Active 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 true CN104125113A (en) 2014-10-29
CN104125113B CN104125113B (en) 2017-06-23

Family

ID=51770382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410370551.7A Active 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)

Cited By (18)

* 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
CN106740196A (en) * 2016-12-12 2017-05-31 国网北京市电力公司 For the charging method and device of DC charging equipment
CN106941434A (en) * 2017-04-18 2017-07-11 北京博电新力电气股份有限公司 The detecting system and method for a kind of communication message
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
CN108092835A (en) * 2016-11-23 2018-05-29 普天信息技术有限公司 The detection method and device of electric automobile charging pile
CN108965044A (en) * 2018-06-12 2018-12-07 南瑞集团有限公司 A kind of electric car electrically-charging equipment universal data link health status test device, system and method
CN109067617A (en) * 2018-08-27 2018-12-21 东软集团(北京)有限公司 A kind of V2X protocol conformance test method, apparatus and system
CN109167701A (en) * 2018-08-22 2019-01-08 国电南瑞科技股份有限公司 A kind of power distribution automation standardized extensions communication protocol consistency desired result method, apparatus and system
CN109309597A (en) * 2018-06-19 2019-02-05 南方电网科学研究院有限责任公司 A kind of test device of communication performance
CN109714231A (en) * 2019-02-13 2019-05-03 国网电力科学研究院有限公司 A kind of top charging bow DC charging protocol test equipment and its test method
CN110493332A (en) * 2019-08-14 2019-11-22 广东省安心加科技有限公司 A kind of charging pile message processing method and its system
CN112422362A (en) * 2020-10-16 2021-02-26 中汽研汽车检验中心(天津)有限公司 System and method for testing consistency of communication protocol of wireless charging vehicle-mounted end equipment
CN112462742A (en) * 2020-11-30 2021-03-09 上海汽车集团股份有限公司 Method for rapidly carrying out national standard data conformance simulation detection on new energy automobile
CN113253033A (en) * 2021-05-25 2021-08-13 科世达(上海)机电有限公司 Simulation power supply testing arrangement
CN114422289A (en) * 2022-01-11 2022-04-29 国网电力科学研究院有限公司 Transmission method and device for CAN (controller area network) message of electric vehicle
CN115250247A (en) * 2022-07-28 2022-10-28 重庆长安汽车股份有限公司 Discovery protocol testing method, system, electronic device and readable storage medium

Citations (4)

* 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
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

Patent Citations (4)

* 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
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的动力蓄电池维护及测试系统的监控设计"", 《机械与电子》 *

Cited By (24)

* 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
CN106740196A (en) * 2016-12-12 2017-05-31 国网北京市电力公司 For the charging method and device of DC charging equipment
CN106941434A (en) * 2017-04-18 2017-07-11 北京博电新力电气股份有限公司 The detecting system and method for a kind of communication message
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
CN108965044A (en) * 2018-06-12 2018-12-07 南瑞集团有限公司 A kind of electric car electrically-charging equipment universal data link health status test device, system and method
CN109309597A (en) * 2018-06-19 2019-02-05 南方电网科学研究院有限责任公司 A kind of test device of communication performance
CN109167701B (en) * 2018-08-22 2021-11-05 国电南瑞科技股份有限公司 Consistency checking method, device and system for power distribution automation standardization extension communication protocol
CN109167701A (en) * 2018-08-22 2019-01-08 国电南瑞科技股份有限公司 A kind of power distribution automation standardized extensions communication protocol consistency desired result method, apparatus and system
CN109067617B (en) * 2018-08-27 2020-12-01 东软集团(北京)有限公司 V2X protocol consistency test method, device and system
CN109067617A (en) * 2018-08-27 2018-12-21 东软集团(北京)有限公司 A kind of V2X protocol conformance test method, apparatus and system
CN109714231A (en) * 2019-02-13 2019-05-03 国网电力科学研究院有限公司 A kind of top charging bow DC charging protocol test equipment and its test method
CN110493332A (en) * 2019-08-14 2019-11-22 广东省安心加科技有限公司 A kind of charging pile message processing method and its system
CN112422362A (en) * 2020-10-16 2021-02-26 中汽研汽车检验中心(天津)有限公司 System and method for testing consistency of communication protocol of wireless charging vehicle-mounted end equipment
CN112422362B (en) * 2020-10-16 2022-12-13 中汽研汽车检验中心(天津)有限公司 System and method for testing consistency of communication protocol of wireless charging vehicle-mounted end equipment
CN112462742A (en) * 2020-11-30 2021-03-09 上海汽车集团股份有限公司 Method for rapidly carrying out national standard data conformance simulation detection on new energy automobile
CN113253033A (en) * 2021-05-25 2021-08-13 科世达(上海)机电有限公司 Simulation power supply testing arrangement
CN114422289A (en) * 2022-01-11 2022-04-29 国网电力科学研究院有限公司 Transmission method and device for CAN (controller area network) message of electric vehicle
CN114422289B (en) * 2022-01-11 2024-03-19 国网电力科学研究院有限公司 Method and device for transmitting CAN message of electric automobile
CN115250247A (en) * 2022-07-28 2022-10-28 重庆长安汽车股份有限公司 Discovery protocol testing method, system, electronic device and readable storage medium
CN115250247B (en) * 2022-07-28 2023-05-19 重庆长安汽车股份有限公司 Discovery protocol testing method, system, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN104125113B (en) 2017-06-23

Similar Documents

Publication Publication Date Title
CN104125113A (en) Method for testing consistency on a protocol for electric automobile charger and battery management system
CN102637352B (en) Remote meter reading method and system, primary electric energy meter and secondary electric energy meter
CN108400908A (en) Supervisory control of substation information checks and accepts device and method automatically
CN101907694B (en) Device and method for testing low-voltage collecting meter reading system
CN109714231A (en) A kind of top charging bow DC charging protocol test equipment and its test method
BR112013008708B1 (en) power transmitter to transmit power inductively to a power receiver via a transmitting coil, power receiver to receive power inductively from a power transmitter via a receiving coil and method for communication in an inductive power system power transfer
CN106100703A (en) The electric-power metering Site Detection bluetooth data means of communication
CN101958757B (en) Method and device for testing radio-frequency performance of TD-LTE terminal
CN103117890A (en) Device for testing concentrator local communication module interface protocol
CN103178987A (en) Digital transformer substation distribution testing method based on ZigBee wireless technology
CN103646524B (en) A kind of communication means of double-mode local communication module device of electric energy meter
CN111884776A (en) Charging pile protocol consistency testing method
CN106970537A (en) Electric power and communication semi-matter simulating system and construction method based on RTDS and SDH
CN106301475A (en) The system of electrically-based line carrier communication, bridging nodes and method
CN103973377B (en) A kind of base station test method, Apparatus and system
CN103209383A (en) Information system based on Internet of Things
KR20200081767A (en) Backup Power Supply ESS System For Communication Devices Applying IoT Module And Lithium Battery Pack Module
Di Leo et al. Towards visual smart metering exploiting wM-Bus and DLMS/COSEM
CN207425096U (en) A kind of four tables unification concentrator apparatus and system based on TD-LTE230
CN207089034U (en) Applied to the communicator of charging pile, charging equipment and charging monitoring system
CN204013555U (en) A kind of interchangeability testing apparatus of power information acquisition terminal telecommunication unit
CN107195104A (en) The shared power supply stake system of three road electric bicycles
CN109548015B (en) Charging equipment management method based on mobile WiFi
CN207251681U (en) Prepaid wireless remote transmitting water meter
CN110009892A (en) A kind of low-voltage collecting meter reading sand table exercise method

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.