Oil gauge calculation method, device and medium with multiple factors

By constructing a three-dimensional state model and using a dynamic strategy to fuse the fuel tank sensor and fuel injection quantity signals, the error problem of traditional fuel quantity calculation methods under complex working conditions is solved, and high-precision and robust fuel quantity display is achieved.

CN122108309APending Publication Date: 2026-05-29DONGFENG MOTOR GRP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
DONGFENG MOTOR GRP
Filing Date
2026-02-05
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Traditional fuel quantity calculation methods have significant errors under complex operating conditions and cannot effectively integrate fuel tank sensor signals and fuel injection quantity signals, resulting in insufficient display accuracy.

Method used

By acquiring real-time signals of vehicle speed, engine status, and vehicle tilt, a three-dimensional state model is constructed, a fuel quantity calculation strategy is dynamically selected, and fuel quantity calculated from fuel tank sensors and engine fuel injection quantity signals are integrated to achieve differentiated calculation.

Benefits of technology

It improves the accuracy and robustness of fuel quantity calculation, adapts to complex working conditions, reduces display errors, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122108309A_ABST
    Figure CN122108309A_ABST
Patent Text Reader

Abstract

The application discloses a multi-factor influence fuel gauge calculation method, which comprises the following steps: acquiring vehicle speed, engine state and vehicle body inclination signal in real time to determine the multi-dimensional working condition state of the vehicle; simultaneously acquiring fuel tank sensor conversion fuel quantity and engine fuel injection quantity signal; dynamically selecting the corresponding preset fuel quantity calculation strategy based on the determined working condition state, and updating the displayed fuel quantity by fusing the above two kinds of fuel quantity signals. By introducing multi-dimensional state judgment, a refined working condition recognition model is constructed, and the switching of the calculation strategy and signal fusion are driven based on the model. This makes the fuel quantity calculation actively adapt to complex working conditions such as driving, static and slope, solves the problems of poor adaptability and large error of single fixed logic, and significantly improves the calculation accuracy and display reliability of the automobile fuel gauge under the whole working condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive electronic control technology, and more specifically, to a method and system for calculating fuel quantity in a vehicle dashboard, and in particular, to a method and apparatus for calculating and displaying fuel quantity with high precision and high adaptability by fusing multi-dimensional vehicle status signals and fuel consumption signals. Background Technology

[0002] The car's fuel gauge is the primary way drivers obtain information about the remaining fuel in the tank, and its accuracy is crucial for low fuel warnings, remaining driving range estimation, and the overall driving experience. Traditional fuel level calculation methods mainly rely on converting the resistance signal of a float sensor inside the fuel tank into fuel level, supplemented by corrections based on the cumulative fuel consumption from the engine. However, vehicles encounter various complex conditions during actual driving, such as going uphill or downhill (vehicle tilt), rapid acceleration / deceleration, bumpy roads, and engine start-stop. Under these conditions, the fuel level in the tank may fluctuate or tilt, causing significant fluctuations or systematic deviations in the signal output by the float sensor. If the calculation logic fails to adequately consider the impact of these conditions, a significant error will occur between the displayed fuel level and the actual fuel level.

[0003] Existing technical solutions have some obvious limitations. For example, one solution uses a single reduction logic of "displayed fuel level minus fuel injection rate per second" in all operating conditions, without optimization for different states such as slopes and stationary conditions, resulting in significant errors. Another improved solution introduces vehicle tilt detection, but because its design premise assumes that the fuel injection rate signal is inaccurate, it completely abandons the fuel injection rate signal and only uses a fixed slow reduction logic. This, in the case of stable driving conditions where the fuel injection rate signal is reliable, may actually introduce new errors.

[0004] Therefore, there is an urgent need in this field for a fuel gauge calculation method that can intelligently perceive the multi-dimensional state of a vehicle and dynamically adjust the calculation strategy accordingly, and can effectively integrate the advantages of fuel tank sensor signals and fuel injection quantity signals, so as to improve the calculation accuracy and system robustness under all operating conditions. Summary of the Invention

[0005] This application aims to overcome the shortcomings of existing fuel gauge calculation methods, which suffer from insufficient display accuracy due to poor adaptability to operating conditions, simplistic calculation strategies, or unreasonable signal utilization. To achieve the above objective, this application adopts the following technical solution.

[0006] In a first aspect, embodiments of this application provide a method for calculating oil volume based on multiple factors, including:

[0007] Real-time acquisition of multi-source status parameters, including vehicle speed signal, engine status signal, and vehicle tilt signal;

[0008] Based on the multi-source state parameters, the multi-dimensional operating condition of the vehicle is determined; the multi-dimensional operating condition includes at least the driving / stationary state determined based on the vehicle speed signal, the starting / stopping state determined based on the engine state signal, and the horizontal / non-horizontal state determined based on the vehicle body tilt signal.

[0009] Acquire signals from the fuel tank sensor to calculate fuel quantity and engine fuel injection quantity;

[0010] Based on the determined multi-dimensional operating condition of the vehicle, a preset fuel quantity calculation strategy corresponding to the current state is selected and executed. Based on the fuel tank sensor conversion of fuel quantity and engine fuel injection quantity signal, the current displayed fuel quantity is calculated and updated.

[0011] Store the updated current fuel level and output it for display.

[0012] Furthermore, based on the aforementioned multi-source state parameters, the multi-dimensional operating state of the vehicle is determined, specifically including:

[0013] Construct a three-dimensional state model defined by three dimensions: driving / stationary state, starting / stopping state, and horizontal / non-horizontal state;

[0014] Based on the real-time values ​​of the multi-source state parameters, the current operating condition of the vehicle is mapped to a specific state combination in the three-dimensional state model.

[0015] Furthermore, when the determined multi-dimensional operating condition of the vehicle is that the engine is running and the vehicle is in a level position, the preset fuel calculation strategy corresponding to the current state is executed, including a dynamic reduction strategy, specifically including:

[0016] Calculate the difference between the currently displayed fuel level and the fuel level calculated by the fuel tank sensor;

[0017] Based on the preset numerical range in which the difference lies, one speed reduction gear is selected from multiple preset speed reduction gears. The speed reduction gear is determined by the engine fuel injection quantity signal and a correction value corresponding to a range.

[0018] The current displayed fuel level is updated using the reduction speed of the selected gear.

[0019] Furthermore, when the determined multi-dimensional operating condition of the vehicle is that the engine is running and the vehicle is not level, a preset fuel quantity calculation strategy corresponding to the current state is executed, specifically including:

[0020] The current displayed fuel level is updated using a preset baseline reduction strategy, which is calculated based on the engine fuel injection quantity signal and a fixed conservative correction value.

[0021] Furthermore, it also includes an oil leak detection step:

[0022] During the execution of the preset fuel quantity calculation strategy corresponding to the current state, refueling or leak detection is performed only when the multi-dimensional working condition of the vehicle is determined to be in a stationary and horizontal state, based on the change trend of fuel quantity calculated by the fuel tank sensor.

[0023] If a refueling or oil leak event is detected, the corresponding special handling mode will be activated.

[0024] Furthermore, before acquiring multi-source state parameters in real time, an initialization step is also included, specifically:

[0025] When the vehicle is woken up, the fuel level value displayed during the last power-off is read from the non-volatile memory;

[0026] Determine whether this wake-up originates from a preset forced calibration wake-up source;

[0027] If so, the previously displayed fuel level value is discarded, and the initial displayed fuel level is determined based on the currently acquired fuel tank sensor signal.

[0028] Furthermore, storing the updated current displayed fuel level includes a validity verification step, specifically including:

[0029] Before storing, determine whether the current displayed oil level value to be stored is within a preset reasonable range;

[0030] If it is within a reasonable range, a valid flag is set and the current displayed oil level value and its related parameters are stored in non-volatile memory;

[0031] If the value is not within a reasonable range, discard the value and keep the original data in the non-volatile memory unchanged.

[0032] Furthermore, it also includes:

[0033] When the engine is determined to be stopped, the current displayed fuel level remains unchanged regardless of whether the vehicle is moving or stationary, or whether it is level or not.

[0034] Secondly, embodiments of this application provide an electronic device, including: one or more processors;

[0035] A memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are able to implement the steps in the fuel gauge calculation method described in any of the preceding claims.

[0036] Thirdly, embodiments of this application provide a computer-readable medium storing a computer program, which, when executed by a processor, can implement the steps in the fuel gauge calculation method described in any of the preceding claims.

[0037] This application discloses a multi-factor-influenced fuel gauge calculation method. The method includes: acquiring vehicle speed, engine status, and vehicle tilt signals in real time to determine the multi-dimensional operating conditions of the vehicle; simultaneously acquiring fuel quantity signals from the fuel tank sensor and engine injection quantity signals; dynamically selecting a corresponding fuel quantity calculation strategy from a set of preset strategies based on the determined specific operating conditions, and integrating the fuel quantity signals from the fuel tank sensor and engine injection quantity to update the displayed fuel quantity. This method achieves precise identification of vehicle operating conditions by constructing a three-dimensional state model of "driving / stationary - starting / stopping - level / non-level". Based on this, differentiated calculations are performed for different state combinations. For example, in a level driving state, the speed is dynamically adjusted and reduced based on the difference between the displayed fuel quantity and the sensor fuel quantity. This design enables the fuel quantity calculation to actively adapt to complex and changing actual driving conditions, effectively overcoming the limitations of a single fixed calculation logic, thereby significantly improving the calculation accuracy and display reliability of the vehicle fuel gauge under all operating conditions. Attached Figure Description

[0038] Figure 1 This application provides a core flowchart of a method for calculating oil volume based on multiple factors.

[0039] Figure 2 A schematic diagram of the module structure of a fuel gauge calculation system with multi-factor influence provided in an embodiment of this application;

[0040] Figure 3 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0041] To enable those skilled in the art to better understand the technical solutions of this application, exemplary embodiments of this application are described below with reference to the accompanying drawings, including various details of the embodiments of this application to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this application. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. Unless otherwise specified, the various embodiments of this application and the features within those embodiments can be combined with each other.

[0042] As used herein, the term "and / or" includes any and all combinations of one or more of the associated enumerated entries. The terminology used herein is for describing particular embodiments only and is not intended to limit the application. As used herein, the singular forms "a" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that when the terms "comprising" and / or "made of" are used herein, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as "connected" or "linked" are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0043] Unless otherwise specified, all terms used in this application (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It should also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined in this application.

[0044] Technical Terminology Introduction:

[0045] 1. E2: EEPROM, Electrically Erasable Programmable Read-Only Memory.

[0046] 2. ECU: Electronic Control Unit.

[0047] 3. CAN: Controller Area Network.

[0048] refer to Figure 1 One embodiment of this application proposes a method for calculating fuel gauge based on multiple factors. This method runs periodically in the ECU and is mainly divided into three stages: initialization, main cycle calculation, and pre-sleep storage.

[0049] I. Initialization Phase

[0050] When the vehicle is powered on and woken up, the ECU performs initialization operations.

[0051] 1. Read E2 value: Read the displayed fuel level V stored in the EEPROM when the vehicle was last powered off. last And related parameters (such as valid flags).

[0052] 2. Wake-up Source Determination and Calibration: The ECU first determines the type of wake-up source. If the wake-up source is B+ (direct power supply wake-up), it is determined that the E2 stored value may have become invalid due to an abnormal power outage. In this case, the system discards V. last Forced calibration is performed. In addition to wake-up source detection, the system also verifies V. last The system checks whether the stored timestamp is too old, whether the number of loop writes has exceeded the limit, or whether the checksum of the value itself is correct. Any failure to verify will trigger a forced calibration.

[0053] 3. Determine the initial displayed oil level (V) disp ):

[0054] If forced calibration is not triggered and V last If valid, then V last As the initial V for this operation disp .

[0055] If forced calibration or V is triggered last If invalid, immediately obtain the current resistance signal from the fuel tank sensor, and then filter and calculate the current average filtered fuel quantity (V). avg_init ), and with V avg_init As the initial V disp .

[0056] 4. Preliminary oil leak assessment: Add initial V disp (or V) last ) and the current V avg_init Comparison. If the difference exceeds the preset filling / leaking threshold (N1 / N2), it may directly enter the special handling mode for filling or leaking oil.

[0057] II. Operation Phase of the Oil Meter Model (Main Cycle)

[0058] After initialization, the system enters the main loop logic implemented by the code generated by the MATLAB / Simulink model. This logic is mainly divided into three parts: preliminary work, display of fuel quantity calculation, and fuel quantity percentage conversion.

[0059] A. Preliminary work (data preparation)

[0060] This step provides all the necessary inputs for subsequent calculations, supporting subsequent state determination and numerical computation.

[0061] 1. Vehicle Model Identification: Identifies the current vehicle model based on the ECU's built-in parameters, providing the corresponding total fuel tank capacity parameters for subsequent fuel percentage conversion.

[0062] 2. Filtered Resistance Fuel Quantity Calculation: The real-time resistance signal from the fuel tank sensor is acquired, smoothed by a first-order low-pass filter, and then the first-order filtered fuel quantity (V) is calculated using a preset resistance-fuel quantity lookup table and linear interpolation formula.filt ) and average filtered oil quantity (V avg V avg By V filt The result is obtained through moving average filtering, which improves stability.

[0063] 3. Vehicle Status Assessment: Simultaneous acquisition of vehicle speed, engine speed, and vehicle tilt angle sensor signals. This application incorporates these three types of signals for comprehensive assessment.

[0064] Moving / Stationary state: Determine if the vehicle speed is greater than 0.

[0065] Start / Stop Status: Determines whether the engine speed is greater than 0.

[0066] Level / Non-level state: Determines whether the absolute value of the vehicle body tilt angle is less than a preset angle threshold (e.g., 3°).

[0067] Therefore, a three-dimensional state model was constructed, which maps the vehicle's current moment to specific state combinations such as (driving, starting, level) and (stationary, stopped, non-level).

[0068] 4. Fuel Injection Quantity Accumulation: Receive the instantaneous fuel injection quantity signal sent by the engine controller via the CAN bus, perform integration calculations on it, and obtain the fuel injection quantity per second.

[0069] B. Display fuel level (V) disp )calculate

[0070] This step integrates initialization, operation, oil leak detection, and mode switching, and performs differentiated calculations based on the status and data obtained from the preceding work.

[0071] 1. Initialization status: Completed, see the description in the previous initialization phase section.

[0072] 2. Vehicle operating status:

[0073] Oil quantity update logic:

[0074] Engine stopped: If the engine stops working, or if no fuel consumption is determined within a short period (e.g., within 15 seconds) after the vehicle stops, then V disp It remains unchanged.

[0075] Engine running and horizontal: Implement dynamic fusion reduction strategy. Calculate the difference ΔV = V disp -V avg Three preset intervals and corresponding correction values ​​are defined: ΔV∈(0,2], using V... downlow ; ΔV∈(2,4] liters, using V downmid ; ΔV∈(4,+∞) ascends, using V downhigh (V)downlow <V downmid <V downhigh The updated formula is: V disp更新后 =V disp更新前 - (Fuel injection rate per second + V) downX This strategy integrates the difference between the fuel injection quantity and the sensor fuel quantity to achieve dynamic approximation.

[0076] Engine running and not horizontal (slope): Implement robust baseline reduction strategy. (Due to V) avg Credibility is reduced, so only a slow reduction strategy is adopted: V disp更新后 =V disp更新前 - (Fuel injection rate per second + V) downlow To enhance adaptability, the system records the duration T of being in a non-horizontal state. slope When T slope When the preset time threshold (e.g., 30 seconds) is exceeded, the fuel level deviation caused by the current tilt angle and the three-dimensional model of the fuel tank is estimated, and the deviation is adjusted accordingly. avg Perform initial compensation, and carefully refer to the compensated value in the slow reduction logic to mitigate the cumulative error when driving on long slopes.

[0077] Protection logic: If V is calculated disp <V avg Then determine V disp The oil level is already below the actual level; maintain V. disp Keep it unchanged to avoid displaying abnormally low values.

[0078] Oil leak detection logic: This application optimizes the process to "perform oil leak detection only when the vehicle is 'level and stationary'". In this state, V is continuously monitored. avg The change in V. avg If the oil level continuously increases by more than the threshold N1 liters for a duration of T1 seconds, it is determined to be refueling, and the system enters refueling mode; if the oil level continuously decreases by more than N2 liters for a duration of T2 seconds, it is determined to be leaking oil, and the system enters leaking oil mode. This detection function is disabled when the vehicle is not level or in motion, thus effectively avoiding false alarms caused by vehicle body swaying or tilting.

[0079] 3. Oil Leakage Status: After entering this mode, the ECU will... disp Forced to be set to first-order filter fuel quantity (V) filt Simultaneously monitor the exit conditions: (1) V filt With V avg The difference is less than V sta And continue T sta (1) Seconds; or (2) Vehicle speed > 0. Exit and return to running state if either condition is met.

[0080] C. Oil percentage conversion

[0081] The calculated V disp Based on the vehicle model and total fuel tank capacity determined in the preliminary work, the fuel percentage (0%~100%) is converted using linear interpolation and finally output to the instrument panel for graphical or digital display.

[0082] III. Storage of E2 value in fuel gauge

[0083] Before the vehicle goes into sleep mode after power-off, the ECU executes fuel storage logic to ensure reliable and persistent data storage.

[0084] 1. Set valid flag: Only when the fuel gauge model outputs a valid V flag. disp Value (e.g., V) disp When the model is within a reasonable physical range [0, maximum fuel tank capacity] and there are no serious faults in the self-test, the system will set the "fuel quantity valid flag" to 1.

[0085] 2. Conditional storage: The current V is stored only when the valid flag bit is 1. disp The value, along with related timestamps and status parameters, are stored in the EEPROM. If the flag is 0 (e.g., due to a model failure causing V...),... disp If the value is 0 or negative, no storage operation is performed, and the previous valid data is retained in the EEPROM. This mechanism effectively prevents incorrect or abnormal default values ​​from being written, thereby avoiding a series of calculation deviations caused by incorrect initial values ​​during the next wake-up.

[0086] refer to Figure 2 One embodiment of this application provides a system for implementing the aforementioned fuel gauge calculation method. This system is typically integrated into the vehicle's body controller or a separate fuel gauge calculation ECU, and includes the following functional modules:

[0087] 1. Parameter Acquisition Module: The hardware includes a CAN bus controller, analog-to-digital converter (ADC), etc. It is responsible for acquiring signals such as vehicle speed, engine speed, and fuel injection quantity from the vehicle's CAN network, and directly acquiring analog signals such as fuel tank float resistance and vehicle tilt angle from sensors, and converting them into digital quantities.

[0088] 2. Status Judgment Module: Implemented by the microprocessor (MCU) within the ECU running the corresponding software algorithm. This module receives digital signals from the parameter acquisition module, performs the threshold comparison and logical operations described in the aforementioned fuel gauge calculation method embodiment, and finally outputs a status code representing the current three-dimensional status (such as driving / starting / level).

[0089] 3. Calculation Strategy Execution Module: This is the core algorithm engine of the system, which can be an embedded C code module automatically generated from a MATLAB / Simulink model. It receives state codes from the state determination module and V values ​​from the parameter acquisition module. avg And the fuel injection rate per second. Internally, a "strategy lookup table" is maintained, which indexes the corresponding calculation function (such as Calc_Dynamic(), Calc_Slope(), etc.) based on the state code, executes the function, and outputs the updated displayed fuel quantity (V). disp This module fully implements the various differentiated calculation strategies described in the aforementioned oil level meter calculation method embodiments.

[0090] 4. Storage Output Module: This module includes read / write drivers for the external EEPROM, data packaging and verification logic, and a CAN message transmission controller. This module receives the V signal output from the strategy execution module. disp First, a validity check is performed. If the check passes, the result, along with the status information, is stored in the EEPROM. Simultaneously, V... disp After being converted to a percentage, the data is sent to the instrument cluster via the CAN bus for display, according to the established message format.

[0091] Overall, the advantages of this application compared to the prior art include:

[0092] 1. Significantly Improved Calculation Accuracy: Through multi-factor state subdivision and differentiated strategy execution, fuel quantity calculation can proactively adapt to different operating conditions. The dynamic fusion reduction strategy effectively utilizes the real-time nature of the fuel injection quantity signal and the relative stability of the sensor signal. Through differential feedback adjustment, it achieves rapid and accurate convergence of the displayed fuel quantity to the actual fuel quantity.

[0093] 2. Enhanced System Robustness and Adaptability: Dedicated processing logic for non-horizontal and engine-stopped states, along with a leak detection mechanism with strong constraints, ensures stable output under extreme or complex operating conditions. The introduction of extended mechanisms such as data reliability verification and adaptive learning compensation further enhances the system's long-term fault tolerance and environmental adaptability.

[0094] 3. Enhanced user experience: More accurate fuel level display and more reliable fuel leak warnings allow drivers to manage fuel and plan their trips with greater peace of mind, improving the overall intelligence level of the vehicle and user trust.

[0095] The embodiments of the fuel gauge calculation method and the embodiments of the fuel gauge calculation system with multi-factor influence are the same or related in technical concept. They can be referred to and learned from each other in terms of technical details and technical effectiveness, which will not be repeated here.

[0096] Based on the same inventive concept, embodiments of this application also provide an electronic device. Figure 3 This is a structural block diagram of an electronic device provided in an embodiment of this application. Figure 3 As shown in the embodiments of this application, an electronic device includes: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement any of the fuel gauge calculation methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0097] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).

[0098] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.

[0099] In some embodiments, the one or more processors 101 include a field-programmable gate array.

[0100] This application also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps in any of the fuel gauge calculation methods described above. The computer-readable storage medium can be volatile or non-volatile.

[0101] This application also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in the processor of an electronic device, the processor in the electronic device executes the above-described fuel gauge calculation method.

[0102] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0103] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0104] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0105] The computer program instructions used to perform the operations of this application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing the status information of the computer-readable program instructions. These electronic circuits can execute the computer-readable program instructions to implement various aspects of this application.

[0106] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0107] Various aspects of this application are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0108] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0109] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0111] Exemplary embodiments have been disclosed in this application, and while specific terminology has been used, it is used only and should be interpreted in a general illustrative sense and is not intended to be limiting. In some embodiments, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this application as set forth by the appended claims.

Claims

1. A method for calculating oil volume based on multiple factors, characterized in that, include: Real-time acquisition of multi-source status parameters, including vehicle speed signal, engine status signal, and vehicle tilt signal; Based on the multi-source state parameters, determine the multi-dimensional operating state of the vehicle; The multi-dimensional operating conditions include at least the driving / stationary state determined based on vehicle speed signals, the start / stop state determined based on engine status signals, and the horizontal / non-horizontal state determined based on vehicle body tilt signals. Acquire signals from the fuel tank sensor to calculate fuel quantity and engine fuel injection quantity; Based on the determined multi-dimensional operating condition of the vehicle, a preset fuel quantity calculation strategy corresponding to the current state is selected and executed. Based on the fuel tank sensor conversion of fuel quantity and engine fuel injection quantity signal, the current displayed fuel quantity is calculated and updated. Store the updated current fuel level and output it for display.

2. The fuel gauge calculation method according to claim 1, characterized in that, Based on the aforementioned multi-source state parameters, the multi-dimensional operating state of the vehicle is determined, specifically including: Construct a three-dimensional state model defined by three dimensions: driving / stationary state, starting / stopping state, and horizontal / non-horizontal state; Based on the real-time values ​​of the multi-source state parameters, the current operating condition of the vehicle is mapped to a specific state combination in the three-dimensional state model.

3. The fuel gauge calculation method according to claim 1 or 2, characterized in that, When the determined multi-dimensional operating condition of the vehicle is that the engine is running and the vehicle is in a level position, the preset fuel calculation strategy corresponding to the current state is executed, including a dynamic reduction strategy, specifically including: Calculate the difference between the currently displayed fuel level and the fuel level calculated by the fuel tank sensor; Based on the preset numerical range in which the difference lies, one speed reduction gear is selected from multiple preset speed reduction gears. The speed reduction gear is determined by the engine fuel injection quantity signal and a correction value corresponding to a range. The current displayed fuel level is updated using the reduction speed of the selected gear.

4. The fuel gauge calculation method according to claim 1 or 2, characterized in that, When the determined multi-dimensional operating condition of the vehicle is that the engine is running and the vehicle is not level, a preset fuel quantity calculation strategy corresponding to the current state is executed, specifically including: The current displayed fuel level is updated using a preset baseline reduction strategy, which is calculated based on the engine fuel injection quantity signal and a fixed conservative correction value.

5. The fuel gauge calculation method according to claim 1 or 2, characterized in that, It also includes an oil leak detection step: During the execution of the preset fuel quantity calculation strategy corresponding to the current state, refueling or leak detection is performed only when the multi-dimensional working condition of the vehicle is determined to be in a stationary and horizontal state, based on the change trend of fuel quantity calculated by the fuel tank sensor. If a refueling or oil leak event is detected, the corresponding special handling mode will be activated.

6. The fuel gauge calculation method according to claim 1, characterized in that, Before acquiring multi-source state parameters in real time, an initialization step is also included, specifically: When the vehicle is woken up, the fuel level value displayed during the last power-off is read from the non-volatile memory; Determine whether this wake-up originates from a preset forced calibration wake-up source; If so, the previously displayed fuel level value is discarded, and the initial displayed fuel level is determined based on the currently acquired fuel tank sensor signal.

7. The fuel gauge calculation method according to claim 1, characterized in that, The updated displayed fuel level is stored, including a validity verification step, specifically: Before storing, determine whether the current displayed oil level value to be stored is within a preset reasonable range; If it is within a reasonable range, a valid flag is set and the current displayed oil level value and its related parameters are stored in non-volatile memory; If the value is not within a reasonable range, discard the value and keep the original data in the non-volatile memory unchanged.

8. The fuel gauge calculation method according to claim 1, characterized in that, Also includes: When the engine is determined to be stopped, the current displayed fuel level remains unchanged regardless of whether the vehicle is moving or stationary, or whether it is level or not.

9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to perform the steps in the fuel gauge calculation method as described in any one of claims 1 to 8.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it can perform the steps in the fuel gauge calculation method as described in any one of claims 1 to 8.