Test system for testing control device, and apparatus and method for testing control device using test system
By introducing the first flag and the second flag test system into the message, the problem of low tampering efficiency in message fragmentation processing in the existing technology is solved, and the reliability of the message time is guaranteed and the testing efficiency is improved.
Patent Information
- Application Number
- CN202410392112.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-05
- Filing Date
- 2024-04-02
- Publication Date
- 2024-10-15
AI Technical Summary
When the existing message playback unit processes messages divided into fragments, it is difficult to tamper without affecting the time reliability of the message, especially when a large number of message fragments need to be recorded and sent simultaneously, resulting in low tampering efficiency.
A test system is designed, including a receiver, buffer, tamperer and sender, by introducing a first flag and a second flag in the fragments of the message to ensure that all fragments are recorded in the buffer at the same time as much as possible and according to the scheduled The data is tampered with so that the tampered messages are sent in chronological order to ensure the time reliability of the messages.
It realizes that the message can be effectively tampered with when the message is fragmented without affecting its time-reliable playback, which reduces the cost of test driving. It can simulate the reaction of the control device under different situations in the vehicle and improve the test efficiency.
Smart Images

Figure CN118784263A_ABST
Abstract
Description
Technical Field
[0001] The application relates to a test system for testing a control device by means of at least one message, as well as to a device and a method for testing a control device using a test system and using at least one message. Background Art
[0002] A playback unit for storing and playing back recorded messages is known from WO 2020 / 165067. The playback unit can be, for example, a device for recording and playing back messages in a vehicle network, such as is provided, for example, as a product AUTERA from dSPACE GmbH. The playback unit can, however, also be integrated in a simulator. Summary of the invention
[0003] A test system for testing a control device using at least one message, the test system comprising:
[0004] a receiver configured to receive a message divided into fragments, wherein respective fragments have a first flag and a second flag, wherein the first flag marks a time sequence of the respective fragments in the message;
[0005] a buffer configured to store the fragments according to the first flag and the second flag,
[0006] The second flag causes: all fragments of the message to be recorded in the buffer as simultaneously as possible;
[0007] a tamperer configured to alter the message according to predetermined data;
[0008] A transmitter, which is designed to send a modified message having at least one fragment to a control device in such a way that the fragments of the modified message are sent according to a first marker, so that the first fragment of the modified message is sent at the beginning of the sending time and the last fragment of the modified message is sent at the end of the sending time, while the remaining fragments of the modified message are distributed, in particular evenly distributed, over the sending time.
[0009] Furthermore, a device is proposed which is designed to send at least one message divided into fragments to a receiver of a test system, wherein the device is connected to a memory in which the at least one message is stored.
[0010] Furthermore, a method for testing a control device by means of a test system and by means of at least one message is proposed. The method comprises:
[0011] receiving a message divided into fragments, wherein respective fragments have a first flag and a second flag, wherein the first flag marks a time sequence of the respective fragments in the message;
[0012] storing the fragments in a buffer according to a first flag and a second flag, wherein the second flag causes: recording all fragments of the message in the buffer as simultaneously as possible;
[0013] Changing messages based on predetermined data;
[0014] A modified message having at least one fragment is sent to a control device in such a way that the fragments of the modified message are sent in such a way according to a first marker that the first fragment of the modified message is sent at the beginning of a sending time and the last fragment of the modified message is sent at the end of the sending time, while the remaining fragments of the modified message are distributed, in particular evenly distributed, over the sending time.
[0015] The test system for testing a control device with at least one message and the device and method for testing a control device with the test system have the advantage that the test system can implement tampering with a tamperer in the case of fragmented messages without affecting the time-reliable playback of other messages. This is achieved in particular in that the fragments of the message have a second mark, which causes all fragments of the message to be recorded in the buffer as simultaneously as possible. Wherein "simultaneously" means that as soon as the first fragment is recorded, all other message fragments entering from the device are also recorded in the buffer. However, at least the last fragment of the message should be recorded in the buffer so early that tampering of the message is possible before the first fragment of the message should be sent to the control device to be tested. The time-reliable playback of the message is also ensured in the following case, that the tamperer changes the message according to predetermined data so that, for example, additional fragments are added or fragments are removed.
[0016] The first and second identifiers can be prepended to the message or message fragment as a header or added in other ways, for example. The identifiers are removed again shortly before sending to the control device to be tested, so that the message or its fragment sent to the control device corresponds to the communication protocol expected by the control device.
[0017] The test system is a system for testing a control device and has the components described for this purpose: a receiver, a buffer, a tamper and a transmitter. The test system can also be called a simulator. With such a test system, so-called hardware-in-the-loop (HIL) or software-in-the-loop (SIL) can be implemented. Thus, such a test system can be used to face control devices with different situations. Thus, the reaction of the control device can be tested, and in particular, it can be checked that the control device operates in the conventional manner in this case. In this way, it is possible to reduce or completely save costs, for example, due to test driving of the vehicle in which the control device is located. The individual units of the simulation test system are simulated by one or more computers through software modules or dedicated hardware circuits. Each unit can be, for example, another control device, a sensor or a power electronic device. Therefore, an environment can be disguised for the control device, which also surrounds the control device in the installed state, for example, in the conventional operation.
[0018] The messages sent by the device and received by the test system can be recorded, for example, in particular during a test drive. The message itself can also have an identification (ID) which can be assigned to the message. Such an ID (at least at a certain processing level) can be ambiguous or can also not exist. The first and second identifiers are therefore assigned by the device in addition to the possibly existing identification and can have the same content in the case of different messages. The first and second identifiers can also be independent of the ID.
[0019] The device preferably sends the message by means of a data stream. If the buffer is full, the data stream can be stopped by the test system and can only be continued to be received when the buffer has free capacity again. The second flag affects the moment of recording into the buffer. The first flag provides information about the moment when the message is to be sent.
[0020] The control device is an electrical device that receives input signals, such as sensor signals and / or signals of other control devices and / or input signals, and generates control signals based thereon. The control signals are then used, for example, to actuate other control devices or, for example, actuators, such as brakes, airbags or automated driving systems. The control device therefore has input and output interfaces.
[0021] Via such an input interface, a modified message with modified fragments is sent to the control device and supplied to the control device in order to check whether the control device reacts to the message. For this purpose, the test system has a receiver which is configured to receive the message divided into fragments. The receiver of the test system can analyze the fragments and assign them to the message.
[0022] The message can be sent, for example, from a device (which can have a further computer) and transmitted to the test system. However, the message can also already be present in the test system or the device can be provided in the test system and thus can be transmitted to a receiver in the test system. The message contains (as indicated above) for example sensor information or control signals or other input signals of other control devices.
[0023] Currently, the message is divided into fragments, that is, it exists in parts, which together form the message. The message is transmitted to the receiver in these fragments. These fragments are necessary because, for example, the predetermined data packet size for the data transmission of the message is smaller than the size of the message. This makes it necessary to divide the message into these parts, that is, fragments. In particular, it can be provided that the size of the fragment received by the test system is equal to the size of the fragment sent by the test system. However, the message can also be equal to or smaller than such a data packet size, because there is only one fragment, which has the size of such a data packet. And even if there is only a single fragment, this can also be understood as a fragment.
[0024] The respective fragment has a first identifier, which marks the time sequence of the respective fragment in the message. This can be designed, for example, as a first time stamp. The first time stamp indicates when the respective fragment must be sent. The first time stamp can be a time stamp of the reception of the message fragment during the test drive and thus indicates when the message must be played back for test purposes relative to other recorded messages during playback. Compliance with the time rule as described above can be advantageous, for example, in order to successfully pass a possible plausibility check of the control device.
[0025] Currently, a second marker is also used, wherein the second marker causes all fragments of a message to be recorded in the buffer as simultaneously as possible. The second marker can be designed as a second time stamp. As a result, the fragments belonging to the message can be read into the buffer almost simultaneously. And this is also the case even if the fragments have different first time stamps. In particular, the second marker can make it possible to read the last fragment before the first fragment is sent. In particular, a time buffer can be provided for tampering, which can be 5 milliseconds, for example.
[0026] The tamperer is arranged to change the message according to predetermined data. Here, the message can be assembled from individual fragments and can then be changed on the entire message. Before sending, the message is divided into fragments. The division can take place in the tamperer or in the transmitter of the test system. Here, the number of fragments can be changed compared to the number of received fragments. It is possible that some or all fragments are not changed, that is, some or all fragments of the message that pass through the tamperer and are then sent again by the transmitter are not changed. At present, the fragments that pass through the tamperer are called changed, because the fragments belong to the changed message, that is, to the changed message, because the message has passed through the tamperer.
[0027] Such manipulation can increase, keep the same or reduce the number of fragments. The tamperer is implemented, for example, by a processor.
[0028] The transmitter is a transmission device of the test system, so that the changed message is divided into fragments and sent to the control device in such a way that the changed fragments are sent according to the first mark. Sending according to the first mark means: sending the fragments in such an order that the changed first fragment is sent at the beginning of the sending time and the changed last fragment is sent at the end of the sending time, and the remaining changed fragments are distributed, especially evenly distributed, on the sending time. The transmitter can be, for example, a suitable logic device or processor with a corresponding program and a bus controller or a transmitting device for a point-to-point interface. Wireless transmission is also possible. The message is therefore fragmented again for the transmitter, for example (if this has not been done by a tamperer) and the fragments are classified according to the first mark before sending. For this purpose, the transmitter can have a sending buffer, in which the message is classified according to the first mark and provided for sending.
[0029] The device designed to divide the at least one message into fragments and transmit it to a receiver of the test device can be, for example, a computer, which is designed outside the test system and is connected to a memory in which the at least one message is stored. Any type of electronic memory is possible as a memory. Alternatively, it is possible that the device is part of the test system and transmits the message to a receiver in the test system in this way. The memory can then also be part of the test system.
[0030] The same applies to the method for testing a control device using a test system and at least one message.
[0031] In a further development of the test system, the receiver is additionally configured to receive a further message, wherein the further message also has a corresponding first identifier and a second identifier. Here, the buffer is configured to store the further message according to the first identifier and the second identifier of the further message. Furthermore, the transmitter is configured to transmit the further message to the control device according to its corresponding first identifier.
[0032] In a further development of the test system, the tamper is configured to change the number of fragments according to data. In a further development of the method, the number of fragments is changed according to data by the tamper. This occurs, for example, by tampering with a message according to the data, which then results in a change in the number of fragments of the message.
[0033] Furthermore, it can be provided that the start of the transmission time is dependent on the first identifier of the first fragment and the end of the transmission time is dependent on the first identifier of the last fragment.
[0034] In a further development, the test system has an interface, wherein the tamper is connected to the interface and is designed to receive data provided by the interface. For example, a user intervention can then be implemented via the interface in order to supply the tamper with data in order to generate a certain state by the tamper. Thus, the message can be changed in such a way that, for example, a certain situation, in particular a certain driving situation, is simulated.
[0035] In a further development, it is provided that the receiver is configured to receive the at least one message divided into fragments from a device. The receiver is therefore configured according to such a transmission format so that the received data can be correctly received and processed. The transmission format can be Ethernet. The device is particularly configured to provide a second mark for the fragments of the message. In particular, the device can access messages stored in a memory, which have been stored in the memory in fragments with a first mark. The device can then add a second mark to the message fragments with the first mark, which second mark can include, for example, the first mark of the first fragment. The messages stored in the memory in fragments with the first mark can, for example, originate from one or more records of test drives.
[0036] In a further development, the device is designed for software, which is configured to access a memory and read messages stored in the memory. Optionally, the test system can have a device and / or a memory. In the memory, fragments of messages can already be stored. The stored fragments of messages can, for example, originate from a record of a test drive or a simulated test drive. In addition, the device can be configured to assign a second mark to the fragments.
[0037] By sending a modified message divided into fragments to the control device, it is possible to simulate for the control device that the control device is on a test drive. This makes it possible, for example, to test the functionality of the control device. The fragmentation of the message sent by the test system then follows the same rules with regard to the transmission format, for example, the communication protocol, as the fragmentation of the message received by the device. The transmission format may be Ethernet.
[0038] Optionally, the device may have a divider, which is configured to divide the at least one message into fragments according to the data size of the at least one message and to provide a first and a second flag. It is also possible that the message is equal to or smaller than the specified data size of the fragment and thus only a single fragment may exist.
[0039] As shown, the first marker or the second marker may have a corresponding time stamp or be provided with such a time stamp.
[0040] In addition, it is provided that the second identifier has the first time stamp of the first fragment of the at least one message. Thus, the same date, for example the same data content (which is used in the first time stamp in the first fragment), can also be used for the second identifiers of all fragments. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Various embodiments are shown in the drawings and are further explained in the following description. In the drawings:
[0042] Figure 1 A first block diagram illustrating one embodiment of a test system having connected components;
[0043] Figure 2 A second block diagram illustrating another embodiment of a test system having connected components;
[0044] Figure 3 A method flow chart is shown;
[0045] Figure 4 showing a first table;
[0046] Figure 5 showing a second table;
[0047] Figure 6 showing a third table; and
[0048] Figure 7 A fourth table is shown. DETAILED DESCRIPTION
[0049] Figure 1The block diagram shows an exemplary embodiment of a test system TA with connected components, namely a device E connected to a memory S, and a control device DUT. Furthermore, data are received from the outside via an interface IF, based on which the tampering device M may change or tamper with the message.
[0050] The receiver RX of the test system TA receives the fragments TP1-TP5 of the message, which are transmitted from the device E to the receiver RX. In addition to the fragments TP1-TP5 of the message, another message SOME / IP event is also transmitted. After receiving the fragments TP1-TP5 and the other message SOME / IP event, these data are stored in the buffer B. For this purpose, the first mark Z1 and the second mark Z2 are applied. Subsequently, the data of the message stored in the buffer B are changed in the tampering device M according to the data received via the interface IF, for example, additional fragments are generated. It is possible that the data indicates that no actual changes are made to the fragments. Moreover, the fragments TP1'-TP9' of the message changed by tampering also have the first mark Z1 and the second mark Z2.
[0051] The falsification of the message can occur in particular in such a way that the message content of the message reconstructed from the fragments is changed. From the changed message content, a changed length of the changed message can then be generated, which is then divided into the changed fragments.
[0052] In an alternative embodiment, the changes are made directly on the fragments by the tampering device.
[0053] The fragments TP1'-TP9' of the modified message are then sent to the control device DUT by the transmitter TX. The sending time is defined by the first fragment TP1' and the last fragment TP9', and the remaining fragments TP2'-TP8' of the message are distributed, for example evenly, over the sending time. The further message SOME / IP event is sent exactly at its time position indicated by the first marker Z1, in order to enable a possible authenticity-reliable playback of the test recording.
[0054] Figure 2 A second block diagram of a test system TA according to the invention is shown, in which the device E and the memory S are part of the test system TA. The remaining components are numbered identically and implemented in the same manner. Figure 1 The components shown can all be designed for a corresponding software module, for which the test system TA then has one or more computers in order to be able to run the software module.
[0055] Figure 3The flow chart of the method according to the present application is shown. In method step 300, fragments TP1-TP5 of a message are received by a receiver RX. Each fragment is then stored in a buffer B according to a second mark Z2 in method step 301, wherein the second mark is used to achieve that the fragments TP1-TP5 are stored in the buffer B at almost the same time. In method step 302, the aggregated message is tampered with by a tamperer M according to the data provided via the interface IF. The changed and re-fragmented message is then sent in a classified manner according to the first mark Z1 and the second mark Z2 in method step 303, wherein the other message SOME / IP event is sent at the same position as it is also received, that is, it is sent according to the first mark Z1. The first fragment TP1' of the changed message and the last fragment TP9' of the changed message are sent according to their first mark Z1, and the remaining fragments TP2'-TP8' of the changed message are distributed in the middle to the remaining sending time. In particular, uniform distribution is possible here.
[0056] Figure 4 An exemplary message is shown in a table. Here, five fragments of the message are indicated in the first column with TP1 to TP5. Their temporal sequence is marked by the first time stamp Z1. TP1 is therefore the first fragment received and sent, and TP5 is the last fragment. In addition, a further message SOME / IP event is also listed here. The further message SOME / IP event currently has a time stamp Z1 of 3.5, which is located between fragments TP3 and TP4.
[0057] exist Figure 5 The fragments TP1 to TP5 are read into the message in sequence, and the further message SOME / IP event is added at the end. This can be achieved, for example, by a second marker Z2 in the form of a second timestamp. As a result, the fragments TP4 and TP5 can be analyzed before the further message SOME / IP event. However, it is not possible to analyze TP4 and TP5 before the further message SOME / IP event with the first timestamp Z1, because all fragments TP1 to TP5 must be present for a tampering of the message. Therefore, according to the present application, a second marker Z2 is introduced, which is composed of Figure 6 Result. TP1 to TP5 now have the value 1 as Z2, which indicates that these fragments TP1 to TP5 should be received at the receiver RX at the same time Z1 as far as possible. These fragments are thus recognized as belonging to the whole and are analyzed before the other message SOME / IP event. The SOME / IP event as a further message also has 3.5 as a second time stamp, so that the further message can be easily distinguished from the fragments.
[0058] Figure 7Now, a changed number of fragments TP1'-TP9' is shown, wherein the number of fragments TP1'-TP9' for the changed message to be sent is increased to nine by the tampering of the message by the tamperer M. It is important that the first fragment TP1' and the last fragment TP9' now follow the original sending time, so that the total sending time remains unchanged. Moreover, the further message SOME / IP event is sent at the same initial time.
[0059] The method can be described in summary as follows: the second identifier Z2 is used for receiving messages and for providing them in the buffer B, and the first identifier is used (after manipulation) for sending messages to the control device DUT.
[0060] Reference numerals list
[0061] S Memory
[0062] E-Device
[0063] RX Receiver
[0064] TX Transmitter
[0065] B Buffer
[0066] TA Test Systems
[0067] M Tamper
[0068] DUT Control Device
[0069] IF Interface
[0070] Additional news on SOME / IP events
[0071] Z1 first timestamp
[0072] Z2 Second timestamp
[0073] TP1-TP5 fragments
[0074] TP1'-TP9' altered fragments
[0075] 300-303 Methods and Steps
Claims
1. A test system (TA) for testing a device under test (DUT) using at least one message, the test system comprising: a receiver (RX) arranged to receive the message divided into fragments (TP1-TP5), in, The corresponding fragments (TP1-TP5) have a first mark (Z1) and a second mark (Z2), wherein the first mark marks the time sequence of the corresponding fragments (TP1-TP5) in the message; a buffer (B) which is designed to store the fragments (TP1-TP5) according to a first flag (Z1) and a second flag (Z2), wherein the second flag (Z2) causes all fragments (TP1-TP5) of the message to be recorded in the buffer as simultaneously as possible; a tamperer (M) configured to change the message according to predetermined data; A transmitter (TX) is designed to send a modified message having at least one fragment (TP1'-TP9') to a control device (DUT), so that the fragments (TP1'-TP9') of the modified message are sent according to a first marker (Z1), so that the first fragment (TP1') of the modified message is sent at the beginning of the sending time and the last fragment (TP9') of the modified message is sent at the end of the sending time, while the remaining fragments (TP2'-TP8') of the modified message are distributed, in particular evenly distributed, over the sending time.
2. The test system (TA) according to claim 1, in, The receiver (RX) is additionally designed to receive a further message (SOME / IP event), wherein the further message (SOME / IP event) has a corresponding first identifier (Z1) and a second identifier (Z2), wherein the buffer (B) is designed to store the further message (SOME / IP event) according to its corresponding first identifier (Z1) and second identifier (Z2), wherein the transmitter (TX) is designed to send the further message (SOME / IP event) according to its corresponding first identifier (Z1) to a control device (DUT).
3. The test system (TA) according to claim 1 or 2, in, The tamper device (M) is designed to change the number of the fragments (TP1-TP5).
4. The test system (TA) according to claim 1, in, The start of the transmission time is determined by the first marker (Z1) of the first fragment (TP1), and the end of the transmission time is determined by the first marker (Z1) of the last fragment (TP5).
5. The test system (TA) according to claim 1 , comprising an interface (IF), in, The tampering device (M) is connected to the interface (IF) and is designed to receive data provided by the interface.
6. The test system (TA) according to claim 1, in, The receiver (RX) is designed to receive the at least one message divided into fragments (TP1-TP5) from the device (E).
7. The test system (TA) according to claim 6, in, The device (E) is designed for software which is provided for accessing a memory (S) and reading messages stored in the memory (S), and the test system has the device (E) and / or the memory (S).
8. The test system according to claim 6 or 7, in, The device (E) is designed to assign a second identifier (Z2) to the fragments (TP1-TP5).
9. A device (E) designed to send at least one message divided into fragments (TP1-TP5) to a receiver (RX) of a test system (TA) according to claim 6, in, The device is connected to a memory (S), in which the at least one message is stored.
10. The device according to claim 9, in, The device is designed to assign a second identifier (Z1, Z2) to each fragment (TP1-TP5).
11. A method for testing a control device (DUT) with a test system (TA) and with at least one message, the method comprising: Receive the message divided into fragments (TP1-TP5), in, The corresponding fragments (TP1-TP5) have a first mark (Z1) and a second mark (Z2), wherein the first mark marks the time sequence of the corresponding fragments (TP1-TP5) of the message; storing the fragments (TP1-TP5) in a buffer (B) according to a first flag (Z1) and a second flag (Z2), wherein the second flag (Z2) causes: all fragments (TP1-TP5) to be recorded in the buffer as simultaneously as possible; Changing messages based on predetermined data; A modified message having at least one fragment (TP1'-TP9') is sent to a control device (DUT) such that the fragments (TP1'-TP9') of the modified message are sent according to a first marker (Z1) so that the first fragment (TP1') of the modified message is sent at the beginning of a sending time and the last fragment (TP9') of the modified message is sent at the end of the sending time, while the remaining fragments (TP2'-TP8') of the modified message are distributed, in particular evenly distributed, over the sending time.
12. The method according to claim 11, further comprising: receiving a further message (SOME / IP) for said at least one message, in, The further message (SOME / IP) has a corresponding first identifier (Z1) and a second identifier (Z2), wherein the buffer stores the further message (SOME / IP) according to its corresponding first identifier (Z1) and second identifier (Z2), and the transmitter sends the further message (SOME / IP) to the control device according to its corresponding first identifier (Z1).
13. The method according to claim 11 or 12, in, The tamper changes the number of fragments (TP1-TP5).
14. The method according to any one of claims 11 to 13, in, Corresponding time stamps (Z1, Z2) are used as the first identifier (Z1) and the second identifier (Z2).
15. The method according to claim 14, in, The second marker (Z2) has a first time stamp (Z1) of a first fragment (TP1) of the at least one message.
