Remaining oil quantity determination method, device and system and storage medium
By obtaining the resistance value of the oil level sensor and correcting the engine fuel injection volume, the problem of large error in the estimation of residual oil in the prior art is solved, and the calculation accuracy is improved.
Patent Information
- Application Number
- CN202311153900.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, there is an error in estimating the residual oil volume during operation of the vehicle, which is mainly due to the difference between the precalibrated map of the engine fuel injection volume and the actual situation, resulting in low calculation accuracy.
By obtaining the oil level sensor resistance value for the current cycle during the vehicle operation, querying the corresponding relationship table between the oil level sensor resistance value and the residual oil volume, obtaining the first residual oil volume, and correcting the engine injection volume based on the difference between the first residual oil volume and the final residual oil volume of the previous cycle, thereby determining the final residual oil volume of the current cycle.
By correcting the engine fuel injection volume, the calculation error is reduced and the calculation accuracy of the residual oil volume is improved.
Smart Images

Figure CN119573837A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle monitoring technology, and in particular to a method, device, system and storage medium for determining the remaining fuel amount. Background Art
[0002] In the prior art, the remaining fuel amount of a vehicle during operation is estimated mainly based on the calculated fuel amount value estimated by the fuel level sensor before operation minus the accumulated value of the engine fuel injection amount. However, since the engine fuel injection amount is obtained by looking up a map chart pre-calibrated under standard conditions, there is an error with the actual engine fuel injection amount, resulting in a large error in the calculated remaining fuel amount. Therefore, how to provide a method for determining the remaining fuel amount to improve the accuracy of the remaining fuel amount calculation has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present application provides a method, device, system and storage medium for determining the remaining fuel amount, so as to improve the accuracy of the remaining fuel amount calculation.
[0004] The present application provides a method for determining the remaining oil amount, comprising:
[0005] During vehicle operation, obtain the oil level sensor resistance value corresponding to the current cycle;
[0006] In the case where the resistance value of the oil level sensor corresponding to the current cycle is a valid resistance value, querying a first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle from a corresponding relationship table of the resistance value of the oil level sensor and the remaining oil amount, wherein the resistance value of the oil level sensor obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within the preset threshold range is a valid resistance value;
[0007] When a first remaining oil amount corresponding to the oil level sensor resistance value corresponding to the current cycle is queried in the corresponding relationship table between the oil level sensor resistance value and the remaining oil amount, the engine fuel injection amount of the current cycle is corrected according to the difference between the first remaining oil amount and the second remaining oil amount to obtain a corrected value of the engine fuel injection amount of the current cycle, wherein the second remaining oil amount is the final remaining oil amount of the previous cycle of the current cycle;
[0008] The difference between the second remaining fuel amount and the engine fuel injection amount correction value is determined as the final remaining fuel amount of the vehicle in the current cycle.
[0009] In one embodiment, obtaining the oil level sensor resistance value corresponding to the current cycle includes:
[0010] Obtaining a first preset number of resistance values corresponding to the oil level sensor in the current cycle;
[0011] Performing filtering processing on a first preset number of resistance values corresponding to the oil level sensor to obtain filtering values corresponding to the first preset number of resistance values;
[0012] When the vehicle does not meet the initialization condition for measuring the first remaining oil amount, determining the median corresponding to all filtered values accumulated in the current cycle as the oil level sensor resistance value corresponding to the current cycle;
[0013] The initialization condition includes that the number of filter values accumulated in the current cycle does not reach a second preset number, or the effectiveness of the acceleration sensor is restored, or the oil level sensor fault is restored.
[0014] In one embodiment, filtering a first preset number of resistance values corresponding to the oil level sensor to obtain filtered values corresponding to the first preset number of resistance values includes:
[0015] Eliminate the maximum value and the minimum value among the first preset number of resistance values;
[0016] Calculate the average value of the remaining resistance after removing the maximum and minimum values;
[0017] The average value is determined to be the filtered value corresponding to the first preset number of resistance values.
[0018] In one embodiment, the method further comprises:
[0019] When the number of filtered values accumulated in the current cycle does not reach the second preset number, the resistance value of the oil level sensor of the current cycle is initialized, and the oil level sensor resistance value corresponding to the second remaining oil amount corresponding to the current cycle is queried from the corresponding relationship table between the oil level sensor resistance value and the remaining oil amount;
[0020] Determine that the oil level sensor resistance value corresponding to the second remaining oil amount is the oil level sensor resistance value corresponding to the current cycle.
[0021] In one embodiment, when the oil level sensor resistance value corresponding to the current cycle is a valid resistance value, before searching a table of corresponding relationships between oil level sensor resistance values and remaining oil quantities to determine a first remaining oil quantity corresponding to the oil level sensor resistance value corresponding to the current cycle, the method further comprises:
[0022] Comparing the oil level sensor resistance values corresponding to the current cycle and the previous cycle;
[0023] When the comparison result is that the resistance of the oil level sensor increases, and the increase in resistance is consistent with the increase in resistance between multiple adjacent cycles before the current cycle, it is determined that the resistance of the oil level sensor corresponding to the current cycle is valid.
[0024] In one embodiment, the method further comprises:
[0025] When the first remaining oil amount corresponding to the oil level sensor resistance value corresponding to the current cycle is not found in the correspondence table between the oil level sensor resistance value and the remaining oil amount, an interpolation calculation is performed based on the value recorded in the correspondence table between the oil level sensor resistance value and the remaining oil amount to determine the first remaining oil amount in the current cycle.
[0026] In one embodiment, the correcting the engine fuel injection amount of the current cycle according to the difference between the first remaining fuel amount and the second remaining fuel amount to obtain the corrected value of the engine fuel injection amount of the current cycle includes:
[0027] determining a difference between the first remaining fuel amount and the second remaining fuel amount;
[0028] From the corresponding relationship table of oil quantity difference and engine oil injection quantity correction coefficient, query the engine oil injection quantity correction coefficient corresponding to the oil quantity difference;
[0029] The engine fuel injection amount correction coefficient corresponding to the fuel amount difference is determined as the engine fuel injection amount correction coefficient of the current cycle.
[0030] The present application also provides a device for determining the amount of remaining oil, comprising:
[0031] An acquisition module is used to obtain the resistance value of the oil level sensor corresponding to the current cycle during the operation of the vehicle;
[0032] a query module, configured to query, from a table of correspondence between oil level sensor resistance values and remaining oil quantities, a first remaining oil quantity corresponding to the oil level sensor resistance value corresponding to the current cycle when the oil level sensor resistance value corresponding to the current cycle is a valid resistance value, wherein the oil level sensor resistance value obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within a preset threshold range is a valid resistance value;
[0033] a correction module, configured to correct the engine fuel injection amount of the current cycle according to the difference between the first remaining fuel amount and the second remaining fuel amount when a first remaining fuel amount corresponding to the fuel level sensor resistance value corresponding to the current cycle is found in the corresponding relationship table between the fuel level sensor resistance value and the remaining fuel amount, so as to obtain a correction value of the engine fuel injection amount of the current cycle, wherein the second remaining fuel amount is the final remaining fuel amount of the previous cycle of the current cycle;
[0034] The first determination module is used to determine that the difference between the second remaining fuel amount and the engine injection amount correction value is the final remaining fuel amount of the vehicle in the current cycle.
[0035] In one embodiment, the acquisition module includes:
[0036] An acquisition submodule, used for acquiring a first preset number of resistance values corresponding to the oil level sensor in the current cycle;
[0037] A filtering submodule, configured to filter a first preset number of resistance values corresponding to the oil level sensor to obtain filtering values corresponding to the first preset number of resistance values;
[0038] A first determination submodule, configured to determine, when the vehicle does not meet the initialization condition for measuring the first remaining fuel volume, that the median corresponding to all filtered values accumulated in the current cycle is the fuel level sensor resistance value corresponding to the current cycle;
[0039] The initialization condition includes that the number of filter values accumulated in the current cycle does not reach a second preset number, or the effectiveness of the acceleration sensor is restored, or the oil level sensor fault is restored.
[0040] In one embodiment, the filtering submodule is further used for:
[0041] Eliminate the maximum value and the minimum value among the first preset number of resistance values;
[0042] Calculate the average value of the remaining resistance after removing the maximum and minimum values;
[0043] The average value is determined to be the filtered value corresponding to the first preset number of resistance values.
[0044] In one embodiment, the apparatus further comprises:
[0045] an initialization module, configured to initialize the resistance value of the oil level sensor of the current cycle when the number of filtered values accumulated in the current cycle does not reach a second preset number, and query the resistance value of the oil level sensor corresponding to the second remaining oil amount corresponding to the current cycle from a corresponding relationship table between the resistance value of the oil level sensor and the remaining oil amount;
[0046] The second determination module is used to determine that the oil level sensor resistance value corresponding to the second remaining oil amount is the oil level sensor resistance value corresponding to the current cycle.
[0047] In one embodiment, the apparatus further comprises:
[0048] A comparison module, used for comparing the oil level sensor resistance values corresponding to the current cycle and the previous cycle respectively;
[0049] The third determination module is used to determine that the resistance value of the oil level sensor corresponding to the current cycle is valid when the comparison result shows that the resistance value of the oil level sensor increases and the increase in resistance value is consistent with the increase in resistance value of the oil level sensor corresponding to multiple adjacent cycles before the current cycle.
[0050] In one embodiment, the apparatus further comprises:
[0051] The calculation module is used to perform interpolation calculation according to the value recorded in the correspondence table between the resistance value of the oil level sensor and the remaining oil amount, so as to determine the first remaining oil amount in the current cycle when the first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle is not found in the correspondence table between the resistance value of the oil level sensor and the remaining oil amount.
[0052] In one embodiment, the correction module includes:
[0053] A second determining submodule, configured to determine a fuel quantity difference between the first remaining fuel quantity and the second remaining fuel quantity;
[0054] A query submodule, used to query the engine fuel injection quantity correction coefficient corresponding to the fuel quantity difference from the corresponding relationship table of the fuel quantity difference and the engine fuel injection quantity correction coefficient;
[0055] The third determination submodule is used to determine the engine fuel injection amount correction coefficient corresponding to the fuel amount difference as the engine fuel injection amount correction coefficient of the current cycle.
[0056] The present application also provides a system for determining the amount of remaining oil, comprising:
[0057] at least one processor; and,
[0058] a memory communicatively connected to the at least one processor; wherein,
[0059] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the remaining oil amount determination method recorded in any of the above embodiments.
[0060] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the remaining fuel amount determination system, the remaining fuel amount determination system can implement the remaining fuel amount determination method recorded in any of the above embodiments.
[0061] The beneficial effects of the present application are: during the operation of the vehicle, the resistance value of the oil level sensor corresponding to the current cycle is obtained; when the resistance value of the oil level sensor corresponding to the current cycle is an effective resistance value, the first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle is queried from the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount, wherein the resistance value of the oil level sensor obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within the preset threshold range is an effective resistance value; the engine injection amount of the current cycle is corrected according to the difference between the first remaining oil amount and the second remaining oil amount to obtain the corrected value of the engine injection amount of the current cycle, wherein the second remaining oil amount is the final remaining oil amount of the previous cycle of the current cycle; the difference between the second remaining oil amount and the engine injection amount correction value is determined to be the final remaining oil amount of the current cycle of the vehicle. Since the first remaining oil amount obtained by the resistance value of the oil level sensor obtained in the current cycle and the final remaining oil amount of the previous cycle are used to correct the engine injection amount of the current cycle, the calculation error of the engine injection amount is reduced, thereby improving the calculation accuracy of the remaining oil amount.
[0062] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.
[0063] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:
[0065] Figure 1 This is a flow chart of a method for determining the remaining fuel amount in one embodiment of the present application;
[0066] Figure 2 This is a structural schematic diagram of a device for determining the amount of remaining oil in one embodiment of the present application;
[0067] Figure 3 This is a schematic diagram of the hardware structure of a system for determining the remaining fuel volume in one embodiment of the present application. DETAILED DESCRIPTION
[0068] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.
[0069] Figure 1Flow chart of a method for determining the remaining fuel volume in one embodiment of the present application. Figure 1 As shown, the method can be implemented as the following steps S101-S104:
[0070] In step S101, during the operation of the vehicle, the resistance value of the oil level sensor corresponding to the current cycle is obtained;
[0071] In step S102, when the resistance value of the oil level sensor corresponding to the current cycle is a valid resistance value, a first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle is queried from a corresponding relationship table of the resistance value of the oil level sensor and the remaining oil amount, wherein the resistance value of the oil level sensor obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within the preset threshold range is a valid resistance value;
[0072] In step S103, when a first remaining oil amount corresponding to the oil level sensor resistance value corresponding to the current cycle is queried in the corresponding relationship table between the oil level sensor resistance value and the remaining oil amount, the engine fuel injection amount of the current cycle is corrected according to the difference between the first remaining oil amount and the second remaining oil amount to obtain a correction value of the engine fuel injection amount of the current cycle, wherein the second remaining oil amount is the final remaining oil amount of the previous cycle of the current cycle;
[0073] In step S104, the difference between the second remaining fuel amount and the engine fuel injection amount correction value is determined as the final remaining fuel amount of the vehicle in the current cycle.
[0074] In the present application, during the operation of the vehicle, the resistance value of the oil level sensor corresponding to the current cycle is obtained. The cycle is a pre-set cycle for monitoring the remaining oil volume, such as detecting the remaining oil volume once every 5 seconds, that is, every 5 seconds is a cycle. In order to avoid inaccurate fuel resistance measurement caused by vehicle movement, etc., the present application processes the resistance values of multiple oil level sensors obtained in the current cycle to obtain the resistance value of the oil level sensor corresponding to the current cycle.
[0075] Specifically, the process of obtaining the oil level sensor resistance value corresponding to the current cycle is as follows:
[0076] First, obtain the resistance value corresponding to the oil level sensor, for example, the resistance value of the oil level sensor can be obtained every 5ms. In order to avoid inaccurate fuel resistance measurement caused by vehicle movement, when the vehicle's lateral acceleration sensor and longitudinal acceleration sensor are valid, the oil level sensor is not faulty, and the lateral acceleration and longitudinal acceleration are respectively within the preset threshold range, the application considers that the vehicle is running smoothly, determines that the current vehicle meets the enabling conditions for obtaining the resistance value of the oil level sensor, and the resistance value corresponding to the obtained oil level sensor is valid; otherwise, it is determined that the current vehicle does not meet the enabling conditions for obtaining the resistance value of the oil level sensor, the resistance value corresponding to the obtained oil level sensor is invalid, and the corresponding resistance value is filtered out.
[0077] Then, the first preset number of resistance values corresponding to the oil level sensor is filtered to obtain the filter values corresponding to the first preset number of resistance values. For example, after summing up 20 oil level sensor resistance values (100ms) and subtracting the maximum and minimum values therefrom, the remaining oil level sensor resistance values are averaged to obtain the filtered oil level sensor resistance value to eliminate the interference of extreme values. Then, it is determined whether the current vehicle meets the initialization condition for measuring the first remaining oil amount. Specifically, when the vehicle meets at least one of the following conditions, it is determined that the vehicle meets the initialization condition for measuring the first remaining oil amount: the number of filter values obtained in the current cycle does not reach the second preset number (for example, 40, corresponding to 4s), the acceleration sensor validity is restored, and the oil level sensor fault is restored. When the initialization condition is met, it means that the vehicle acceleration sensor or the oil level sensor has a fault at the current moment or the current vehicle is not running smoothly, and multiple valid oil level sensor resistance values cannot be obtained. Therefore, the oil level sensor resistance value is initialized to prevent the oil level sensor of the cycle from being null, to facilitate the calculation of subsequent cycles, and to avoid processor misjudgment, such as misjudgment of the vehicle as oil leakage. When the current vehicle does not meet the initialization condition for measuring the first remaining oil volume, the median corresponding to the second preset number of the filtered values is determined as the oil level sensor resistance value corresponding to the current cycle, and the data stability is improved by filtering again.
[0078] In addition, in the present application, in order to further ensure the stability and reliability of the obtained resistance value of the oil level sensor, the resistance value of the oil level sensor corresponding to the current cycle is compared with the resistance values of the oil level sensor corresponding to the multiple cycles before the current cycle, so as to analyze the fluctuation of the resistance value sequence of the oil level sensor. Since the more the remaining oil, the smaller the resistance value of the oil level sensor; the less the remaining oil, the larger the resistance value of the oil level sensor. Therefore, when the comparison result is that the resistance value of the oil level sensor increases, and the resistance increase is consistent with the resistance increase value of the oil level sensor corresponding to the multiple cycles before the current cycle, that is, the error of the change rate of the resistance increase value of the oil level sensor is within the preset error range, it is determined that the resistance value of the oil level sensor corresponding to the current cycle is valid.
[0079] When the oil level sensor resistance value corresponding to the current cycle is valid, the oil level sensor resistance value corresponding to the current cycle is matched with a correspondence table between the oil level sensor resistance value and the remaining oil amount to determine the first remaining oil amount in the current cycle, wherein the correspondence table between the oil level sensor resistance value and the remaining oil amount records the correspondence between the oil level sensor resistance value and the remaining oil amount. Specifically, by matching the oil level sensor resistance value corresponding to the current cycle with the correspondence table of the oil level sensor resistance value and the remaining oil amount, it is determined whether there is the oil level sensor resistance value corresponding to the current cycle in the correspondence table of the oil level sensor resistance value and the remaining oil amount; when the oil level sensor resistance value corresponding to the current cycle exists in the correspondence table of the oil level sensor resistance value and the remaining oil amount, it is determined that the remaining oil amount corresponding to the oil level sensor resistance value recorded in the correspondence table of the oil level sensor resistance value and the remaining oil amount is the first remaining oil amount in the current cycle; otherwise, when the oil level sensor resistance value corresponding to the current cycle does not exist in the correspondence table of the oil level sensor resistance value and the remaining oil amount, an interpolation calculation is performed based on the value recorded in the correspondence table of the oil level sensor resistance value and the remaining oil amount to determine the first remaining oil amount in the current cycle. The specific interpolation process is as follows: select multiple oil level sensor resistance values that are closest to the oil level sensor resistance value corresponding to the current cycle in the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount. For example, according to the difference between the oil level sensor resistance value corresponding to the current cycle and each oil level sensor resistance value in the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount, arrange the difference from small to large, and select multiple oil level sensor resistance values with the smallest difference. It should be noted that the multiple oil level sensor resistance values can be all greater than the oil level sensor resistance value corresponding to the current cycle, or all less than, or partly greater than and partly less than. The specific selection situation is related to the oil level sensor resistance value selected in the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount. Then, the selected multiple oil level sensor resistance values are interpolated with the oil level sensor resistance value corresponding to the current cycle to determine the first remaining oil amount in the current cycle. There are multiple calculation methods for the specific interpolation algorithm in the prior art, and this application does not limit it. It can be understood that in the case of initialization, the remaining oil amount at the previous moment can be directly used as the remaining oil amount in the current cycle.
[0080] When the first remaining oil amount corresponding to the oil level sensor resistance value corresponding to the current cycle is found in the correspondence table between the oil level sensor resistance value and the remaining oil amount, the engine fuel injection amount of the current cycle is corrected according to the difference between the first remaining oil amount and the second remaining oil amount of the current cycle to obtain the engine fuel injection amount correction value of the current cycle. Among them, the acquisition of the engine fuel injection amount is a prior art and will not be described in detail in this application. However, since the engine fuel injection amount is obtained by looking up a map table, there is an error with the actual engine fuel injection amount. Therefore, this application corrects the engine fuel injection amount. Specifically, a table is looked up according to the difference between the first remaining oil amount and the second remaining oil amount to determine the corresponding correction coefficient. As shown in Table 1, this is a query table for the engine fuel injection amount correction coefficient in one embodiment of the present application.
[0081] Table 1 Engine fuel injection correction coefficient query table (I)
[0082] Calculate the difference -20 -10 -5 -3 -2 -1 0 1 2 3 5 Correction coefficient (K) 3 2 1.4 1.3 1.2 1.1 1 1 1 0.8 0.7
[0083] Of course, as shown in Table 2, the correction coefficient of the oil quantity can also be determined directly by looking up the table of the first remaining oil quantity in the current cycle:
[0084] Table 2 Engine fuel injection correction coefficient query table (II)
[0085] Calculated oil volume (L) 0 1 5 9.6 14 20 26 32 38.1 44.2 Correction factor K 1.3 1.3 1.3 1.2 1.15 1.15 1.1 1.1 1.1 1.1
[0086] Finally, the difference between the second remaining fuel volume of the current cycle and the correction value of the engine fuel injection volume of the current cycle is determined as the final remaining fuel volume of the vehicle in the current cycle. The corresponding calculation formula is: final remaining fuel volume = second remaining fuel volume - K * engine fuel injection volume, where K is the correction coefficient.
[0087] The beneficial effects of the present application are: during the operation of the vehicle, the resistance value of the oil level sensor corresponding to the current cycle is obtained; when the resistance value of the oil level sensor corresponding to the current cycle is an effective resistance value, the first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle is queried from the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount, wherein the resistance value of the oil level sensor obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within the preset threshold range is an effective resistance value; the engine injection amount of the current cycle is corrected according to the difference between the first remaining oil amount and the second remaining oil amount to obtain the corrected value of the engine injection amount of the current cycle, wherein the second remaining oil amount is the final remaining oil amount of the previous cycle of the current cycle; the difference between the second remaining oil amount and the engine injection amount correction value is determined to be the final remaining oil amount of the current cycle of the vehicle. Since the first remaining oil amount obtained by the resistance value of the oil level sensor obtained in the current cycle and the final remaining oil amount of the previous cycle are used to correct the engine injection amount of the current cycle, the calculation error of the engine injection amount is reduced, thereby improving the calculation accuracy of the remaining oil amount.
[0088] In one embodiment, the above step S101 may be implemented as the following steps A1-A3:
[0089] In step A1, a first preset number of resistance values corresponding to the oil level sensor in the current cycle is obtained;
[0090] In step A2, filtering is performed on a first preset number of resistance values corresponding to the oil level sensor to obtain filtering values corresponding to the first preset number of resistance values;
[0091] In step A3, when the vehicle does not meet the initialization condition for measuring the first remaining fuel amount, the median corresponding to all filtered values accumulated in the current cycle is determined as the fuel level sensor resistance value corresponding to the current cycle;
[0092] The initialization condition includes that the number of filter values accumulated in the current cycle does not reach a second preset number, or the effectiveness of the acceleration sensor is restored, or the oil level sensor fault is restored.
[0093] In this embodiment, in order to obtain the remaining oil volume for the oil level sensor, first obtain the first preset number of resistance values corresponding to the oil level sensor in the current cycle. Specifically, the resistance values corresponding to the oil level sensor at different times can be obtained according to the current cycle, for example, it can be obtained every 5ms. It should be noted that since the oil level sensor is driven by the oil float to float up and down with the change of the oil level, thereby driving the connecting rod mechanism to move up and down, and then the relative position of the resistor on the connecting rod mechanism changes, driving the resistance value of the oil level sensor to change. Therefore, during the operation of the car, due to the large fluctuation of the liquid level in the fuel tank, the fuel resistance value measured by the oil level sensor changes greatly. In order to avoid inaccurate fuel resistance measurement caused by vehicle movement, in the present application, when the car accelerates or the road slope is large, the fuel resistance under this condition should be filtered out. Therefore, it is judged whether the current vehicle meets the enabling conditions for obtaining the resistance value of the oil level sensor. Specifically, when the vehicle's lateral acceleration sensor and longitudinal acceleration sensor are valid, the oil level sensor is not faulty, and the lateral acceleration and longitudinal acceleration are respectively within the preset threshold range, it is determined that the current vehicle meets the enabling conditions for obtaining the resistance value of the oil level sensor, and the obtained resistance value corresponding to the oil level sensor is valid; otherwise, it is determined that the current vehicle does not meet the enabling conditions for obtaining the resistance value of the oil level sensor, the obtained resistance value corresponding to the oil level sensor is invalid, and the corresponding resistance value is filtered out.
[0094] Furthermore, in order to remove data noise, reduce random errors, and improve data stability, the present application performs smoothing processing on the resistance values corresponding to the obtained oil level sensor. Specifically, a first preset number of resistance values corresponding to the oil level sensor is filtered to obtain filtered values corresponding to the first preset number of resistance values. For example, the resistance value sequence r1, r2, ..., r i ,……, every 20 oil level sensor resistance values (i.e. every 100ms) are filtered to obtain the corresponding filter value The specific processing process may be to average the resistance values of multiple oil level sensors. In one embodiment of the present application, the resistance values of multiple oil level sensors are summed and the maximum and minimum values thereof are subtracted, and then the average value of the remaining oil level sensor resistance values is obtained to obtain the filtered oil level sensor resistance value to eliminate the interference of extreme values, that is,
[0095]
[0096] When the vehicle does not meet the initialization conditions for measuring the first remaining oil volume, the median corresponding to all the filtered values accumulated in the current cycle is determined to be the oil level sensor resistance value corresponding to the current cycle. After obtaining the filtered value, the present application performs filtering processing on the filtered value again, specifically, determining the median corresponding to the second preset number of filtered values as the oil level sensor resistance value corresponding to the current cycle. For example, the median is taken for every 40 filtered values (i.e., 4s) as the processed oil level sensor resistance value. It can be understood that before taking the median of the filtered value, the present application excludes the situation where the oil level sensor resistance value after effective processing cannot be obtained for a long period of time due to the continuous bumping or other unstable state of the car. For example, 40 filtered values cannot be obtained within 300s, and then an effective processed oil level sensor resistance value cannot be obtained within 300s. At this time, the median of the oil level sensor resistance value has seriously deviated from the actual fuel resistance value. Therefore, before taking the median of the filter value, the present application needs to determine whether the current vehicle meets the initialization condition for measuring the first remaining oil amount. Specifically, when the vehicle meets at least one of the following conditions, it is determined that the vehicle meets the initialization condition for measuring the first remaining oil amount: the number of filter values obtained in the current cycle does not reach the second preset number, the acceleration sensor validity is restored, and the oil level sensor fault is restored. Furthermore, the present application sets the initialization condition, and when the effective oil level sensor resistance value cannot be obtained, the remaining oil amount at the previous moment is used as the remaining oil amount at the current moment. That is, when the number of filter values obtained in the current cycle does not reach the second preset number, the oil level sensor resistance value of the current cycle is initialized, and the fuel resistance value is obtained by reverse table lookup to replace the oil level sensor resistance value after one processing and the resistance value in the oil level sensor resistance median processing container is cleared, that is, the corresponding relationship table of the second remaining oil amount and the oil level sensor resistance value and the remaining oil amount corresponding to the same cycle is matched to determine the oil level sensor resistance value corresponding to the second remaining oil amount, and the oil level sensor resistance value corresponding to the second remaining oil amount is used as the oil level sensor resistance value corresponding to the current cycle. In this way, the initialization operation can prevent the oil level sensor of the cycle from being null, facilitate the calculation of subsequent cycles, and avoid the processor from misjudging, for example, misjudging the vehicle as leaking oil. When the current vehicle does not meet the initialization condition for measuring the first remaining oil volume, the median corresponding to the second preset number of the filtered values is determined as the oil level sensor resistance value corresponding to the current cycle, and the data stability is improved by filtering again.
[0097] In one embodiment, the above step A2 may be implemented as the following steps A21-A23:
[0098] In step A21, the maximum value and the minimum value among the first preset number of resistance values are eliminated;
[0099] In step A22, the remaining resistance values after removing the maximum value and the minimum value are averaged;
[0100] In step A23, the average value is determined to be a filtering value corresponding to the first preset number of resistance values.
[0101] In this embodiment, in order to eliminate the interference of extreme values, the maximum and minimum values of the first preset number of resistance values are first eliminated. The remaining resistance values after eliminating the maximum and minimum values are averaged; the average value is determined to be the filtered value corresponding to the first preset number of resistance values. For example, the resistance sequence r1, r2, ..., r i ,……, every 20 oil level sensor resistance values (i.e. every 100ms) are filtered to obtain the corresponding filter value The filter value can be determined by the following formula:
[0102]
[0103] In one embodiment, the method can be implemented as follows:
[0104] In step B1, the resistance value of the oil level sensor corresponding to the current cycle is compared with the resistance values of the oil level sensor corresponding to multiple cycles before the current cycle;
[0105] In step B2, when the comparison result is that the resistance of the oil level sensor increases, and the resistance increase is consistent with the resistance increase of the oil level sensor corresponding to multiple cycles before the current cycle, it is determined that the resistance of the oil level sensor corresponding to the current cycle is valid.
[0106] In this embodiment, in order to further ensure the stability and reliability of the obtained resistance value of the oil level sensor, the resistance value of the oil level sensor corresponding to the current cycle is compared with the resistance values of the oil level sensor corresponding to the multiple cycles before the current cycle in this application to analyze the fluctuation of the resistance value sequence of the oil level sensor. The more the remaining oil, the smaller the resistance value of the oil level sensor; the less the remaining oil, the larger the resistance value of the oil level sensor. Therefore, under normal circumstances, the resistance value of the oil level sensor should increase. Therefore, when the comparison result is that the resistance value of the oil level sensor increases, and the resistance increase is consistent with the resistance increase value of the oil level sensor corresponding to the multiple cycles before the current cycle, that is, the error of the change rate of the resistance increase value of the oil level sensor is within the preset error range, it is determined that the resistance value of the oil level sensor corresponding to the current cycle is valid.
[0107] In one embodiment, the method can also be implemented as the following steps C1-C2:
[0108] In step C1, when the number of filter values obtained in the current cycle does not reach the second preset number, the resistance value of the oil level sensor in the current cycle is initialized, and the oil level sensor resistance value corresponding to the second remaining oil amount corresponding to the current cycle is queried from the corresponding relationship table between the oil level sensor resistance value and the remaining oil amount;
[0109] In step C2, it is determined that the oil level sensor resistance value corresponding to the second remaining oil amount is the oil level sensor resistance value corresponding to the current cycle.
[0110] In this embodiment, when the number of filter values obtained in the current cycle does not reach the second preset number, the resistance value of the oil level sensor in the current cycle is initialized, and the corresponding relationship table between the second remaining oil volume and the oil level sensor resistance value and the remaining oil volume corresponding to the same cycle is matched to determine the oil level sensor resistance value corresponding to the second remaining oil volume. Since the second preset number of filter values cannot be filtered again when the number of filter values obtained in the current cycle does not reach the second preset number, the resistance value of the oil level sensor in the current cycle is initialized, and the fuel resistance value is obtained by reverse table lookup to replace the oil level sensor resistance value after one processing and the resistance value in the oil level sensor resistance median processing container is cleared, that is, the corresponding relationship table between the second remaining oil volume and the oil level sensor resistance value and the remaining oil volume corresponding to the same cycle is matched to determine the oil level sensor resistance value corresponding to the second remaining oil volume, and the oil level sensor resistance value corresponding to the second remaining oil volume is used as the oil level sensor resistance value corresponding to the current cycle.
[0111] In one embodiment, before the above step S102, the method may also be implemented as the following steps D1-D2:
[0112] In step D1, the oil level sensor resistance values corresponding to the current cycle and the previous cycle are compared;
[0113] In step D2, when the comparison result is that the resistance of the oil level sensor increases, and the increase in resistance is consistent with the increase in resistance between multiple adjacent cycles before the current cycle, it is determined that the resistance of the oil level sensor corresponding to the current cycle is valid.
[0114] In this embodiment, the oil level sensor resistance values corresponding to the current cycle and the previous cycle are compared. Specifically, the difference and increase of the oil level sensor resistance value between the current cycle and the previous cycle can be obtained.
[0115] When the comparison result shows that the resistance of the oil level sensor increases, and the increase in resistance is consistent with the increase in resistance between multiple adjacent cycles before the current cycle, the resistance of the oil level sensor corresponding to the current cycle is determined to be valid. Since the amount of oil should decrease during normal operation of the vehicle, the corresponding resistance of the oil level sensor should increase, and the increase should be within a certain preset range. Therefore, if the resistance of the oil level sensor decreases, that is, the amount of oil increases numerically, it means that the current resistance of the oil level sensor is invalid. When the resistance of the oil level sensor increases, and the increase in resistance is consistent with the increase in resistance between multiple adjacent cycles before the current cycle, it means that the currently monitored value is accurate, and the resistance of the oil level sensor corresponding to the current cycle is determined to be valid.
[0116] In one embodiment, the above step S102 may be implemented as follows:
[0117] When the first remaining oil amount corresponding to the oil level sensor resistance value corresponding to the current cycle is not found in the correspondence table between the oil level sensor resistance value and the remaining oil amount, an interpolation calculation is performed based on the value recorded in the correspondence table between the oil level sensor resistance value and the remaining oil amount to determine the first remaining oil amount in the current cycle.
[0118] In the present application, when the oil level sensor resistance value corresponding to the current cycle is valid, the oil level sensor resistance value corresponding to the current cycle is matched with the correspondence table between the oil level sensor resistance value and the remaining oil amount to determine the first remaining oil amount in the current cycle, wherein the correspondence table between the oil level sensor resistance value and the remaining oil amount records the correspondence between the oil level sensor resistance value and the remaining oil amount. Specifically, by matching the oil level sensor resistance value corresponding to the current cycle with the correspondence table of the oil level sensor resistance value and the remaining oil amount, it is determined whether there is the oil level sensor resistance value corresponding to the current cycle in the correspondence table of the oil level sensor resistance value and the remaining oil amount; when the oil level sensor resistance value corresponding to the current cycle exists in the correspondence table of the oil level sensor resistance value and the remaining oil amount, it is determined that the remaining oil amount corresponding to the oil level sensor resistance value recorded in the correspondence table of the oil level sensor resistance value and the remaining oil amount is the first remaining oil amount in the current cycle; otherwise, when the oil level sensor resistance value corresponding to the current cycle does not exist in the correspondence table of the oil level sensor resistance value and the remaining oil amount, an interpolation calculation is performed based on the value recorded in the correspondence table of the oil level sensor resistance value and the remaining oil amount to determine the first remaining oil amount in the current cycle. The specific interpolation process is as follows: select multiple oil level sensor resistance values that are closest to the oil level sensor resistance value corresponding to the current cycle in the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount. For example, make a difference between the oil level sensor resistance value corresponding to the current cycle and each oil level sensor resistance value in the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount, arrange the difference values from small to large, and select multiple oil level sensor resistance values with the smallest difference. It should be noted that the multiple oil level sensor resistance values may be all greater than the oil level sensor resistance value corresponding to the current cycle, or all less than, or partly greater than and partly less than. The specific selection situation is related to the oil level sensor resistance value selected in the corresponding relationship table of the oil level sensor resistance value and the remaining oil amount. Then, interpolate the selected multiple oil level sensor resistance values with the oil level sensor resistance value corresponding to the current cycle to determine the first remaining oil amount in the current cycle. There are many calculation methods for the specific interpolation algorithm in the prior art, and this application does not limit this.
[0119] In one embodiment, the above step S103 may be implemented as the following steps E1-E3:
[0120] In step E1, determining the oil amount difference between the first remaining oil amount and the second remaining oil amount;
[0121] In step E2, the engine fuel injection amount correction coefficient corresponding to the fuel amount difference is searched from the corresponding relationship table between the fuel amount difference and the engine fuel injection amount correction coefficient;
[0122] In step E3, the engine fuel injection amount correction coefficient corresponding to the fuel amount difference is determined as the engine fuel injection amount correction coefficient of the current cycle.
[0123] Figure 2 FIG. 1 is a schematic diagram of a structure of a device for determining the amount of remaining oil in one embodiment of the present application. Figure 2 As shown, the device comprises:
[0124] The acquisition module 201 is used to acquire the resistance value of the oil level sensor corresponding to the current cycle during the operation of the vehicle;
[0125] The query module 202 is used to query the first remaining oil volume corresponding to the oil level sensor resistance value corresponding to the current cycle from the corresponding relationship table of the oil level sensor resistance value and the remaining oil volume when the oil level sensor resistance value corresponding to the current cycle is a valid resistance value, wherein the oil level sensor resistance value obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within the preset threshold range is a valid resistance value;
[0126] The correction module 203 is used to correct the engine fuel injection amount of the current cycle according to the difference between the first remaining fuel amount and the second remaining fuel amount when a first remaining fuel amount corresponding to the fuel level sensor resistance value corresponding to the current cycle is queried in the corresponding relationship table between the fuel level sensor resistance value and the remaining fuel amount, so as to obtain a correction value of the engine fuel injection amount of the current cycle, wherein the second remaining fuel amount is the final remaining fuel amount of the previous cycle of the current cycle;
[0127] The first determination module 204 is configured to determine that the difference between the second remaining fuel amount and the engine fuel injection amount correction value is the final remaining fuel amount of the vehicle in the current cycle.
[0128] In one embodiment, the acquisition module includes:
[0129] An acquisition submodule, used for acquiring a first preset number of resistance values corresponding to the oil level sensor in the current cycle;
[0130] A filtering submodule, configured to filter a first preset number of resistance values corresponding to the oil level sensor to obtain filtering values corresponding to the first preset number of resistance values;
[0131] A first determination submodule, configured to determine, when the vehicle does not meet the initialization condition for measuring the first remaining fuel volume, that the median corresponding to all filtered values accumulated in the current cycle is the fuel level sensor resistance value corresponding to the current cycle;
[0132] The initialization condition includes that the number of filter values accumulated in the current cycle does not reach a second preset number, or the effectiveness of the acceleration sensor is restored, or the oil level sensor fault is restored.
[0133] In one embodiment, the filtering submodule is further used for:
[0134] Eliminate the maximum value and the minimum value among the first preset number of resistance values;
[0135] Calculate the average value of the remaining resistance after removing the maximum and minimum values;
[0136] The average value is determined to be the filtered value corresponding to the first preset number of resistance values.
[0137] In one embodiment, the apparatus further comprises:
[0138] an initialization module, configured to initialize the resistance value of the oil level sensor of the current cycle when the number of filtered values accumulated in the current cycle does not reach a second preset number, and query the resistance value of the oil level sensor corresponding to the second remaining oil amount corresponding to the current cycle from a corresponding relationship table between the resistance value of the oil level sensor and the remaining oil amount;
[0139] The second determination module is used to determine that the oil level sensor resistance value corresponding to the second remaining oil amount is the oil level sensor resistance value corresponding to the current cycle.
[0140] In one embodiment, the apparatus further comprises:
[0141] A comparison module, used for comparing the oil level sensor resistance values corresponding to the current cycle and the previous cycle respectively;
[0142] The third determination module is used to determine that the resistance value of the oil level sensor corresponding to the current cycle is valid when the comparison result shows that the resistance value of the oil level sensor increases and the increase in resistance value is consistent with the increase in resistance value of the oil level sensor corresponding to multiple adjacent cycles before the current cycle.
[0143] In one embodiment, the apparatus comprises:
[0144] The calculation module is used to perform interpolation calculation according to the value recorded in the correspondence table between the resistance value of the oil level sensor and the remaining oil amount, so as to determine the first remaining oil amount in the current cycle when the first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle is not found in the correspondence table between the resistance value of the oil level sensor and the remaining oil amount.
[0145] In one embodiment, the correction module includes:
[0146] A second determining submodule, configured to determine a fuel quantity difference between the first remaining fuel quantity and the second remaining fuel quantity;
[0147] A query submodule, used to query the engine fuel injection quantity correction coefficient corresponding to the fuel quantity difference from the corresponding relationship table of the fuel quantity difference and the engine fuel injection quantity correction coefficient;
[0148] The third determination submodule is used to determine the engine fuel injection amount correction coefficient corresponding to the fuel amount difference as the engine fuel injection amount correction coefficient of the current cycle.
[0149] Figure 3 FIG. 1 is a schematic diagram of the hardware structure of a system for determining the remaining fuel volume in one embodiment of the present application. Figure 3 As shown, the remaining oil quantity determination system includes:
[0150] at least one processor 320; and,
[0151] A memory 304 in communication with the at least one processor 320; wherein,
[0152] The memory 304 stores instructions that can be executed by the at least one processor 320, and the instructions are executed by the at least one processor 320 to implement the remaining oil amount determination method described in any of the above embodiments.
[0153] Reference Figure 3 The remaining fuel amount determination system 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input / output (I / O) interface 312, a sensor component 314, and a communication component 316.
[0154] The processing component 302 generally controls the overall operation of the remaining fuel determination system 300. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0155] The memory 304 is configured to store various types of data to support the operation of the remaining fuel determination system 300. Examples of such data include instructions for any application or method operating on the remaining fuel determination system 300, such as text, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0156] The power assembly 306 provides power to the various components of the fuel remaining determination system 300. The power assembly 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the vehicle control system 300.
[0157] The multimedia component 308 includes a screen that provides an output interface between the remaining oil quantity determination system 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 may also include a front camera and / or a rear camera. When the remaining oil quantity determination system 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0158] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the remaining fuel determination system 300 is in an operation mode, such as an alarm mode, a recording mode, a voice recognition mode, and a voice output mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0159] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0160] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the remaining oil quantity determination system 300. For example, the sensor assembly 314 may include a sound sensor. In addition, the sensor assembly 314 may detect the open / closed state of the remaining oil quantity determination system 300, the relative positioning of the components, such as the display and keypad of the remaining oil quantity determination system 300, and the sensor assembly 314 may also detect the operating state of the remaining oil quantity determination system 300 or a component of the remaining oil quantity determination system 300, such as the operating state of the air distribution plate, the structural state, the operating state of the discharge scraper, etc., the remaining oil quantity determination system 300 orientation or acceleration / deceleration and the temperature change of the remaining oil quantity determination system 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a material accumulation thickness sensor or a temperature sensor.
[0161] The communication component 316 is configured to enable the remaining oil quantity determination system 300 to provide the ability to communicate with other devices and cloud platforms in a wired or wireless manner. The remaining oil quantity determination system 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0162] In an exemplary embodiment, the remaining fuel amount determination system 300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the remaining fuel amount determination method described in any of the above embodiments.
[0163] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the remaining fuel amount determination system, the remaining fuel amount determination system can implement the remaining fuel amount determination method recorded in any of the above embodiments.
[0164] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for determining the amount of remaining oil, characterized in that: include: During vehicle operation, obtain the oil level sensor resistance value corresponding to the current cycle; In the case where the resistance value of the oil level sensor corresponding to the current cycle is a valid resistance value, querying a first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle from a corresponding relationship table of the resistance value of the oil level sensor and the remaining oil amount, wherein the resistance value of the oil level sensor obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within the preset threshold range is a valid resistance value; When a first remaining oil amount corresponding to the oil level sensor resistance value corresponding to the current cycle is queried in the corresponding relationship table between the oil level sensor resistance value and the remaining oil amount, the engine fuel injection amount of the current cycle is corrected according to the difference between the first remaining oil amount and the second remaining oil amount to obtain a corrected value of the engine fuel injection amount of the current cycle, wherein the second remaining oil amount is the final remaining oil amount of the previous cycle of the current cycle; The difference between the second remaining fuel amount and the engine fuel injection amount correction value is determined as the final remaining fuel amount of the vehicle in the current cycle.
2. The method according to claim 1, characterized in that The step of obtaining the resistance value of the oil level sensor corresponding to the current cycle includes: Obtaining a first preset number of resistance values corresponding to the oil level sensor in the current cycle; Performing filtering processing on a first preset number of resistance values corresponding to the oil level sensor to obtain filtering values corresponding to the first preset number of resistance values; When the vehicle does not meet the initialization condition for measuring the first remaining oil amount, determining the median corresponding to all filtered values accumulated in the current cycle as the oil level sensor resistance value corresponding to the current cycle; The initialization condition includes that the number of filter values accumulated in the current cycle does not reach a second preset number, or the effectiveness of the acceleration sensor is restored, or the oil level sensor fault is restored.
3. The method according to claim 2, characterized in that The filtering process is performed on the first preset number of resistance values corresponding to the oil level sensor to obtain the filtered values corresponding to the first preset number of resistance values, including: Eliminate the maximum value and the minimum value among the first preset number of resistance values; Calculate the average value of the remaining resistance after removing the maximum and minimum values; The average value is determined to be the filtered value corresponding to the first preset number of resistance values.
4. The method according to claim 2, characterized in that The method further comprises: When the number of filtered values accumulated in the current cycle does not reach the second preset number, the resistance value of the oil level sensor of the current cycle is initialized, and the oil level sensor resistance value corresponding to the second remaining oil amount corresponding to the current cycle is queried from the corresponding relationship table between the oil level sensor resistance value and the remaining oil amount; Determine that the oil level sensor resistance value corresponding to the second remaining oil amount is the oil level sensor resistance value corresponding to the current cycle.
5. The method according to claim 1, characterized in that In the case where the resistance value of the oil level sensor corresponding to the current cycle is a valid resistance value, before searching a table of correspondence between the resistance value of the oil level sensor and the remaining oil amount for a first remaining oil amount corresponding to the resistance value of the oil level sensor corresponding to the current cycle, the method further includes: Comparing the oil level sensor resistance values corresponding to the current cycle and the previous cycle; When the comparison result is that the resistance of the oil level sensor increases, and the increase in resistance is consistent with the increase in resistance between multiple adjacent cycles before the current cycle, it is determined that the resistance of the oil level sensor corresponding to the current cycle is valid.
6. The method according to claim 1, characterized in that The method further comprises: When the first remaining oil amount corresponding to the oil level sensor resistance value corresponding to the current cycle is not found in the correspondence table between the oil level sensor resistance value and the remaining oil amount, an interpolation calculation is performed based on the value recorded in the correspondence table between the oil level sensor resistance value and the remaining oil amount to determine the first remaining oil amount in the current cycle.
7. The method according to claim 1, characterized in that The method of correcting the fuel injection amount of the engine in the current cycle according to the difference between the first remaining fuel amount and the second remaining fuel amount to obtain a correction value of the fuel injection amount of the engine in the current cycle includes: determining a difference between the first remaining fuel amount and the second remaining fuel amount; From the corresponding relationship table of oil quantity difference and engine oil injection quantity correction coefficient, query the engine oil injection quantity correction coefficient corresponding to the oil quantity difference; The engine fuel injection amount correction coefficient corresponding to the fuel amount difference is determined as the engine fuel injection amount correction coefficient of the current cycle.
8. A device for determining the amount of remaining oil, characterized in that: include: An acquisition module is used to obtain the resistance value of the oil level sensor corresponding to the current cycle during the operation of the vehicle; A first determination module is used to query a first remaining oil quantity corresponding to the oil level sensor resistance value corresponding to the current cycle from a corresponding relationship table of oil level sensor resistance values and remaining oil quantities when the oil level sensor resistance value corresponding to the current cycle is a valid resistance value, wherein the oil level sensor resistance value obtained when the lateral acceleration and the longitudinal acceleration of the vehicle are respectively within a preset threshold range is a valid resistance value; a correction module, configured to correct the fuel injection amount of the engine in the current cycle according to the difference between the first remaining fuel amount and the second remaining fuel amount, so as to obtain a correction value of the fuel injection amount of the engine in the current cycle, wherein the second remaining fuel amount is the final remaining fuel amount in the previous cycle of the current cycle; The second determination module is used to determine that the difference between the second remaining fuel amount and the engine injection amount correction value is the final remaining fuel amount of the vehicle in the current cycle.
9. A system for determining the amount of remaining fuel, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the remaining oil amount determination method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor corresponding to the remaining fuel amount determination system, the remaining fuel amount determination system can implement the remaining fuel amount determination method as described in any one of claims 1-7.