1. Field of the Invention
The present invention pertains to a method of updating maximum or minimum values of measurement data of various types of physical quantities resulting from sensors or the like and particularly relates to shortening processing time and curtailing data quantities required for updating.
2. Description of the Related Art
Conventionally, in operation control of automobiles such as, for example, fuel injection control, measurement values of various types of physical quantities, such as engine coolant temperature, fuel temperature and the temperature of a diesel particulate filter (hereinafter called “DPF”), are directly and indirectly used.
Incidentally, in automobiles of recent years, electronic control devices for electronically controlling the operation thereof are installed, and there are many electronic control devices configured such that not only operation control for vehicle travel is performed, but also, when some kind of problem arises in the vehicle operation, operation analysis thereof is performed.
For example, sometimes electronic control devices are configured such that, in regard to the engine coolant temperature, the fuel temperature and the DPF temperature discussed above, judgment processing of whether or not abnormal overheating had occurred in the past at respective temperature measurement places is executed by the electronic control device as one operation analysis. For that reason, electronic control devices are configured such that, in regard to these temperatures, for example, at each predetermined period, a maximum temperature within that period is acquired, the electronic control device compares that maximum temperature with a maximum temperature that has been acquired most recently, and when that maximum temperature exceeds the maximum temperature that has been acquired most recently, that maximum temperature is stored in a nonvolatile storage element or the like as a new maximum temperature, so that when the electronic control device executes operation analysis, those stored data are used in judgment processing.
When an electronic control device periodically updates and stores this maximum temperature, a situation where abnormal data caused by a temporary problem in the sensor, such as, for example, a temporary disconnection, a short, or noise, are erroneously used as update values must be avoided as much as possible.
As measures to avoid the acquisition of abnormal data, for example, a technique that uses a so-called mean value of data and a technique that uses a median value of data have conventionally been known as disclosed, for example, in Japanese Paten No. 2,852,059.
Moreover, a technique configured to calculate estimate values of desired physical quantities by arithmetic processing in addition to measurement data and to be able to use those in operation control and the like has been proposed as disclosed, for example, in Japanese Paten No. 3,849,357.
However, in the methods that use a mean value or a median value of measurement values, there are the problems that a large quantity of past data are required, so a large storage area for saving data, or in other words a large-capacity storage element, is required, which not only incurs an increase in the cost of the device but also requires more time for data processing, incurs an increase in the computational load of a microcomputer that performs arithmetic processing, and can affect the processing capability of operation control overall.
The present invention has been made in view of the above-described circumstances and provides a data update processing method that can reliably perform updating of maximum values or minimum values of measurement data with a simple procedure without incurring an increase in the computational load of an arithmetic processing element or an arithmetic processing device such as a microcomputer.
It is another object of the present invention to provide a vehicle operation control device that can reliably perform updating of maximum values or minimum values of temperature data with a simple configuration without incurring an increase in the computational load of an arithmetic processing element such as a microcomputer.
According to a first aspect of the present invention, there is provided a data update processing method for updating maximum values of data each time predetermined pieces of data is acquired, the maximum value update processing repeats comparing, each time data are acquired, a value of that acquired data and a most recent minimum value and setting the smaller value as a new minimum value, and, each time updating of this minimum value is repeated the predetermined number, comparing the minimum value and the maximum value at that point in time and setting the larger value as a new maximum value, to perform maximum value updating.
According to a second aspect of the present invention, there is provided a data update processing method for updating minimum values of data each time predetermined pieces of data is acquired, the minimum value update processing repeats comparing, each time data are acquired, a value of that acquired data and a most recent maximum value and setting the larger value as a new maximum value, and, each time updating of this maximum value is repeated the predetermined number, comparing the minimum value at that point in time and the maximum value and setting the smaller value as a new minimum value, to perform minimum value updating.
According to a third aspect of the present invention, there is provided a vehicle operation control device equipped with an electronic control unit configured such that it can sequentially update a maximum value of acquired temperature data, store that update value in a nonvolatile storage element, and supply that stored maximum value for operation control of a vehicle as needed, wherein
the electronic control unit is configured to compare, each time temperature data are acquired, a value of the acquired temperature data and a minimum value of most recent temperature data and set the smaller value as a new minimum value, and, each time updating of this minimum value is repeated a predetermined number, compare the minimum value at that point in time and the maximum value, set the larger value as a new maximum value and write the new maximum value in the nonvolatile storage element.
An embodiment of the present invention will be described below with reference to
It will be noted that the members and arrangements described below are not intended to limit the present invention and can be variously modified within the scope of the gist of the present invention.
First, one configural example of a device to which a maximum value/minimum value update processing method of the embodiment of the present invention is applied will be described with reference to
The device shown in
That is, the vehicle operation control device in
The electronic control unit 1 is equipped with a microcomputer (not shown) having, for example, a publicly-known/well-known configuration, volatile storage elements (not shown) such as a RAM and a ROM, and a nonvolatile storage element (written as “EEPROM” in
The output signals of the various types of analog sensors are inputted to the electronic control unit 1 via the analog/digital converter 2 for operation control and failure analysis of the fuel injection pump 3.
In the vehicle operation control device in the configural example of
In
When processing is started, first, update processing of a maximum value of the engine coolant temperature is performed (see step S100 in
It will be noted that the order in which each of the aforementioned temperatures is updated is only one example and is naturally not limited to the order discussed above.
Update processing of all of these maximum values is configured such that later-discussed data update processing is respectively executed and respective maximum values are rewritten at predetermined periods in storage areas respectively ensured within the nonvolatile storage element 4.
It will be noted that, after the processing of step S300, the flow returns to an unillustrated main routine, and when, for example, failure analysis processing is executed, maximum values are updated by the update processing discussed above such that the maximum values stored in the nonvolatile storage element 4 are adequately used.
In
The data update processing procedure shown in
To describe this specifically below, when processing is started, first, it is determined whether or not initialization has been completed (see step S402 in
In step S404, a maximum value of most recent temperature data stored in the nonvolatile storage element 4 is written to a maximum value-use variable Xmax, a positive maximum value is written to a minimum value-use variable Xmin, and a number-of-times-of-processing-use variable n is initialized to zero.
Here, in
Further, in step S404, a positive infinity is written as the positive maximum value to the minimum value-use variable Xmin, but in actuality, a maximum numerical value that is written in a register (not shown) within the electronic control unit 1 that is used in order to temporarily store data of the minimum value-use variable Xmin is written. That is, assuming that the register has a total 8-bit capacity, the writable maximum numerical value becomes 28−1=255.
Next, in step S406, it is determined whether or not a value of the number-of-times-of-processing-use variable n is below a predetermined number of times of processing Ns, and when it is determined that the value of the number-of-times-of-processing-use variable n is below the predetermined number of times of processing Ns (in the case of YES), it is still necessary to continue to execute processing, so a measurement value Xk of the temperature being acquired at this point in time and the value of the minimum value-use variable Xmin are compared, and the smaller value is written to the minimum value-use variable Xmin and is set as a new variable value. Further, at the same time, the sum of “1” and the number-of-times-of-processing-use variable n at this point in time is set as a new value of the number-of-times-of-processing-use variable n.
Here, the predetermined number of times of processing Ns corresponds to the number of measurement values that are taken in until updating of the maximum value is performed, but it is not necessary for the predetermined number of times of processing Ns to be limited to a particular value; basically, the predetermined number of times of processing Ns can be arbitrarily set, but it is preferable to consider the speed at which the physical quantity that becomes the target of updating changes.
That is, for example, when temperature data are the target, it is not necessary for the value of the predetermined number of times of processing Ns to be set to that large of a numerical value when the temperature change is relatively gradual, but when temperature data that change from moment to moment within a comparatively short amount of time are the target, it is preferable to set the value of Ns to a relatively large numerical value. It will be noted that whatever value specifically is suitable will variously differ depending on the speed at which the target physical quantity changes, the precision of the update value that is needed, and frequency of updating, so it is preferable to determine the value by experiments and simulations based on those specific numerical values.
After the processing of step S408, the flow returns to the main routine and, after other necessary processing, the series of processing discussed above is again repeated. It will be noted that, in the embodiment of the present invention, the main routine is any of the engine coolant temperature maximum value update processing (step S100 in
In step S410, in correspondence to it having been determined that the value of the number-of-times-of-processing-use variable n is not below the predetermined number of times of processing Ns, in order to end the series of update processing, the value of the maximum value-use variable Xmax at this point in time and the value of the minimum value-use variable Xmin are compared and the value whose numerical value is larger is written to the maximum value-use variable Xmax, whereby maximum value updating is performed. Further, at the same time, the new value of the maximum value-use variable Xmax is written in a predetermined area in the nonvolatile storage element 4, the value of the minimum value-use variable Xmin is again set to the minimum value, the number-of-times-of-processing-use variable n is initialized to zero, the series of processing is ended, and the flow returns to the corresponding main routine as mentioned before.
In
First, in
Under this presupposition, first, in section sec=0 in the same drawing, the temperature data represented by the double-circle dot to which “4” has been added is a minimum value in that section and is set as a maximum value of the temperature data at the point in time when this section sec=0 ends (see the two-dotted chain line in
Next, in section sec=1, the temperature data represented by the double-circle dot to which “3” has been added is a minimum value in that section and is set as a maximum value of the temperature data at the point in time when this section sec=1 ends (see the two-dotted chain line in
Thereafter, in the same manner, the minimum value of the temperature data in each section of sec=2 to sec=4 is set as the maximum value of the temperature data, whereby maximum value updating is performed.
In this manner, by performing maximum value data updating on the basis of the data update processing method of the embodiment of the present invention, a situation where abnormal values that stand out such as indicated by the white arrows in
In
First, in
Further, in the case of this example, the predetermined number of times of processing Ns described in
Additionally, it will be assumed that a maximum value 30 is stored and saved in the nonvolatile storage element 4 at the point in time when processing starts.
Under this presupposition, when processing is started, the “30” that is stored and saved in the nonvolatile storage element 4 is written to the maximum value-use variable Xmax, a positive maximum value is written to the minimum value-use variable Xmin, and 0 is written to the number-of-times-of-processing-use variable n (see step S404 in
Next, at the point in time when N=2, for example, “10” is inputted as a measurement value Xk to the electronic control unit 1 via the analog/digital converter 2 as the engine cooling water value temperature detected by the coolant temperature sensor 5. At this point in time, n is less than Ns (see step S406 in
Next, at the point in time when N=3, assuming that Xk=20 has been inputted, n is still less than Ns (see step S406 in
Next, at the point in time when N=4, assuming that Xk=100 has been inputted, n is still less than Ns (see step S406 in
Moreover, at the point in time when N=5, assuming that Xk=40 has been inputted, n is still less than Ns (see step S406 in
Then, at the point in time when N=6, n<Ns is not established, so Xmax=30 and Xmin=10 are compared, the larger value of these, that is, “30”, is written anew as Xmax in the nonvolatile storage element 4, Xmin=00 is set and n=0 is set (see step S410 in
Then, the same processing is again repeated (see column N=7 to 11 in
Next, in section N=12 to 16, the processing shown in
Then, when this section ends, the processing of step S410 shown in
In this manner, in the data update processing method of the embodiment of the present invention, regardless of whether the data are positive or negative, even when abnormal values of the measurement values Xk such as at N=4 and N=14 in
The data update processing method discussed above is particularly suited for updating maximum values, but it can also be applied to updating minimum values by basically the same procedure by reversing the relationship between the maximum values and the minimum values in
In
First, it is determined whether or not initialization has been completed (see step S502 in
It will be noted that this initialization is as has been described in step S402 in
In step S504, a minimum value of the most recent temperature data stored in the nonvolatile storage element 4 is written to the minimum value-use variable Xmin, a negative maximum value is written to the maximum value-use variable Xmax, and the number-of-times-of-processing-use variable n is initialized to zero.
Here, in
Next, in step S506, it is determined whether or not the value of the number-of-times-of-processing-use variable n is below the predetermined number of times of processing Ns, and when it is determined that the value of the number-of-times-of-processing-use variable n is below the predetermined number of times of processing Ns (in the case of YES), it is still necessary to continue to execute updating of the maximum values, so a measurement value Xk of the temperature being acquired at this point in time and the value of the maximum value-use variable Xmax are compared, and the larger value is written to the maximum value-use variable Xmax. Further, at the same time, the sum of “1” and the number-of-times-of-processing-use variable n at this point in time is set as a new value of the number-of-times-of-processing-use variable n.
After the processing of step S508, the flow returns to the main routine and, after other necessary processing, the aforementioned series of processing is again repeated. It will be noted that, in the embodiment of the present invention, the main routine is any of the engine coolant temperature maximum value update processing (step S100 in
In step S510, in correspondence to it having been determined that the number-of-times-of-processing-use variable n is not below the predetermined number of times of processing Ns, in order to end the series of update processing, the value of the minimum value-use variable Xmin at this point in time and the value of the maximum value-use variable Xmax are compared and the value whose numerical value is smaller is written to the minimum value-use variable Xmin, whereby minimum value updating is performed. Further, at the same time, the new value of the minimum value-use variable Xmin is written in a predetermined area in the nonvolatile storage element 4, a negative maximum value is written to the maximum value-use variable Xmax, the number-of-times-of-processing-use variable n is initialized to zero, the series of processing is ended, and the flow returns to the corresponding main routine as mentioned before.
It will be noted that, in the embodiment discussed above, the electronic control unit 1 has been described as being configured to be capable of implementing just one of either updating maximum values by the data update processing shown in
That is, for example, a processing selection-use flag for selecting updating maximum values or updating minimum values may be disposed, so that the electronic control unit 1 executes maximum value update processing by the data update processing shown in
The invention can execute data update processing while maintaining high reliability without increasing the load in an arithmetic element, so the invention can be applied to vehicle operation control devices and the like where update processing of various types of data is required.
According to the present invention, the processing procedure is simple, so the invention achieves the effects that update processing whose reliability is high is reliably performed without increasing the computational load in an arithmetic element and without taking in as update values abnormal data caused by noise or the like, and therefore the invention can contribute to improving the reliability of device operation.
Number | Date | Country | Kind |
---|---|---|---|
2007-207542 | Aug 2007 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2008/064115 | 8/6/2008 | WO | 00 | 2/4/2010 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2009/020149 | 2/12/2009 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6038267 | Oura et al. | Mar 2000 | A |
6836710 | Yamaki | Dec 2004 | B2 |
7677092 | Ishizuka et al. | Mar 2010 | B2 |
7848868 | Nakagawa et al. | Dec 2010 | B2 |
7921707 | Ishizuka et al. | Apr 2011 | B2 |
20040015288 | Wolber et al. | Jan 2004 | A1 |
20100168989 | Gao et al. | Jul 2010 | A1 |
Number | Date | Country |
---|---|---|
2852059 | Jan 1999 | JP |
2004508487 | Mar 2004 | JP |
2005344614 | Dec 2005 | JP |
3849357 | Nov 2006 | JP |
Number | Date | Country | |
---|---|---|---|
20110224867 A1 | Sep 2011 | US |