CN115002004A - Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe - Google Patents

Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe Download PDF

Info

Publication number
CN115002004A
CN115002004A CN202210605091.6A CN202210605091A CN115002004A CN 115002004 A CN115002004 A CN 115002004A CN 202210605091 A CN202210605091 A CN 202210605091A CN 115002004 A CN115002004 A CN 115002004A
Authority
CN
China
Prior art keywords
canoe
message
bms
receives
periodically
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.)
Pending
Application number
CN202210605091.6A
Other languages
Chinese (zh)
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.)
Chongqing Changan New Energy Automobile Technology Co Ltd
Original Assignee
Chongqing Changan New Energy Automobile Technology Co Ltd
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 Chongqing Changan New Energy Automobile Technology Co Ltd filed Critical Chongqing Changan New Energy Automobile Technology Co Ltd
Priority to CN202210605091.6A priority Critical patent/CN115002004A/en
Publication of CN115002004A publication Critical patent/CN115002004A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/16Information or communication technologies improving the operation of electric vehicles

Abstract

The invention relates to a testing method for realizing charging flow control by simulating communication between a charger and a BMS (battery management system) based on CANoe, which comprises the following steps: s01: controlling the computer control board card to output CC2 and A + signals, periodically sending a CHM message by the CANoe, continuously monitoring whether the CAN bus receives the BHM message by the CANoe, and if the BHM message is received, successfully handshaking; s02, the CANoe periodically sends CRM00 to the BMS; s03, when the CANoe monitors that the BRM messages are collected completely, the CANoe sends CRMAA periodically; s04, when the CANoe collects the BCP message, the CANoe stops sending the CRM message; s05, sending CTS message by CANoe period; s06, sending CML message by CANoe period; s07, when the CANoe receives the BROAA message, the CANoe stops sending the CTS message and the CML message; s08, the CANoe periodically sends CROAA messages; and S09, when the CANoe receives the BCL message and the BCS message, the CANoe stops sending the CROAA. The invention automatically completes the test of charge flow control by the communication between the CANoe-based simulation charger and the BMS in a software control mode, saves manpower and material resources and has low cost.

Description

Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe
Technical Field
The invention belongs to the technical field of new energy automobile battery management systems, and particularly relates to a testing technology for realizing charging flow control by simulating communication between a charger and a BMS (battery management system) based on CANoe.
Background
In the existing vehicle-mounted development of automobiles, a Controller Area Network (CAN) is increasingly applied by people, and CAN bus development tools are in the endlessly, wherein CANoe, a product of VECTOR corporation in Germany, is a bus development tool with very strong practicability and functionality at present.
The ecological field is mature, corresponding integrated test automation and system test automation tools are matched, the matched script language CAPL is combined with an ecological VECTOR board card and a software tool, the matched script language CAPL is very suitable for bus development, and a unique timer and event response are suitable for secondary development in a bus. In the direct current charging interaction, the method is particularly suitable for matching a timer with an event response for monitoring and sending messages.
There are two main types of testing methods for the conventional BMS charging control:
firstly, the vehicle is directly tested by carrying chargers of various brands, and all the chargers can charge, namely pass through. The method needs to use a real vehicle for testing, needs a plurality of chargers, is time-consuming and labor-consuming, cannot cover the extreme conditions of the chargers, and cannot simulate the communication fault of the chargers.
Secondly, related messages are manually sent by directly utilizing CAN (controller area network) setting, and a handshaking stage and charging parameter configuration between the BMS and a charger are simulated, so that the method CAN also simulate communication faults, but is labor-consuming, complex in operation for people unfamiliar with GB/T27930 and 2015 national standards, and not popular.
Disclosure of Invention
The invention aims to provide a testing method for realizing charging flow control by simulating communication between a charger and a BMS (battery management system) based on CANoe, which solves the technical problems that: the traditional testing method directly utilizes CAN to set and manually send related messages to simulate the handshaking stage and charging parameter configuration of a BMS and a charger, although the method CAN simulate communication faults, the method consumes manpower, is frequent in operation, and is complex in operation for people who are not familiar with GB/T2015 national standard.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows: a testing method for realizing charging flow control by simulating communication between a charger and a BMS (battery management system) based on a CANoe (controller area network) is characterized in that a control computer is connected with the CANoe, the CANoe is connected with the BMS through a CAN (controller area network) bus, and the CANoe sends a charging message to interact with the BMS; the control computer is connected with the board card, the output voltage of the board card controls the hard-line input of the BMS, and the control computer can enter a charging process only by configuring charging pile configuration parameters, fault message names, fault types and a starting switch;
the method comprises the following steps:
s01: the control computer controls the board card to output CC2 and A + signals, the CANoe periodically sends CHM messages, the CANoe continuously monitors whether the CAN bus receives BHM messages, and if the BHM messages are received, the handshake is successful;
s02, the CANoe periodically sends CRM00 to BMS;
s03, when the CANoe monitors that the BRM messages are collected completely, the CANoe sends CRMAA periodically;
s04, when the CANoe collects the BCP message, the CANoe stops sending the CRM message;
s05, the CANoe sends CTS message periodically;
s06, the CANoe sends CML message periodically;
s07, when the CANoe receives the BROAA message, the CANoe stops sending the CTS message and the CML message;
s08, the CANoe periodically sends CROAA messages;
s09, when the CANoe receives the BCL message and the BCS message, the CANoe stops sending CROAA;
and S10, the CANoe periodically sends CCS messages.
Preferably, the first and second electrodes are formed of a metal,
the charging pile configuration parameters comprise the maximum and minimum output voltages and the maximum and minimum output currents of the charging pile.
Preferably, the first and second liquid crystal display panels are,
the failure message names comprise CCS, CML, CTS, CRM, CRO and CSD.
Preferably, the first and second electrodes are formed of a metal,
the fault types include stop, go, ID error, and value error.
Preferably, the first and second electrodes are formed of a metal,
and when the CANoe receives the stop transmission, stopping the transmission of the transmission message.
Preferably, the first and second electrodes are formed of a metal,
and when the CANoe receives a straight message, continuing to send the message for stopping sending.
Preferably, the first and second liquid crystal display panels are,
and when the CANoe receives the ID error, endowing the message ID with a random value for transmission.
Preferably, the first and second electrodes are formed of a metal,
and when the CANoe receives the value error, changing the message content and not sending the expected value.
Preferably, the first and second electrodes are formed of a metal,
and when the starting switch is turned off, the charging is interrupted.
By adopting the technical scheme, the invention has the following beneficial technical effects: in the invention, the control computer is connected with the CANoe, the CANoe is connected with the BMS through the CAN bus, the CANoe sends a charging message to interact with the BMS, the control computer is connected with the board card, the control computer is started to output voltage to control the hard line input of the BMS, and the control computer CAN enter a charging flow to test by configuring charging pile configuration parameters, fault report names, fault types and a starting switch.
Drawings
FIG. 1 is a flow chart of a user configuring a control computer at a front-end interface;
FIG. 2 is a schematic diagram of the present invention;
FIG. 3 is a flowchart of a testing method for controlling a charging process according to the present invention;
FIG. 4 is a second flowchart of a testing method for controlling a charging process according to the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings.
The invention discloses a testing method for realizing charging flow control by simulating communication between a charger and a BMS based on a CANoe, which mainly comprises a CAN communication module, a fault injection module, a board card control module and a display module, wherein the CAN communication module is communicated with the BMS according to the national standard GB/T27930-.
As shown in fig. 1 and 2, the invention provides a testing method for realizing charging flow control by simulating communication between a charger and a BMS based on a CANoe, wherein a control computer is connected with the CANoe, the CANoe is connected with the BMS through a CAN bus, and the CANoe sends a charging message to interact with the BMS; the control computer is connected with the board card, the control board card outputs voltage to control the hard-line input of the BMS, and the control computer can enter a charging process only by configuring charging pile configuration parameters, fault message names, fault types and a starting switch; as shown in fig. 1, the operation is convenient and fast, and when fault injection is not selected, the default direct control outputs a + and CC2 output wake-up and gun insertion signals. Enter the national standard charging process and are compatible with GB/T27930-. When selecting GB/T27930-.
When selecting fault injection, a message and a fault type to be injected need to be selected, then clicking to start testing, when the message is sent by the process, automatically executing according to the fault, realizing the fault injection function, and testing overtime reconnection and unmatched charging pile parameters and the BMS.
As shown in fig. 3 and fig. 4, the left side is code control, the right side is a BMS under test, when a start button is started, the control board outputs CC2 and a + signals, periodically sends a CHM message, continuously monitors whether the bus receives a BHM message, receives the BHM message, and successfully handshakes.
The method comprises the following steps:
s01: and controlling the computer control board card to output CC2 and A + signals, periodically sending a CHM message by the CANoe, continuously monitoring whether the CAN bus receives the BHM message by the CANoe, and successfully handshaking and establishing communication if the BHM message is received.
The fault injection starts at CRM, defining a state machine DCChrgStep. When the start test command DCChrgStep =1 is received, output (chm) is periodically executed. When the BHM message is monitored, DCChrgStep =2, the period output (chm) is aborted.
S02, the CANoe periodically sends CRM00 to the BMS. After the last step is performed, DCChrgStep =3, Output is periodically performed (CRM 00).
S03, when the CANoe monitors that the BRM messages are collected, the CANoe periodically sends CRMAA; when monitoring that BRM messages are collected completely, DchrgStep =4, and periodically executing output (CRMAA).
S04, when the CANoe collects the BCP message, the CANoe stops sending the CRM message; when a BCP message is collected, DCChrgStep =5, and a period output (crm) is suspended.
S05, sending CTS message by CANoe period; after the previous step, DCChrgStep =6, output (cml), output (cts) are executed periodically. And S06, sending the CML message in the CANoe period.
S07, when the CANoe receives the BROAA message, the CANoe stops sending the CTS message and the CML message; when receiving the BROAA message, DCChrgstep =7, and the cycle Output (CML, CTS) is terminated.
S08, the CANoe periodically sends CROAA messages; after the last step is executed, DCChrgStep =8, output (coaa) is executed periodically.
S09, when the CANoe receives the BCL message and the BCS message, the CANoe stops sending the CROAA; when BCL, BCS is received, DCChrgStep =9, the period output (coaaa) is aborted.
And S10, the CANoe periodically sends the CCS messages. After the previous step is executed, DCChrgStep =10, output (ccs) is executed periodically.
The subdivision flow is 10 segments, when the fault of the injected message stops, the execution Step is skipped when the corresponding Step is reached according to the message name, and when the ID is injected in error, a judgment is added in each state to directly modify the ID of the message. And judging whether the step is skipped in the stopping stage when the primary message is injected, and adding and judging whether the secondary message fault injection exists in each message sending state when the injection is stopped.
As shown in fig. 2, the control computer is connected to the CAN bus and the BMS, and is connected to the board card, the board card outputs a voltage to control the hard line input of the BMS, a charging message is sent out to interact with the BMS, the user interface CAN allow a user to input charging pile parameters and a fault injection mode, and data which is not easy to read in the charging process CAN be analyzed and displayed in the user interface, so that the whole closed loop is realized, and input and feedback are provided.
The control system receives charging pile configuration parameters, fault message names, fault types and a start switch input by a user, the charging pile configuration parameters comprise the maximum and minimum output voltages and the maximum and minimum output currents of the charging pile, the fault message names comprise CCS, CML, CTS, CRM, CRO and CSD, the fault types comprise outage, constant outage, ID errors and value errors,
and when the system receives no fault injection, the system directly enters a national standard charging process by default, and when the combined input of the message and the fault type is received, corresponding operation is executed.
When the CANoe receives the stop transmission, the transmission of the transmission message is stopped. When the message is received and stopped, the process stops sending the message when the process goes to the message, and the next process is directly entered to observe BMS reaction.
And when the CANoe receives the direct transmission, continuously transmitting the message which is stopped to be transmitted. When a direct transmission is received and the message is stopped to enter the next process, the message is continuously transmitted, and the BMS does not go to the subsequent process.
And when the CANoe receives the ID error, endowing the message ID with a random value for transmission. When receiving the ID error, the BMS assigns a random value to the message ID for transmission, and the BMS does not receive the message.
And when the CANoe receives the value error, changing the message content and not sending the expected value. Such as AA changed to AB, etc.
When receiving the error of the head and the tail of the packet, stopping sending the head or the tail of the packet, and only sending a plurality of packets to have the head and the tail of the packet.
When the starting switch is turned off, the charging is interrupted. The starting switch is turned on all the time to normally carry out the charging process, and when the starting switch is turned off, the process is interrupted.
When analyzing BCP and BRM data, because BCP and BRM are robbing transmission mechanisms, the content of one frame is transmitted according to messages of several frames, each frame CAN not be directly observed by dragging signals or loading dbc directly through a CAN tool, a protocol needs to be read, multi-packet content is read, required data is obtained through a shift splicing mode, and then corresponding analysis is carried out to transmit the data to a user interface.

Claims (9)

1. A testing method for realizing charging flow control by simulating communication between a charger and a BMS (battery management system) based on a CANoe (controller area network) is characterized in that a control computer is connected with the CANoe, the CANoe is connected with the BMS through a CAN (controller area network) bus, and the CANoe sends a charging message to interact with the BMS; the control computer is connected with the board card, the output voltage of the board card controls the hard-line input of the BMS, and the control computer can enter a charging process only by configuring charging pile configuration parameters, fault message names, fault types and a starting switch;
the method comprises the following steps:
s01: the control computer controls the board card to output CC2 and A + signals, the CANoe periodically sends CHM messages, the CANoe continuously monitors whether the CAN bus receives BHM messages, and if the BHM messages are received, the handshake is successful;
s02, the CANoe periodically sends CRM00 to BMS;
s03, when the CANoe monitors that the BRM messages are collected completely, the CANoe sends CRMAA periodically;
s04, when the CANoe collects the BCP message, the CANoe stops sending the CRM message;
s05, the CANoe sends CTS message periodically;
s06, the CANoe sends CML message periodically;
s07, when the CANoe receives the BROAA message, the CANoe stops sending the CTS message and the CML message;
s08, the CANoe periodically sends CROAA messages;
s09, when the CANoe receives the BCL message and the BCS message, the CANoe stops sending CROAA;
and S10, the CANoe periodically sends CCS messages.
2. The method of claim 1,
the charging pile configuration parameters comprise the maximum and minimum output voltages and the maximum and minimum output currents of the charging pile.
3. The method of claim 1,
the failure message names comprise CCS, CML, CTS, CRM, CRO and CSD.
4. The method of claim 1,
the fault types include stop, go, ID error, and value error.
5. The method of claim 4,
and when the CANoe receives the stop transmission, stopping the transmission of the transmission message.
6. The method of claim 5,
and when the CANoe receives a direct transmission, continuously transmitting the message which is stopped to be transmitted.
7. The method of claim 4,
and when the CANoe receives the ID error, endowing the message ID with a random value for transmission.
8. The method of claim 4,
and when the CANoe receives the value error, changing the message content and not sending the expected value.
9. The method of claim 1,
and when the starting switch is turned off, the charging is interrupted.
CN202210605091.6A 2022-05-31 2022-05-31 Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe Pending CN115002004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210605091.6A CN115002004A (en) 2022-05-31 2022-05-31 Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210605091.6A CN115002004A (en) 2022-05-31 2022-05-31 Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe

Publications (1)

Publication Number Publication Date
CN115002004A true CN115002004A (en) 2022-09-02

Family

ID=83032121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210605091.6A Pending CN115002004A (en) 2022-05-31 2022-05-31 Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe

Country Status (1)

Country Link
CN (1) CN115002004A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385447A (en) * 2016-09-09 2017-02-08 合普新能源科技有限公司 Data processing method of virtual pile for battery management system test
CN111055685A (en) * 2019-11-29 2020-04-24 合肥国轩高科动力能源有限公司 Interactive simulation charging test system and test method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385447A (en) * 2016-09-09 2017-02-08 合普新能源科技有限公司 Data processing method of virtual pile for battery management system test
CN111055685A (en) * 2019-11-29 2020-04-24 合肥国轩高科动力能源有限公司 Interactive simulation charging test system and test method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
于杰: "电池管理系统仿真测试系统研究与开发", 中国优秀硕士学位论文全文数据库 *

Similar Documents

Publication Publication Date Title
CN108023790A (en) A kind of off-board machine equipment and its application process of charging of new-energy automobile simulation
CN206400286U (en) A kind of test system based on hardware in loop equipment
CN111123891B (en) BMS-based quick charging test method, system, equipment and storage medium
CN105404568A (en) CAN bus test system and test method
CN102023922A (en) System and method for testing automotive electronic diagnostic software
CN105611019A (en) Power consumption testing method of mobile terminal and power consumption testing system of mobile terminal
CN110794709A (en) Method and system for simulating operation of BMS and PCS
CN115002004A (en) Testing method for simulating communication between charger and BMS (battery management system) to realize charging flow control based on CANoe
CN114415572A (en) Integrated test, launch and control method and equipment for liquid carrier rocket
CN113094256B (en) BMS software testing method and electronic equipment
CN115208807B (en) POE switch test system and method
CN116184875A (en) Electric automobile simulator design and use method based on inverter technology
CN108200545B (en) WLAN signaling test system and test method
CN107404731A (en) The test system and method for testing of wireless communication module
CN112346996B (en) Autonomous arrangement testing method for reliability of load identification module
CN115705042A (en) Test system and method for direct network management of vehicle-mounted controller
CN202119848U (en) Charger testing equipment
CN113687993A (en) Onboard equipment power-on and power-off test system
CN112468555A (en) Macro command group control scheme based on cloud mobile phone
CN216160789U (en) Current synchronization system of battery test equipment
CN111382045A (en) Fill electric pile software test system
CN114397830B (en) Electric automobile alternating-current charge-discharge simulation control system and test system
CN218974542U (en) Hardware detection equipment and hardware test system
CN110928274A (en) Test system of LEU equipment
CN215956393U (en) Test system and test equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220902