CN201673405U - Device used for testing electronic control system of automobile - Google Patents

Device used for testing electronic control system of automobile Download PDF

Info

Publication number
CN201673405U
CN201673405U CN 201020225685 CN201020225685U CN201673405U CN 201673405 U CN201673405 U CN 201673405U CN 201020225685 CN201020225685 CN 201020225685 CN 201020225685 U CN201020225685 U CN 201020225685U CN 201673405 U CN201673405 U CN 201673405U
Authority
CN
China
Prior art keywords
control system
electronic control
model
testing
automobile
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
CN 201020225685
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.)
Beijing Jingwei Hirain Tech Co Ltd
Original Assignee
Beijing Jingwei Hirain Tech 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 Beijing Jingwei Hirain Tech Co Ltd filed Critical Beijing Jingwei Hirain Tech Co Ltd
Priority to CN 201020225685 priority Critical patent/CN201673405U/en
Application granted granted Critical
Publication of CN201673405U publication Critical patent/CN201673405U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Testing Of Engines (AREA)

Abstract

The utility model discloses a device used for testing an electronic control system of an automobile, which tests the electronic control system of the automobile to be tested by a man-machine interface device completing the testing process. The electronic control system of the automobile is interacted with the testing device via a bi-directional interface, and the man-machine interface device can display or affect the parameters of models operating in the testing device; a testing model and an environment model are operated in the testing device; and the environment model comprises an input module, an operation module for computing the input module, and an output module for outputting the computation results. The device used for testing the electronic control system of the automobile can be specifically applied to the hardware in-the-loop test of the electronic control system of the automobile, and has simple and practical structure, and is easy to implement.

Description

Device for testing automobile electronic control system
Technical Field
The utility model relates to a device for testing automotive electronics control system, wherein, the automotive electronics control system that awaits measuring can be one (like engine control system), several (like engine control system + gearbox control system + braking anti-lock control system), also can be the control network that all electronic control system constitute on the car.
Background
A typical electronic control system for a vehicle, such as an Electronic Control Unit (ECU) for the vehicle, is an electronic control device widely used in the field of vehicles, which adjusts and calibrates the vehicle by measuring the operating state of each component of the vehicle.
When an Electronic Control Unit (ECU) of an automobile is developed and developed, the following development procedures and/or development methods are widely adopted: in the functional design and development stage, a mathematical model of an automobile electronic controller and a control object thereof is abstracted by means of a mathematical modeling tool (Matlab/Simulink), and the design is verified in a simulation mode.
In the Rapid Control Prototyping (RCP) phase, the model of the electronic control unit of the motor vehicle, which was abstracted out in the preceding phase, is then converted by means of a code generator into an executable program which runs on a hardware platform which can interact with the actual control object via a corresponding I/O interface.
And if the control effect is satisfactory, generating the executable code of the batch electronic controller hardware by the automobile electronic controller model abstracted by the code generator. Detailed testing, typically Hardware-In-The-Loop (HIL testing), is required before a batch of automotive electronic controllers can be used with The actual control objects.
In the HIL test, batch automobile electronic controller is connected with testing arrangement, simulates the function of the electronic controller to be tested on the testing arrangement with the help of the automobile model, and the state of the automobile model is transmitted to the electronic controller through the sensor simulation, and simultaneously, the output of the electronic controller is acquired, thereby realizing the interactive relation between the electronic controller and the testing arrangement.
EP1898282A discloses a method and a device for testing an electronic control system, wherein it is mentioned that the control system can be a motor control device or a driving and engine dynamic model of a whole vehicle. The disclosure of the prior art is so broad and general that it would be difficult for a person skilled in the art to apply the disclosure to any specific field and/or control system when trying to put it into practice, for example, although the prior art refers to a car, how to apply it specifically to the car field lacks corresponding technical solutions, and the person skilled in the art would be difficult to put it into a specific direction in the car field, for example, the testing of an ECU, without any inventive effort.
Disclosure of Invention
The to-be-solved technical problem of the present invention is to provide a device for testing an automotive electronic control system to reduce or avoid the aforementioned problems.
In order to solve the technical problem, the utility model provides a device for testing an automobile electronic control system, which tests the automobile electronic control system to be tested through a man-machine interface device for implementing the testing process, the automobile electronic control system interacts with the testing device through a bidirectional interface, and the man-machine interface device can display or influence the parameters of a model running in the testing device; a test model and an environment model run in the test device; the environment model comprises an input module, an operation module for operating the input module, and an output module for outputting the operation result.
The utility model provides an above-mentioned device for testing car electronic control system can be specifically applied to and carry out hardware at the return circuit test to car electronic control system, and its simple structure is simple and easy, is convenient for implement.
Drawings
The drawings are only intended to illustrate and explain the present invention and do not limit the scope of the invention. Wherein,
fig. 1 is a schematic structural view showing an apparatus for testing an electronic control system of an automobile according to a preferred embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating the structure of one embodiment of the environmental model shown in FIG. 1;
FIG. 3 is a schematic diagram of an environment model according to another embodiment of the present invention;
fig. 4 is a schematic structural view showing an apparatus for testing an electronic control system of an automobile according to still another preferred embodiment of the present invention.
Detailed Description
In order to clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will be described with reference to the accompanying drawings. Wherein like parts are given like reference numerals.
An ECU is an electronic control system widely used in the automotive field, which adjusts and calibrates an automobile by measuring the operating state of each component of the automobile. The ECU is generally composed of a microprocessor (CPU), a memory (ROM, RAM), an input/output interface (I/O), an analog-to-digital converter (a/D), and a large-scale integrated circuit such as a shaper and a driver. In the ECU, the CPU is a core part, which has functions of operation and control, and also controls memories (ROM, RAM), input/output interfaces (I/O), and other external circuits in real time, and has a fault self-diagnosis and protection function. The utility model discloses in, ECU is only the product that is used for the test, promptly, after ECU produces into the sample through the design, need test it to judge whether it satisfies the designing requirement, perhaps whether be a qualified product.
The utility model discloses in so-called automobile electronic control system, not only confine to this specific model form of ECU, but the automobile electronic control system that any prior art can obtain, the utility model provides a testing arrangement is used for testing these automobile electronic control system to judge whether it is qualified. The electronic control system of the automobile to be tested can be one (such as an engine control system), a plurality of (such as the engine control system and a gearbox control system and a brake anti-lock control system) or a control network formed by all the electronic control systems on the automobile.
Fig. 1 is a schematic structural diagram of an apparatus for testing an electronic control system of an automobile according to a preferred embodiment of the present invention, wherein 1 represents an electronic control system of an automobile to be tested; 2 represents the testing device of the utility model; and 3 represents a user interface device such as a PC or the like.
The electronic control system 1 of the vehicle is a control unit of an electronic control system of the vehicle, such as a control unit of an engine of the vehicle or a control unit of an automatic transmission. The test apparatus is configured to test the functions of the automotive electronic control system 1, for example, to perform the HIL test of the automotive electronic control system. The test process of the vehicle electronic control system 1 is performed by a test device 2. In order to implement the test process, the automotive electronic control system 1 and the test device 2 are connected through a bidirectional interface, control system data of the automotive electronic control system 1 is transmitted to the test device 2 through an input interface of the test device 2, and the control system data can also be modified in the test device 2 and reversely transmitted to the automotive electronic control system 1 through an output interface of the test device 2. The human interface device 3 provides an interactive interface between the testing apparatus 2 and a user.
The main body of the test apparatus 2 is two models, namely an environmental model 4 and a test model 5, and a carrier on which the two models operate. The test of the electronic control system 1 of the vehicle must be established as a closed loop system with the object controlled by the electronic control system to be effective, for example, to test the function of an engine control system, the engine control system needs to be installed on the engine adapted to the engine control system. Different from the traditional test method, in the test device, the environment model 4 is operated inside the test device 2, and the environment model 4 simulates the real use environment of the electronic control system 1 of the automobile, for example, if the electronic control system of the automobile to be tested is an engine control system, the corresponding environment model is the body model of the engine to which the engine control system is adapted. To ensure real-time performance of the environmental model, the carrier on which the environmental model operates is usually a real-time simulator. The actual use condition of the automotive electronic control system 1 is reflected to the automotive electronic control system 1 by the parameters of the environment model 4. The actual test procedure for the control system is not performed by the environment model 4, but by the test model 5. To ensure real-time performance, the environment model 4 is typically run on a real-time simulator, and the test model 5 is typically run on a laboratory PC.
The interaction relationship between the automotive electronic control system 1 and the environmental model 4 and the test model 5 is as follows: the automobile electronic control system 1 realizes bidirectional data interaction between the automobile electronic control system 1 and the environment model 4 through an input/output interface on a carrier, namely a real-time simulator and related devices, which runs by the environment model 4; the data interaction between the test model 5 and the environment model 4 is realized by a communication protocol, and the communication protocol is realized by the connection of a real-time simulator and a test PC, which are carriers operated by the two models.
The human interface device 3 provides an interactive interface between the testing apparatus 2 and a user. The user can modify the parameters and the test process of the test model 5 and the environment model 4 through the human-computer interface device 3, change the operating conditions of the automotive electronic control system 1, and also can check the test results of the automotive electronic control system 1. The human interface device 3 is typically a PC, said human interface device 3 providing an interactive interface between the testing apparatus 2 and a user, and the user can modify the parameters of the environment model 4 and the testing process of the test model 5 through said human interface device 3. The PC can also be used as a carrier for the operation of the test model 5.
The human interface device 3 provides the user with an operator interface in which a new or existing environment model 4 can be created to adapt to the vehicle electronic control system 1 to be tested. In the testing device of the present invention, as long as the environment model is created by using a suitable software, such as MatLab/Simulink, the environment model 4 can be conveniently converted into a code that can be recognized by a machine by using a certain operation, and the code is run on the real-time simulation machine, which is a running carrier of the environment model 4.
The configuration of the test model 5 can likewise take place via the human interface device 3. The test pattern 5 is also created or modified on the human interface device 3 by means of suitable software and converted into machine-readable code to be run on a test PC, which is the carrier on which the test pattern runs. The test model 5 can be built by using software, such as NI/LabVIEW, and can be an automatic test process, and parameters of the environment model 4 can be manually modified to achieve the test purpose. In general, such targeted modification of the environmental model 4 requires knowledge of the structure of the environmental model 4, and modification of variables of the environmental model 4 requires knowledge of the memory address of each variable in the environmental model 4.
Access to the variables of the environment model 4 is conventionally achieved by manually entering the physical memory addresses of the environment model variables. Unlike conventional access methods, in one example of the present invention, for example, in building the environment model 4 using Matlab/SimuLink/Stateflow, all variables of the environment model 4 are represented by unique identifiers. Each identifier is automatically assigned its corresponding one of the physical memory addresses during the compilation of the environment model 4 into machine-recognizable code. When the test model 5 executes the test process, the used identifiers can be converted into corresponding physical memory addresses, and the values of the identifiers are read, written or modified in a targeted manner, which is equivalent to changing the values at the corresponding physical memory addresses, thereby greatly simplifying the test process.
By adopting the uniform identifier mode, data in the model can be well transferred, the model readability is enhanced, and the problem is caused that the variables of the environment model 4 are compiled into a large number of static variables. The static variable is initialized during compiling, and the initial value is not reset during each calling later, but only the value at the end of the last calling is reserved. In order to facilitate the modification of the values of the variables in the environmental model 4 during the test, a method for dynamically processing objects is introduced in the test device 5 of the automotive electronic control system 1.
The method of dynamically processing objects divides the variables in the test device 2 into two categories: the variables in the environment model 4 are called first type variables (as shown in fig. 2 and 3), the first type variables are accessed by the identifier method as described above, each identifier is assigned with a physical address in the compiling process and belongs to static variables, and the first type variables can be modified by the test model 5; variables in the virtual module 81 (shown in fig. 3) that do not actually exist in the environment model 4 but are added for control convenience are referred to as second-type variables, which have the same or similar data types as the corresponding first-type variables and belong to dynamic variables, and the second-type variables can also be modified through the test model 5. The management means 9 located on the testing means 2 are responsible for managing these variables of the first and second type for further applications. The management device 9 can be controlled directly or indirectly via the test model 5.
The presence of the second type of variable is associated with the execution of the test model. Variables of the second type are generated with the beginning of the test model, modified and assigned during the test, and likewise are cleared with the end of the test model.
Fig. 2 shows a schematic structural diagram of a specific embodiment of the environment model 4 shown in fig. 1, where the environment model 4 may be built by using a MatLab/Simulink modeling tool, an input module 40 of the environment model 4 includes 41 and 51 as shown in the figure, a certain arithmetic and/or logical operation is performed on the input module 40 in an operation module 61, and then a result of the operation is transmitted to an output module 71. To facilitate reading and modifying parameters in the environment model 4, there is an identifier uniquely determined for any module object in the environment model 4 (such as the modules 41 and 51 of the input module 40, the operation module 61 and the output module 71 shown in fig. 2). Correspondingly, the variables (parameters) included in the module object are the aforementioned variables of the first type.
Fig. 3 is a schematic structural diagram of an environment model according to another embodiment of the present invention, which is similar to fig. 2, except that after the arithmetic and logic operations of the operation module 61 are performed on the input module 40 shown in fig. 2, the operation result of the operation module 61 is not directly transmitted to the output module 71, but transmitted to a module 81 where the actual environment model does not exist, and further arithmetic and/or logic operations can be performed on the operation result of the operation module 61 in the module 81, and then the final operation result is transmitted to the output module 71. The variables contained in the module 81 are variables of the second type, the module 81 and the actually existing modules 41, 51 and 61 together form the environment model 4 with respect to the user, and the variables contained in the module 81 (the variables of the second type) can also be called or modified by the test model 5 (as shown in fig. 1).
Fig. 4 is a schematic structural diagram of an apparatus for testing an electronic control system of an automobile according to still another preferred embodiment of the present invention, which is more detailed with respect to the embodiment shown in fig. 1, wherein the main body of the testing apparatus 2 is composed of an environment model 4 and a testing model 5, a dynamic physical memory 10 is provided in the hardware of the testing apparatus 2, each variable in the environment model 4 (such as the modules 41 and 51 of the input module 40, the operation module 61 and the output module 71 shown in fig. 2) has a corresponding physical memory address in the dynamic physical memory 10, and the environment model 4 and the testing model 5 realize data interaction through the physical memory 10. The management means 9 may enable the management of the objects of the first type and the objects of the second type for the test model 5 to invoke or modify. The first type object variables and the second type object variables are stored in the object storage file 11 in some way for use by the management means 9. The management device 9 is controlled directly or indirectly by the test model 5.
The utility model provides an above-mentioned a device for testing car electronic control system can specifically be applied to and carry out hardware at the return circuit test to car electronic control system, and its simple structure is easy, is convenient for implement.
The above description is only exemplary of the present invention, and is not intended to limit the scope of the present invention. Any equivalent changes, modifications and combinations that may be made by those skilled in the art without departing from the spirit and principles of the invention should be considered within the scope of the invention.

Claims (1)

1. A device for testing an automotive electronic control system, the testing device (2) testing the automotive electronic control system (1) to be tested through a human interface device (3) implementing a testing process, characterized in that the automotive electronic control system (1) interacts with the testing device (2) through a bi-directional interface, the human interface device (3) being able to display or influence parameters of a model running in the testing device (2); a test model (5) and an environment model (4) run in the test device (2); the environment model (4) includes an input module (40), an operation module (61) that operates on the input module (40), and an output module (71) that outputs a result of the operation.
CN 201020225685 2010-06-09 2010-06-09 Device used for testing electronic control system of automobile Expired - Lifetime CN201673405U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201020225685 CN201673405U (en) 2010-06-09 2010-06-09 Device used for testing electronic control system of automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201020225685 CN201673405U (en) 2010-06-09 2010-06-09 Device used for testing electronic control system of automobile

Publications (1)

Publication Number Publication Date
CN201673405U true CN201673405U (en) 2010-12-15

Family

ID=43330816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201020225685 Expired - Lifetime CN201673405U (en) 2010-06-09 2010-06-09 Device used for testing electronic control system of automobile

Country Status (1)

Country Link
CN (1) CN201673405U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354205A (en) * 2011-07-07 2012-02-15 株洲南车时代电气股份有限公司 Method and device for testing control cabinet of electric locomotive
CN104199434A (en) * 2014-08-07 2014-12-10 奇瑞汽车股份有限公司 Function detection device and method for interior electronic control system
CN104536856A (en) * 2014-12-12 2015-04-22 北京新能源汽车股份有限公司 Method and device for generating environment model for automobile controller test
CN106406276A (en) * 2015-07-29 2017-02-15 罗伯特·博世有限公司 Method and device for the on-board diagnosis of a control unit

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354205A (en) * 2011-07-07 2012-02-15 株洲南车时代电气股份有限公司 Method and device for testing control cabinet of electric locomotive
CN104199434A (en) * 2014-08-07 2014-12-10 奇瑞汽车股份有限公司 Function detection device and method for interior electronic control system
CN104536856A (en) * 2014-12-12 2015-04-22 北京新能源汽车股份有限公司 Method and device for generating environment model for automobile controller test
CN104536856B (en) * 2014-12-12 2018-03-13 北京新能源汽车股份有限公司 Method and device for generating environment model for automobile controller test
CN106406276A (en) * 2015-07-29 2017-02-15 罗伯特·博世有限公司 Method and device for the on-board diagnosis of a control unit
CN106406276B (en) * 2015-07-29 2021-07-27 罗伯特·博世有限公司 Method and device for on-board diagnostics in a control device

Similar Documents

Publication Publication Date Title
CN201829070U (en) Hardware-in-the-loop simulating experiment platform for automatic transmission
CN104866419B (en) A kind of virtual platform and application layer software method of testing and system
CN111221326A (en) System and method for realizing hardware-in-loop test control based on Simulink real-time simulation system
CN103034227A (en) Testing method in circuit of battery electric vehicle vehicle-control unit model
Hanselmann Automotive control: from concept to experiment to product
CN104794258A (en) Automobile hardware-in-loop simulation system
CN112506756B (en) Method and device for generating test case script of vehicle controller
Vijayagopal et al. Automated model based design process to evaluate advanced component technologies
CN201673405U (en) Device used for testing electronic control system of automobile
CN201812197U (en) Device for testing automobile electronic control system
CN104020680A (en) Automatic software testing method and system based on hardware-in-loop system
CN201673404U (en) Testing device of automobile electronic control system
CN106897469A (en) A kind of test environment generation method and device
CN201812198U (en) Device for testing automobile electronic control system
CN201812201U (en) Device used for testing automobile electronic control system.
CN201945883U (en) Testing device of automotive electronic control system
CN110794813B (en) In-loop real-time linkage testing method and system for electromechanical parts
CN201868019U (en) Electrically-controlled hydraulic type automatic transmission control law rapid prototyping experimental platform based on simulator
CN201812199U (en) Device for testing automobile electronic control system
CN201673406U (en) Simulation test equipment for electronic engine control system
Hanselmann et al. Production quality code generation from Simulink block diagrams
CN201812202U (en) Simulation tester used for electronic engine control system
CN201909993U (en) Test device of automotive electronic control system
Farkas et al. An integrative approach for embedded software design with UML and Simulink
Ziegler et al. Extending the IPG CarMaker by FMI compliant units

Legal Events

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

Granted publication date: 20101215