COMPUTER-IMPLEMENTED METHOD FOR SIMULATING A RESTBUS CONTROL UNIT NETWORK
20170220712 · 2017-08-03
Assignee
Inventors
Cpc classification
G06F30/33
PHYSICS
G06F30/18
PHYSICS
International classification
Abstract
A computer-implemented method for simulating a restbus control unit network that includes at least two restbus control units connected through a bus system. The restbus control unit network is connected to at least one additional control unit through the bus system. The communication relationships of the restbus control units are described, program code for simulating the restbus control units is generated based on the communication relationships. The restbus control unit network is simulated on a simulation computer via an executable version of the program code. Simplified and flexible simulation of the restbus control unit network is made possible in that a single, joint restbus control unit model is generated for the restbus control units as program code for simulating the restbus control units.
Claims
1. A computer-implemented method for simulating a restbus control unit network that includes at least two restbus control units connected through a bus system, the method comprising: connecting the restbus control unit network to at least one additional control unit through the bus system, communication relationships of the restbus control units being described; generating program code for simulating the restbus control units based on the communication relationships; simulating the restbus control unit network on a simulation computer via an executable version of the program code; and generating a single, joint restbus control unit model for the restbus control units as program code for simulating the restbus control units.
2. The computer-implemented method according to claim 1, wherein the description of the communication relationships of the restbus control units is performed by specifying a communication matrix that includes the restbus control units and the communication elements exchanged between the restbus control units.
3. The computer-implemented method according to claim 1, wherein the restbus control units are jointly simulated in an executable version of the restbus control unit model or are simulated in a single process on the simulation computer.
4. The computer-implemented method according to claim 1, wherein the joint restbus control unit model is generated as a virtual control unit.
5. The computer-implemented method according to claim 1, wherein the restbus control unit model is generated as a functional mock-up unit that has a functional mock-up interface.
6. The computer-implemented method according to claim 1, wherein the restbus control unit model is generated for an offline simulation environment or as a Simulink model in the form of a Simulink implementation container.
7. The computer-implemented method according to claim 1, wherein at least parts of the restbus control unit model meet the Automotive Open System Architecture Standard.
8. The computer-implemented method according to claim 1, wherein the restbus control units in the joint restbus control unit model are each represented by platform-independent program code excluding program code for the bus interface, wherein the platform-independent portions of the bus interface of the restbus control units are represented in a joint interface program code, and wherein the joint interface program code describes the specifically configured bus interfaces of all restbus control units.
9. The computer-implemented method according to claim 1, wherein the restbus control units in the joint restbus control unit model are each represented by platform-independent program code with a portion of the relevant bus interface so that the platform-independent program code describes the specifically configured bus interface of the relevant restbus control unit.
10. The computer-implemented method according to claim 1, wherein the program code of the joint restbus control unit model is equipped with a manipulation interface through which different faults can be triggered within the restbus control unit network.
11. The computer-implemented method according to claim 1, wherein the restbus control unit model is stored as a data container having the program code for the restbus control units, at least one parameter file, and program code of a system model with which the restbus control units are connected.
12. A computer program product with a computer program that has software for carrying out the method according to claim 1 when the computer program is executed on a computer.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus, are not limitive of the present invention, and wherein:
[0032]
[0033]
[0034]
[0035]
[0036]
DETAILED DESCRIPTION
[0037] Shown in
[0038] In the present case, the engineering task is that the control unit 4 is present as an actual control unit and is to be tested with respect to its functionality in interaction with the other control units 2a, 2b. If—for whatever reason—the control units 2a, 2 are not actually present, these control units 2a, 2b are simulated. From the point of view of the control unit 4 under test, the two control units 2a, 2b together constitute the restbus control unit network 2. If the functionality of the restbus control units 2a, 2b is known, then the communication relationships of the restbus control units 2a, 2b can also be described. Program code 5a, 5b for simulating the restbus control units 2a, 2b is then generated on the basis of the communication relationships.
[0039] It can be seen at the bottom of
[0040] It is shown in
[0041] It is an advantage of the method shown that a restbus simulation that is simplified compared to the method from
[0042] Furthermore, there is also no need for multiple computing units 6a, 6b on the simulation computer 6 for simulating the restbus control unit network 2; instead, only the presence of a single computing unit 6a or 6b in the simulation computer 6 is necessary in order to simulate the entire restbus control unit network 2; this is also shown in
[0043] The generation of a single, joint restbus control unit model as program code 5 for the restbus control units 2a, 2b has the result that the restbus control units 2a, 2b are jointly simulated during execution on the simulation computer 6 or on the simulation computing unit 6a. In the present case, the restbus control units 2a, 2b are simulated in a single process within the framework of the execution of the program code 5 on the computing unit 6a of the simulation computer 6. With the method presented it is thus possible for the entire restbus control unit network 2 and the joint restbus control unit model associated therewith to be generated as a single virtual control unit and—as shown in
[0044] The method presented here for simulating a restbus control unit network 2 opens up yet more extensive options permitting simple handling of an entire restbus control unit network 2 even in a different simulation context. It is shown in
[0045] In the block-based modeling environment shown, the program code 5 for the restbus control unit network 2 is stored for a restbus block. The simulation environment here is an offline simulation environment in which the simulation of the restbus control unit network 2 does not necessarily need to take place in real time. The advantage of a simplified overall representation and simulation implementation of the restbus control unit network 2 by the program code 5 of a single, joint restbus control unit model is preserved here as well, however.
[0046]
[0047]
[0048] The invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are to be included within the scope of the following claims.