The present invention relates to an automotive control system or a device for relaying data on a network in an automotive control system.
Many automotive control system in recent years include an ECU (Electronic Control Unit) for operating an automotive electronic control device and a in-vehicle LAN (Local Area Network) that enables communication among a plurality of ECUs. One of such on-board LANs is a widely used network called CAN (Controller Area Network).
However, as an automotive system to reduce environmental burden becomes highly sophisticated, the communication bandwidth available is running low. In such situations, FlexRay (registered trademark), a LAN with a greater communication capacity than the CAN, is being used. The FlexRay has about 10 times the transmission rate of the CAN and thus can transmit a large volume of data.
The automotive control system includes a plurality of networks, such as CAN, an event-triggered network that transmits data non-periodically, and FlexRay, a time-triggered network that transmits data periodically, and is a processing-integrated control system that makes a plurality of ECUs cooperate with one another through the network in executing processing.
For data communication through such networks, gateway ECUs that relay data among the plurality of networks, i.e., gateway control units, are needed.
In a safety critical system that demands a high standard of safety, such as an automotive control system, there needs to be executed error notification processing that involves detecting an abnormal state of the car resulting from ECU failures or the like and stopping those functions that will affect the automotive control. Another processing that needs to be done is one that logs abnormal states of the vehicle for later analysis of details of anomaly during a maintenance service. Particularly, in order to prevent the integrated control system from performing erroneous control based on old control information (i.e., data to be used for control) that has failed to be updated for some time because of an ECU fault, there is a growing demand for a capability of detecting old control information that has failed to be updated for more than a predetermined duration.
To meet this demand, a method has been proposed (e.g., JP-A-2007-38782) which, in handling data in one ECU, involves storing data acquisition time information for detection of old data and, during a calculation using the time-tagged data, comparing the current time held by the ECU with the data acquisition time to prevent the old control information from being used.
Another method has also been proposed (e.g., JP-A-2007-238044 corresponding to U.S. Patent Publication No. 2007/213888) which, when control data is received, tags it with the time information and, when that data is actually used, compares the current time of the node with the time information of the data to confirm the data is valid, thus preventing the use of old control data.
If the methods described above are to be applied to the automotive integrated control system, significant changes need to be made to the system, such as adding processing for tagging data with a data acquisition time to the ECU that performs the automotive control.
The present invention has been accomplished in consideration of these problems and it is an object of this invention to improve gateway control units that relay data in a network of the automotive integrated control system so that validity of control information obtained during a predetermined period of time from sensors and by control operations can be verified.
To achieve the above objective, this invention provides a control unit for gateway used in an automotive control system, wherein the automotive control system has a plurality of control units and a network connecting the plurality of control units and compares time information attached to a plurality of pieces of control information flowing on the network to verify a validity of the plurality of pieces of control information, the control unit for gateway comprising at least one of two units: a time tagging unit which receives a plurality of pieces of control information transmitted from one of the plurality of control units and tags them with time information; and a time information comparison unit which makes comparison between a plurality of pieces of the time information that the time tagging unit has attached to the plurality of pieces of control information received.
As described above, the automotive integrated control system according to this invention can verify the validity of control information while limiting changes to the system.
Other objects, features and advantages of the invention will become apparent from the following description of the embodiments of the invention taken in conjunction with the accompanying drawings.
In the handling of data within one ECU (control unit) aboard a car, the method of comparing the data acquisition time with the current time held by the ECU can be applied as is to the detection of old control information within the single ECU. However, when the control information is transmitted through network and used by other ECU than that which has acquired the control information, as will occur in an automotive integrated control system, the validity of the control information, for example, in terms of whether it is old or new or whether it has any error cannot be determined.
In the automotive integrated control system, the method of verifying the validity of control information by using the time that has passed from the control information acquisition time has a problem that the time of the ECU, which has attached the time information to the control information, may not be synchronized with the current time held by other ECU that uses the control information. As a result, comparison cannot be made between the time information tagged to the control information and the current time of other ECU. Furthermore, if a new function of tagging the control information acquisition time is added to each ECU, when, on a network not including time information, an ECU sending the control information is connected with an ECU that relays data to other network, such as FlexRay, the time information additionally flows over the network where it is not supposed to be transmitted, creating an additional communication traffic. In addition, this also necessitates the redesigning of a system that has already been developed, including the addition of a time information tagging function to each ECU.
In a system that controls cars by communicating data among a plurality of ECUs, this invention focuses its attention, not on verifying the validity of control information based on the time when the control information is acquired at each ECU, but on adding a time tagging function to a control unit for gateway and detecting errors in the system based on the time when the control unit for gateway has received the control information from the ECU and relayed it.
Embodiments of this invention will be described in detail by referring to the accompanying drawings.
A first embodiment of the automotive control system and ECU according to this invention will be explained in detail by referring to the drawings.
The engine control ECU 11 belonging to the subsystem 1 not only performs the engine control but also calculates a vehicle speed and sends the vehicle speed information to the collision prediction calculation ECU 32. Therefore, the engine control ECU 11 has in its memory a vehicle speed calculation unit 111 and a communication unit 112 for sending the result calculated by the vehicle speed calculation unit 111 to the CAN 10. The processor reads data from these units for further processing.
The gateway ECU 12, as described above, relays the vehicle speed information received from the CAN 10 to the FlexRay 4. For this purpose, the gateway ECU 12 has a data relaying unit 121 in its memory, as do other ECUs. As explained later, the gateway ECU 12 also has a time tagging unit 122, a time comparison unit 123, a timer synchronization unit 124 and a communication unit 125 that receives the vehicle speed information from the CAN 10 and transmits it to the FlexRay 4. The gateway ECU can be simplified from the construction of the commonly used ECU shown in
The front car distance sensor mounting ECU 21 belonging to the subsystem 2 calculates a distance to a car in front and sends the front car distance information to the collision prediction calculation ECU 32. For this purpose, the front car distance sensor mounting ECU 21 has a front car distance calculation unit 211 and a communication unit 212 that puts the front car distance information on the CAN 20.
Similarly, the gateway ECU 22 relays the front car distance information received from the CAN 20 to the FlexRay 4. For this purpose, the gateway ECU 22 has a data relaying unit 221. It also has a time tagging unit 222, a time comparison unit 223, a timer synchronization unit 224 and a communication unit 225 that receives the front car distance information from the CAN 20 and sends it to the FlexRay 4.
The gateway ECU 31 belonging to the adaptive cruise control system 3 relays the vehicle speed information and the front car distance information received from the FlexRay 4 to the CAN 30. For this purpose, the gateway ECU 31 has a data relaying unit 311, a time tagging unit 312, a time comparison unit 313, a timer synchronization unit 314 and a communication unit 315 that receives the vehicle speed information and the front car distance information from the FlexRay 4 and puts them on the CAN 30.
The collision prediction calculation ECU 32 receives the vehicle speed information and the front car distance information and predicts a possible collision. For this purpose, the collision prediction calculation ECU 32 has a collision prediction unit 321, that makes a collision prediction from the vehicle speed information and the front car distance information, and a communication unit 322 that receives data from the CAN 30.
When the system is working normally, the collision prediction by the collision prediction calculation ECU 32 uses the vehicle speed information and the front car distance information acquired within a predetermined time of each other. If these two pieces of information are not acquired within a predetermined time of each other, the relevance between the two can no longer be assured and they are considered not to contribute to the prediction of collision.
In this embodiment, since the time tagging unit 312 in the gateway ECU 31 is not used, the time tagging unit may not be provided. This can reduce the amount of memory used in the gateway ECU 31. On the other hand, if the time tagging unit is provided, as in other gateway ECUs, the same specifications as other gateway ECUs can be used, offering advantages such as interchangeability among gateway ECUs and a reduction in the number of development steps. Also in this embodiment, for the sake of simplicity, the transmission of control information from the adaptive cruise control system 3 to the subsystems 1, 2 is not shown, the use of the same specifications for the gateway ECUs allows the system to transmit the control information from the adaptive cruise control system 3 to the subsystems 1, 2 if so required.
Further, in this embodiment, although the gateway ECU is constructed mainly to relay data, it may also be given other functions such as engine control, as shown in
As with the gateway ECU 12, the gateway ECU 22 calls up timer synchronization processing 2240 in step with the communication cycle 41 of the FlexRay 4. The timer synchronization processing 2240 updates a value of a software timer 226. The gateway ECU 31, as with the gateway ECU 12 and gateway ECU 22, calls up timer synchronization processing 3140 in step with the communication cycle 41 of the FlexRay 4. The timer synchronization processing 3140 updates a value of a software timer 316. As described above, among the gateway control units connected to at least one time-triggered network, the reference of time for signals flowing on the network is determined and then timers are adjusted based on the time reference to synchronize timers in the entire system. This allows the gateway control units connected to the network to easily synchronize their timers without having to transmit a synchronization signal on the network. Since the synchronization signal does not have to be sent over the network, this synchronization procedure offers an advantage of reducing traffic on the network and overhead on the gateway control units. It also helps reduce changes that need to be made to the system already developed.
There are methods for synchronizing the timers without using the communication cycle of the FlexRay. One such method conceivable involves sending a timer synchronization signal from each gateway control unit to the FlexRay, as shown in
The method of synchronizing the timers based on the communication cycle of the FlexRay in this embodiment, when compared with the above method, has an advantage of lowering the communication traffic in the FlexRay by the communication data volume used in the timer synchronization signal and thus eliminating the overhead in each gateway ECU of sending and receiving the synchronization signal. Furthermore, since, between the ECU sending the timer synchronization signal and the ECU receiving it, there is a difference in time equal to the communication processing time plus the transmission time over the FlexRay, it is difficult to perform the timer synchronization among a plurality of ECUs using the timer synchronization signal. However, if one of the gateway control units connected to the same network sends the synchronization reference signal to the network and the remaining gateway control units adjust their timers according to the reference signal received, the timer synchronization among the gateway control units can be performed irrespective of the kind of network connecting the gateway control units.
The software timers 126, 226, 316 are preferably set to have the same initial values. For example, the initial values of the software timers 126, 226, 316 may be set to 0.
As described above, since in this embodiment the timers are synchronized among the gateway control units that tag the control information with the time information, these gateway control units can tag the common time information.
Step 3135 is executed when the difference between the two pieces of control information is less than the time length threshold. Step 3135 removes the time information from the control information and moves to step 3136. Although in this embodiment the gateway ECU 31 removes the time information from the control information, the time information may not be removed. This may be selected according to the kind of destination network to which the data is relayed. For example, if the destination network is an even-driven network, the time information may preferably be removed in consideration of the communication traffic in the destination network. If an ECU that receives the control information and the time information from the CAN 30 is a collision prediction calculation ECU 4001 that has a time comparison unit similar to that of the gateway ECU, as shown in
Step 3136 is the data relaying processing 3110 that determines the destination based on the two pieces of control information. The processing then moves to step 3137. Step 3137 is the communication processing 3150 and sends the control information to the CAN 30. The data relaying processing is then exited. As described above, a system error is detected by comparing the time information of the control information.
An example of data flowing in the network of this embodiment is shown in
ID data 52 is used by the FlexRay to identify the data field relayed from the CAN (e.g., CAN ID+DLC, system data ID, etc.). The data field 53 is the one relayed from the CAN and includes the control information.
Time data 51 is the time information tagged by the time tagging processing 1220, i.e., the time at which the relay data was received or the time at which it was relayed to the FlexRay. The time data 51 is paired with the control information contained in the relay data. The reference time used is the time synchronous among the gate ECUs connected to the FlexRay, such as the time synchronized by the timer synchronization processing explained in
In this embodiment, since at least two pieces of time information tagged to the control information are compared in the gateway control unit, the validity of these control information can be determined. Further, since the time information tagged to the control information are compared, a system error can be detected even when an ECU that has tagged the time information and an ECU that compares the time information differ. Furthermore, since in this embodiment the gateway control unit, when it receives the control information from a first network (e.g., CAN), sends to a second network (e.g., FlexRay) the control information and the time information on control information reception, this method offers an advantage of producing smaller traffic on the network than when the control information and the time information are transmitted over the first network.
An example of an automotive control system having the similar processing to those of embodiment 1 but differing in configuration from embodiment 1 is shown in
The automotive control system of
Unlike embodiment 1, this embodiment has the same gateway ECU relay the vehicle speed information and the front car distance information. The gateway ECU 5023 tags the vehicle speed information and the front car distance information received from the CAN 5020 with time information by the time tagging unit 5232 and then sends them to the FlexRay 5003 using the communication unit 5233. The gateway ECU 5012 receives the vehicle speed information and the front car distance information, both containing time information, by using the communication unit 5123 and then compares the time information of these control information by the time comparison unit 5122. If, as a result of the comparison, it is decided that these control information are not erroneous, the gateway ECU 5012 sends the time-tagged vehicle speed information and front car distance information to the CAN 5010 using the communication unit 5123. The collision prediction calculation ECU 5011 receives the vehicle speed information and the front car distance information, both containing time information, by using the communication unit 5113 and then compares the time information of these control information by the time comparison unit 5112. If the comparison finds that these control information are not erroneous, they are used by the collision prediction unit 5111.
In this embodiment, unlike embodiment 1, since the same gateway ECU tags the two pieces of control information with time information, the gateway ECU has no timer synchronization unit. Because the gateway ECU 5012 and the gateway ECU 5023 do not perform the timer synchronization operation, their overhead can be reduced.
Further, in this embodiment since the time information attached to the control information are subjected to the time comparison processing twice by the time comparison units 5112 and 5122, the range in which system errors can be detected is widened, making the system errors more easily detectable.
An example of an automotive control system having the similar processing to those of embodiment 1, 2 but differing in configuration from embodiment 1, 2 is shown in
The automotive control system of
Unlike embodiment 1, 2, this embodiment has the engine control ECU 6001, the front car distance sensor mounting ECU 6002 and the collision prediction calculation ECU 6004 installed on the same network. The engine control ECU 6001 sends the vehicle speed information calculated by the vehicle speed calculation unit 6011 to the CAN 6005 by using the communication unit 6012. The front car distance sensor mounting ECU 6002 sends the front car distance information calculated by the front car distance calculation unit 6021 to the CAN 6005. The gateway ECU 6003 receives the vehicle speed information and the front car distance information by the communication unit 6033 and then tags these control information with time information by the time tagging unit 6032. Then the data relaying unit 6031 in the gateway ECU 6003 determines a destination according to the control information, followed by the communication unit 6033 sending the control information to the CAN 6005. The collision prediction calculation ECU 6004 receives the time-tagged vehicle speed information and front car distance information through the communication unit 6043 and then compares the time information by the time comparison unit 6042. The time comparison unit 6042 decides that the control information are abnormal when the difference between these time information is in excess of a predetermined value.
In this embodiment, the gateway ECU 6003 determines the destinations of the control information and all other ECUs send their control information to the gateway ECU 6003. By concentrating the destination determination operations in one ECU, the destinations of the control information can be managed easily. Since the control information is collected from ECUs and tagged with the time at which they are received, the traffic on the CAN 6005 does not increase.
As explained above by referring to a plurality of embodiments, in this invention the gateway control unit is provided with a function of tagging the received control information with time information and sending it again on the network. Then another gateway control unit that has received the time-tagged control information compares the time information of the paired control information to verify the validity of the data.
As a result, even if control processing in an integrated control system stops due to an ECU failure and the control information fails to be transmitted, the gateway control unit can verify the validity of the control information. According to embodiment 1 and 2, no time information is transmitted over the network that connects a control information sending ECU and a gateway control unit and which does not include time information. Therefore, with this invention any system anomaly can be detected without changing the traffic on the network between the ECU, that transmits control information not containing time information, and the gateway control unit.
Further, if this invention is applied to an already developed system that does not send time information over a network, since no time information flows over the network connecting an ECU, that transmits control information, and a gateway control unit, a system error can be detected without having to redesign the ECU or communication data transmitted over the network.
Comparison is made between time information attached to two pieces of control information and, from the resultant difference, the validity of the control information is determined, as performed by the time comparison unit 313 of
It should be further understood by those skilled in the art that although the foregoing description has been made on embodiments of the invention, the invention is not limited thereto and various changes and modifications may be made without departing from the spirit of the invention and the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2009-293709 | Dec 2009 | JP | national |