Vehicle meter display oil quantity determination method and device and electronic equipment
By smoothing the fuel resistance value and using methods such as the sliding window algorithm, the accuracy and stability issues of the vehicle's displayed fuel level under different operating conditions are solved, and accurate calculation of the displayed fuel level under all operating conditions is achieved.
Patent Information
- Application Number
- CN202510788516.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-12
- Publication Date
- 2025-09-16
AI Technical Summary
In the prior art, the accuracy of the vehicle's oil level display is poor, and calculations are missing under different working conditions, especially on bumpy and sloping roads, where the accuracy and stability of the oil level display are insufficient.
By smoothing the real-time collected fuel resistance value and reducing noise using sliding window algorithms, exponential smoothing or filters, a fuel resistance correction value is obtained, and the vehicle's displayed fuel level is determined based on the correction value, which is applicable to different working conditions.
The accuracy and stability of the oil level displayed on the meter are improved, the number of jumps of the oil level displayed on the meter is reduced, and accurate calculation is achieved under all working conditions.
Smart Images

Figure CN120651323A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method, device and electronic equipment for determining the oil level displayed on a vehicle meter. Background Art
[0002] In related technologies, vehicle control usually calculates the vehicle's displayed fuel level directly based on the fuel resistance value when the vehicle's lateral and longitudinal accelerations meet certain conditions. However, due to the instability of the fuel resistance value, the accuracy of the obtained vehicle's displayed fuel level is poor. Summary of the Invention
[0003] In view of this, embodiments of the present invention are dedicated to providing a method, device and electronic device for determining the fuel level displayed on a vehicle meter, which improves the accuracy of the fuel level displayed on the vehicle meter by smoothing the fuel resistance value collected in real time.
[0004] In a first aspect, an embodiment of the present invention provides a method for determining the fuel level displayed on a vehicle meter, comprising:
[0005] Smoothing the fuel resistance value of the vehicle collected in real time to obtain a corrected fuel resistance value;
[0006] The fuel level indicated on the vehicle is determined based on the fuel resistance correction value.
[0007] In some embodiments, the smoothing of the real-time collected fuel resistance value of the vehicle to obtain a processed fuel resistance correction value includes:
[0008] For each collection moment, obtaining the fuel resistance value at each moment within the sliding window corresponding to the collection moment;
[0009] Based on the fuel resistance values at each moment in the sliding window corresponding to the collection moment, a fuel resistance correction value at the collection moment is determined.
[0010] As a possible implementation, determining the fuel resistance correction value at the collection moment based on the fuel resistance values at each moment within the sliding window corresponding to the collection moment includes:
[0011] performing a weighted sum operation on the fuel resistance values at each moment within the sliding window corresponding to the acquisition moment to obtain a weighted sum result;
[0012] Based on the weighted summation result, a fuel resistance correction value at the acquisition moment is determined.
[0013] In some embodiments, determining the fuel level indicated on the vehicle based on the fuel resistance correction value includes:
[0014] If the driving mode of the vehicle is the electric driving mode, determining the fuel volume value corresponding to the fuel resistance correction value based on a resistance-capacity correspondence table;
[0015] The oil level value is determined as the displayed oil level.
[0016] In some embodiments, determining the fuel level indicated on the vehicle based on the fuel resistance correction value includes:
[0017] In a scenario where a redundant setting is introduced for the displayed fuel level on the vehicle, determining the initial displayed fuel level on the vehicle and the initial fuel level of the vehicle during driving based on the fuel resistance correction value;
[0018] Obtaining a cumulative fuel injection amount of the vehicle during driving, and determining a remaining fuel amount based on the initial fuel amount and the cumulative fuel injection amount;
[0019] The initial indicated oil amount is corrected based on a difference between the initial indicated oil amount and the remaining oil amount, and the corrected initial indicated oil amount is determined as the indicated oil amount.
[0020] As a possible implementation, the correcting the initial oil level based on the difference between the initial oil level and the remaining oil level includes:
[0021] determining a difference between the initial indicated oil level and the remaining oil level;
[0022] If the difference is greater than or equal to the first threshold or less than or equal to the second threshold, determine the redundancy coefficient for introducing the redundant setting, correct the redundancy coefficient, and determine the corrected initial displayed oil volume based on the corrected redundancy coefficient; wherein, the first threshold is greater than or equal to 0, and the second threshold is less than 0.
[0023] In some embodiments, the method further comprises:
[0024] After the vehicle is parked for a preset time, the displayed fuel amount is updated based on the fuel resistance correction value.
[0025] In a second aspect, an embodiment of the present invention provides a device for determining the fuel level displayed on a vehicle meter, comprising:
[0026] A correction module is used to smooth the fuel resistance value of the vehicle collected in real time to obtain a corrected fuel resistance value;
[0027] A determination module is used to determine the fuel level displayed on the vehicle based on the fuel resistance correction value.
[0028] In a third aspect, an embodiment of the present invention provides an electronic device comprising a processor and a memory storing a computer program, wherein when the processor executes the computer program, the method for determining the oil level displayed on a vehicle meter as described in the first aspect above is implemented.
[0029] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for determining the oil level displayed on a vehicle as described in the first aspect above.
[0030] According to the method, device, and electronic device for determining the displayed fuel level on a vehicle provided by the present invention, the fuel resistance value of the vehicle collected in real time is smoothed to obtain a processed fuel resistance correction value; based on the fuel resistance correction value, the displayed fuel level on the vehicle is determined. By smoothing the fuel resistance value collected in real time, the present invention can reduce the noise in the resistance signal, avoid the influence of the instability of the actually collected fuel resistance value on the calculation of the displayed fuel level, and improve the effectiveness of the fuel resistance correction value, thereby improving the accuracy of the displayed fuel level and reducing the number of jumps in the displayed fuel level. In addition, this solution can obtain the displayed fuel level under all working conditions based on the fuel resistance correction value without distinguishing between different working conditions such as bumpy roads and sloped roads, thereby improving the applicability to different working conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0032] Figure 1 A schematic flow chart of a method for determining the fuel level displayed on a vehicle meter provided by an embodiment of the present invention;
[0033] Figure 2 A schematic flow chart of another method for determining the fuel level displayed on a vehicle meter provided by an embodiment of the present invention;
[0034] Figure 3 A schematic flow chart of another method for determining the fuel level displayed on a vehicle meter provided by an embodiment of the present invention;
[0035] Figure 4 A schematic flow chart of another method for determining the fuel level displayed on a vehicle meter provided by an embodiment of the present invention;
[0036] Figure 5 A schematic flow chart of another method for determining the fuel level displayed on a vehicle meter provided by an embodiment of the present invention;
[0037] Figure 6 A schematic structural diagram of a device for determining the fuel level displayed on a vehicle meter provided by an embodiment of the present invention;
[0038] Figure 7A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0040] In related technologies, vehicle control systems typically calculate the displayed fuel level based directly on the fuel resistance value when the vehicle's lateral and longitudinal accelerations meet certain conditions. However, due to the instability of the fuel resistance value, the calculated displayed fuel level is less accurate and often experiences frequent jumps. Furthermore, because the calculation of the displayed fuel level based on the fuel resistance value has strict requirements for road conditions, it does not assess the resistance signal under conditions such as bumpy and sloping roads, resulting in inaccurate calculations of the displayed fuel level under these conditions.
[0041] To address the aforementioned technical issues, the present invention processes the real-time collected fuel resistance values to reduce noise in the resistance signal data. This results in a smoother and more effective correction of the fuel resistance value, thereby improving the accuracy of the displayed fuel level and reducing the number of jumps in the displayed fuel level. Furthermore, without the need for additional hardware, this solution enables accurate fuel level determination under all operating conditions, addressing issues such as uneven and sloping road surfaces.
[0042] Figure 1 This is a flow chart of a method for determining the fuel level displayed on a vehicle provided by an embodiment of the present invention. It should be noted that the vehicle involved in the embodiment of the present invention can be a new energy vehicle, a fuel vehicle, or a hybrid vehicle, such as an extended range vehicle. Figure 1 As shown, the method for determining the fuel level displayed on a vehicle meter provided by an embodiment of the present invention may include the following steps:
[0043] Step 101 : Smoothing the fuel resistance value of the vehicle collected in real time to obtain a fuel resistance correction value after processing.
[0044] The fuel resistance value of the vehicle may be collected based on an oil float sensor equipped in the vehicle's fuel tank. For example, it may be a value obtained by converting a fuel resistance value signal collected by the sensor.
[0045] In some embodiments, smoothing the fuel resistance values of the vehicle collected in real time is equivalent to smoothing the data sequence composed of the fuel resistance values collected in real time, removing noise interference in the fuel resistance values, and making the changes of the fuel resistance values over time smoother and more stable.
[0046] As a possible implementation method, the real-time collected fuel resistance value can be smoothed by exponential smoothing. As an example, the fuel resistance value collected at the initial moment can be left unprocessed, and the fuel resistance value collected at the subsequent moments can be processed by the set smoothing factor a. For example, the fuel resistance value at the collection moment t is R t The fuel resistance correction value at the acquisition time t-1 is X t-1 , the fuel resistance correction value X at the acquisition time t t =a×R t +(1-a)×X t-1 .
[0047] As another possible implementation, a sliding window algorithm can be used to smooth the real-time fuel resistance values. For example, a window size can be pre-set, and for each acquisition moment, the average of the fuel resistance values within the sliding window corresponding to that acquisition moment is used as the fuel resistance correction value for that acquisition moment.
[0048] As another possible implementation, the fuel resistance value collected in real time may be smoothed based on a filter. For example, the fuel resistance value collected in real time may be smoothed using a Savitzky-Golay filter.
[0049] Step 102: Determine the fuel level displayed on the vehicle based on the fuel resistance correction value.
[0050] In some embodiments, regardless of operating conditions, the fuel level corresponding to the current fuel resistance correction value can be determined in real time by looking up a table based on a resistance-capacity correspondence table. The resulting fuel level is then used as the vehicle's current displayed fuel level. The resistance-capacity correspondence table includes a correspondence between fuel resistance and fuel level. The greater the data density within the resistance-capacity correspondence table, the higher the accuracy of the table lookup. Furthermore, because vehicle fuel tanks are often irregular in shape, the data in the resistance-capacity correspondence table is often nonlinear.
[0051] As an example, the resistance-capacity correspondence table is shown in Table 1 below. Based on the resistance-capacity correspondence table, the fuel volume corresponding to the current fuel resistance correction value can be queried. Since the fuel resistance correction value is continuously changing, while the resistance-capacity correspondence table is discrete, when the fuel resistance correction value cannot be directly found from the resistance-capacity correspondence table, it can be calculated using an interpolation algorithm. For example, if the current fuel resistance correction value is 205Ω, the interpolation calculation can be performed based on the fuel volume of 20 and 25 points to obtain
[0052] Table 1 Resistance and Capacitance Correspondence Table
[0053]
[0054] In some embodiments, the vehicle's gyroscope data can be obtained in real time, wherein the gyroscope data may include lateral acceleration values, longitudinal acceleration values, and vertical acceleration values; based on the lateral acceleration values, longitudinal acceleration values, and vertical acceleration values, the vehicle's current operating condition is determined; if the vehicle is currently in a stable operating condition, the oil quantity corresponding to the fuel resistance correction value at the current moment can be directly determined in real time by looking up the table based on the resistance-capacity correspondence table, and the oil quantity value is determined as the vehicle's displayed oil quantity at the current moment; if the vehicle is currently in a non-stable operating condition, the initial fuel quantity is determined by looking up the table based on the fuel resistance correction value at the last moment before entering the non-stable operating condition; the cumulative fuel injection quantity of the vehicle from the beginning of entering the non-stable operating condition to the current moment is obtained; the difference between the initial fuel quantity and the cumulative fuel injection quantity is determined as the vehicle's current displayed oil quantity.
[0055] By smoothing the real-time collected fuel resistance values of the vehicle, the effectiveness and stability of the fuel resistance correction value can be improved, thereby making the calculated displayed fuel level more accurate. Since the present invention is applicable to various operating conditions, it can calculate the displayed fuel level in real time under all operating conditions, making up for the missing calculation of the displayed fuel level under bumpy conditions, slope conditions, and rapid acceleration and deceleration conditions.
[0056] Since the method for determining the vehicle's displayed fuel level in an embodiment of the present invention can be performed in real time, the vehicle's displayed fuel level can be calculated in real time, thereby updating the vehicle's displayed fuel level in real time, improving the accuracy of the displayed fuel level, and greatly reducing the number of jumps in the displayed fuel level.
[0057] According to an embodiment of the present invention, a method for determining the displayed fuel level on a vehicle is implemented by correcting the fuel resistance of the vehicle based on a sliding window algorithm to obtain a fuel resistance correction value; and based on the fuel resistance correction value, the displayed fuel level on the vehicle is determined. By smoothing the fuel resistance, the present invention can reduce the noise in the resistance signal, avoid the influence of the instability of the actually collected fuel resistance on the displayed fuel level calculation, and improve the effectiveness of the fuel resistance correction value, thereby improving the accuracy of the displayed fuel level and reducing the number of times the displayed fuel level jumps. In addition, this solution can obtain the displayed fuel level under all operating conditions based on the fuel resistance correction value without distinguishing between different operating conditions such as bumpy roads and sloped roads, thereby improving the applicability to different operating conditions.
[0058] Figure 2 A flow chart of another method for determining the fuel level displayed on a vehicle provided by an embodiment of the present invention. Figure 2 As shown, based on the above embodiment, Figure 1 The implementation process of step 101 may include:
[0059] Step 201 : For each collection moment, obtain the fuel resistance value at each moment within the sliding window corresponding to the collection moment.
[0060] The collection time refers to the time when the fuel resistance value is collected. In other words, the fuel resistance value at each collection time is corrected to obtain the fuel resistance correction value corresponding to each collection time.
[0061] In some embodiments, the sliding window corresponding to the acquisition time t may include the acquisition time t and multiple moments before the acquisition time t, or include the acquisition time t and multiple moments after the acquisition time t, or include the acquisition time t and multiple moments before and after the acquisition time t. The multiple moments in the sliding window may be continuous or discontinuous. As an example, if the size of the sliding window is 5s, the sliding window T corresponding to the acquisition time t is t ={t,t+1,t+2,t+3,t+4}, that is, the sliding window corresponding to the acquisition time t can include the acquisition time t, acquisition time t+1, acquisition time t+2, acquisition time t+3 and acquisition time t+4, and the sliding window T corresponding to the acquisition time t+1 t+1 ={t+1,t+2,t+3,t+4,t+5}.
[0062] In another example, the sliding window corresponding to the acquisition time t can be T t ={t-4,t-3,t-2,t-1,t}, the sliding window T corresponding to the acquisition time t+1 t+1 ={t-3, t-2, t-1, t, t+1}. In another example, the sliding window corresponding to the acquisition time t can be Tt ={t-2,t-1,t,t+1,t+2}, the sliding window T corresponding to the acquisition time t+1 t+1 ={t-1,t,t+1,t+2,t+3}.
[0063] The size of the sliding window can be set based on actual needs.
[0064] It should be noted that, at the initial collection moment, when the time length of the collected fuel resistance value is less than the sliding window, the size of the sliding window can be dynamically adjusted, and the size of the sliding window can be increased from 1 to a preset value as data is collected.
[0065] Step 202 : Determine a fuel resistance correction value at the collection time based on the fuel resistance values at each time within the sliding window corresponding to the collection time.
[0066] That is, based on the fuel resistance values at each moment within the sliding window corresponding to the collection moment, the fuel resistance value at the collection moment is corrected to obtain the fuel resistance correction value at the collection moment.
[0067] It should be noted that the fuel resistance correction process is performed in real time. After the fuel resistance value at sampling time t is corrected based on the fuel resistance values at each moment in the sliding window corresponding to sampling time t, the fuel resistance value at sampling time t+1 is corrected based on the fuel resistance values at each moment in the sliding window corresponding to sampling time t+1, and so on.
[0068] As a possible implementation, the process of determining the fuel resistance correction value at the collection time based on the fuel resistance values at each moment within the sliding window corresponding to the collection time may include: averaging the fuel resistance values at each moment within the sliding window corresponding to the collection time, and using the average value as the fuel resistance correction value at the collection time.
[0069] As a possible implementation, determining the fuel resistance correction value at the time of collection based on the fuel resistance values at each moment within a sliding window corresponding to the collection moment may include determining the median value of the fuel resistance values at each moment within the sliding window corresponding to the collection moment, and determining the fuel resistance correction value at the time of collection based on the median value. For example, the median value may be determined as the fuel resistance correction value at the time of collection. For example, if the fuel resistance values at each moment within the sliding window corresponding to the current collection moment are 186Ω, 204Ω, 163Ω, 200Ω, and 209Ω, respectively, the fuel resistance values at each moment within the sliding window may be sorted in ascending order as 163Ω, 186Ω, 200Ω, 204Ω, and 209Ω. The fuel resistance value of 200Ω, which is in the middle of the sorted results, may be determined as the median value of the fuel resistance values within the sliding window, and the fuel resistance correction value at the current collection moment may be determined as 200Ω. As another example, if the fuel resistance values at each moment in the sliding window corresponding to the current collection moment are 186Ω, 204Ω, 163Ω, 200Ω, 209Ω, and 216Ω, respectively, the fuel resistance values at each moment in the sliding window can be sorted in ascending order as 163Ω, 186Ω, 200Ω, 204Ω, 209Ω, and 216Ω. The fuel resistance values in the middle of the sorting result are determined to be 200Ω and 204Ω. The average value of 200Ω and 204Ω, 202Ω, is used as the median value of the fuel resistance values in the sliding window, and the corrected fuel resistance value at the current collection moment is determined to be 202Ω.
[0070] As a possible implementation, the process of determining the fuel resistance correction value at the collection moment based on the fuel resistance values at each moment within the sliding window corresponding to the collection moment may include: determining the median and average values of the fuel resistance values at each moment within the sliding window corresponding to the collection moment, performing a weighted summation of the median and average values, and determining the weighted summation result as the fuel resistance correction value at the collection moment.
[0071] As a possible implementation, determining the fuel resistance correction value at the acquisition time based on the fuel resistance values at each moment within a sliding window corresponding to the acquisition time may include: performing a weighted summation operation on the fuel resistance values at each moment within the sliding window corresponding to the acquisition time to obtain a weighted summation result; and determining the fuel resistance correction value at the acquisition time based on the weighted summation result. During the weighted summation operation, the weight coefficient corresponding to each fuel resistance value at each moment within the sliding window may be pre-set, so that the resulting fuel resistance correction value is more consistent with actual conditions.
[0072] As an example, the fuel resistance correction value at the time of acquisition can be determined based on the weighted summation result by directly using the weighted summation result as the fuel resistance correction value at the time of acquisition. As another example, the weighted summation result can be multiplied by a preset coefficient to obtain the fuel resistance correction value at the time of acquisition.
[0073] In some embodiments, based on a sliding window algorithm, a process for smoothing the fuel resistance values of the vehicle collected in real time to obtain a fuel resistance correction value after processing may include: determining, for collection time t, n first collection times and m second collection times contained in a sliding window corresponding to collection time t; n is an integer greater than or equal to 0, m is a positive integer, the n first collection times are times before collection time t, and the m second collection times include collection time t and times after collection time t; obtaining a fuel resistance correction value for each of the n first collection times and a fuel resistance value for each of the m second collection times; and determining a fuel resistance correction value at collection time t based on the fuel resistance correction values for each of the n first collection times and the fuel resistance values for each of the m second collection times.
[0074] As an example, determining the fuel resistance correction value at sampling time t based on the respective fuel resistance correction values at n first sampling times and the respective fuel resistance values at m second sampling times may include: performing a weighted sum operation on the fuel resistance correction values at the respective n first sampling times and the respective fuel resistance values at the respective m second sampling times, and determining the obtained weighted sum result as the fuel resistance correction value at sampling time t.
[0075] Because the sliding window algorithm can correlate the characteristics of the fuel resistance values before and after the collection time, it can eliminate short-term fluctuations in the fuel resistance value and more easily capture the local characteristics of the fuel resistance value. This not only avoids the impact of the instability of the actual collected fuel resistance value on the calculation of the displayed fuel quantity, but also improves the effectiveness and stability of the fuel resistance value correction value.
[0076] According to an embodiment of the present invention, a method for determining the displayed fuel level on a vehicle meter, during the process of smoothing the vehicle's fuel resistance value, obtains, for each acquisition moment, the fuel resistance value at each moment within a sliding window corresponding to the acquisition moment; and determines a fuel resistance correction value at the acquisition moment based on the fuel resistance value at each moment within the sliding window corresponding to the acquisition moment. The present invention can correct the fuel resistance value at the acquisition moment in real time based on the fuel resistance value at each moment within the sliding window, making the obtained fuel resistance correction value more consistent with actual conditions, reducing noise in the resistance signal, and improving the effectiveness of the obtained fuel resistance correction value, thereby improving the accuracy of the displayed fuel level and reducing the number of jumps in the displayed fuel level.
[0077] Next, the specific implementation process of determining the vehicle's displayed fuel level based on the fuel resistance correction value will be introduced in detail.
[0078] Figure 3 A flow chart of another method for determining the fuel level displayed on a vehicle provided by an embodiment of the present invention. Figure 3 As shown, based on the above embodiment, Figure 1 The implementation process of step 102 may include the following steps:
[0079] Step 301 : If the driving mode of the vehicle is the electric driving mode, the fuel volume value corresponding to the fuel resistance correction value is determined based on the resistance-capacity correspondence table.
[0080] The electric drive mode can refer to either the pure electric driving mode of a pure electric vehicle or the pure electric driving mode of an extended-range vehicle. Since there is a risk of fuel leakage in the electric drive mode, the fuel level displayed on the meter can be accurately calculated in the electric drive mode to detect fuel leaks in a timely manner. If the displayed fuel level continues to decrease, a fuel leak warning can be issued.
[0081] In some embodiments, for each moment, the fuel volume value corresponding to the fuel resistance correction value at that moment may be determined based on the resistance-capacity correspondence table.
[0082] Step 302: determine the oil level value as the displayed oil level.
[0083] In other words, the current calculated fuel level is used as the displayed fuel level. Because the sliding window algorithm uses a more efficient correction for the fuel resistance at each moment, the calculated displayed fuel level is also more accurate, enabling timely monitoring of fuel leaks in electric drive mode and improving vehicle safety.
[0084] In practical applications, the fuel level indicator is often redundantly set to display a slightly lower level than the actual remaining fuel level. This improves fuel safety, provides the driver with a sufficient amount of fuel for a certain range, and ensures normal vehicle operation. However, over extended periods of driving, the displayed fuel level may deviate significantly from the actual level, resulting in poor fuel level accuracy. To address this issue, the present invention provides yet another embodiment.
[0085] Figure 4 A flow chart of another method for determining the fuel level displayed on a vehicle provided by an embodiment of the present invention. Figure 4 As shown, Figure 1 Step 102 in the embodiment may further include the following steps:
[0086] Step 401 : For a scenario where redundant settings are introduced for the displayed fuel level of the vehicle, the initial displayed fuel level of the vehicle and the initial fuel level of the vehicle during driving are determined based on the fuel resistance correction value.
[0087] The initial displayed fuel level may be a fuel level calculated based on the fuel resistance correction value and redundant setting logic in a scenario where redundant setting is introduced into the displayed fuel level of the vehicle.
[0088] In some embodiments, the initial displayed fuel level at the current moment can be determined based on the displayed fuel level at the previous moment, the first cumulative fuel injection level from the previous moment to the current moment, and a redundancy factor. The displayed fuel level at the initial moment of travel is determined based on the fuel resistance correction value. As an example, the first cumulative fuel injection level can be corrected based on the redundancy factor to obtain a corrected first cumulative fuel injection level; the difference between the displayed fuel level at the previous moment and the corrected first cumulative fuel injection level is determined as the initial displayed fuel level. The redundancy factor can be pre-set.
[0089] The initial fuel amount of the vehicle during driving may be the fuel amount corresponding to the moment when the vehicle starts driving, or the fuel amount at the start time corresponding to a scenario in which redundant settings are introduced for the displayed fuel amount.
[0090] In some embodiments, the initial fuel level can be determined based on the fuel resistance correction value at the start of a scenario in which redundant settings are introduced. For example, a resistance-capacity correspondence table can be used to look up the fuel level value corresponding to the fuel resistance correction value at the start of the scenario in which redundant settings are introduced, and this fuel level value can be determined as the initial fuel level.
[0091] As an example, if a redundant setting is introduced under the steady driving condition of the vehicle's fuel-driven mode, where the vehicle's fuel-driven mode can be the driving mode of a fuel vehicle or the extended-range driving mode of an extended-range vehicle. In this case, when the vehicle is in the fuel-driven mode, the vehicle's driving condition can be determined based on the vehicle's gyroscope data; if the vehicle's driving condition is the steady driving condition, steps 401 to 403 are executed. The initial fuel quantity in this case can be determined based on the fuel resistance correction value at the start of the steady driving condition. For example, if the steady driving condition is determined based on the gyroscope data at the current moment, the gyroscope data before the current moment is queried to determine the start time of the steady driving condition, and then the fuel resistance correction value at the start time of the steady driving condition is determined from the fuel resistance correction values obtained at each acquisition moment.
[0092] As a possible implementation, the gyroscope data may include lateral acceleration, longitudinal acceleration, and vertical acceleration. In combination with the vehicle's gyroscope data, the process of determining the vehicle's driving condition includes: if the lateral acceleration is less than or equal to a first acceleration, the longitudinal acceleration is less than or equal to a second acceleration, and the vertical acceleration is less than a third acceleration, the vehicle's driving condition is determined to be a stable driving condition; if the lateral acceleration is greater than the first acceleration, or the lateral acceleration is greater than the second acceleration, or the vertical acceleration is greater than the third acceleration, the vehicle's driving condition is determined to be an unsteady driving condition. The first, second, and third acceleration values can be set based on actual scenarios. For example, the first, second, and third acceleration values are all 0.05 times the acceleration of gravity.
[0093] Step 402 : Obtain the cumulative fuel injection amount of the vehicle during driving, and determine the remaining fuel amount based on the initial fuel amount and the cumulative fuel injection amount.
[0094] The cumulative fuel injection amount of the vehicle during driving may be a cumulative value of the fuel injection amount of the vehicle during driving from the start time of the scenario where the redundant setting is introduced to the current time.
[0095] Based on the above example, if a redundant setting is introduced under the steady driving condition of the vehicle's fuel driving mode, the cumulative fuel injection amount may be the cumulative fuel injection amount from the start of the steady driving condition of the vehicle's fuel driving mode to the current moment.
[0096] In some embodiments, the process of determining the remaining fuel amount based on the initial fuel amount and the cumulative fuel injection amount includes: determining the difference between the initial fuel amount and the cumulative fuel injection amount as the remaining fuel amount.
[0097] Step 403 : correcting the initial displayed oil level based on the difference between the initial displayed oil level and the remaining oil level, and determining the corrected initial displayed oil level as the displayed oil level.
[0098] In order to prevent the displayed oil level from deviating from the actual remaining oil level, in an embodiment of the present invention, the displayed oil level is determined by correcting the initial displayed oil level based on the difference between the initial displayed oil level and the remaining oil level.
[0099] In some embodiments, the implementation method of correcting the initial displayed fuel amount based on the difference between the initial displayed fuel amount and the remaining fuel amount may include: determining the difference between the initial displayed fuel amount and the remaining fuel amount; if the difference is within a preset difference range, there is no need to correct the initial displayed fuel amount, and the initial displayed fuel amount is directly used as the displayed fuel amount at the current moment; if the difference is not within the preset difference range, the initial displayed fuel amount is adjusted based on a preset fuel amount step. For example, in a scenario where the difference is not within the preset difference range, if the initial displayed fuel amount is greater than the remaining fuel amount, the difference between the initial displayed fuel amount and the fuel amount step is determined as the corrected initial displayed fuel amount; if the displayed fuel amount is less than the remaining fuel amount, the sum of the initial displayed fuel amount and the fuel amount step is determined as the corrected initial displayed fuel amount.
[0100] In other embodiments, a redundancy factor at the current moment can be determined based on the difference between the initial indicated fuel level and the remaining fuel level. A revised initial indicated fuel level can be obtained based on the redundancy factor at the current moment, the indicated fuel level at the previous moment, and the first cumulative fuel injection amount from the previous moment to the current moment. As an example, a mapping relationship between fuel level differences and redundancy factors can be pre-set. Based on this mapping relationship, the redundancy factor corresponding to the fuel level difference at the previous moment is used as the redundancy factor at the current moment.
[0101] According to the method for determining the displayed fuel amount on a vehicle according to an embodiment of the present invention, for a scenario where redundant settings are introduced to the displayed fuel amount on the vehicle, the initial displayed fuel amount of the vehicle and the initial fuel amount of the vehicle during driving are determined based on the fuel resistance correction value; the cumulative fuel injection amount of the vehicle during driving is obtained, and the remaining fuel amount is determined based on the initial fuel amount and the cumulative fuel injection amount; the initial displayed fuel amount is corrected based on the difference between the initial displayed fuel amount and the remaining fuel amount, and the corrected initial displayed fuel amount is determined as the displayed fuel amount. The present invention does not directly use the initial displayed fuel amount after the redundant settings are introduced, but corrects the initial displayed fuel amount based on the difference between the initial displayed fuel amount and the remaining fuel amount to determine the displayed fuel amount. This can avoid the situation where the displayed fuel amount deviates from the actual remaining fuel amount due to the introduction of redundant settings, thereby improving the authenticity of the displayed fuel amount.
[0102] Figure 5 A flow chart of another method for determining the fuel level displayed on a vehicle provided by an embodiment of the present invention. Figure 5 As shown, based on the above embodiment, Figure 4 The implementation process of correcting the initial oil quantity indicated on the meter based on the difference between the initial oil quantity indicated on the meter and the remaining oil quantity may include the following steps:
[0103] Step 501: Determine the difference between the initial displayed fuel level and the remaining fuel level.
[0104] Step 502: If the difference is greater than or equal to the first threshold or less than or equal to the second threshold, determine the redundancy coefficient for introducing redundancy settings, correct the redundancy coefficient, and determine the corrected initial oil level based on the corrected redundancy coefficient.
[0105] The first threshold is greater than or equal to 0, and the second threshold is less than or equal to 0. The first and second thresholds can be set based on actual needs. For example, the first threshold can be set to 0, and the second threshold can be set to -0.4. A difference greater than or equal to the first threshold or less than or equal to the second threshold indicates that there is a certain deviation between the initial indicated fuel level and the remaining flow at the current moment. In this case, to reduce the deviation between the indicated fuel level and the remaining flow, the initial indicated fuel level can be corrected.
[0106] In some embodiments, the redundant coefficient introduced into the redundancy setting is a redundant coefficient used to calculate the initial displayed fuel level. This redundant coefficient can be a pre-set value or can be determined based on the difference between the displayed fuel level at a previous moment and the remaining fuel level at a previous moment. For example, a mapping relationship between the fuel level difference and the redundant coefficient can be pre-set. Based on this mapping relationship, the redundant coefficient corresponding to the fuel level difference at a previous moment is determined and used as the redundant coefficient at the current moment to calculate the initial displayed fuel level.
[0107] In some embodiments, the implementation process of correcting the redundancy coefficient may include: if the difference is less than or equal to a second threshold, the redundancy coefficient m can be corrected based on a preset adjustment ratio a, and the corrected redundancy coefficient is m×(1-a); if the difference is less than or equal to the second threshold, the corrected redundancy coefficient is m×(1+a).
[0108] That is to say, by correcting the redundancy coefficient, the corrected initial indicated oil volume can be made closer to the remaining oil volume. At the same time, the adjustment ratio can be controlled to avoid large jumps in the indicated oil volume.
[0109] In some embodiments, if the difference between the initial displayed fuel level and the remaining fuel level is small, this can be considered a relatively ideal situation. It can be assumed that the initial displayed fuel level obtained after the introduction of the redundancy setting does not deviate from the actual remaining fuel level, so no correction is required and the initial displayed fuel level can be directly displayed on the fuel gauge. Based on the above example, if the difference is less than the first threshold and greater than the second threshold, the initial displayed fuel level is determined as the displayed fuel level.
[0110] In some embodiments, if the difference between the initial displayed fuel level and the remaining fuel level is significant, for example, if the difference is greater than a third threshold or less than a fourth threshold, where the third threshold is greater than the first threshold and the fourth threshold is less than the second threshold, then the first displayed fuel level has significantly deviated from the remaining fuel level. In this case, the redundancy factor may be corrected according to the method described in step 502. However, to avoid sudden changes in the displayed fuel level, the effect of correcting the redundancy factor on the deviation between the displayed fuel level and the remaining fuel level is negligible. Therefore, in this case, the displayed fuel level may be used directly as the current displayed fuel level without correcting the displayed flow rate during vehicle operation. The displayed fuel level is then corrected based on the fuel resistance correction value after the vehicle has been parked for a predetermined period of time. For example, after the vehicle has been parked for 40 seconds, the fuel level value is determined by looking up the table based on the fuel resistance correction value at the corresponding time, and this fuel level value is then updated to the displayed fuel level. That is, after the vehicle has been parked for 40 seconds, the displayed fuel level is updated based on the fuel resistance correction value.
[0111] The third threshold and the fourth threshold can be set based on actual needs. For example, the third threshold can be set to 7, and the fourth threshold can be set to -0.5.
[0112] According to the method for determining the vehicle fuel level displayed on the vehicle according to an embodiment of the present invention, when the difference is greater than or equal to a first threshold or less than or equal to a second threshold, the redundancy coefficient is corrected, and based on the corrected redundancy coefficient, a corrected initial fuel level displayed on the vehicle is determined, and the corrected initial fuel level displayed on the vehicle is determined as the fuel level displayed on the vehicle. This solution corrects the initial fuel level displayed on the vehicle by correcting the redundancy coefficient, thereby reducing the deviation between the fuel level displayed on the vehicle and the actual remaining fuel level. This ensures the security of the redundant setting, makes the fuel level displayed on the vehicle closer to the actual remaining fuel level, and improves the accuracy of the fuel level displayed on the vehicle.
[0113] In some embodiments, the method for determining the displayed fuel level on a vehicle meter according to embodiments of the present invention may further include: updating the displayed fuel level based on the fuel resistance correction value after the vehicle has been stopped for a preset period of time. For example, after the vehicle has been stopped for 40 seconds, a corresponding fuel level value is obtained through a table lookup based on the fuel resistance correction value collected 40 seconds after the vehicle stopped, and the vehicle's displayed fuel level is updated to that fuel level value. Specifically, the displayed fuel level is updated based on the fuel resistance correction value after the vehicle has been stopped for a preset period of time, thereby correcting for deviations in the displayed fuel level during driving.
[0114] In order to implement the above embodiment, an embodiment of the present invention further provides a device for determining the oil level displayed on a vehicle meter.
[0115] Figure 6 This is a schematic diagram of the structure of a vehicle fuel level determination device provided by an embodiment of the present invention. Figure 6As shown, the apparatus may include: a correction module 610 and a determination module 620. The correction module 610 is configured to smooth the fuel resistance value collected in real time to obtain a corrected fuel resistance value; and the determination module 620 is configured to determine the indicated fuel level of the vehicle based on the corrected fuel resistance value.
[0116] In some embodiments, the correction module 610 is specifically configured to:
[0117] For each collection moment, obtaining the fuel resistance value at each moment within the sliding window corresponding to the collection moment;
[0118] Based on the fuel resistance values at each moment in the sliding window corresponding to the collection moment, a fuel resistance correction value at the collection moment is determined.
[0119] As a possible implementation, the correction module 610 is further configured to:
[0120] performing a weighted sum operation on the fuel resistance values at each moment within the sliding window corresponding to the acquisition moment to obtain a weighted sum result;
[0121] Based on the weighted summation result, a fuel resistance correction value at the acquisition moment is determined.
[0122] In some embodiments, the determination module 620 is further configured to:
[0123] If the driving mode of the vehicle is the electric driving mode, determining the fuel volume value corresponding to the fuel resistance correction value based on a resistance-capacity correspondence table;
[0124] The oil level value is determined as the displayed oil level.
[0125] In some embodiments, the determination module 620 is further configured to:
[0126] In a scenario where a redundant setting is introduced for the displayed fuel level on the vehicle, determining the initial displayed fuel level on the vehicle and the initial fuel level of the vehicle during driving based on the fuel resistance correction value;
[0127] Obtaining a cumulative fuel injection amount of the vehicle during driving, and determining a remaining fuel amount based on the initial fuel amount and the cumulative fuel injection amount;
[0128] The initial indicated oil amount is corrected based on a difference between the initial indicated oil amount and the remaining oil amount, and the corrected initial indicated oil amount is determined as the indicated oil amount.
[0129] In some embodiments, the determination module 620 is further configured to:
[0130] determining a difference between the initial indicated oil level and the remaining oil level;
[0131] If the difference is greater than or equal to the first threshold or less than or equal to the second threshold, determine the redundancy coefficient for introducing the redundant setting, correct the redundancy coefficient, and determine the corrected initial displayed oil volume based on the corrected redundancy coefficient; wherein, the first threshold is greater than or equal to 0, and the second threshold is less than 0.
[0132] In some embodiments, the determination module 620 is further configured to:
[0133] After the vehicle is parked for a preset time, the displayed fuel amount is updated based on the fuel resistance correction value.
[0134] According to an embodiment of the present invention, a device for determining the displayed fuel level on a vehicle is used to smooth the fuel resistance value of the vehicle collected in real time based on a sliding window algorithm to obtain a processed fuel resistance correction value; and the displayed fuel level on the vehicle is determined based on the fuel resistance correction value. By smoothing the fuel resistance value collected in real time, the present invention can reduce the noise in the resistance signal, avoid the influence of the instability of the actually collected fuel resistance value on the displayed fuel level calculation, and improve the effectiveness of the fuel resistance correction value, thereby improving the accuracy of the displayed fuel level and reducing the number of times the displayed fuel level jumps. In addition, this solution can obtain the displayed fuel level under all working conditions based on the fuel resistance correction value without distinguishing between different working conditions such as bumpy roads and sloped roads, thereby improving the applicability to different working conditions.
[0135] It should be noted that the explanations in the above embodiment of the method for determining the fuel level displayed on a vehicle meter are also applicable to the device for determining the fuel level displayed on a vehicle meter in the embodiment of the present invention, and will not be repeated here.
[0136] Figure 7 An example of a physical structure diagram of an electronic device is shown below. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730, and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 may call a computer program in the memory 730 to execute the steps of the method for determining the fuel level displayed on a vehicle meter provided in the above embodiment.
[0137] For example, the method includes: smoothing the fuel resistance value of the vehicle collected in real time to obtain a processed fuel resistance correction value; and determining the vehicle's displayed fuel level based on the fuel resistance correction value.
[0138] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0139] On the other hand, an embodiment of the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the steps of the method for determining the vehicle oil level displayed on the vehicle provided in the above embodiment.
[0140] On the other hand, an embodiment of the present invention further provides a vehicle equipped with the electronic device in the above embodiment.
[0141] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to execute the vehicle oil level determination method provided in the above embodiments.
[0142] The computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROMs, EPROMs, EEPROMs, non-volatile memories (NANDFLASH), solid-state drives (SSDs)), etc.
[0143] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0144] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for determining the fuel level displayed on a vehicle, characterized in that: include: Smoothing the fuel resistance value of the vehicle collected in real time to obtain a corrected fuel resistance value; The fuel level indicated on the vehicle is determined based on the fuel resistance correction value.
2. The method for determining the fuel level displayed on a vehicle according to claim 1, wherein: The step of smoothing the real-time collected fuel resistance value of the vehicle to obtain a processed fuel resistance correction value includes: For each collection moment, obtaining the fuel resistance value at each moment within the sliding window corresponding to the collection moment; Based on the fuel resistance values at each moment in the sliding window corresponding to the collection moment, a fuel resistance correction value at the collection moment is determined.
3. The method for determining the fuel level displayed on a vehicle according to claim 2, wherein: The determining of the fuel resistance correction value at the collection moment based on the fuel resistance value at each moment within the sliding window corresponding to the collection moment includes: performing a weighted sum operation on the fuel resistance values at each moment within the sliding window corresponding to the acquisition moment to obtain a weighted sum result; Based on the weighted summation result, a fuel resistance correction value at the acquisition moment is determined.
4. The method for determining the fuel level displayed on a vehicle according to claim 1, wherein: The determining of the vehicle's indicated fuel level based on the fuel resistance correction value includes: If the driving mode of the vehicle is the electric driving mode, determining the fuel volume value corresponding to the fuel resistance correction value based on a resistance-capacity correspondence table; The oil level value is determined as the displayed oil level.
5. The method for determining the fuel level displayed on a vehicle according to claim 1, wherein: The determining of the vehicle's indicated fuel level based on the fuel resistance correction value includes: In a scenario where a redundant setting is introduced for the displayed fuel level on the vehicle, determining the initial displayed fuel level on the vehicle and the initial fuel level of the vehicle during driving based on the fuel resistance correction value; Obtaining a cumulative fuel injection amount of the vehicle during driving, and determining a remaining fuel amount based on the initial fuel amount and the cumulative fuel injection amount; The initial indicated oil amount is corrected based on a difference between the initial indicated oil amount and the remaining oil amount, and the corrected initial indicated oil amount is determined as the indicated oil amount.
6. The method for determining the fuel level displayed on a vehicle according to claim 5, characterized in that: The correcting the initial oil level based on the difference between the initial oil level and the remaining oil level includes: determining a difference between the initial indicated oil level and the remaining oil level; If the difference is greater than or equal to the first threshold or less than or equal to the second threshold, determine the redundancy coefficient for introducing the redundant setting, correct the redundancy coefficient, and determine the corrected initial displayed oil volume based on the corrected redundancy coefficient; wherein, the first threshold is greater than or equal to 0, and the second threshold is less than 0.
7. The method for determining the fuel level displayed on a vehicle according to any one of claims 1 to 6, characterized in that: The method further comprises: After the vehicle is parked for a preset time, the displayed fuel amount is updated based on the fuel resistance correction value.
8. A device for determining the fuel level displayed on a vehicle, characterized in that: include: A correction module is used to smooth the fuel resistance value of the vehicle collected in real time to obtain a corrected fuel resistance value; A determination module is used to determine the fuel level displayed on the vehicle based on the fuel resistance correction value.
9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the method for determining the fuel level displayed on a vehicle meter according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining the fuel level displayed on a vehicle meter according to any one of claims 1 to 7 is implemented.