Vehicle fuel level display method, device, equipment and readable storage medium

By introducing fuel reference values ​​and behavior detection into the vehicle fuel level display method, the problem of inaccurate fuel level display has been solved, resulting in more accurate fuel level display and improved user experience and safety.

CN116674378BActive Publication Date: 2026-07-17SHENZHEN CHUANGWEI AUTOMOBILE INTELLIGENT CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN CHUANGWEI AUTOMOBILE INTELLIGENT CO LTD
Filing Date
2023-06-07
Publication Date
2026-07-17

Smart Images

  • Figure CN116674378B_ABST
    Figure CN116674378B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, device, and readable storage medium for displaying vehicle fuel level, relating to the field of vehicle technology. The method includes: if a target vehicle is detected to be powered on, acquiring the previous fuel reference value of the target vehicle and collecting the current fuel sampling value of the target vehicle; performing fuel behavior detection on the target vehicle based on the current fuel sampling value and the previous fuel reference value to obtain a corresponding fuel behavior detection result; assigning a value to the current fuel level of the target vehicle based on the fuel behavior detection result to obtain a current fuel display value; and controlling the target vehicle to display the fuel level based on the current fuel display value. This application solves the technical problem of low accuracy in current vehicle fuel level displays.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and in particular to a method, device, equipment, and readable storage medium for displaying vehicle fuel level. Background Technology

[0002] With the rapid development of my country's social economy and the improvement of people's living standards, the number of private cars has increased significantly and has become one of the main means of transportation. At present, the cars on the market are mainly traditional fuel vehicles, which use fuel combustion to provide power for the vehicles. Therefore, the requirements for accurate display of vehicle fuel level are also increasing. At present, the main methods for displaying vehicle fuel level are motor pointer drive, segment distribution, and LCD display.

[0003] Currently, the change in fuel level in a vehicle's fuel tank is usually uniform or linear as the vehicle moves. However, in reality, factors such as uncertain road conditions, refueling, and fuel leaks can cause changes in the actual fuel level reading. If the actual fuel level reading is used as the basis for the fuel level display, it may result in an incorrect fuel level reading, leading to a low accuracy rate for the vehicle's fuel level display. Summary of the Invention

[0004] The main objective of this application is to provide a method, device, equipment, and readable storage medium for displaying vehicle fuel level, aiming to solve the technical problem of low accuracy in current vehicle fuel level displays.

[0005] To achieve the above objectives, this application provides a vehicle fuel level display method, the vehicle fuel level display method comprising:

[0006] If the target vehicle is detected to be powered on, the previous fuel reference value of the target vehicle is obtained, and the current fuel sampling value of the target vehicle is collected.

[0007] Based on the current fuel sampling value and the previous fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the corresponding fuel behavior detection result;

[0008] Based on the fuel behavior detection results, the current fuel quantity of the target vehicle is assigned a value to obtain the current fuel display value;

[0009] Based on the current fuel level displayed, control the target vehicle to display the fuel quantity.

[0010] Optionally, the step of performing fuel behavior detection on the target vehicle based on the current fuel sampling value and the previous fuel reference value to obtain the corresponding fuel behavior detection result includes:

[0011] Based on the target vehicle's speed and power attributes, the previous fuel reference value is updated to obtain the target vehicle's current fuel reference value.

[0012] Based on the current fuel sampling value and the current fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the fuel behavior detection result.

[0013] Optionally, the step of updating the previous fuel reference value based on the target vehicle's speed and power attributes to obtain the target vehicle's current fuel reference value includes:

[0014] Based on the vehicle speed attribute, the current speed of the target vehicle is subjected to illegal speed detection and speed timeout detection, and the corresponding illegal speed detection results and speed timeout detection results are obtained.

[0015] Based on the illegal speed detection result, the speed timeout detection result, and the current fuel sampling value, the current speed of the target vehicle is assigned a value to obtain a current speed reference value;

[0016] Based on the power attributes, perform power illegality detection and power timeout detection on the current power of the target vehicle, and obtain the corresponding power illegality detection results and power timeout detection results.

[0017] Based on the power illegality detection result, the power timeout detection result, and the current fuel sampling value, the current power of the target vehicle is assigned a value to obtain the current power reference value;

[0018] Perform illegal reference value detection on the current vehicle speed reference value and the current power supply reference value to obtain the illegal reference value detection result;

[0019] Based on the illegal detection result of the reference value, the fuel reference value of the target vehicle is updated to obtain the current fuel reference value.

[0020] Optionally, the step of performing fuel behavior detection on the target vehicle based on the current fuel sampling value and the current fuel reference value to obtain the fuel behavior detection result includes:

[0021] Detect whether the first difference between the current fuel sample value and the current fuel reference value is greater than or equal to a preset first difference threshold;

[0022] If the difference is greater than or equal to the preset first difference threshold, then it is detected whether the duration of the first difference is greater than or equal to the preset first duration threshold.

[0023] If the result is greater than or equal to the preset first duration threshold, the fuel behavior detection result is determined to be a triggered fuel behavior.

[0024] Optionally, the step of assigning a value to the current fuel level of the target vehicle based on the fuel behavior detection result to obtain the current fuel display value includes:

[0025] If the fuel behavior detection result indicates that fuel behavior has been triggered, then the corresponding fuel change magnitude is queried.

[0026] Detect whether the first difference is greater than or equal to the fuel change amplitude;

[0027] If the change in fuel consumption is greater than or equal to the stated change in fuel consumption, then the current fuel reference value will be used as the current fuel consumption display value.

[0028] Optionally, after the step of using the current fuel reference value as the current fuel display value, the method further includes:

[0029] If it is less than the fuel change range, then detect whether the duration of the first difference is greater than or equal to a preset second duration threshold.

[0030] If the change in fuel quantity is greater than or equal to a preset second time threshold, then the query for the change in fuel quantity will be stopped.

[0031] Optionally, the vehicle fuel level display method further includes:

[0032] If the target vehicle is detected to be powered off, the previous fuel consumption display value and the previous fuel consumption reference value of the target vehicle are obtained.

[0033] Detect whether the difference between the previous fuel display value and the current fuel display value is greater than or equal to a preset second difference threshold;

[0034] If the value is greater than or equal to the preset second gap threshold, then the previous fuel display value is assigned to the current fuel display value;

[0035] Detect whether the difference between the previous fuel reference value and the current fuel reference value is greater than or equal to a preset third difference threshold;

[0036] If the value is greater than or equal to a preset third gap threshold, the previous fuel reference value is updated to the current fuel reference value, and the current fuel display value and the current fuel reference value are saved.

[0037] Furthermore, to achieve the above objectives, this application also provides a vehicle fuel level display device, the vehicle fuel level display device comprising:

[0038] The fuel sampling module is used to obtain the previous fuel reference value of the target vehicle and collect the current fuel sampling value of the target vehicle if the target vehicle is detected to be powered on.

[0039] The fuel behavior detection module is used to perform fuel behavior detection on the target vehicle based on the current fuel sampling value and the previous fuel reference value, and obtain the corresponding fuel behavior detection result.

[0040] The module for obtaining the current fuel display value is used to assign a value to the current fuel quantity of the target vehicle based on the fuel behavior detection result, thereby obtaining the current fuel display value;

[0041] The fuel level display module is used to control the target vehicle to display the fuel level based on the current fuel level display value.

[0042] Optionally, the fuel behavior detection module is further used for:

[0043] Based on the target vehicle's speed and power attributes, the previous fuel reference value is updated to obtain the target vehicle's current fuel reference value.

[0044] Based on the current fuel sampling value and the current fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the fuel behavior detection result.

[0045] Optionally, the fuel behavior detection module is further used for:

[0046] Based on the vehicle speed attribute, the current speed of the target vehicle is subjected to illegal speed detection and speed timeout detection, and the corresponding illegal speed detection results and speed timeout detection results are obtained.

[0047] Based on the illegal speed detection result, the speed timeout detection result, and the current fuel sampling value, the current speed of the target vehicle is assigned a value to obtain a current speed reference value;

[0048] Based on the power attributes, perform power illegality detection and power timeout detection on the current power of the target vehicle, and obtain the corresponding power illegality detection results and power timeout detection results.

[0049] Based on the power illegality detection result, the power timeout detection result, and the current fuel sampling value, the current power of the target vehicle is assigned a value to obtain the current power reference value;

[0050] Perform illegal reference value detection on the current vehicle speed reference value and the current power supply reference value to obtain the illegal reference value detection result;

[0051] Based on the illegal detection result of the reference value, the fuel reference value of the target vehicle is updated to obtain the current fuel reference value.

[0052] Optionally, the fuel behavior detection module is further used for:

[0053] Detect whether the first difference between the current fuel sample value and the current fuel reference value is greater than or equal to a preset first difference threshold;

[0054] If the difference is greater than or equal to the preset first difference threshold, then it is detected whether the duration of the first difference is greater than or equal to the preset first duration threshold.

[0055] If the result is greater than or equal to the preset first duration threshold, the fuel behavior detection result is determined to be a triggered fuel behavior.

[0056] Optionally, the module for obtaining the current fuel display value is further configured to:

[0057] If the fuel behavior detection result indicates that fuel behavior has been triggered, then the corresponding fuel change magnitude is queried.

[0058] Detect whether the first difference is greater than or equal to the fuel change amplitude;

[0059] If the change in fuel consumption is greater than or equal to the stated change in fuel consumption, then the current fuel reference value will be used as the current fuel consumption display value.

[0060] Optionally, the module for obtaining the current fuel display value is further configured to:

[0061] If it is less than the fuel change range, then detect whether the duration of the first difference is greater than or equal to a preset second duration threshold.

[0062] If the change in fuel quantity is greater than or equal to a preset second time threshold, then the query for the change in fuel quantity will be stopped.

[0063] Optionally, the vehicle fuel level display device is also used for:

[0064] If the target vehicle is detected to be powered off, the previous fuel consumption display value and the previous fuel consumption reference value of the target vehicle are obtained.

[0065] Detect whether the difference between the previous fuel display value and the current fuel display value is greater than or equal to a preset second difference threshold;

[0066] If the value is greater than or equal to the preset second gap threshold, then the previous fuel display value is assigned to the current fuel display value;

[0067] Detect whether the difference between the previous fuel reference value and the current fuel reference value is greater than or equal to a preset third difference threshold;

[0068] If the value is greater than or equal to a preset third gap threshold, the previous fuel reference value is updated to the current fuel reference value, and the current fuel display value and the current fuel reference value are saved.

[0069] This application also provides a vehicle fuel quantity display device, the vehicle fuel quantity display including: a memory, a processor, and a vehicle fuel quantity display program stored in the memory and executable on the processor, the vehicle fuel quantity display program implementing the steps of the vehicle fuel quantity display method described above when executed by the processor.

[0070] This application also provides a readable storage medium storing a vehicle fuel level display program, which, when executed by a processor, implements the steps of the vehicle fuel level display method described above.

[0071] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the vehicle fuel level display method described above.

[0072] This application provides a method, apparatus, device, and readable storage medium for displaying vehicle fuel level. Compared with the prior art, this application first detects that the target vehicle is powered on, then obtains the previous fuel reference value of the target vehicle and collects the current fuel sampling value of the target vehicle; based on the current fuel sampling value and the previous fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the corresponding fuel behavior detection result; based on the fuel behavior detection result, the current fuel level of the target vehicle is assigned a value to obtain the current fuel display value; based on the current fuel display value, the target vehicle is controlled to display the fuel level. This application introduces the attribute of a fuel reference value and performs fuel behavior detection on the target vehicle during the fuel level display process, detecting whether the vehicle has refueled or leaked fuel, and calculates the current fuel display value based on the fuel behavior detection result. Compared with the current method that directly uses the actual fuel sampling value as the basis for fuel level display, this application considers the impact of vehicle refueling and fuel leakage on fuel level display, and the added fuel reference value serves as a data support for fuel level display, enabling the fuel gauge to accurately display the current real fuel level, thus improving the accuracy of vehicle fuel level display. Attached Figure Description

[0073] Figure 1 This is a flowchart illustrating the first embodiment of the vehicle fuel quantity display method of this application;

[0074] Figure 2 This is a schematic diagram of the process for displaying fuel level upon power-on in the vehicle fuel level display method of this application;

[0075] Figure 3 This is a flowchart illustrating the current vehicle speed reference value involved in the vehicle fuel quantity display method of this application.

[0076] Figure 4 This is a flowchart illustrating the current power reference value involved in the vehicle fuel level display method of this application.

[0077] Figure 5 This is a flowchart illustrating the current fuel reference value involved in the vehicle fuel quantity display method of this application.

[0078] Figure 6 This is a schematic diagram of the determination process for triggering fuel behavior involved in the vehicle fuel level display method of this application;

[0079] Figure 7 This is a schematic diagram of the power-down saving process involved in the vehicle fuel level display method of this application;

[0080] Figure 8 This is a schematic diagram of the device involved in the vehicle fuel quantity display method of this application;

[0081] Figure 9 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the vehicle fuel quantity display method of this application.

[0082] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0083] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0084] Currently, fuel level gauges in fuel tanks typically consist of a sliding rheostat and a float. Due to the diverse driving conditions, such as sudden braking, slopes, and bumpy roads, the float on the fuel surface can easily move with the fuel level, causing the sliding rheostat to fluctuate and further affecting the fuel level reading. Factors such as refueling and fuel leaks can also cause changes in the fuel level reading. The purpose of a vehicle's fuel gauge is to display the remaining fuel level in the tank in real time, helping users determine when to refuel and calculate driving range. Inaccurate fuel gauge readings or frequent fluctuations in the fuel gauge needle can mislead users, cause complaints, and even lead to functional safety issues, ultimately impacting vehicle sales and brand reputation. Therefore, improving the accuracy of fuel level displays is crucial.

[0085] This application provides a method for displaying vehicle fuel level. In the first embodiment of this method, refer to... Figure 1 The vehicle fuel level display method includes:

[0086] Step S10: If the target vehicle is detected to be powered on, the previous fuel reference value of the target vehicle is obtained, and the current fuel sampling value of the target vehicle is collected.

[0087] Step S20: Based on the current fuel sampling value and the previous fuel reference value, perform fuel behavior detection on the target vehicle to obtain the corresponding fuel behavior detection result;

[0088] Step S30: Based on the fuel behavior detection results, assign a value to the current fuel quantity of the target vehicle to obtain the current fuel display value;

[0089] Step S40: Based on the current fuel display value, control the target vehicle to display the fuel quantity.

[0090] In this embodiment, it should be noted that the previous fuel reference value is used to record the fuel reference value before the fuel gauge is powered off, so that when the target vehicle is powered on, this value can be used as a display data support to accurately display the current real fuel value; the current fuel sampling value refers to the current fuel value of the target vehicle collected.

[0091] As an example, steps S10 to S40 include: (refer to...) Figure 2The diagram illustrates the fuel level display process upon power-on. When a target vehicle is detected to be powered on, the system reads the previous fuel reference value and the previous fuel display value stored in the target vehicle's memory database, and samples the current fuel level to obtain the target vehicle's current fuel sample value. Based on the current fuel sample value and the previous fuel reference value, the system performs fuel behavior detection on the target vehicle, specifically detecting whether the target vehicle has refueled or leaked fuel during the power-off process, obtaining the corresponding fuel behavior detection result. The fuel behavior may include refueling or leaking fuel. The fuel behavior detection result characterizes whether the target vehicle has triggered fuel behavior. The condition for triggering fuel behavior is that there is a first difference between the current fuel sample value and the current fuel reference value, and this first difference persists for a stable period of time. The current fuel reference value is based on the target vehicle's... The vehicle speed attribute and power attribute are obtained by updating the previous fuel reference value. The vehicle speed attribute is used to indicate whether the target vehicle's speed is zero, and the power attribute is used to indicate the overall power status of the target vehicle. If the fuel behavior detection result is a triggered fuel behavior, the fuel change amplitude corresponding to the triggered fuel behavior is obtained. It is then checked whether the first difference is greater than or equal to the fuel change amplitude. If it is greater than or equal to the fuel change amplitude, the current fuel reference value is used as the current fuel display value. The fuel change amplitude is set based on the triggering of the fuel behavior, and in this embodiment, it can be set to 0.3L. If it is less than the fuel change amplitude, the previous fuel display value is used as the current fuel display value. Based on the current fuel display value, the target vehicle is controlled to display the fuel quantity.

[0092] As a preferred example, considering that the target vehicle may be powered on for the first time, a step to determine whether the previous fuel reference value was zero can be added to this embodiment. If the previous fuel reference value was zero, it means that the target vehicle is powered on for the first time, and the current fuel sampling value is directly assigned to the current display value. If the previous fuel reference value was not zero, it means that the target vehicle is not powered on for the first time, and subsequent fuel behavior detection is performed.

[0093] In this embodiment, based on the characteristic of the vehicle's fuel tank float floating according to the fuel level, to ensure that the fuel level displayed on the fuel gauge when the target vehicle is powered on remains consistent with that when it is powered off, thus avoiding user confusion, a "previous fuel level display value" attribute is defined. This allows users to more clearly observe the fuel level changes of the target vehicle, improving the user experience. In addition, the defined "previous fuel reference value" attribute provides data support for the current fuel level display. Fuel behavior detection can detect whether the target vehicle has refueled or leaked fuel when it is powered off, thereby further improving the accuracy of the vehicle's fuel level display.

[0094] The step of detecting fuel behavior of the target vehicle based on the current fuel sampling value and the previous fuel reference value to obtain the corresponding fuel behavior detection result includes:

[0095] Step S21: Update the previous fuel reference value based on the vehicle speed attribute and power attribute of the target vehicle to obtain the current fuel reference value of the target vehicle.

[0096] Step S22: Based on the current fuel sampling value and the current fuel reference value, perform fuel behavior detection on the target vehicle to obtain the fuel behavior detection result.

[0097] As an example, steps S21 to S22 include: based on the vehicle speed attribute, detecting whether the target vehicle's speed is zero to obtain the target vehicle's current speed reference value; based on the power attribute, detecting whether the target vehicle's overall power status is on to obtain the target vehicle's current power reference value; updating the previous fuel reference value based on the current vehicle speed reference value and the current power reference value to obtain the target vehicle's current fuel reference value; and detecting whether the target vehicle triggers fuel behavior based on the current fuel sampling value and the current fuel reference value to obtain the fuel behavior detection result.

[0098] In this embodiment, vehicle speed and power attributes are introduced to simulate the operation of the target vehicle in a relatively realistic manner, thereby improving the credibility and accuracy of the current fuel reference value and further improving the accuracy of the vehicle fuel level display.

[0099] The step of updating the previous fuel reference value based on the target vehicle's speed and power attributes to obtain the target vehicle's current fuel reference value includes:

[0100] Step S211: Based on the vehicle speed attribute, perform illegal speed detection and speed timeout detection on the current speed of the target vehicle to obtain the corresponding illegal speed detection result and speed timeout detection result.

[0101] Step S212: Based on the illegal speed detection result, the speed timeout detection result, and the current fuel sampling value, assign a value to the current speed of the target vehicle to obtain a current speed reference value;

[0102] Step S213: Based on the power attributes, perform power illegality detection and power timeout detection on the current power of the target vehicle to obtain the corresponding power illegality detection results and power timeout detection results;

[0103] Step S214: Based on the power illegal detection result, the power timeout detection result, and the current fuel sampling value, assign a value to the current power of the target vehicle to obtain the current power reference value;

[0104] Step S215: Perform reference value illegality detection on the current vehicle speed reference value and the current power supply reference value to obtain the reference value illegality detection result;

[0105] Step S216: Based on the illegal detection result of the reference value, update the fuel reference value of the target vehicle to obtain the current fuel reference value.

[0106] In this embodiment, it should be noted that the illegal speed detection result is used to characterize whether the speed reference value stored in the target vehicle has been assigned a value; the speed timeout detection result is used to characterize the timeout time related to the current speed of the target vehicle, which corresponds to a preset speed timing threshold, such as a preset time value of 5 seconds. If the speed timing is greater than or equal to 5 seconds, it is determined to be a timeout; the illegal power supply detection result is used to characterize whether the power supply reference value stored in the target vehicle has been assigned a value; the power supply timeout detection result has the same definition as the speed timeout detection result, and will not be described again; in this embodiment, the calculation order of the current speed reference value and the current power supply reference value can be set by the user, and is not limited to calculating the speed reference value first and then the power supply reference value in this embodiment.

[0107] As an example, steps S211 to S216 include: (refer to...) Figure 3 The flowchart illustrates the process. Based on the vehicle speed attribute, it determines whether the target vehicle has stopped. If it hasn't stopped, it means the target vehicle is currently moving, so the speed timer is set to zero, and the speed reference value is set to an invalid value. If it has stopped, an invalid speed detection is performed, which checks whether the speed reference value stored in the memory database is invalid. If the speed reference value stored in the memory database is invalid, a speed timeout detection is further performed, which checks whether the speed timer is greater than or equal to a preset speed timer threshold. If it is not greater than or equal to the preset speed timer threshold, it means the speed change duration is short, and the process ends. If it is greater than or equal to the preset speed timer threshold, meaning the speed is both invalid and has timed out, an invalid detection is performed on the power reference value stored in the memory database. If the power reference value stored in the memory database is not invalid, it is directly assigned to the current speed reference value. If the power reference value stored in the memory database is invalid, sampling is performed, and the current fuel sampling value is assigned to the current speed reference value. Similarly, the process can be referred to... Figure 4 The flowchart illustrates that the process for assigning the current power supply reference value is the same as the process for assigning the current vehicle speed reference value, and will not be repeated here; refer to... Figure 5After obtaining the current vehicle speed reference value and the current power reference value, in order to further ensure the accuracy of the subsequent current fuel reference value, an illegality check can be performed on the current vehicle speed reference value and the current power reference value again. First, the current vehicle speed reference value can be assigned to the current fuel reference value. Then, it can be checked whether the current fuel reference value is an illegal value. If the current fuel reference value is an illegal value, it means that the current vehicle speed reference value has been assigned. Then, it can be checked whether the current power reference value is an illegal value. If the current power reference value is not an illegal value, then the current power reference value can be assigned to the current fuel reference value.

[0108] In this embodiment, by utilizing illegal detection and timeout detection techniques, the reliability and accuracy of the current vehicle speed reference value and the current power reference value are improved, thereby increasing the credibility and accuracy of the subsequent current fuel reference value, and ultimately improving the accuracy of the vehicle fuel level display.

[0109] The step of detecting fuel behavior of the target vehicle based on the current fuel sampling value and the current fuel reference value, and obtaining the fuel behavior detection result, includes:

[0110] Step S221: Detect whether the first difference between the current fuel sample value and the current fuel reference value is greater than or equal to a preset first difference threshold.

[0111] Step S222: If the difference is greater than or equal to the preset first difference threshold, then detect whether the duration of the first difference is greater than or equal to the preset first duration threshold.

[0112] Step S223: If the result is greater than or equal to the preset first duration threshold, then the fuel behavior detection result is determined to be a triggered fuel behavior.

[0113] As an example, steps S221 to S223 include: (refer to...) Figure 6 First, it detects whether the first difference between the current fuel sample value and the current fuel reference value is greater than or equal to a preset first difference threshold x, where the preset first difference threshold is a standard value for the difference between the current fuel sample value and the current fuel reference value. If it is greater than or equal to the preset first difference threshold, it further detects whether the duration of the first difference is greater than or equal to a preset first duration threshold t, where the preset first duration threshold is a standard value for the duration of the first difference. If it is greater than or equal to the preset first duration threshold, the fuel behavior detection result is determined to be a triggered fuel behavior.

[0114] In this embodiment, the target vehicle can be determined to have triggered fuel behavior only when both the first difference and the duration of the first difference meet the conditions simultaneously, thus doubly ensuring the accuracy and reliability of the fuel behavior detection results.

[0115] The step of assigning a value to the current fuel level of the target vehicle based on the fuel behavior detection result to obtain the current fuel display value includes:

[0116] Step S31: If the fuel behavior detection result is a triggered fuel behavior, then query the corresponding fuel change magnitude.

[0117] Step S32: Detect whether the first difference is greater than or equal to the fuel change amplitude;

[0118] Step S33: If the change in fuel amount is greater than or equal to the change in fuel amount, then the current fuel reference value is used as the current fuel display value.

[0119] As an example, steps S31 to S33 include: if the fuel behavior detection result is a triggered fuel behavior, then query the corresponding fuel change amplitude; detect whether the first difference is greater than or equal to the fuel change amplitude; if it is greater than or equal to the fuel change amplitude, then use the current fuel reference value as the current fuel display value; if it is less than the fuel change amplitude, then it is necessary to further detect whether the duration of the first difference is greater than or equal to a preset second duration threshold.

[0120] The step of using the current fuel reference value as the current fuel display value further includes:

[0121] Step S34: If it is less than the fuel change range, then detect whether the duration of the first difference is greater than or equal to a preset second duration threshold.

[0122] Step S35: If the change in fuel quantity is greater than or equal to a preset second time threshold, then stop querying the change in fuel quantity.

[0123] As an example, steps S34 to S35 include: if the first difference is less than the fuel change amplitude, then detecting whether the duration of the first difference is greater than or equal to a preset second duration threshold, wherein the preset second duration threshold is used to characterize the duration standard value of the fuel behavior; if it is greater than or equal to the preset second duration threshold, it indicates that the fuel behavior of the target vehicle has lasted for a stable period of time, meeting the stopping condition, and then stopping the query of the fuel change amplitude.

[0124] In this embodiment, by performing difference detection and duration detection again on the target vehicle that triggered the fuel behavior, the current fuel display value of the target vehicle is obtained, thereby improving the accuracy of the current fuel display value.

[0125] The vehicle fuel level display method further includes:

[0126] Step A10: If the target vehicle is detected to be powered off, then obtain the previous fuel display value and the previous fuel reference value of the target vehicle.

[0127] Step A20: Detect whether the difference between the previous fuel display value and the current fuel display value is greater than or equal to a preset second difference threshold.

[0128] Step A30: If the value is greater than or equal to the preset second difference threshold, then the previous fuel display value is assigned to the current fuel display value.

[0129] Step A40: Detect whether the difference between the previous fuel reference value and the current fuel reference value is greater than or equal to a preset third difference threshold.

[0130] Step A50: If the value is greater than or equal to a preset third gap threshold, then update the previous fuel reference value to the current fuel reference value, and save the current fuel display value and the current fuel reference value.

[0131] In this embodiment, it should be noted that when the target vehicle is powered off, the "previous display value" and "previous reference value" are updated and saved. These are used to display the fuel quantity when the target vehicle is powered on again, as well as to record data on refueling and leakage during the synchronous power-off process after power-on.

[0132] As an example, steps A10 to A50 include: (refer to...) Figure 7 The flowchart illustrates the process as follows: If the target vehicle is detected to be powered off, the previous fuel consumption display value and the previous fuel consumption reference value of the target vehicle are obtained; the difference between the previous fuel consumption display value and the current fuel consumption display value is checked to see if it is greater than or equal to a preset second difference threshold, wherein the preset second difference threshold is used to characterize the standard difference value between the previous fuel consumption display value and the current fuel consumption display value; if it is greater than or equal to the preset second difference threshold, the previous fuel consumption display value is assigned to the current fuel consumption display value; the difference between the previous fuel consumption reference value and the current fuel consumption reference value is checked to see if it is greater than or equal to a preset third difference threshold, wherein the preset third difference threshold is used to characterize the standard difference value between the previous fuel consumption reference value and the current fuel consumption reference value; if it is greater than or equal to the preset third difference threshold, the previous fuel consumption reference value is updated to the current fuel consumption reference value, and the current fuel consumption display value and the current fuel consumption reference value are saved for displaying the fuel quantity the next time the target vehicle is powered on.

[0133] In this embodiment, the power-off process of the target vehicle is considered. In order to have data to rely on when the target vehicle is powered on again, the current fuel display value and the current fuel reference value are updated and saved during the power-off process, thereby improving the accuracy of the fuel quantity display when the target vehicle is powered on again.

[0134] This embodiment provides a method, device, equipment, and readable storage medium for displaying vehicle fuel level. Compared with the prior art, this embodiment first detects that the target vehicle is powered on, then obtains the previous fuel reference value of the target vehicle and collects the current fuel sampling value of the target vehicle; based on the current fuel sampling value and the previous fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the corresponding fuel behavior detection result; based on the fuel behavior detection result, the current fuel level of the target vehicle is assigned a value to obtain the current fuel display value; based on the current fuel display value, the target vehicle is controlled to display the fuel level. This application introduces the attribute of a fuel reference value and performs fuel behavior detection on the target vehicle during the fuel level display process to detect whether the vehicle has refueled or leaked fuel, thereby calculating the current fuel display value based on the fuel behavior detection result. Compared with the current method that directly uses the actual fuel sampling value as the basis for fuel level display, this application considers the impact of vehicle refueling and fuel leakage on fuel level display, and the added fuel reference value serves as a data support for fuel level display, so that the fuel gauge can accurately display the current real fuel level, thus improving the accuracy of vehicle fuel level display.

[0135] Furthermore, embodiments of this application also provide a vehicle fuel level display device, such as... Figure 8 As shown, the vehicle fuel quantity display device includes:

[0136] The fuel sampling module 10 is used to obtain the previous fuel reference value of the target vehicle and collect the current fuel sampling value of the target vehicle if the target vehicle is detected to be powered on.

[0137] The fuel behavior detection module 20 is used to perform fuel behavior detection on the target vehicle based on the current fuel sampling value and the previous fuel reference value, and obtain the corresponding fuel behavior detection result.

[0138] The current fuel display value acquisition module 30 is used to assign a value to the current fuel quantity of the target vehicle based on the fuel behavior detection result, and obtain the current fuel display value;

[0139] The fuel quantity display module 40 is used to control the target vehicle to display the fuel quantity based on the current fuel quantity display value.

[0140] Optionally, the fuel behavior detection module 20 is further configured to:

[0141] Based on the target vehicle's speed and power attributes, the previous fuel reference value is updated to obtain the target vehicle's current fuel reference value.

[0142] Based on the current fuel sampling value and the current fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the fuel behavior detection result.

[0143] Optionally, the fuel behavior detection module 20 is further configured to:

[0144] Based on the vehicle speed attribute, the current speed of the target vehicle is subjected to illegal speed detection and speed timeout detection, and the corresponding illegal speed detection results and speed timeout detection results are obtained.

[0145] Based on the illegal speed detection result, the speed timeout detection result, and the current fuel sampling value, the current speed of the target vehicle is assigned a value to obtain a current speed reference value;

[0146] Based on the power attributes, perform power illegality detection and power timeout detection on the current power of the target vehicle, and obtain the corresponding power illegality detection results and power timeout detection results.

[0147] Based on the power illegality detection result, the power timeout detection result, and the current fuel sampling value, the current power of the target vehicle is assigned a value to obtain the current power reference value;

[0148] Perform illegal reference value detection on the current vehicle speed reference value and the current power supply reference value to obtain the illegal reference value detection result;

[0149] Based on the illegal detection result of the reference value, the fuel reference value of the target vehicle is updated to obtain the current fuel reference value.

[0150] Optionally, the fuel behavior detection module 20 is further configured to:

[0151] Detect whether the first difference between the current fuel sample value and the current fuel reference value is greater than or equal to a preset first difference threshold;

[0152] If the difference is greater than or equal to the preset first difference threshold, then it is detected whether the duration of the first difference is greater than or equal to the preset first duration threshold.

[0153] If the result is greater than or equal to the preset first duration threshold, the fuel behavior detection result is determined to be a triggered fuel behavior.

[0154] Optionally, the module 30 for obtaining the current fuel display value is further configured to:

[0155] If the fuel behavior detection result indicates that fuel behavior has been triggered, then the corresponding fuel change magnitude is queried.

[0156] Detect whether the first difference is greater than or equal to the fuel change amplitude;

[0157] If the change in fuel consumption is greater than or equal to the stated change in fuel consumption, then the current fuel reference value will be used as the current fuel consumption display value.

[0158] Optionally, the module 30 for obtaining the current fuel display value is further configured to:

[0159] If it is less than the fuel change range, then detect whether the duration of the first difference is greater than or equal to a preset second duration threshold.

[0160] If the change in fuel quantity is greater than or equal to a preset second time threshold, then the query for the change in fuel quantity will be stopped.

[0161] Optionally, the vehicle fuel level display device is also used for:

[0162] If the target vehicle is detected to be powered off, the previous fuel consumption display value and the previous fuel consumption reference value of the target vehicle are obtained.

[0163] Detect whether the difference between the previous fuel display value and the current fuel display value is greater than or equal to a preset second difference threshold;

[0164] If the value is greater than or equal to the preset second gap threshold, then the previous fuel display value is assigned to the current fuel display value;

[0165] Detect whether the difference between the previous fuel reference value and the current fuel reference value is greater than or equal to a preset third difference threshold;

[0166] If the value is greater than or equal to a preset third gap threshold, the previous fuel reference value is updated to the current fuel reference value, and the current fuel display value and the current fuel reference value are saved.

[0167] The vehicle fuel level display device provided in this application employs the vehicle fuel level display method described in the above embodiments, solving the technical problem of low accuracy in current vehicle fuel level displays. Compared with the prior art, the beneficial effects of the vehicle fuel level display device provided in this application are the same as those of the vehicle fuel level display method described in the above embodiments, and other technical features of this vehicle fuel level display device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0168] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the vehicle fuel quantity display method in Embodiment 1 above.

[0169] The following is for reference. Figure 9The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Android Devices), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0170] like Figure 9 As shown, an electronic device may include a processing unit (such as a central processing unit, graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) or a program loaded from a storage device into random access memory (RAM). The RAM also stores various programs and data required for the operation of the electronic device. The processing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.

[0171] Typically, the following systems can be connected to the I / O interface: input devices such as touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices such as liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices such as magnetic tapes, hard drives, etc.; and communication devices. Communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0172] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, it performs the functions defined above in the methods of embodiments of this disclosure.

[0173] The electronic device provided in this application employs the vehicle fuel quantity display method described in the above embodiments, solving the technical problem of low accuracy in current vehicle fuel quantity displays. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the vehicle fuel quantity display method described in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0174] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0175] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0176] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the vehicle fuel quantity display method in the first embodiment described above.

[0177] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0178] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0179] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: if it detects that a target vehicle is powered on, acquire the previous fuel reference value of the target vehicle and collect the current fuel sampling value of the target vehicle; perform fuel behavior detection on the target vehicle based on the current fuel sampling value and the previous fuel reference value, and obtain a corresponding fuel behavior detection result; assign a value to the current fuel quantity of the target vehicle based on the fuel behavior detection result, and obtain a current fuel display value; and control the target vehicle to display the fuel quantity based on the current fuel display value.

[0180] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can 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 remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0181] 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 code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated 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 operation, or using a combination of dedicated hardware and computer instructions.

[0182] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0183] The computer-readable storage medium provided in this application stores computer-readable program instructions for executing the above-described vehicle fuel level display method, thus solving the technical problem of low accuracy in current vehicle fuel level displays. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the vehicle fuel level display method provided in the above-described embodiments, and will not be repeated here.

[0184] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the vehicle fuel level display method described above.

[0185] The computer program product provided in this application solves the technical problem of low accuracy in current vehicle fuel level displays. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the vehicle fuel level display method provided in the above embodiments, and will not be repeated here.

[0186] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method for displaying vehicle fuel level, characterized in that, The vehicle fuel level display method includes: If the target vehicle is detected to be powered on, the previous fuel reference value of the target vehicle is obtained, and the current fuel sampling value of the target vehicle is collected. Based on the current fuel sampling value and the previous fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the corresponding fuel behavior detection result; Based on the fuel behavior detection results, the current fuel quantity of the target vehicle is assigned a value to obtain the current fuel display value; Based on the current fuel display value, control the target vehicle to display the fuel quantity; The vehicle fuel level display method also includes: If the target vehicle is detected to be powered off, the previous fuel consumption display value and the previous fuel consumption reference value of the target vehicle are obtained. Detect whether the difference between the previous fuel display value and the current fuel display value is greater than or equal to a preset second difference threshold; If the value is greater than or equal to the preset second gap threshold, then the previous fuel display value is assigned to the current fuel display value; Detect whether the difference between the previous fuel reference value and the current fuel reference value is greater than or equal to a preset third difference threshold; If the value is greater than or equal to a preset third gap threshold, the previous fuel reference value is updated to the current fuel reference value, and the current fuel display value and the current fuel reference value are saved.

2. The vehicle fuel quantity display method as described in claim 1, characterized in that, The step of performing fuel behavior detection on the target vehicle based on the current fuel sampling value and the previous fuel reference value to obtain the corresponding fuel behavior detection result includes: Based on the target vehicle's speed and power attributes, the previous fuel reference value is updated to obtain the target vehicle's current fuel reference value. Based on the current fuel sampling value and the current fuel reference value, fuel behavior detection is performed on the target vehicle to obtain the fuel behavior detection result.

3. The vehicle fuel quantity display method as described in claim 2, characterized in that, The step of updating the previous fuel reference value based on the target vehicle's speed and power attributes to obtain the target vehicle's current fuel reference value includes: Based on the vehicle speed attribute, determine whether the target vehicle has stopped; If the target vehicle does not stop, the vehicle speed timer will be set to zero, and the vehicle speed reference value will be set to an illegal value. If the target vehicle stops, the speed reference value of the target vehicle stored in the memory database is checked to see if it is an illegal value, and an illegal speed detection result is obtained. If the illegal vehicle speed detection result is that the vehicle speed reference value is an illegal value, the vehicle speed timer is checked to see if it is greater than or equal to a preset vehicle speed timer threshold, and the vehicle speed timeout detection result is obtained. If the vehicle speed timeout detection result is that the vehicle speed time is greater than or equal to a preset vehicle speed time threshold, an illegal detection is performed on the power reference value of the target vehicle stored in the memory database. If the power reference value is not an illegal value, then the power reference value is assigned to the current vehicle speed reference value; If the power reference value is an illegal value, then the current fuel sampling value is assigned to the current vehicle speed reference value; Based on the power attributes, determine whether the power supply of the target vehicle is turned on; If the power supply of the target vehicle is not turned on, the power timer is set to zero and the power reference value is set to an illegal value. If the power of the target vehicle is turned on, then it is detected whether the power reference value of the target vehicle stored in the memory database is an illegal value, and a power illegal detection result is obtained. If the power supply illegal detection result is that the power supply reference value is illegal, check whether the power supply timer is greater than or equal to the preset power supply timer threshold to obtain the power supply timeout detection result; If the power timeout detection result is that the power timeout is greater than or equal to the preset power timeout threshold, an illegal detection is performed on the vehicle speed reference value stored in the memory database of the target vehicle. If the vehicle speed reference value is not an illegal value, then the vehicle speed reference value is assigned to the current power supply reference value; If the vehicle speed reference value is an illegal value, then the current fuel sampling value is assigned to the current power reference value; The current vehicle speed reference value is assigned to the current fuel reference value, and the current fuel reference value is checked to see if it is an illegal value. If the current fuel reference value is invalid, then check whether the current power reference value is invalid. If the current power reference value is not an invalid value, then the current power reference value is assigned to the current fuel reference value.

4. The vehicle fuel quantity display method as described in claim 2, characterized in that, The step of performing fuel behavior detection on the target vehicle based on the current fuel sampling value and the current fuel reference value, and obtaining the fuel behavior detection result, includes: Detect whether the first difference between the current fuel sample value and the current fuel reference value is greater than or equal to a preset first difference threshold; If the difference is greater than or equal to the preset first difference threshold, then it is detected whether the duration of the first difference is greater than or equal to the preset first duration threshold. If the result is greater than or equal to the preset first duration threshold, the fuel behavior detection result is determined to be a triggered fuel behavior.

5. The vehicle fuel quantity display method as described in claim 4, characterized in that, The step of assigning a value to the current fuel level of the target vehicle based on the fuel behavior detection result to obtain the current fuel display value includes: If the fuel behavior detection result indicates that fuel behavior has been triggered, then the corresponding fuel change magnitude is queried. Detect whether the first difference is greater than or equal to the fuel change amplitude; If the change in fuel consumption is greater than or equal to the stated change in fuel consumption, then the current fuel reference value will be used as the current fuel consumption display value.

6. The vehicle fuel quantity display method as described in claim 5, characterized in that, Following the step of using the current fuel reference value as the current fuel display value, the method further includes: If it is less than the fuel change range, then detect whether the duration of the first difference is greater than or equal to a preset second duration threshold. If the change in fuel quantity is greater than or equal to a preset second time threshold, then the query for the change in fuel quantity will be stopped.

7. A vehicle fuel level display device, characterized in that, The vehicle fuel level display device includes: The fuel sampling module is used to obtain the previous fuel reference value of the target vehicle and collect the current fuel sampling value of the target vehicle if the target vehicle is detected to be powered on. The fuel behavior detection module is used to perform fuel behavior detection on the target vehicle based on the current fuel sampling value and the previous fuel reference value, and obtain the corresponding fuel behavior detection result. The module for obtaining the current fuel display value is used to assign a value to the current fuel quantity of the target vehicle based on the fuel behavior detection result, thereby obtaining the current fuel display value; A fuel level display module is used to control the target vehicle to display the fuel level based on the current fuel level display value. The vehicle fuel level display device is also used for: If the target vehicle is detected to be powered off, the previous fuel consumption display value and the previous fuel consumption reference value of the target vehicle are obtained. Detect whether the difference between the previous fuel display value and the current fuel display value is greater than or equal to a preset second difference threshold; If the value is greater than or equal to the preset second gap threshold, then the previous fuel display value is assigned to the current fuel display value; Detect whether the difference between the previous fuel reference value and the current fuel reference value is greater than or equal to a preset third difference threshold; If the value is greater than or equal to a preset third gap threshold, the previous fuel reference value is updated to the current fuel reference value, and the current fuel display value and the current fuel reference value are saved.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the steps of the vehicle fuel quantity display method according to any one of claims 1 to 6.

9. A readable storage medium, characterized in that, The readable storage medium stores a program for implementing a vehicle fuel quantity display method, which is executed by a processor to implement the steps of the vehicle fuel quantity display method as described in any one of claims 1 to 6.