CN201037955Y - Fuel batter whole automobile communication network testing device based on TTCAN - Google Patents

Fuel batter whole automobile communication network testing device based on TTCAN Download PDF

Info

Publication number
CN201037955Y
CN201037955Y CNU2007201494165U CN200720149416U CN201037955Y CN 201037955 Y CN201037955 Y CN 201037955Y CN U2007201494165 U CNU2007201494165 U CN U2007201494165U CN 200720149416 U CN200720149416 U CN 200720149416U CN 201037955 Y CN201037955 Y CN 201037955Y
Authority
CN
China
Prior art keywords
network
ttcan
computer
fuel cell
signal
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.)
Expired - Lifetime
Application number
CNU2007201494165U
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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CNU2007201494165U priority Critical patent/CN201037955Y/en
Application granted granted Critical
Publication of CN201037955Y publication Critical patent/CN201037955Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The utility model provides an integral vehicle communication network test device for fuel battery vehicle based on TTCAN, which is applied in online detection and evaluation of a controller of every component of the integral vehicle communication network for fuel battery vehicle, and belongs to the technical field of industrial in-site monitor device. The utility model comprises an upper computer, a CAN card, a fuel battery integral vehicle CAN network simulator with a CAN interface and a controller for measured component with the CAN interface, etc. The CAN interface of the CAN card of the upper computer is connected with a CAN network of a lower computer through a CAN cable, the fuel battery integral vehicle CAN network simulator is connected with the CAN network through the CAN cable, and the CAN interface of the measured component is connected with the CAN network through the CAN cable. With advanced TTCAN protocol technology, LabVIEW and a MotorolaMPC series 32 bitmap singlechip, the capability of information processing of the utility model is enhanced, with flexible application position and simple operation.

Description

A kind of entire car of fuel cell car communication network proving installation based on TTCAN
Technical field
A kind of entire car of fuel cell car communication network proving installation based on TTCAN is applicable to the online detection and the assessment of each parts controller of entire car of fuel cell car communication network, belongs to industry spot supervising device technical field.
Background technology
Fuel cell car adopts the dcs structure, and each parts all has independently controller, and each controller and entire car controller carry out energy management and coordinate control total system by the TTCAN network.It is big that the CAN communications protocol has satisfied the system data exchange capacity, real-time, the characteristics that reliability requirement is high.
In the performance history of whole-control system, need the agreement communications protocol, to guarantee the normal operation of CAN communication.Sometimes also need revise for the sequential and the content of agreement in the development phase, this just requires a powerful network simulation and test macro, before car load network typing, carry out the test of hardware at ring for the communication quality of parts controller and entire car controller.
The CAN network test system all is towards single controller traditionally, at traditional C AN protocol development.In traditional CAN agreement, the data division in the signal hardwood is fixed as 8, and the triggering of signal is based on incident, real-time a little less than.TTCAN is the communications protocol that is based upon a kind of Time Triggered on the traditional C AN agreement.Compare traditional CAN agreement, TTCAN has real-time height, good reliability, and data volume is big, characteristics such as data bits is variable in the signal hardwood.The TTCAN agreement is fit to big, the demanding demand of real-time of fuel-cell vehicle communication data amount.
Traditional CAN network test system all adopts the method for off-line analysis, and the engineering staff need just can finish the analysis of CAN signal by other softwares or manually-operated, the demand that is not suitable for debugging onboard after using a large amount of CAN signals of CAN acquisition hardware collection.Native system is gathered CAN with analysis and is integrated in the software, and has realized the automation function of gathering at any time, analyzing at any time.Than traditional C AN test macro, the utility model is simple in structure, can satisfy the demand of engineering site on-line testing, can save the development time and the cost of development of CAN communications protocol.
The epigynous computer section of test macro adopts software developments such as LabVIEW, proves to be true after interrogation the function of existing data acquisition by the CAN cartoon, and the signal of gathering is handled in real time, obtains the assessment result of CAN communication quality.Based on the data analysis algorithm of desktop computer and notebook, can utilize the powerful data-handling capacity of computing machine, in very short time, finish collection, record, statistics and the analysis of the communication sequential of CAN signal.Native system can be realized the quick online evaluation of CAN communication quality.The slave computer of test macro is partly encircling simulated environment by the car load network hardware that independently developed fuel cell car load CAN network simulation program and MPC561 automobile controller are formed, and it can be with 1 * 10 -6The precision simulation car load network communication of s.The hardware-in-loop simulation environment adopts communications protocol and the communication sequential identical with real vehicle, can simulate the network load of car load communication fully.
Summary of the invention
The purpose of this utility model is at the structure of present car load TTCAN communication network of new generation and the new design requirement based on the TTCAN communications protocol, provide a kind of new entire car of fuel cell car communication network proving installation, with the exploitation needs of the controller that satisfies each parts of fuel-cell vehicle based on TTCAN.
The entire car of fuel cell car communication network proving installation based on TTCAN that the utility model proposed comprises host computer and slave computer two parts.Epigynous computer section comprises host computer and the CAN2.0 card that has PCI slot or PCMCIA slot; The slave computer part is made up of the fuel cell car load CAN network simulator of band CAN interface and the tested parts controller of band CAN interface.
Host computer can be desktop computer, notebook, industrial computer;
CAN card model can be NI-CAN, NI-CAN/2, NI PCMCIA-CAN, NI PCMCIA-CAN/2;
Slave computer car load CAN network simulator can be Motorola MPC561, MPC555, MPC563.
The utility model proposes a kind of entire car of fuel cell car communication network proving installation based on TTCAN:
A. by slave computer analog fuel battery car car load TTCAN network environment, finish the signal testing of slave computer and tested parts controller by host computer, the annexation of described host computer, slave computer and tested parts controller is as follows:
1. the CAN interface of the CAN card of host computer links to each other with slave computer CAN network by the CAN cable;
2. slave computer fuel cell car load CAN network simulator links to each other with slave computer CAN network by the CAN cable;
3. the CAN interface of tested parts links to each other with slave computer CAN network by the CAN cable.
B. tested parts insert simulation TTCAN network, carry out communication with the slave computer signal simulator;
C. described described host computer has the TTCAN network signal test procedure based on the LabVIEW exploitation, and described program is carried out as follows:
1. behind the software startup, at first carry out initialization:
1) according to user's setting, the signal ID that tests, the initialization of agreement communication speed;
2) CAN is carried out initialization:
A), use copy editor's software to generate the signal configures file of TTCAN network configuration based on extensible markup language (XML) according to the tabulation of the signal ID in the procotol;
B) call CAN Task Init or CAN Task Init﹠amp; The Start order imports the configuration file that generates;
C) call Set Task Property order, configuration CAN communication speed is 250kbps;
2. call CAN Task Read order, adopt the Timestamped pattern, read CAN signal and timestamp;
3. signal and the timestamp thereof that receives carried out algebraic operation
1), calculates the time window of this each signal that circulates according to user configured triggering hardwood signal.The diagnostic accuracy of the scope that the scope of time window is stipulated by agreement, the fault distribution function that forward direction emulation obtains and expert system is determined;
2) according to the TTCAN procotol of importing, the tested hardwood for the user selects, carry out fault diagnosis:
A) according to the occurrence frequency of tested hardwood in the current demand signal array, occurrence frequency and existing this signal fault record of signal in the contrast agreement, calculate the failure rate that current demand signal repeats, and, judge whether current demand signal is in malfunction according to the threshold values of stipulating based on the diagnostic accuracy of expert system;
B) according to the time of occurrence section of tested hardwood in the current demand signal array, contrast triggers the hardwood sequential according to this array and based on the diagnostic accuracy of expert system and the official hour window draws the sequential fault conclusion that current demand signal meets diagnostic accuracy;
C) for occurrence frequency in a last signal array be 0 signal, calculate its disappearance number according to the TTCAN communications protocol;
1) signal of Boolean function in this signal array is repeated, the sequential fault changes into that measured signal disappearance number is added in each fault variable in a digital quantity and the last signal array, finishes the renewal of statistics;
1. each signal (comprise and trigger hardwood, tested hardwood) counting, the sequential fault of each signal, repetition, disappearance counting are shown on the host computer screen;
2., so data are saved in hard disk if the user has selected " preservation data ":
2) TTCAN is triggered in the file of the signal ID of hardwood and tested hardwood and the ASCII character form that the timestamp merging deposits user's appointment in, separate with newline between per two signals;
3) if file size surpasses user specified value, then set up next file, sequence number is original file sequence number+1;
1. if the user has selected " display graphics ", so with tested hardwood with respect to the sequential that triggers hardwood, the mode by oscillogram is shown on the host computer screen;
2. check whether the user presses " stopping " button, if then change next step h over to, otherwise change b over to;
3. unload CAN card resource:
1) calls CAN Task Stop order, stop current C AN and send or the reception task;
2) call CAN Task Clear order, unloading taking for current C AN resource;
4. program stops, and after the user pressed the Close button, program withdrawed from.
The entire car of fuel cell car communication network proving installation based on TTCAN that the utility model proposed by the exploitation to host computer, has been realized the test function based on the entire car of fuel cell car communication network of TTCAN.Native system can analog fuel battery car car load TTCAN network, and to network monitor in real time, function such as data storage, online evaluation.Host computer is by monitoring, handle the signal of TTCAN network, obtained the transmission parameter information of signal on the network, the processing of algorithm by analysis, realized two functions: the one, each parts controller of forming the TTCAN network, the communication function of entire car controller are detected and assessment; The 2nd, to the test of TTCAN procotol of design.
Described host computer by calling the CAN card driver of Labview, reads the TTCAN signal on the simulation car load communication network in real time, and it is carried out signal estimation algorithm, and signal array quantity, mistake hardwood quantity and the bit error rate are fed back to user interface in real time.After the signal array number reaches setting value,, provide whether satisfactory conclusion of TTCAN network communication according to the statistical indicator of the bit error rate and time delay.
Described analog fuel battery car car load TTCAN network is meant based on the CAN procotol of Time Triggered (Time Triggered), is useful for the controller communication network of fuel-cell vehicle.The analog fuel battery car car load TTCAN network using controller MPC561 single-chip microcomputer identical with real vehicle is as the processor of network signal emulator, the peripheral hardware of CAN communication part is also identical with communication media, thereby on the meaning of CAN network communication and fuel cell real vehicle equivalence, the result who records on analog network can substitute the real vehicle test result.
The TTCAN protocol technology of the utility model uses advanced, in conjunction with 32 microcomputer development Platform Implementation of LabVIEW and Motorola MPC series a kind of entire car of fuel cell car communication network proving installation based on TTCAN, its main effect has:
1.TTCAN the bus transfer rate height, real-time performance is good, and fuel cell finished automobile controller monitoring system process information ability is strengthened.
2. host computer can adopt desktop computer or notebook computer, and application places is flexible, is fit to research place or engineering site and uses.
3. adopt the program structure of optimizing, can under windows platform, realize the signal sequence measuring accuracy of 1 microsecond and be no more than 1 millisecond real-time processing cycle.
4. test procedure will be gathered with evaluation function and be integrated in one, and can finish on-line automatic assessment, and will be easy and simple to handle, can obtain test result then and there, the parts controller of engineering site CAN communication debugging and network-level, the test and the debugging of entire car controller.
5. test procedure is supported data recording function, compatible other off-line analysis methods.
6. utilized fuel cell car control system TTCAN network communication structure, the CAN sequential of parts is directly obtained from the TTCAN network, is received by PC, has alleviated the monitoring communication burden of entire car controller greatly.
Description of drawings
Fig. 1 is based on the entire car of fuel cell car communication network proving installation structural representation of TTCAN.
Fig. 2 is based on the workflow diagram of the entire car of fuel cell car communication network proving installation of TTCAN.
Embodiment
Below in conjunction with accompanying drawing concrete enforcement of the utility model is described further.
Figure 1 shows that entire car of fuel cell car communication network proving installation structural representation based on TTCAN.The annexation of this device:
1. the CAN interface of the CAN card of host computer links to each other with slave computer CAN network by the CAN cable.
2. slave computer fuel cell car load CAN network simulator links to each other with slave computer CAN network by the CAN cable.
3. the CAN interface of tested parts links to each other with slave computer CAN network by the CAN cable.
Embodiment 1
Figure 1 shows that entire car of fuel cell car communication network proving installation structural representation based on TTCAN.Host computer is a notebook computer that the CAN card is installed, and described CAN card model is NI PCMCIA-CAN/2; The slave computer signal simulation is finished by the controller that adopts the MPC555 single-chip microcomputer, this controller has 2 CAN modules, each CAN module has has 16 to receive the transmission data buffer, each all can independently generate interruption, wherein distribute 9 CAN data buffers to be used for fuel cell car load TTCAN network measuring system, send the CAN signal of each controller respectively, in order to simulation car load communication network.
Embodiment 2
Host computer adopts the desktop computer computer that the CAN card is installed, and described CAN card model is NI CAN/2; The slave computer signal simulation is finished by the controller that adopts the MPC561 single-chip microcomputer, this controller has 3 CAN modules, each CAN module has has 16 to receive the transmission data buffer, each all can independently generate interruption, wherein distribute 9 CAN data buffers to be used for fuel cell car load TTCAN network measuring system, send the CAN signal of each controller respectively, in order to simulation car load communication network.
Fig. 2 is based on the workflow diagram of the entire car of fuel cell car communication network proving installation of TTCAN:
1. behind the software startup, at first carry out initialization:
1) according to user's setting, the signal ID that tests, the initialization of agreement communication speed;
2) CAN is carried out initialization:
A), use copy editor's software to generate the signal configures file of TTCAN network configuration based on extensible markup language (XML) according to the tabulation of the signal ID in the procotol;
B) call CAN Task Init or CAN Task Init﹠amp; The Start order imports the configuration file that generates;
C) call Set Task Property order, configuration CAN communication speed is 250kbps;
2. call CAN Task Read order, adopt the Timestamped pattern, read CAN signal and timestamp;
3. signal and the timestamp thereof that receives carried out algebraic operation:
1), calculates the time window of this each signal that circulates according to user configured triggering hardwood signal.The diagnostic accuracy of the scope that the scope of time window is stipulated by agreement, the fault distribution function that forward direction emulation obtains and expert system is determined;
2) according to the TTCAN procotol of importing, the tested hardwood for the user selects, carry out fault diagnosis:
A) according to the occurrence frequency of tested hardwood in the current demand signal array, occurrence frequency and existing this signal fault record of signal in the contrast agreement, calculate the failure rate that current demand signal repeats, and, judge whether current demand signal is in malfunction according to the threshold values of stipulating based on the diagnostic accuracy of expert system;
B) according to the time of occurrence section of tested hardwood in the current demand signal array, contrast triggers the hardwood sequential according to this array and based on the diagnostic accuracy of expert system and the official hour window draws the sequential fault conclusion that current demand signal meets diagnostic accuracy;
C) for occurrence frequency in a last signal array be 0 signal, calculate its disappearance number according to the TTCAN communications protocol;
3) signal of Boolean function in this signal array is repeated, the sequential fault changes into that measured signal disappearance number is added in each fault variable in a digital quantity and the last signal array, finishes the renewal of statistics;
4. each signal (comprise and trigger hardwood, tested hardwood) counting, the sequential fault of each signal, repetition, disappearance counting are shown on the host computer screen;
5., so data are saved in hard disk if the user has selected " preservation data ":
1) TTCAN is triggered in the file of the signal ID of hardwood and tested hardwood and the ASCII character form that the timestamp merging deposits user's appointment in, separate with newline between per two signals;
2) if file size surpasses user specified value, then set up next file, sequence number is original file sequence number+1;
6. if the user has selected " display graphics ", so with tested hardwood with respect to the sequential that triggers hardwood, the mode by oscillogram is shown on the host computer screen;
7. check whether the user presses " stopping " button, if then change next step h over to, otherwise change b over to;
8. unload CAN card resource:
1) calls CAN Task Stop order, stop current C AN and send or the reception task;
2) call CAN Task Clear order, unloading taking for current C AN resource;
9. program stops, and after the user pressed the Close button, program withdrawed from.

Claims (4)

1. the entire car of fuel cell car communication network proving installation based on TTCAN is characterized in that this system comprises host computer and slave computer two parts;
Epigynous computer section comprises host computer, CAN2.0 card that has PCI slot or PCMCIA slot and the TTCAN network signal test procedure of developing based on LabVIEW;
Slave computer partly comprises the tested parts controller of fuel cell car load CAN network simulator, CAN cable and the band CAN interface of band CAN interface;
The CAN interface of the CAN card of host computer links to each other with slave computer CAN network by the CAN cable;
Slave computer fuel cell car load CAN network simulator links to each other with slave computer CAN network by the CAN cable;
The CAN interface of tested parts links to each other with slave computer CAN network by the CAN cable;
Tested parts insert simulation TTCAN network, carry out communication with the slave computer signal simulator.
2. a kind of entire car of fuel cell car communication network proving installation based on TTCAN according to claim 1 is characterized in that, described host computer is any in desktop computer, notebook or the industrial computer.
3. a kind of entire car of fuel cell car communication network proving installation based on TTCAN according to claim 1 is characterized in that the model of described CAN card is NI-CAN, NI-CAN/2, NI PCMCIA-CAN, any among the NI PCMCIA-CAN/2.
4. a kind of entire car of fuel cell car communication network proving installation based on TTCAN according to claim 1 is characterized in that, described slave computer car load CAN network simulator is any among Motorola MPC561, MPC555, the MPC563.
CNU2007201494165U 2007-06-01 2007-06-01 Fuel batter whole automobile communication network testing device based on TTCAN Expired - Lifetime CN201037955Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201494165U CN201037955Y (en) 2007-06-01 2007-06-01 Fuel batter whole automobile communication network testing device based on TTCAN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201494165U CN201037955Y (en) 2007-06-01 2007-06-01 Fuel batter whole automobile communication network testing device based on TTCAN

Publications (1)

Publication Number Publication Date
CN201037955Y true CN201037955Y (en) 2008-03-19

Family

ID=39210473

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201494165U Expired - Lifetime CN201037955Y (en) 2007-06-01 2007-06-01 Fuel batter whole automobile communication network testing device based on TTCAN

Country Status (1)

Country Link
CN (1) CN201037955Y (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724082A (en) * 2012-05-22 2012-10-10 奇瑞汽车股份有限公司 CAN communication monitoring method based on LabView
CN104506376A (en) * 2014-11-23 2015-04-08 北京航空航天大学 Multichannel redundant CAN (Controller Area Network) bus test system with frame start sensitive synchronous trigger function
CN104683185A (en) * 2015-03-06 2015-06-03 东华大学 Method for monitoring serial port communication based on Labview
CN110109375A (en) * 2019-05-15 2019-08-09 北京昱连科技有限公司 A kind of Bus simulator system based on TTCAN communication module

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724082A (en) * 2012-05-22 2012-10-10 奇瑞汽车股份有限公司 CAN communication monitoring method based on LabView
CN104506376A (en) * 2014-11-23 2015-04-08 北京航空航天大学 Multichannel redundant CAN (Controller Area Network) bus test system with frame start sensitive synchronous trigger function
CN104506376B (en) * 2014-11-23 2017-11-14 北京航空航天大学 A kind of multi-channel redundant formula CAN test system with frame starting sensitive control Trigger Function
CN104683185A (en) * 2015-03-06 2015-06-03 东华大学 Method for monitoring serial port communication based on Labview
CN104683185B (en) * 2015-03-06 2018-04-20 东华大学 A kind of monitoring serial port communication method based on Labview
CN110109375A (en) * 2019-05-15 2019-08-09 北京昱连科技有限公司 A kind of Bus simulator system based on TTCAN communication module

Similar Documents

Publication Publication Date Title
CN108737187B (en) CAN bus fault simulation system and fault simulation method
CN107222362B (en) Automatic test platform for finished vehicle CAN network and optimization method thereof
CN100493005C (en) Communication network test system for entire car of fuel cell car based on TTCAN
CN109541353B (en) Distribution automation detecting system
CN102564789B (en) Excavator comprehensive performance testing system
CN103513134B (en) Comprehensive diagnosis device and method for power on-site terminal faults
CN103568863A (en) Real-time monitoring diagnostic system and diagnostic method for electromobile battery management system
CN103543399A (en) Car CAN bus module fully-automatic detection system and method based on PCI board card
CN103425573A (en) Code testing information collecting method and system
CN201037955Y (en) Fuel batter whole automobile communication network testing device based on TTCAN
CN101533052B (en) Testing system and method for PWM fan electrical performance
CN101957428A (en) Automatic test method and tool of monitoring circuit board
CN103913728B (en) A kind of method of testing based on portable radar comprehensive tester
CN114020511A (en) FPGA-based fault detection method, device, equipment and readable storage medium
CN111520191A (en) Testing device and testing method for digital coal mine safety monitoring system
CN102879732B (en) Method and system for testing board card
CN102636998B (en) Automatic control method for air exhaust of spatial environment simulator and automatic control system
CN203480800U (en) Display screen switching response time test system
CN110888011B (en) In-situ test method and test device based on testability modeling
CN109407039B (en) Intelligent electric meter and system thereof, self-diagnosis method and fault detection method
CN112035996A (en) Equipment testability integrated design and evaluation system
CN201247150Y (en) Portable test device for governor of hydraulic turbine
CN1632783A (en) Actual measurement based load modeling system
CN102982231B (en) The quantitative calculation method of software reliability
CN202267870U (en) Test analysis device of sequence of event recording system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20080319

CX01 Expiry of patent term