CN103412821B - The method for testing software of real working condition reproduction is realized based on CAN - Google Patents

The method for testing software of real working condition reproduction is realized based on CAN Download PDF

Info

Publication number
CN103412821B
CN103412821B CN201310392028.XA CN201310392028A CN103412821B CN 103412821 B CN103412821 B CN 103412821B CN 201310392028 A CN201310392028 A CN 201310392028A CN 103412821 B CN103412821 B CN 103412821B
Authority
CN
China
Prior art keywords
bus
layer
working condition
application layer
real working
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.)
Active
Application number
CN201310392028.XA
Other languages
Chinese (zh)
Other versions
CN103412821A (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.)
Shanghai Aerospace Power Technology Co Ltd
Original Assignee
Shanghai Aerospace Power 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 Shanghai Aerospace Power Technology Co Ltd filed Critical Shanghai Aerospace Power Technology Co Ltd
Priority to CN201310392028.XA priority Critical patent/CN103412821B/en
Publication of CN103412821A publication Critical patent/CN103412821A/en
Application granted granted Critical
Publication of CN103412821B publication Critical patent/CN103412821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of method for testing software realizing real working condition reproduction based on CAN, be applied to the battery management system of layer-stepping software architecture, by parameter during driving layer collection battery pack system actual motion, application layer therefrom receives after required data carry out policy calculation by virtual functions bus, sends corresponding fill order to driving layer; Now, preserve via the data recording real working condition driving CAN1 passage in layer to send.After the implementation strategy of application layer is optimized, suspend from battery pack system image data, but make application layer change real working condition data from driving layer CAN2 passage to receive playback into, realize the reproduction to operating mode scene before this; By the calculating of application layer, the processing policy result after optimizing is sent by CAN1 passage line item of going forward side by side, so that compare to front and back working state recording, carry out the difference that analysis software optimizes front and back.The present invention can reappear real working condition effectively on the target system, significantly improves Efficiency of Software Testing.

Description

The method for testing software of real working condition reproduction is realized based on CAN
Technical field
The present invention relates to embedded software test technical field, particularly a kind of technology utilizing reproduction real working condition to realize software test.
Background technology
Dynamic lithium battery group system is just progressively applied in the field such as electric automobile, large-scale accumulator system.Battery management system (BMS) will directly affect the security of product, life-span and Consumer's Experience as the control strategy and algorithm of its software of critical component of battery pack system.Therefore BMS software comprehensively verified thus find that potential leak is very important.Artificial Test Sample Design often can not simulate the field working conditions likely occurred completely, needs to test in conjunction with true operating condition; Therefore how real working condition is reappeared more accurately, and this operating mode is carried out in goal systems test the emphasis become in battery management system test job.
Summary of the invention
The object of the present invention is to provide one that real working condition data can be utilized in test process to be recorded in the method for target battery management system (BMS) being carried out software test, effectively can reappear real working condition on the target system; Simultaneously after software is modified, very easily the operation result before and after amendment is compared; Can testing efficiency be significantly improved, find the potential risk existed ahead of time.
In order to reach above object, technical scheme of the present invention is to provide a kind of method for testing software realizing real working condition reproduction based on CAN, wherein comprises following process:
A, adopt there is the battery management system of layer-stepping software architecture, described battery management system is provided with: the driving layer realizing signal acquisition process and order execution, carry out the application layer of strategy and algorithm computing, and the virtual functions bus of communicated data signal and order between;
B, outside battery pack system, by connecting the corresponding interface of described driving layer, calculate based on the first implementation strategy to receive in described application layer and utilize virtual functions bus and drive the instruction of layer transmission to carry out actual motion; Operating battery pack system also utilizes and drives layer and virtual functions bus to send service data to described application layer;
C, at run duration, send the service data of battery pack system by the first bus run CAN1 arranged in described driving layer; Monitor operational process by the bus analysis configuration tool in battery management system, and by the first bus run CAN1 on from the communication data that virtual functions bus obtains, be recorded as the first working state recording preserving real working condition and optimization pre-treatment Policy Result;
D, when in described application layer use optimize after the second implementation strategy time, by bus analysis configuration tool by the first working state recording, playback on the second bus run CAN2 arranged in described driving layer; Suspend the interface connecting battery pack system from described driving layer simultaneously and obtain data, but make described application layer utilize virtual functions bus to change into obtain data from described second bus run CAN2, realize the reproduction to previous real working condition;
E, in described application layer with optimize after the second implementation strategy to reproduction real working condition carry out computing, processing policy result after optimizing is sent by described first bus run CAN1, recycle described bus analysis configuration tool monitoring simultaneously, and by the first bus run CAN1 from the communication data that virtual functions bus obtains, be recorded as the second working state recording preserved and optimize aftertreatment Policy Result;
F, playback analyze the first working state recording and the second working state recording in bus analysis configuration tool, realize the Comparative result before and after to the software optimization of described application layer implementation strategy.
Adopt technique scheme, the invention solves the problem how rapidly and efficiently reappearing real working condition, the result that can realize before and after to software strategy optimization is compared, and greatly improves the work efficiency of software test checking.
Accompanying drawing explanation
Fig. 1 is configuration diagram when recording real working condition in the present invention;
Fig. 2 is configuration diagram when reappearing real working condition in the present invention.
Embodiment
As shown in Figure 1, the software architecture of battery management system BMS have employed the software architecture of layer-stepping, be divided into and drive layer, virtual functions bus layer and application layer.Wherein, drive layer to complete the sampling and processing work of simulating signal and digital signal, be passed to application layer by virtual functions bus.After application layer receives the data of needs from virtual functions bus, carry out strategy and algorithm computing, fill order is passed to driving layer by virtual functions bus, by driving layer fill order, and send work by the first bus run CAN1 completion system service data (important parameter in virtual functions bus).When battery pack system runs, by CAN instrument (i.e. bus analysis configuration tool), the communication data on CAN1 passage is carried out record.
As shown in Figure 2, when needing after application layer software is optimized to utilize real working condition to verify, playback will be carried out by working state recording on the second bus run CAN2 before this.Application layer is obtained from CAN2 passage from interface getparms virtual functions bus by obtaining to change into from AN/IO simultaneously.So just complete the reproduction to operating mode scene before this.By the calculating of application layer, the processing policy result after optimization is sent by CAN1 passage, again utilizes CAN instrument to carry out record to the communication data on CAN1 passage.The difference that comparison software is optimized front and back is got final product by working state recording before and after comparison.
Be below an embody rule example of method for testing software of the present invention, it mainly comprises following process:
1. see Fig. 1, first by CAN instrument (being such as CANOE), monitor and record operation information, obtaining real working condition.
2. see Fig. 2, in BMS software, revise the data acquiring mode of application layer in virtual functions bus, be set in after application layer software is optimized, using the real working condition data on CAN2 passage as application layer computing input parameter.
3. the BLF file of real working condition is have recorded by CANOE playback on CAN2 passage.
4. the operational process after monitoring optimization process by CANOE on CAN1 passage also saves as another BLF file.
5. pass through second BLF file playback on CANOE after by preservation, analysis software implementation strategy.
The present invention adopts said method, achieves the rapidly and efficiently reproduction of real working condition, and can compare to the result before and after software strategy optimization, greatly improves the work efficiency of software test checking.
Although content of the present invention has done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (1)

1. realize a method for testing software for real working condition reproduction based on CAN, it is characterized in that, comprise following process:
A, adopt there is the battery management system of layer-stepping software architecture, described battery management system is provided with: the driving layer realizing signal acquisition process and order execution, carry out the application layer of strategy and algorithm computing, and the virtual functions bus of communicated data signal and order between;
B, outside battery pack system, by connecting the corresponding interface of described driving layer, calculate based on the first implementation strategy to receive in described application layer and utilize virtual functions bus and drive the instruction of layer transmission to carry out actual motion; Operating battery pack system also utilizes and drives layer and virtual functions bus to send service data to described application layer;
C, at run duration, send the service data of battery pack system by the first bus run CAN1 arranged in described driving layer; Monitor operational process by the bus analysis configuration tool in battery management system, and by the first bus run CAN1 on from the communication data that virtual functions bus obtains, be recorded as the first working state recording preserving real working condition and optimization pre-treatment Policy Result;
D, when in described application layer use optimize after the second implementation strategy time, by bus analysis configuration tool by the first working state recording, playback on the second bus run CAN2 arranged in described driving layer; Suspend the interface acquisition data connecting battery pack system from described driving layer simultaneously, the interface described application layer being utilized virtual functions bus to obtain data obtains to change into from AN/IO and obtains data from described second bus run CAN2, realizes the reproduction to previous real working condition;
E, in described application layer with optimize after the second implementation strategy to reproduction real working condition carry out computing, processing policy result after optimizing is sent by described first bus run CAN1, recycle described bus analysis configuration tool monitoring simultaneously, and by the first bus run CAN1 from the communication data that virtual functions bus obtains, be recorded as the second working state recording preserved and optimize aftertreatment Policy Result;
F, playback analyze the first working state recording and the second working state recording in bus analysis configuration tool, realize the Comparative result before and after to the software optimization of described application layer implementation strategy.
CN201310392028.XA 2013-09-02 2013-09-02 The method for testing software of real working condition reproduction is realized based on CAN Active CN103412821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310392028.XA CN103412821B (en) 2013-09-02 2013-09-02 The method for testing software of real working condition reproduction is realized based on CAN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310392028.XA CN103412821B (en) 2013-09-02 2013-09-02 The method for testing software of real working condition reproduction is realized based on CAN

Publications (2)

Publication Number Publication Date
CN103412821A CN103412821A (en) 2013-11-27
CN103412821B true CN103412821B (en) 2016-01-27

Family

ID=49605834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310392028.XA Active CN103412821B (en) 2013-09-02 2013-09-02 The method for testing software of real working condition reproduction is realized based on CAN

Country Status (1)

Country Link
CN (1) CN103412821B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182219A (en) * 2014-08-07 2014-12-03 上海航天电源技术有限责任公司 Visualized testing method for battery pack system
CN106526376A (en) * 2016-11-04 2017-03-22 宁德时代新能源科技股份有限公司 Simulation test system and simulation test method
CN108032873A (en) * 2017-11-13 2018-05-15 北京全路通信信号研究设计院集团有限公司 Reappear scene method, simulator, system and computer-readable recording medium
CN109032953B (en) * 2018-08-13 2022-03-15 福建联迪商用设备有限公司 Intermediate library testing method and terminal
CN113222146A (en) * 2020-01-21 2021-08-06 厦门邑通软件科技有限公司 Operation behavior record management method, system and equipment
CN112285586A (en) * 2020-10-19 2021-01-29 广州极飞科技有限公司 BMS test method, device and system, simulation test equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123561A (en) * 2007-05-10 2008-02-13 中国科学院电工研究所 Intelligent car body network system
CN102565719A (en) * 2012-02-21 2012-07-11 上海航天电源技术有限责任公司 System for wirelessly diagnosing fault of battery pack

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9715665B2 (en) * 2009-09-21 2017-07-25 Ford Global Technologies, Llc Methods and systems for monitoring the condition of vehicle components from a nomadic wireless device or computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123561A (en) * 2007-05-10 2008-02-13 中国科学院电工研究所 Intelligent car body network system
CN102565719A (en) * 2012-02-21 2012-07-11 上海航天电源技术有限责任公司 System for wirelessly diagnosing fault of battery pack

Also Published As

Publication number Publication date
CN103412821A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
CN103412821B (en) The method for testing software of real working condition reproduction is realized based on CAN
CN109558400B (en) Data processing method, device, equipment and storage medium
CN109144695A (en) A kind of processing method, device, equipment and the medium of task topological relation
CN104317709B (en) software performance testing method and system
US20200211302A1 (en) Control device for multi-driver compatibility and implementation method
WO2021254340A1 (en) Cloud platform-based distributed networked test system and method for electric vehicle
US20160012163A1 (en) Method and apparatus for driving simulation of vehicle
CN110412470B (en) SOC estimation method for power battery of electric vehicle
US11718306B2 (en) Method and apparatus for acquiring sample deviation data, and electronic device
CN102081145B (en) Functional verification platform of battery management system
CN104375915A (en) Method for using interaction of server motherboard BMC and CPLD for rapid diagnosis of motherboard timing
CN101189500B (en) Method for the model-based diagnosis of a mechatronic system
CN113502870B (en) Excavator working condition judging method and device
CN105045257A (en) Vehicle failure after-sale diagnosis method and diagnosis equipment and server
CN111221326A (en) System and method for realizing hardware-in-loop test control based on Simulink real-time simulation system
CN107526007A (en) The recognition methods of fault type and device
CN103676659B (en) It is a kind of to have the diagnostic equipment intelligently recorded and its recording method
CN114021332A (en) Debugging method, device, equipment and storage medium
CN204143253U (en) A kind of engine start test macro based on CANoe
CN203689146U (en) New energy vehicle battery management system master and slave control board hardware-in-the-loop test system
CN107515724A (en) For the method and apparatus for the input and output for reproducing storage system
CN114300763B (en) Battery internal resistance abnormality monitoring method, device and storage medium based on vehicle cloud coordination
CN105045694A (en) Method for automatically testing Nitrox accelerator card
CN104484247A (en) Device, system and method for synchronously and automatically testing automotive equipment
CN104219491A (en) Image analysis function based video monitoring system and storage method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant