Oil quantity display method

By establishing fuel level ranges and combining dynamic calculations and filtering algorithms based on vehicle operating status, the problem of inaccurate fuel level display in methanol fuel vehicles has been solved, achieving high-precision real-time feedback and improving driving safety and experience.

CN121655643APending Publication Date: 2026-03-13FORYOU GENERAL ELECTRONICS
View PDF 7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-21
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing fuel calculation algorithms lack a suitable method for calculating fuel quantity for methanol fuel, resulting in inaccurate fuel quantity measurement and display in methanol fuel vehicles, affecting the driving experience and potentially causing vehicle breakdowns or fuel depletion.

Method used

Multiple fuel level ranges are established, and the current fuel level is dynamically calculated based on the vehicle's operating status. An anti-shaking dynamic filtering algorithm and a refueling event detection mechanism are adopted. Through an initialization event and a state machine-driven display update strategy, the fuel level display is ensured to be synchronized with the actual consumption.

Benefits of technology

It achieves high-precision real-time feedback of fuel quantity in methanol fuel vehicles, improving the reliability and real-time performance of fuel quantity calculation, and enhancing safety and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121655643A_ABST
    Figure CN121655643A_ABST
Patent Text Reader

Abstract

The invention provides an oil quantity display method which comprises the following steps: step S10, establishing a plurality of oil quantity intervals, each oil quantity interval corresponding to a resistance value range of a sensor, and defining a minimum oil quantity value and a maximum oil quantity value of each oil quantity interval; s20, the current detection oil quantity V1 is calculated based on the current running state of the vehicle, wherein the running state of the vehicle comprises a moving state and a static state; step S30, when a predetermined event occurs, initializing the displayed oil mass Vdisp as the current detected oil mass V1; and S40, according to the current detection oil quantity V1 and the display oil quantity Vdisk, the display oil quantity Vdisk is refreshed based on a preset updating strategy. According to the invention, the reliability and real-time performance of oil quantity calculation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of new energy vehicle technology, and in particular to a fuel level display method. Background Technology

[0002] With the development of new energy vehicle technology, methanol, as a clean fuel, is increasingly widely used in automotive power systems. However, the fuel tank structure of methanol-fueled vehicles differs significantly from that of traditional gasoline vehicles. The relationship between the resistance value of the fuel level sensor and the fuel level value is non-linear; a single resistance value often corresponds to a range of fuel levels rather than a single value. Existing fuel level algorithms are primarily designed for gasoline or diesel fuels and lack a fuel level calculation scheme suitable for methanol fuel, resulting in inaccurate real-time fuel level readings during vehicle operation. This not only affects the driving experience but may also lead to vehicle breakdowns or running out of fuel due to inaccurate fuel level displays. Therefore, there is an urgent need to develop a fuel level algorithm adapted to the characteristics of methanol fuel to solve the technical challenge of inaccurate fuel level measurement and display. Summary of the Invention

[0003] This invention provides a fuel level display method, which aims to overcome the shortcomings of the prior art and improve the reliability and real-time performance of fuel level calculation.

[0004] To achieve the above objectives, the technical solution adopted by the present invention is as follows: This invention provides a method for displaying fuel level, comprising: Step S10: Establish multiple oil volume ranges, each corresponding to the sensor resistance range, and define the minimum and maximum oil volume values ​​for each oil volume range; Step S20: Calculate the current detected fuel quantity V1 based on the current operating state of the vehicle, wherein the vehicle operating state includes both moving and stationary states; Step S30: When the predetermined event occurs, initialize the displayed oil level Vdisp to the currently detected oil level V1; Step S40: Based on the current detected oil level V1 and the displayed oil level Vdisp, refresh the displayed oil level Vdisp according to a preset update strategy.

[0005] Specifically, step S10 includes: Step S101: Through experimental calibration, methanol fuel is gradually added to an empty fuel tank in fixed volumes, and the resistance value of the stable sensor corresponding to each volume point is recorded. Step S102: Based on the recorded resistance-volume data points, divide the nonlinear relationship curve into multiple segments with relatively good linearity, with each segment serving as an oil volume interval. Step S103: Set the minimum and maximum oil volume values ​​for each oil volume range, where the minimum oil volume value is the starting volume of the range and the maximum oil volume value is the ending volume of the range.

[0006] Specifically, in step S20, when the vehicle is in motion, the current detected fuel quantity V1 is calculated using an anti-sway dynamic filtering algorithm, including: Step S211: Perform first-order filtering by continuously collecting the resistance values ​​of multiple sensors in real time and converting them into oil quantity values. After removing extreme values, calculate the average value to obtain the first-order filtered value. Step S212: Based on the oil quantity range where the first-order filter value is located, take the ConsumeFuelLevel value of that range as the final first-order filter value. Step S213: Perform second-order filtering processing, input the final first-order filter value into the second-order filtering formula, and calculate the current detected oil quantity V1.

[0007] Specifically, in step S211, the sampling period for the first-order filtering process is set to 150 milliseconds. Ten oil quantity values ​​are continuously collected in real time. After removing one maximum value and one minimum value, the average value of the remaining eight oil quantity values ​​is used to calculate the first-order filtered value.

[0008] Specifically, in step S213, the second-order filtering formula is: FuelFilter2[m]=F_c×FuelFilterFinal1[m]+(1-F_c)×FuelFilter2[m-1] Where FuelFilter2[m] represents the current second-order filtered fuel value, FuelFilterFinal1[m] represents the current final first-order filtered value, FuelFilter2[m-1] represents the previous second-order filtered fuel value, and F_c is the filtering coefficient, with a value range of 0.1 to 0.3.

[0009] Specifically, in step S20, when the vehicle is stationary, the current detected fuel quantity V1 is calculated using the refueling event detection and benchmark update algorithm, including: Step S221: Establish a static reference benchmark, record the fuel level range after the vehicle enters a stationary state for a preset time, and take the median value of the fuel level in this range as the initial reference benchmark. Step S222: Monitor the real-time fuel level. When the trend condition, amplitude condition, and time condition are met simultaneously, determine that a refueling event has occurred. Step S223: When the refueling event is confirmed, use the median value of the fuel quantity in the range where the current stable fuel quantity value is located as the current detected fuel quantity V1, and reinitialize the filter.

[0010] Specifically, in step S222, the conditions for determining the refueling event include: Trend condition: Real-time oil volume values ​​show a continuous monotonic upward trend; Amplitude condition: The cumulative increase in the real-time fuel level exceeds a preset refueling threshold, which is set as a fixed value or a relative proportion; Time condition: The upward trend is maintained within a preset continuous time period.

[0011] Specifically, in step S30, the predetermined events include the system's first wake-up and the confirmation of the refueling event.

[0012] Specifically, in step S40, the preset update strategy includes the following states: State S0: When the vehicle is started for the first time or when the currently displayed fuel level Vdisp and N consecutive currently detected fuel levels V1 are all in the same fuel level range, the displayed fuel level decreases in the fuel injection mode, where the fuel injection level is the actual fuel consumption of the previous cycle obtained in real time from the engine controller. State S1: When the current displayed fuel level Vdisp and the current detected fuel level V1 are not in the same fuel level range, and N consecutive current detected fuel levels V1 are all less than the current displayed fuel level Vdisp, the displayed fuel level decreases in damped mode. State S2: When the currently displayed fuel level Vdisp and the currently detected fuel level V1 do not belong to the same fuel level range, and N consecutive currently detected fuel levels V1 are greater than the minimum fuel level value of the next range of the range where the currently displayed fuel level Vdisp is located, the displayed fuel level remains unchanged; Where N is an integer from 2 to 15.

[0013] Specifically, in state S2, the system exits state S2 and returns to state S0 when any of the following conditions are met: For N consecutive times, the current detected oil quantity V1 is less than the current displayed oil quantity Vdisp; The time spent in state S2 exceeds the preset timeout threshold; Since entering state S2, the cumulative fuel injection amount has exceeded the safety threshold.

[0014] The beneficial effects of this invention are as follows: By establishing a fuel level range and dynamically calculating the current detected fuel level based on the vehicle's operating status, combined with an anti-shaking dynamic filtering algorithm and a refueling event detection mechanism, and through an initialization event and state machine-driven display update strategy, this invention ensures that the fuel level display is synchronized with the actual consumption, effectively avoiding display jumps or freezes caused by sensor characteristics or vehicle shaking. This achieves high-precision real-time feedback of fuel level in methanol fuel vehicles, significantly improving the reliability and real-time performance of fuel level calculation, enabling drivers to accurately grasp the fuel status, and improving the safety and user experience of methanol fuel vehicles. Attached Figure Description

[0015] Figure 1 This is a schematic flowchart of the oil level display method of the present invention. Detailed Implementation

[0016] The embodiments of the present invention are described in detail below with reference to the accompanying drawings. The drawings are for reference and illustration only and do not constitute a limitation on the scope of protection of the present invention.

[0017] In the process described in the specification, claims, or drawings of this invention, each step is numbered (e.g., step 10, 20, etc.). These numbers are used only to distinguish the steps and do not represent any execution order. It should be noted that the terms "first," "second," etc., used herein are only for distinguishing the objects being described and do not represent a chronological order, nor do they indicate that "first," "second," etc., are different types.

[0018] like Figure 1 As shown, this embodiment provides a fuel level display method, including: Step 1: Establish oil volume range.

[0019] In this embodiment, step 1 includes: Step 101, Experimental Calibration: In the experimental environment, methanol fuel is gradually added to the empty fuel tank in fixed volume units, and the stable sensor resistance value corresponding to each volume point is recorded. The fixed volume is preferably 1 liter, but can be adjusted according to actual conditions.

[0020] Step 102, Interval Division: Based on the recorded resistance-volume data points, the nonlinear relationship curve is divided into several segments with relatively good linearity. Each segment is defined as an oil volume interval Sn (n is the interval number, such as S1, S2, etc.).

[0021] Step 103, Parameter setting: Set the corresponding minimum oil volume Min(Sn) and maximum oil volume Max(Sn) for each oil volume range Sn, where Min(Sn) represents the starting volume of the range and Max(Sn) represents the ending volume of the range.

[0022] For example, for interval S2, Min(S2) is 7 liters and Max(S2) is 9 liters.

[0023] Step 2: Calculate the current detected oil level V1 based on the vehicle's operating status.

[0024] Step 201: When the vehicle is in motion, the current detected fuel quantity V1 is calculated using an anti-sway dynamic filtering algorithm, specifically including: Step 2011, First-order filtering: Multiple sensor resistance values ​​are continuously collected in real time at a preset sampling period and converted into fuel quantity values. The sampling period is preferably 150 milliseconds. The number of collected fuel quantity values ​​is preferably 10. After removing one maximum and one minimum value, the remaining fuel quantity values ​​FuelRaw_j (j=1,2,…,8) are obtained. The average value of these remaining fuel quantity values ​​is calculated as the first-order filter value FuelFilter1[m].

[0025] Step 2012: Determine the final value of the first-order filter: Based on the fuel volume interval Sn in which FuelFilter1[m] is located, take the ConsumeFuelLevel value of that interval as the final first-order filter value FuelFilterFinal1[m]. ConsumeFuelLevel is preferably the maximum fuel volume Max(Sn) of the interval. For example, if FuelFilter1[m] corresponds to interval S2, then FuelFilterFinal1[m] takes Max(S2) as 9 liters.

[0026] Step 2013, Second-order filtering: Input FuelFilterFinal1[m] into the second-order filtering formula to calculate the second-order filtered fuel quantity value FuelFilter2[m]: FuelFilter2[m]=F_c×FuelFilterFinal1[m]+(1-F_c)×FuelFilter2[m-1] Wherein, FuelFilter2[0]=FuelFilterFinal1[0], F_c is the filter coefficient, used to balance real-time performance and stability, and its value is determined through engineering tests, with a preferred range of 0.1 to 0.3; for example, for urban road conditions, F_c is set to 0.1. FuelFilter2[m] is the current detected fuel quantity V1.

[0027] Step 202: When the vehicle is stationary, the current detected fuel level V1 is calculated using the refueling event detection and baseline update algorithm. This algorithm is also applicable to fuel level baseline acquisition when the system is first woken up and the vehicle is stationary. Specifically, it includes: Step 2021: Establish a static reference baseline: The system records the fuel level (CurrentFuelLevel) within the interval Sn_initial after the vehicle enters a stationary state for a preset time, preferably 10 to 15 seconds; the midpoint of the fuel level within this interval, Mid(Sn_initial), is taken as the initial reference baseline. Mid(Sn_initial)=(Max(Sn_initial)+Min(Sn_initial)) / 2 Step 2022, Refueling Event Determination: The system continuously monitors the real-time fuel level (CurrentFuelLevel) after first-order filtering. A refueling event is determined to have occurred when the following conditions are met simultaneously: Trend condition: CurrentFuelLevel shows a continuous monotonically increasing trend; Amplitude condition: The cumulative increase of CurrentFuelLevel ΔFuel exceeds the preset refueling judgment threshold LCFG_RefuelThreshold, where ΔFuel=CurrentFuelLevel-Mid(Sn_initial); LCFG_RefuelThreshold is a fixed value (e.g., 5 liters) or a relative proportion (e.g., 30% of the current interval span). Time condition: The upward trend is maintained within a preset continuous time period to eliminate interference.

[0028] Step 2023, Refueling Event Handling: When a refueling event is confirmed, the system performs the following operations: Use the median value of the oil volume in the current stable CurrentFuelLevel range as the current detected oil volume V1; Clear the filter history data and reinitialize the first-order and second-order filters.

[0029] Step 2024, No refueling event handling: If the refueling determination condition is not met during the stationary period, the system determines it as normal parking; when the vehicle starts (vehicle speed greater than 0), the dynamic filtering algorithm of the sport mode is switched based on the fuel level display value before entering the stationary state.

[0030] Step 3: Initialize the display of oil level.

[0031] The displayed fuel level is initialized when the following events occur: Event A: System wake-up for the first time; Event B: The refueling incident has been confirmed.

[0032] During initialization, the displayed oil level is set to the current detected oil level V1 obtained in step 2.

[0033] Step 4: Based on the current detected fuel level V1 and the current displayed fuel level Vdisp, refresh the fuel level display according to the update strategy. The update strategy includes the following states: Step 401, State S0: When the vehicle starts for the first time or when the currently displayed fuel level Vdisp and N consecutive currently detected fuel levels V1 all belong to the same fuel level range, the displayed fuel level decreases in fuel injection mode; where the determination of the same range is based on the range where Vdisp is located; specifically: If the displayed fuel level is higher than the preset low fuel level, then the displayed fuel level [k] = displayed fuel level [k-1] - fuel injection amount within the cycle; If the displayed fuel level is equal to or lower than the preset low fuel level, then the displayed fuel level [k] = displayed fuel level [k-1] - 1.5 × fuel injection amount within the cycle; The fuel injection quantity is the actual fuel consumption of the previous cycle, which is obtained in real time from the engine controller.

[0034] Step 402, State S1: When the currently displayed fuel level Vdisp and the currently detected fuel level V1 are not in the same range, and N consecutive V1 values ​​are less than Vdisp, the displayed fuel level decreases in damped mode. Vdisp[k]=α×Vdisp[k-1]+(1-α)×V1[k] Where α is the damping coefficient, Vdisp[k-1] is the displayed fuel level at the previous moment, and V1[k] is the currently detected fuel level; or, a fixed damping decrease coefficient can be used to achieve a larger decrease. When the displayed fuel level Vdisp and N consecutive V1 values ​​belong to the same interval, the system exits state S1 and returns to state S0.

[0035] Step 403, State S2: When the currently displayed fuel quantity Vdisp and the currently detected fuel quantity V1 do not belong to the same interval, and N consecutive V1 values ​​are greater than Min(Sn+1), the displayed fuel quantity remains unchanged; where Sn+1 represents the next interval after the interval where Vdisp is located. When any of the following conditions are met, exit state S2 and enter state S0: A) V1 is less than Vdisp for N consecutive periods; B) The time spent in the S2 state exceeds T_timeout, where T_timeout is set according to the duration of daily driving segments, preferably 5 to 10 minutes; C) Since entering the S2 state, the cumulative fuel injection amount exceeds the safety threshold Q_safe, where Q_safe is set to 5% of the total fuel tank capacity, preferably 2 to 3 liters.

[0036] In the above strategy, N is 2 to 15 cycles, preferably 10.

[0037] For example: Assume the oil volume range is divided into S1: 0-5L, S2: 5-10L, S3: 10-15L, S4: 15-20L, and S5: 20-25L, with a calibration cycle of N=5 and a damping coefficient of α=0.8.

[0038] When the system is first started and the vehicle is stationary, the displayed fuel level Vdisp is set to V1=22.5L (Mid(S5)) after initialization. The system then enters the S0 state, and Vdisp decreases by 1 times the actual fuel injection amount.

[0039] During driving, if Vdisp is 21L (S5 interval) and V1 is 19L for 5 consecutive times (S4 interval), then it enters S1 state, and Vdisp decreases in damped mode.

[0040] In state S1, if Vdisp drops to 20.5L and there are 5 consecutive V1 values ​​greater than 20L (returning to the S5 interval), then return to state S0.

[0041] If Vdisp drops to 19.99L (entering the S4 interval), and five consecutive V1 values ​​are greater than Min(S5) = 20L, then the system enters the S2 state, and Vdisp remains unchanged until the exit condition is met, at which point it returns to the S0 state.

[0042] The above-disclosed embodiments are merely preferred embodiments of the present invention and should not be construed as limiting the scope of protection of the present invention. Therefore, any equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for displaying fuel level, characterized in that, include: Step S10: Establish multiple oil volume ranges, each corresponding to the sensor resistance range, and define the minimum and maximum oil volume values ​​for each oil volume range; Step S20: Calculate the current detected fuel quantity V1 based on the current operating state of the vehicle, wherein the vehicle operating state includes both moving and stationary states; Step S30: When the predetermined event occurs, initialize the displayed oil level Vdisp to the currently detected oil level V1; Step S40: Based on the current detected oil level V1 and the displayed oil level Vdisp, refresh the displayed oil level Vdisp according to a preset update strategy.

2. The oil level display method according to claim 1, characterized in that, Step S10 includes: Step S101: Through experimental calibration, methanol fuel is gradually added to an empty fuel tank in fixed volumes, and the resistance value of the stable sensor corresponding to each volume point is recorded. Step S102: Based on the recorded resistance-volume data points, divide the nonlinear relationship curve into multiple segments with relatively good linearity, with each segment serving as an oil volume interval. Step S103: Set the minimum and maximum oil volume values ​​for each oil volume range, where the minimum oil volume value is the starting volume of the range and the maximum oil volume value is the ending volume of the range.

3. The method according to claim 1, characterized in that, In step S20, when the vehicle is in motion, the current detected fuel quantity V1 is calculated using an anti-sway dynamic filtering algorithm, including: Step S211: Perform first-order filtering by continuously collecting the resistance values ​​of multiple sensors in real time and converting them into oil quantity values. After removing extreme values, calculate the average value to obtain the first-order filtered value. Step S212: Based on the oil quantity range where the first-order filter value is located, take the ConsumeFuelLevel value of that range as the final first-order filter value. Step S213: Perform second-order filtering processing, input the final first-order filter value into the second-order filtering formula, and calculate the current detected oil quantity V1.

4. The method according to claim 3, characterized in that, In step S211, the sampling period for the first-order filtering process is set to 150 milliseconds. Ten oil quantity values ​​are continuously collected in real time. After removing one maximum value and one minimum value, the average value of the remaining eight oil quantity values ​​is used to calculate the first-order filter value.

5. The method according to claim 3, characterized in that, In step S213, the second-order filtering formula is: FuelFilter2[m]=F_c×FuelFilterFinal1[m]+(1-F_c)×FuelFilter2[m-1] Where FuelFilter2[m] represents the current second-order filtered fuel value, FuelFilterFinal1[m] represents the current final first-order filtered value, FuelFilter2[m-1] represents the previous second-order filtered fuel value, and F_c is the filtering coefficient, with a value range of 0.1 to 0.

3.

6. The method according to claim 1, characterized in that, In step S20, when the vehicle is stationary, the current detected fuel quantity V1 is calculated using the refueling event detection and baseline update algorithm, including: Step S221: Establish a static reference benchmark, record the fuel level range after the vehicle enters a stationary state for a preset time, and take the median value of the fuel level in this range as the initial reference benchmark. Step S222: Monitor the real-time fuel level. When the trend condition, amplitude condition, and time condition are met simultaneously, determine that a refueling event has occurred. Step S223: When the refueling event is confirmed, use the median value of the fuel quantity in the range where the current stable fuel quantity value is located as the current detected fuel quantity V1, and reinitialize the filter.

7. The method according to claim 6, characterized in that, In step S222, the conditions for determining the refueling event include: Trend condition: Real-time oil volume values ​​show a continuous monotonic upward trend; Amplitude condition: The cumulative increase in the real-time fuel level exceeds a preset refueling threshold, which is set as a fixed value or a relative proportion; Time condition: The upward trend is maintained within a preset continuous time period.

8. The method according to claim 1, characterized in that, In step S30, the predetermined events include the system's first wake-up and the confirmation of the refueling event.

9. The method according to claim 1, characterized in that, In step S40, the preset update strategy includes the following states: State S0: When the vehicle is started for the first time or when the currently displayed fuel level Vdisp and N consecutive currently detected fuel levels V1 are all in the same fuel level range, the displayed fuel level decreases in the fuel injection mode, where the fuel injection level is the actual fuel consumption of the previous cycle obtained in real time from the engine controller. State S1: When the current displayed fuel level Vdisp and the current detected fuel level V1 are not in the same fuel level range, and N consecutive current detected fuel levels V1 are all less than the current displayed fuel level Vdisp, the displayed fuel level decreases in damped mode. State S2: When the currently displayed fuel level Vdisp and the currently detected fuel level V1 do not belong to the same fuel level range, and N consecutive currently detected fuel levels V1 are greater than the minimum fuel level value of the next range of the range where the currently displayed fuel level Vdisp is located, the displayed fuel level remains unchanged; Where N is an integer from 2 to 15.

10. The method according to claim 9, characterized in that, In state S2, exit state S2 and return to state S0 when any of the following conditions are met: For N consecutive times, the current detected oil quantity V1 is less than the current displayed oil quantity Vdisp; The time spent in state S2 exceeds the preset timeout threshold; Since entering state S2, the cumulative fuel injection amount has exceeded the safety threshold.

Citation Information

Patent Citations

  • Metering method and device for displaying oil quantity in automobile fuel gauge and related equipment

    CN113124953A

  • Method and device for displaying fuel quantity of vehicle

    CN116659606A

  • Oil quantity calibration method and device, electronic equipment, storage medium and vehicle

    CN119223406A

  • Oil mass detection method and device

    CN119595070A

  • Determination method for displaying oil quantity and related device

    CN120476293A