CN107024926A - The simulation system and its analogy method of a kind of automobile ECU - Google Patents

The simulation system and its analogy method of a kind of automobile ECU Download PDF

Info

Publication number
CN107024926A
CN107024926A CN201710443452.0A CN201710443452A CN107024926A CN 107024926 A CN107024926 A CN 107024926A CN 201710443452 A CN201710443452 A CN 201710443452A CN 107024926 A CN107024926 A CN 107024926A
Authority
CN
China
Prior art keywords
data
module
ecu
algorithm
byte
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
CN201710443452.0A
Other languages
Chinese (zh)
Other versions
CN107024926B (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.)
Anhui Fcar Electronic Technology Co Ltd
Original Assignee
Anhui Fcar Electronic 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 Anhui Fcar Electronic Technology Co Ltd filed Critical Anhui Fcar Electronic Technology Co Ltd
Priority to CN201710443452.0A priority Critical patent/CN107024926B/en
Publication of CN107024926A publication Critical patent/CN107024926A/en
Application granted granted Critical
Publication of CN107024926B publication Critical patent/CN107024926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a kind of simulation system of automobile ECU and its analogy method, belong to computer software technology and vehicle diagnosis field.A kind of simulation system of automobile ECU, including:Main control module, Premium Features module, serial communication modular and slave computer module;Main control module, loading configuration file and setting initiation parameter, verification data, and transfer data to Premium Features module;Premium Features module, is connected with serial communication modular, and online real time modifying ECU replys data, and transfers data to serial communication modular;Algorithm is determined according to the diagnostic result that genuine diagnostic device feeds back;Serial communication modular, is connected with slave computer module by Serial Port Line, enters row data communication;Slave computer module, is connected with genuine diagnostic device by bus, enters row data communication.And analogy method is disclosed, the demand in development process to vehicle of sampling can be greatly reduced by the present invention, while development efficiency is also improved, the cost of reduction sampling vehicle.

Description

The simulation system and its analogy method of a kind of automobile ECU
Technical field
The present invention relates to computer software technology and vehicle diagnosis field, specifically, it is related to a kind of simulation of automobile ECU System and analogy method.
Background technology
In the R&D process of automobile fault diagnostic apparatus, diagnostic equipment usually needs and is developed the ECU of vehicle to carry out data Communication, diagnostic equipment sends diagnostic command to automobile ECU, and automobile ECU replys corresponding diagnostic data to the order.And diagnostic equipment Need the data of integrated different automobile types to adapt to more multi-vehicle-type, the market demand could be met.And how to collect different vehicle numbers According to being one of key link of R&D process.At present, mainly carried out for a long time by directly finding the real vehicle of all related models Comprehensive data sampling and test.This existing common method cost is high, and data are poor for applicability, while the sample of real vehicle sampling Notebook data has unicity, it is impossible to meet the demand of enriched data, moreover, this method causes R&D costs high, research and development week Phase is long.
There is a method in which being exactly to be carried out by design software simulated automotive ECU, still, ECU technology is simulated also at present It is in the junior stage.Design is a kind of efficiently, the simulation system of the automobile ECU of data strong applicability and analogy method can reduce vapour The R&D costs of car diagnostic device, shorten the R&D cycle and improve its efficiency of research and development, to the edition upgrading of automobile diagnostic software and Product capability lifting is significant.
The content of the invention
To overcome above-mentioned technical problem, the present invention provides a kind of simulation system and its analogy method of automobile ECU.
In order to solve the above technical problems, the present invention is adopted the following technical scheme that:
A kind of simulation system of automobile ECU, including:Main control module, Premium Features module, serial communication modular and slave computer Module;
Main control module, loading configuration file and setting initiation parameter, verification data, and transfer data to Premium Features Module;
Premium Features module, is connected with serial communication modular, and online real time modifying ECU replys data, and data are transmitted To serial communication modular;Algorithm is determined according to the diagnostic result that genuine diagnostic device feeds back;
Serial communication modular, is connected with slave computer module by Serial Port Line, enters row data communication;
Slave computer module, is connected with genuine diagnostic device by bus, enters row data communication.Serial Port Line can be used RS232 Serial Port Lines, bus can use OBDII buses.
Further technical scheme, described Premium Features module, including byte analysis module, special value reply mould Block, batch modification reply module, definite value increase and decrease and reply module, algorithm correction verification module;
Byte analysis module, replys the data in data to the ECU that main control module is transmitted and is analyzed by byte, and judge Valid data position and data algorithm types, applicable modification mode is selected by number according to valid data position and data algorithm types According to being sent to, special value replys module or batch modification replys module or definite value increase and decrease reply module and replys data to change ECU Middle valid data;And the changing rule of the corresponding diagnostic result of genuine diagnostic device is analyzed, and obtain data algorithm;
Special value replys module, and special value is inputted one by one to each byte in valid data position, and by data It is sent to serial communication modular;
Batch modification replys module, and multiple bytes in valid data position are inputted with specific identical numerical value simultaneously, and will Data are sent to serial communication modular;
Module is replied in definite value increase and decrease, and increase and decrease operation is carried out according to set value to the byte in valid data position, and by data It is sent to serial communication modular;
Algorithm correction verification module, the algorithm that byte analysis module is determined is built on diagnostic device leaved for development, will be waited out The diagnostic result of the diagnostic result and genuine diagnostic device of the diagnostic device feedback of hair is contrasted, the peak of checking data, Minimum and median, such as error are no more than 0.5%, then the data algorithm that byte analysis module is determined is correct.
Further technical scheme, the determination method of described data algorithm is that n groups ECU is replied into significant figure in data According to diagnostic result input algorithm model y=G (a, b, the c ... with genuine diagnostic device;X), and model parameter value is obtained, x is ECU Valid data in data are replied, y is the diagnostic result of genuine diagnostic device, and n is the number of parameter a, b, c ... in algorithm model.
Further technical scheme, described data algorithm type includes direct calculation, switching value mode, the side of tabling look-up Formula, ASCII character character Display mode, hexadecimal, decimal system mode, binary mode, particular form and time mode.
Further technical scheme, described special value reply module special value include 00,7F, 80, FF, 01、;
The increase and decrease operation that described definite value increase and decrease replys in module is to pass through increment or depreciation modification numerical value, increment to byte Amount and depreciation amount are:+01、+10、-01、-10.
Further technical scheme, described main control module includes profile module, data check module and initialization Parameter module;
Profile module, loads ECU data configuration file, transfers data to initiation parameter module;
Initiation parameter module, sets the serial port and baud rate and OBDII protocol parameters of serial ports RS232 messaging parameters, And transfer data to serial communication modular;
Data check module, the data to serial communication modular are verified, and communication data is examined by interior method of calibration Whether information changes in communications, by outer verification to data except all bytes of check bit in itself are according to selected side Whether formula is verified, changed in communications for inspection data, if it is interior inspection and it is outer verification all if by number According to being sent to Premium Features module.Two kinds of verification modes of simultaneous selection can improve verification redundancy, it is ensured that data do not have in the communications There is error code.
Interior verification and outer method of calibration in further technical scheme, described data check module is including the use of former number According to a, byte and, a byte is negated, a byte goes benefit, a byte XOR, a byte CRC check, a byte except it is second from the bottom, BENZ_5BPS, serial ports direct communication, card spy special, Gaz_0d, two bytes verify and.
Further technical scheme, described configuration file is designed using XML language, each configuration file correspondence one Vehicle ECU, stores the ECU communication protocols initiation parameter, diagnostic equipment and institute's functional communication data.
Further technical scheme, described configuration file is designed using hierarchical structure, and one-level label is used<AUTO>, two Level label is used<INIT_IO>With<COMM>, the use of three-level label<RECE>、<SEND>With<CMD>;Described<INIT_IO> The content of text of label includes equipment initialization information;<COMM>The content of text of label includes the communication data of all orders; Described label<CMD>It is protocol initializing parameter command;Described<RECE>Label is to send to order for diagnostic device;< SEND>Label is that ECU returns to diagnostic device order,<RECE>With<SEND>There are attribute HIDE, SD/RD in label.By XML languages This level label design called the turn is corresponding with the hierarchical structure of systemic-function in diagnostic device, can simplify library file and program Code, improves program operational efficiency.
A kind of analogy method of automobile ECU, comprises the following steps:
A. main control module loading is modeled ECU configuration file, sets initiation parameter;
B. Premium Features module is obtained from main control module replys data, and the online ECU that changes in real time replys data, by data It is sent to serial communication modular;
C. serial communication modular sends ECU reply Data Datas to slave computer module;
D. slave computer module sends ECU replies data to genuine diagnostic device, and genuine diagnostic device carries out diagnostic process, And diagnostic result is obtained, diagnostic result is fed back into Premium Features module;Diagnostic process is diagnostic device according to the mould received Intend the data of DTC, data flow, motion test and specific function that ECU is replied to show corresponding diagnostic result, and perform phase The data set answered;
E. Premium Features module analysis diagnostic result, obtains data algorithm;
F. the data algorithm of determination is built into diagnostic device leaved for development, according to the diagnosis of diagnostic device leaved for development As a result the diagnostic result with genuine diagnostic device is compared, and verifies peak, minimum and the median of data, and such as error is no more than 0.5%, then the data algorithm that byte analysis module is determined is correct;If error is more than 0.5%, step b is performed.
In further technical scheme, described step b, line changes ECU in real time, which replys the methods of data, is, Premium Features Module is first replied the data in data to the ECU that main control module is transmitted and analyzed by byte, and judges valid data position sum According to algorithm types, selection is applicable special value and replys mode or batch modification reply mode or definite value increase and decrease reply mode to change ECU replys data.
Beneficial effect
Compared with prior art, the invention has the advantages that:
1st, the present invention can use under VS2012 platforms and be based on event driven VC++ too developments ECU simulation systems, Software development is applied in the R&D process of diagnostic device, while being related to vehicle diagnosis agreement theory and application technology and file Type database technology, embodies multidisciplinary and multi-field intercrossing.
2nd, the present invention simulates ECU by online modification and replys data, replaces real vehicle to parse the data of each diagnostic function, Compared with use automobile ECU method general at present needs a large amount of automobile ECUs, method provided by the present invention can be different by loading The configuration file of agreement realizes simulation different type automobile ECU, while replying data realization simulation same type by changing ECU The different automobile ECUs individual of automobile ECU.Therefore the sample data of vehicle diagnosis can be largely obtained, realizes the various of sample data Property, and then data algorithm can be efficiently and rapidly parsed, and improve the accuracy of data algorithm.
3rd, by the system and method for the present invention, the sampled data of some version vehicle of a certain car system can be divided Analysis, obtains its data algorithm, the sample data of other version vehicles of car system is obtained according still further to the data algorithm of gained.Thus The demand to vehicle of sampling in development process can be greatly reduced, while also improve development efficiency, reduction sampling vehicle into This.
4th, online modification ECU of the present invention, which replys data mode, has diversity, including special value is replied mode, repaiied in batches Compound formula, definite value increase and decrease reply mode are changeed back, suitable reply mode can be selected according to different data, these modes make ECU data must be simulated and reply easy, quick, flexible, while the data algorithm species included is more, various diagnostic functions are met ECU data response, the parsing to multibyte many condition data algorithm is highly effective, can more efficiently observe that different automobile types are adopted Sample data.
5th, be found through experiments that, although be not automobile ECU it is functional can using the present invention system and method, but have Nearly 80% functional development can be used, and can greatly improve development efficiency, shorten the construction cycle, reduced measuring car risk and developed into This.
6th, the present invention uses modularized design, and the scalability of function is strong;Using interior verification and outer verification, data communication Reliability is high;Simultaneously higher to data algorithm resolution, obtained data algorithm is accurate so that R&D costs are reduced, research and development week Phase shortens, and data strong applicability.
Brief description of the drawings
Fig. 1 is a kind of structure chart of the simulation system of automobile ECU of the invention;
Fig. 2 is the workflow diagram of Premium Features module;
Fig. 3 is a kind of flow chart of the analogy method of automobile ECU of the invention.
Label in figure:1st, main control module, 2, Premium Features module, 3, serial communication modular, 4, slave computer module, 5, genuine Diagnostic device, 6, diagnostic device to be developed, 1-1, profile module, 1-2, initiation parameter module, 1-3, data check mould Block, 2-1 byte analysis modules, 2-2, special value reply module, and 2-3, batch modification reply module, and 2-4, definite value increase and decrease are replied Module, 2-5, algorithm correction verification module.
Embodiment
The present invention is further detailed explanation with reference to the accompanying drawings and examples.
Embodiment
As shown in figure 1, a kind of simulation system of automobile ECU, including:Main control module 1, Premium Features module 2, serial communication Module 3 and slave computer module 4;
Main control module 1, loading configuration file and setting initiation parameter, verification data, and transfer data to senior work( Can module 2;
Premium Features module 2, is connected with serial communication modular 3, and online real time modifying ECU replys data, and data are passed Deliver to serial communication modular 3;Algorithm is determined according to the diagnostic result that genuine diagnostic device 5 feeds back;
Serial communication modular 3, is connected with slave computer module 4 by Serial Port Line, enters row data communication;
Slave computer module 4, is connected with genuine diagnostic device 5 by bus, enters row data communication.Serial Port Line can be used RS232 Serial Port Lines, bus can use OBDII buses.
Described Premium Features module 2, including byte analysis module 2-1, special value reply module 2-2, batch modification Reply module 2-3, definite value increase and decrease and reply module 2-4, algorithm correction verification module 2-5, its workflow is as shown in Figure 2;
Byte analysis module 2-1, replys the data in data to the ECU that main control module 1 is transmitted and is analyzed by byte, and Judge valid data position and data algorithm types, applicable modification mode is selected according to valid data position and data algorithm types Special value is transferred data to reply module 2-2 or batch modification reply module 2-3 or definite value increase and decrease reply module 2-4 to change Become ECU and reply valid data in data;And the changing rule of the corresponding diagnostic result of genuine diagnostic device 5 is analyzed, and counted According to algorithm;
Special value replys module 2-2, and special value is inputted one by one to each byte in valid data position, and by number According to being sent to serial communication modular 3, special value include 00,7F, 80, FF, 01,;;
Batch modification replys module 2-3, and multiple bytes in valid data position are inputted with specific identical numerical value simultaneously, and Transfer data to serial communication modular 3;
Module 2-4 is replied in definite value increase and decrease, and the byte in valid data position is rised in value according to set value or depreciation is changed Numerical value, value added on products and depreciation amount are:+ 01 ,+10, -01, -10, and transfer data to serial communication modular 3;
Algorithm correction verification module 2-5, the byte analysis module 2-1 algorithms determined are built on diagnostic device 6 leaved for development, The diagnostic result of diagnostic result and genuine diagnostic device 5 that diagnostic device 6 leaved for development is fed back is contrasted, checking data Peak, minimum and median, error are no more than 0.5%, show that the data algorithm that byte analysis module is determined is correct.
The determination method of described data algorithm is, n groups ECU is replied into valid data and genuine diagnostic device in data Diagnostic result input algorithm model y=G (a, b, c ...;X), and model parameter value is obtained, x is that ECU replys significant figure in data According to y is the diagnostic result of genuine diagnostic device, and n is the number of parameter a, b, c ... in algorithm model.
Described data algorithm type includes direct calculation, switching value mode, lookup table mode, ASCII character character side Formula, hexadecimal, decimal system mode, binary mode, particular form and time mode.
Described main control module includes profile module 1-1, initiation parameter module 1-2 and data correction verification module 1-3;
Profile module 1-1, loads ECU data configuration file, transfers data to initiation parameter module 1-2;
Initiation parameter module 1-2, sets the serial port and baud rate and OBDII agreements ginseng of serial ports RS232 messaging parameters Number, and transfer data to serial communication modular 3;
Data check module 1-3, the data to serial communication modular 3 are verified, and are examined and communicated by interior method of calibration Whether data message is changed by outer verification to data in communications except all bytes of check bit in itself are according to choosing Determine mode to be verified, whether changed in communications for inspection data, if interior verification and outer inspection all if Transfer data to Premium Features module.Two kinds of verification modes of simultaneous selection can improve verification redundancy, it is ensured that data are in communication In do not have interior verification in data check module 1-3 described in error code and outer method of calibration including the use of former data, a byte and, One byte is negated, a byte goes benefit, a byte XOR, a byte CRC check, a byte remove second from the bottom, BENZ_5BPS, string Mouthful direct communication, the special, Gaz_0d of card spy, two bytes verify and.
Described configuration file is designed using XML language, each configuration file one vehicle ECU of correspondence, stores the ECU Communication protocol initiation parameter, diagnostic equipment and institute's functional communication data.
Described configuration file is designed using hierarchical structure, and one-level label is used<AUTO>, two grades of labels uses<INIT_ IO>With<COMM>, the use of three-level label<RECE>、<SEND>With<CMD>;Described<INIT_IO>The content of text bag of label Include equipment initialization information;<COMM>The content of text of label includes the communication data of all orders;Described label<CMD>It is Protocol initializing parameter command;Described<RECE>Label is to send to order for diagnostic device;<SEND>Label is that ECU is returned to Diagnostic device order,<RECE>With<SEND>There are attribute HIDE, SD/RD in label.This level label in XML language is set Meter is corresponding with the hierarchical structure of systemic-function in diagnostic device, can simplify library file and program code, improves program operation effect Rate.
As shown in figure 3, a kind of analogy method of automobile ECU, comprises the following steps:
Step S1. main control modules load the configuration file for being modeled ECU, set initiation parameter and data check;
Step S2. Premium Features module is obtained from main control module replys data, and the online ECU that changes in real time replys data, Transfer data to serial communication modular;
Step S3. serial communication modulars send ECU reply Data Datas to slave computer module;
Step S4. slave computers module sends ECU replies data to genuine diagnostic device, and genuine diagnostic device is diagnosed Processing, and diagnostic result is obtained, diagnostic result is fed back into Premium Features module;Diagnostic process is diagnostic device according to receiving The DTCs replied of simulation ECU, data flow, the data of motion test and specific function show corresponding diagnostic result, and hold The corresponding data set of row;
Step S5. Premium Features module analysis diagnostic results, obtain data algorithm;
The data algorithm of determination is built into diagnostic device leaved for development by step S6., according to diagnostic device leaved for development The diagnostic result of diagnostic result and genuine diagnostic device compare, verify peak, minimum and the median of data, such as error No more than 0.5%, then the data algorithm that byte analysis module is determined is correct;If error is more than 0.5%, step b is performed.
In described step S2, the method that line changes ECU reply data in real time is that Premium Features module is first to main control module The data that the ECU of transmission is replied in data are analyzed by byte, and judge valid data position and data algorithm types, and selection is suitable Mode is replied with special value or batch modification replys mode or definite value increase and decrease reply mode replys data to change ECU.
The present invention can use the simulation system based on event driven VC++ too developments automobile ECU under VS2012 platforms System.
XML configuration file is edited using business software UltraEdit, XML is checked using business software Altova XMLSpy The syntax gauge of configuration file file.
Embodiment 2
System and method to more fully understand the present invention, are given below a specific embodiment to making invention into one The explanation of step.
Profile module, loading benz ECONIC vehicle ECU data configuration files, configuration file partial content is as follows:
Initiation parameter module, the serial port for setting serial ports RS232 messaging parameters is COM2 and baud rate is 115200Bd/ S and OBDII protocol parameters, OBDII protocol parameters are:
<INIT_IO>
<CMD>00 2c 13 01 00 28 a0 02 00 03 c0 04 77 ff c1 c1 05 15 19 24 02 04 00 19 06 03 07 02 00 19 80 19 08 25 09 00 0a 00 00 00 0b 00 0c 01 00</CMD>
</INIT_IO>
Analyzed by taking engine torque parameter as an example:
Data check module, interior verification is using a word and negates, and outer verification is using a word and such as 00 0c 33 87 of order In the ff ff ff 41 71 of 98 f2 00 00 00 00,41 be communication data " the ff ff of 33 87 98 f2 00 00 00 00 The interior verification of the word sums of ff " one, 71 " words of 00 0c, 33 87 98 f2,00 00 00 00 ff ff ff 41 " one and negate Outer verification.
Byte analysis module is analyzed, according to " 00 00 00 00 " corresponding sample data " 0 " in ECU commands in return, analysis Valid data position is X04, X03, X02, and X01 and data algorithm types are numeric type, and the present embodiment uses the form directly calculated, Its algorithm is numeric type algorithm:Y=G (a, b, c, d, e;X04,X03,X02,X01).
Select definite value increase and decrease to reply module, the byte in valid data position is carried out according to set value to increase operation such as+01, obtained To five groups of data 00 00 00 00;00 00 00 01;00 00 01 00;00 01 00 00;01 00 00 00.
5 groups of ECU are replied valid data 00 00 00 00 in data by byte analysis module;00 00 00 01;00 00 01 00;00 01 00 00;The 01 00 00 00 and diagnostic result 0.0,0.1,25.6,6553.5 of benz genuine diagnostic device, The algorithm model y=([X04] * a+ [X03] * b+ [X02] * c+ [X01] * d) * 0.1 of 1677721.6 input engine torque parameters + e, and obtain model parameter value y=([X04] * 16777216+ [X03] * 65536+ [X02] * 256+ [X01]) * 0.1, X01, X02, X03, X04 are that ECU replys valid data in data, and y is the diagnostic result data of benz genuine diagnostic device.
Algorithm correction verification module, the algorithm that byte analysis module is determined is built on diagnostic device leaved for development, will be waited out The diagnostic result of the diagnostic result and genuine diagnostic device of the diagnostic device feedback of hair is contrasted, and verifies the peak of data such as FF FF FF FF, minimum 00 00 00 00 and median 80 80 80 80 80, its error are 0.1%, 0.0% He 0.1%, show that the data algorithm that byte analysis module is determined is correct.

Claims (10)

1. a kind of simulation system of automobile ECU, it is characterised in that including:Main control module, Premium Features module, serial communication mould Block and slave computer module;
Main control module, loading configuration file and setting initiation parameter, verification data, and transfer data to Premium Features mould Block;
Premium Features module, is connected with serial communication modular, and online real time modifying ECU replys data, and transfers data to string Port communications module;Algorithm is determined according to the diagnostic result that genuine diagnostic device feeds back;
Serial communication modular, is connected with slave computer module by Serial Port Line, enters row data communication;
Slave computer module, is connected with genuine diagnostic device by bus, enters row data communication.
2. a kind of simulation system of automobile ECU according to claim 1, it is characterised in that described Premium Features module, Module, batch modification, which are replied, including byte analysis module, special value replys module, definite value increase and decrease reply module, algorithm verification Module;
Byte analysis module, to main control module transmit ECU reply data analyzed by byte, and judge valid data position with Data algorithm type, it is specific to select applicable modification mode to transfer data to according to valid data position and data algorithm types Numerical value replys module or batch modification replys module or definite value increase and decrease replys module and replys valid data in data to change ECU; And the changing rule of the diagnostic result of genuine diagnostic device feedback is analyzed, and obtain data algorithm;
Special value replys module, inputs special value one by one to each byte in valid data position, and data are transmitted To serial communication modular;
Batch modification replys module, and multiple bytes in valid data position are inputted with specific identical numerical value simultaneously, and by data It is sent to serial communication modular;
Module is replied in definite value increase and decrease, carries out increase and decrease operation according to set value to the byte in valid data position, and data are transmitted To serial communication modular;
Algorithm correction verification module, the algorithm that byte analysis module is determined is built on diagnostic device leaved for development, will be leaved for development The diagnostic result of diagnostic result and genuine diagnostic device of diagnostic device feedback is contrasted, the peak of checking data, minimum Value and median, such as error are no more than 0.5%, then the data algorithm that byte analysis module is determined is correct.
3. the simulation system of a kind of automobile ECU according to claim 2, it is characterised in that described data algorithm is really The method of determining is that the n groups ECU diagnostic results for replying valid data and genuine diagnostic device in data are inputted into algorithm model y=G (a,b,c…;X), and model parameter value is obtained, x is that ECU replys valid data in data, and y is the diagnosis knot of genuine diagnostic device Fruit data, m is the number of parameter a, b, c ... in algorithm model, and n is more than or equal to m.
4. a kind of simulation system of automobile ECU according to claim 2, it is characterised in that described data algorithm type Including direct calculation, switching value mode, lookup table mode, ASCII character character mode, hexadecimal, decimal system mode, Binary mode, particular form and time mode.
5. the simulation system of a kind of automobile ECU according to claim 2, it is characterised in that described special value is replied The special value of module include 00,7F, 80, FF, 01,;
The increase and decrease operation that described definite value increase and decrease replys in module is by increment or depreciation to change numerical value to byte, value added on products and Depreciation amount is:+01、+10、-01、-10.
6. the simulation system of a kind of automobile ECU according to claim 2, it is characterised in that described main control module includes Profile module, data check module and initiation parameter module;
Profile module, loads ECU data configuration file, transfers data to initiation parameter module;
Initiation parameter module, sets the serial port and baud rate and OBDII protocol parameters of serial ports RS232 messaging parameters, and will Data are sent to serial communication modular;
Data check module, the data to serial communication modular are verified, and communication data information is examined by interior method of calibration Whether changed in communications, by outer verification to data except all bytes of check bit in itself are entered according to selected mode Whether row verification, change for inspection data in communications, all passes data if if interior inspection and outer verification Deliver to Premium Features module.
7. a kind of simulation system of automobile ECU according to claim 6, it is characterised in that described data check module In interior verification and outer method of calibration including the use of former data, a byte and, a byte negate, a byte go mend, a byte it is different Or, a byte CRC check, a byte is except second from the bottom, BENZ_5BPS, serial ports direct communication, card spy special, Gaz_0d, two words Section verification and.
8. the simulation system of a kind of automobile ECU according to claim 1, it is characterised in that described configuration file is used Hierarchical structure is designed, and one-level label is used<AUTO>, two grades of labels uses<INIT_IO>With<COMM>, the use of three-level label< RECE>、<SEND>With<CMD>;Described<INIT_IO>The content of text of label includes equipment initialization information;<COMM>Mark The content of text of label includes the communication data of all orders;Described label<CMD>It is protocol initializing parameter command;Described <RECE>Label is to send to order for diagnostic device;<SEND>Label is that ECU returns to diagnostic device order,<RECE>With< SEND>There are attribute HIDE, SD/RD in label.
9. a kind of analogy method of automobile ECU, it is characterised in that comprise the following steps:
A. main control module loading is modeled ECU configuration file, sets initiation parameter, and verification data;
B. Premium Features module is obtained from main control module replys data, and the online ECU that changes in real time replys data, and data are transmitted To serial communication modular;
C. serial communication modular sends ECU reply Data Datas to slave computer module;
D. slave computer module sends ECU replies data to genuine diagnostic device, and genuine diagnostic device carries out diagnostic process, and obtains To diagnostic result, diagnostic result is fed back into Premium Features module;
E. Premium Features module analysis diagnostic result, obtains data algorithm;
F. the data algorithm of determination is built into diagnostic device leaved for development, according to the diagnostic result of diagnostic device leaved for development Compared with the diagnostic result of genuine diagnostic device, verify peak, minimum and the median of data, such as error is no more than 0.5%, then the data algorithm that byte analysis module is determined is correct;If error is more than 0.5%, step b is performed.
10. a kind of analogy method of automobile ECU according to claim 9, it is characterised in that in described step b, line is real When change ECU reply data method be, Premium Features module first to main control module transmit ECU reply data in data press Byte is analyzed, and judges valid data position and data algorithm types, and selection is applicable special value reply mode or batch is repaiied Change back compound formula or definite value increase and decrease reply mode replys data to change ECU.
CN201710443452.0A 2017-06-13 2017-06-13 Simulation system and simulation method of automobile ECU Active CN107024926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710443452.0A CN107024926B (en) 2017-06-13 2017-06-13 Simulation system and simulation method of automobile ECU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710443452.0A CN107024926B (en) 2017-06-13 2017-06-13 Simulation system and simulation method of automobile ECU

Publications (2)

Publication Number Publication Date
CN107024926A true CN107024926A (en) 2017-08-08
CN107024926B CN107024926B (en) 2024-01-05

Family

ID=59531619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710443452.0A Active CN107024926B (en) 2017-06-13 2017-06-13 Simulation system and simulation method of automobile ECU

Country Status (1)

Country Link
CN (1) CN107024926B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196861A (en) * 2017-12-29 2018-06-22 深圳市元征科技股份有限公司 A kind of data updating method and its diagnostic device
CN109857085A (en) * 2019-01-25 2019-06-07 深圳市元征科技股份有限公司 Simulation generates method, system, simulation terminal and the test macro of travelling data
CN111308919A (en) * 2018-12-12 2020-06-19 广州汽车集团股份有限公司 Wheel speed signal transmission method, device, terminal and computer readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2710978Y (en) * 2004-07-05 2005-07-20 谢泰第 Electric device for controlling safety air-bag of general automobile
US20070287135A1 (en) * 2006-04-20 2007-12-13 Sungkyunkwan University Foundation For Corporate Collaboration 3d vehicle simulator system and simulation method for ecu embedded system
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol
CN102023922A (en) * 2010-12-28 2011-04-20 重庆恩菲斯软件有限公司 System and method for testing automotive electronic diagnostic software
CN202134153U (en) * 2011-06-29 2012-02-01 深圳市元征软件开发有限公司 ECU analog device of electronic control motor
CN202583869U (en) * 2012-04-27 2012-12-05 于树怀 ECU detection and diagnosis control device
CN103020401A (en) * 2013-01-06 2013-04-03 北京经纬恒润科技有限公司 Method, device and system for testing ECU (Electronic Control Unit)
CN103631256A (en) * 2013-12-03 2014-03-12 北京亚新科天纬油泵油嘴股份有限公司 Engine signal simulation test bench and method of testing ECU (electronic control unit) therebof
CN104483959A (en) * 2014-11-04 2015-04-01 普华基础软件股份有限公司 Fault simulation and test system
CN104568459A (en) * 2014-12-15 2015-04-29 刘笑涡 OBD intelligent device, test method and system thereof, and ECU simulator
CN105573296A (en) * 2016-01-15 2016-05-11 上海汽车变速器有限公司 Hardware-in-loop-based automation test system for automobile diagnosis, and method thereof
CN106053098A (en) * 2016-07-22 2016-10-26 上汽通用汽车有限公司 Automobile simulation method and device, and automobile test simulation system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2710978Y (en) * 2004-07-05 2005-07-20 谢泰第 Electric device for controlling safety air-bag of general automobile
US20070287135A1 (en) * 2006-04-20 2007-12-13 Sungkyunkwan University Foundation For Corporate Collaboration 3d vehicle simulator system and simulation method for ecu embedded system
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol
CN102023922A (en) * 2010-12-28 2011-04-20 重庆恩菲斯软件有限公司 System and method for testing automotive electronic diagnostic software
CN202134153U (en) * 2011-06-29 2012-02-01 深圳市元征软件开发有限公司 ECU analog device of electronic control motor
CN202583869U (en) * 2012-04-27 2012-12-05 于树怀 ECU detection and diagnosis control device
CN103020401A (en) * 2013-01-06 2013-04-03 北京经纬恒润科技有限公司 Method, device and system for testing ECU (Electronic Control Unit)
CN103631256A (en) * 2013-12-03 2014-03-12 北京亚新科天纬油泵油嘴股份有限公司 Engine signal simulation test bench and method of testing ECU (electronic control unit) therebof
CN104483959A (en) * 2014-11-04 2015-04-01 普华基础软件股份有限公司 Fault simulation and test system
CN104568459A (en) * 2014-12-15 2015-04-29 刘笑涡 OBD intelligent device, test method and system thereof, and ECU simulator
CN105573296A (en) * 2016-01-15 2016-05-11 上海汽车变速器有限公司 Hardware-in-loop-based automation test system for automobile diagnosis, and method thereof
CN106053098A (en) * 2016-07-22 2016-10-26 上汽通用汽车有限公司 Automobile simulation method and device, and automobile test simulation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹伟;蔡伟义;姚嘉凌;李彩生;: "基于PC机的汽车故障诊断***研究", 南京林业大学学报(自然科学版), no. 01 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196861A (en) * 2017-12-29 2018-06-22 深圳市元征科技股份有限公司 A kind of data updating method and its diagnostic device
CN108196861B (en) * 2017-12-29 2022-01-04 深圳市元征科技股份有限公司 Data upgrading method and diagnostic equipment thereof
CN111308919A (en) * 2018-12-12 2020-06-19 广州汽车集团股份有限公司 Wheel speed signal transmission method, device, terminal and computer readable storage medium
CN111308919B (en) * 2018-12-12 2021-07-27 广州汽车集团股份有限公司 Wheel speed signal transmission method, device, terminal and computer readable storage medium
CN109857085A (en) * 2019-01-25 2019-06-07 深圳市元征科技股份有限公司 Simulation generates method, system, simulation terminal and the test macro of travelling data
CN109857085B (en) * 2019-01-25 2021-01-15 深圳市元征科技股份有限公司 Method and system for generating driving data in simulation mode, simulation terminal and test system

Also Published As

Publication number Publication date
CN107024926B (en) 2024-01-05

Similar Documents

Publication Publication Date Title
Marchetti et al. READ: Reverse engineering of automotive data frames
CN111024405B (en) Automobile diagnosis method, related device and system
CN107024926A (en) The simulation system and its analogy method of a kind of automobile ECU
CN107024925A (en) A kind of automobile ECU controller writes with a brush dipped in Chinese ink system and method
CN102096760A (en) Detecting anomalies in field failure data
CN106681921A (en) Method and device for achieving data parameterization
US8433550B2 (en) Requirements driven feature development process
CN112558584B (en) Diagnostic data acquisition method and device and diagnostic equipment
CN115757483A (en) Automatic testing method and device, electronic equipment and storage medium
CN104166890A (en) Method for monitoring a process and/or production plant
CN109460661A (en) A kind of logical security leak detection method, device and terminal device
CN103514092A (en) Method for automatic testing of software system of ATM
CN114443503A (en) Test case generation method and device, computer equipment and storage medium
CN107908892A (en) A kind of enhancing visual system Safety Analysis Method based on model
CN114185765A (en) Test data processing method and device, electronic equipment and storage medium
CN113094419A (en) Data analysis system, method, client and storage medium
CN115934513A (en) Demand analysis and test design adaptation method, device, equipment and medium
CN116151868A (en) Intelligent price checking method, intelligent price checking device, computer equipment and storage medium
US20110213728A1 (en) Requirements check-in/out tool, called r2db
Penttinen et al. An open modelling approach for availability and reliability of systems-OpenMARS
CN112486835A (en) Verification platform and method applied to securities future counter
CN112949258A (en) Data processing method and device, electronic equipment and storage medium
CN111555941B (en) Automatic generation method of communication protocol test driving data
CN107291435A (en) AADL models are blended together under a kind of Uncertain environments and quantify analysis method
CN113505069B (en) Test data analysis method and system

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
GR01 Patent grant
GR01 Patent grant