Oil level detection methods, vehicles, storage media and program products
By integrating vehicle fuel level information and actual operating data, and switching the fuel level characteristic curve under preset conditions, the problem of inaccurate vehicle fuel level display is solved, the stability of fuel level detection is improved, the user experience is enhanced, and user trust is increased.
Patent Information
- Application Number
- CN202611255348.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, the fuel level characteristic curve of a vehicle does not match the actual volume of the fuel tank, resulting in inaccurate fuel level display. Software upgrades cannot quickly solve this problem in batches, and directly replacing the fuel level characteristic curve may cause the fuel level display on the instrument panel to jump or drop suddenly, affecting user experience and trust.
By integrating vehicle fuel level information and actual operating data, the fuel level characteristic curve is switched when preset conditions are met. Data such as vehicle speed and acceleration are used to determine the stable state, ensuring the stability of fuel level display. A personalized fuel level characteristic curve table is constructed by combining fuel level sensor resistance and historical data, thereby improving the stability of fuel level detection and enhancing the user experience.
This technology prevents sudden changes in the fuel level display on the instrument panel during the switching of the fuel level characteristic curve, improves the long-term stability of fuel level detection and user experience, and enhances users' trust in the vehicle's fuel system.
Smart Images

Figure CN123111397A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle engineering technology, specifically to a method for detecting fuel level, a vehicle, a storage medium, and a program product. Background Technology
[0002] In related technologies, the fuel level characteristic curve of a vehicle is generally calibrated and fixed to the vehicle controller before the vehicle leaves the factory, and cannot be changed manually. Due to various factors, the fuel level characteristic curve may not match the actual fuel tank volume. In this case, the vehicle controller software is usually upgraded offline to replace the fuel level characteristic curve. With the application of remote software upgrade technology for vehicle controllers, it is also gradually possible to quickly update the fuel level characteristic curve through software upgrades.
[0003] However, among the relevant technologies, offline flashing requires users to go to the store for operation, which has limited coverage, high after-sales costs, and cannot quickly solve common problems of vehicles on sale in batches; software upgrade methods mostly directly replace the original fuel level characteristic curve without setting any switching restrictions. Direct replacement may cause the fuel level display on the instrument panel to jump or drop suddenly, reducing the user's driving experience and even affecting the user's trust in the vehicle's fuel system. These issues urgently need to be addressed. Summary of the Invention
[0004] This application provides a method for detecting vehicle fuel level. This method integrates vehicle fuel level information and actual operating data, and when certain fuel level characteristic curve switching conditions are met, it switches the vehicle's current fuel level characteristic curve to a new target fuel level characteristic curve. This ensures smooth display on the vehicle's instrument panel before and after the curve switch, avoiding sudden spikes or drops in fuel level readings, improving driver visibility and experience. Furthermore, it can adaptively update the fuel level characteristic curve, correcting measurement errors caused by aging fuel level sensors or changes in fuel quality, thus effectively improving the long-term stability of fuel level detection and enhancing user experience and trust. This addresses the problems of offline remapping, which requires users to visit a store, has limited coverage, high after-sales costs, and cannot quickly resolve common issues across various vehicle models; and software upgrades, which often directly replace the original fuel level characteristic curve without any switching restrictions, can lead to sudden spikes or drops in fuel level readings, reducing user experience and even affecting user trust in the vehicle's fuel system.
[0005] In a first aspect, a method for detecting the fuel level of a vehicle is provided, comprising the following steps: acquiring the current fuel level and actual operating data of the vehicle based on a current fuel level characteristic curve; determining the target fuel level corresponding to a target fuel level characteristic curve of the vehicle; and, in response to the resistance of the fuel level sensor in the vehicle's fuel tank, the target fuel level, the current fuel level, and the actual operating data satisfying a preset fuel level characteristic curve switching condition, replacing the current fuel level characteristic curve with the target fuel level characteristic curve to determine the actual fuel level of the vehicle.
[0006] Based on the above technical solution, the embodiments of this application can, by combining vehicle fuel level information and actual operating data, switch the vehicle's current fuel level characteristic curve to a new target fuel level characteristic curve when the vehicle meets certain fuel level characteristic curve switching conditions. This ensures that the vehicle's instrument panel can display the fuel level smoothly before and after the fuel level characteristic curve switch, avoiding situations such as sudden jumps or drops in fuel level display, improving the driver's perception and experience. Furthermore, it can adaptively update the fuel level characteristic curve, correcting fuel level measurement errors that may be caused by aging of the fuel level sensor in the fuel tank or changes in fuel quality, thereby effectively improving the long-term stability of fuel level detection and the user's experience and trust.
[0007] In combination with the first aspect and the above implementation methods, in some possible implementation methods, obtaining the current fuel quantity and the actual operating data of the vehicle based on the current fuel level characteristic curve includes: obtaining the current vehicle speed, current longitudinal acceleration, and current lateral acceleration of the vehicle; and determining the actual operating data of the vehicle based on the current vehicle speed, the current longitudinal acceleration, and the current lateral acceleration.
[0008] Based on the above technical solution, the embodiments of this application can obtain multiple data such as vehicle speed, current longitudinal acceleration, and current lateral acceleration to provide a solid data foundation for subsequent processing. In subsequent processing, multiple data can be used to comprehensively characterize the actual operating state of the vehicle, avoiding errors in judgment results due to single data. This ensures that the subsequent judgment of oil level characteristic curve switching conditions can be based on real stable operating conditions, avoiding erroneous switching caused by data errors, and improving the data robustness of this application.
[0009] In combination with the first aspect and the above implementation, in some possible implementations, before responding to the fact that the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data satisfy the preset fuel level characteristic curve switching condition, the method further includes: identifying the current state of the vehicle based on the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data, so as to determine whether the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data satisfy the preset fuel level characteristic curve switching condition based on the current state.
[0010] Based on the above technical solution, the embodiments of this application can comprehensively judge the current state of the vehicle by multiple parameters, and then introduce the vehicle's working condition verification, so that the switching process of the oil level characteristic curve has dual protection, and the preset oil level characteristic curve switching conditions can be expanded, making it easy to add new switching conditions in the future.
[0011] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the step of identifying the current state of the vehicle based on the resistance, the target fuel level, the current fuel level, and the actual operating data, and determining whether the resistance, the target fuel level, the current fuel level, and the actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state, includes: determining that the current state is a stationary state when the absolute value of the difference between the target fuel level and the current fuel level is less than a preset fuel level jump threshold; and determining that the resistance, the target fuel level, the current fuel level, and the actual operating data meet the preset fuel level characteristic curve switching conditions when the current state is the stationary state, and the vehicle speed is less than or equal to a preset vehicle speed threshold, and the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold.
[0012] Based on the above technical solution, the embodiments of this application can determine that the preset oil level characteristic curve switching conditions are met when the absolute value of the difference between the target oil level characteristic curve and the current oil level characteristic curve of the vehicle is extremely small, and then superimpose the static judgment that the vehicle speed, longitudinal acceleration and lateral acceleration are all close to zero. In this way, the switching from the current oil level characteristic curve to the target oil level characteristic curve is completed under the condition that the oil level is basically absolutely stable. This can avoid display jumps and ensure that the switching action does not introduce new measurement errors.
[0013] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the step of identifying the current state of the vehicle based on the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data, and determining whether the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state, includes: determining the current state as a first fuel quantity state when the current fuel quantity is greater than or equal to a first preset fuel quantity threshold and the resistance is less than a first preset resistance threshold; and determining that the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data meet the preset fuel level characteristic curve switching conditions when the current state is the first fuel quantity state, the vehicle speed is less than or equal to a preset vehicle speed threshold, the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold.
[0014] Based on the above technical solution, the embodiments of this application can determine the actual fuel level in the vehicle's fuel tank by combining the vehicle's current fuel level and the resistance of the fuel level sensor. When it is determined that the actual fuel level is high and the vehicle is in an absolutely stationary or relatively stationary state, it is determined that the preset fuel level characteristic curve switching conditions are met. At this time, the float of the fuel level sensor is almost at the top of the fuel tank, and the resistance is extremely low, which means that there is basically no fuel level fluctuation. On this basis, the switching from the current fuel level characteristic curve to the target fuel level characteristic curve is completed, which can avoid fuel level display jumps and ensure that the switching action does not introduce new measurement errors.
[0015] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the step of identifying the current state of the vehicle based on the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data, and determining whether the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state, includes: determining the current state as a second fuel quantity state when the current fuel quantity is less than or equal to a second preset fuel quantity threshold and the resistance is greater than a second preset resistance threshold, wherein the second preset fuel quantity threshold is less than a first preset fuel quantity threshold, the fuel quantity corresponding to the second fuel quantity state is less than the fuel quantity corresponding to the first fuel quantity state, and the second preset resistance threshold is greater than the first preset resistance threshold; and determining that the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data meet the preset fuel level characteristic curve switching conditions when the current state is the second fuel quantity state, the vehicle speed is less than or equal to a preset vehicle speed threshold, the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold.
[0016] Based on the above technical solution, the embodiments of this application can determine the actual fuel level in the vehicle's fuel tank by combining the vehicle's current fuel level and the resistance of the fuel level sensor. When it is determined that the actual fuel level is low and the vehicle is in an absolutely stationary or relatively stationary state, it is determined that the preset fuel level characteristic curve switching conditions are met. At this time, the float of the fuel level sensor is almost at the bottom of the fuel tank, and the resistance is extremely high, which also means that there is basically no fuel level fluctuation. On this basis, the switching from the current fuel level characteristic curve to the target fuel level characteristic curve is completed. This can also avoid fuel level display jumps and ensure that the switching action does not introduce new measurement errors.
[0017] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the target oil quantity corresponding to the target oil level characteristic curve of the vehicle includes: querying a pre-constructed oil level characteristic curve table based on the resistance of the oil level sensor to obtain the query result; and determining the target oil quantity corresponding to the target oil level characteristic curve based on the query result.
[0018] Based on the above technical solution, the embodiments of this application can obtain the target oil quantity by querying a pre-built characteristic curve table based on the resistance of the oil level sensor, ensuring that the response speed for obtaining the target oil quantity meets the standard, and quickly and stably obtain the reference oil quantity value under the new curve by utilizing the mapping relationship between resistance and oil quantity, thus providing a reliable data foundation for subsequent oil level characteristic curve switching.
[0019] In combination with the first aspect and the above implementation methods, in some possible implementation methods, before querying the pre-built oil level characteristic curve table based on the resistance of the oil level sensor, the method further includes: obtaining historical fuel tank status data of the vehicle; generating a target oil level characteristic curve corresponding to the current fuel tank status of the vehicle based on the historical fuel tank status data; and determining the pre-built oil level characteristic curve table based on the target oil level characteristic curve.
[0020] Based on the above technical solution, the embodiments of this application can collect historical fuel tank status data of vehicles and pre-construct a fuel level characteristic curve table that matches the current fuel tank status of the vehicle. This effectively enables the construction of different tables based on the fuel tank status of different vehicles, so that the target fuel level characteristic curve to be switched by different vehicles can effectively match the current fuel tank status of the vehicle.
[0021] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of replacing the current oil level characteristic curve with the target oil level characteristic curve includes: obtaining the power status of the vehicle; when the power status is in the on state and the on state reaches the target duration, replacing the current oil level characteristic curve with the target oil level characteristic curve.
[0022] Based on the above technical solution, the embodiments of this application can add the judgment of the power-on state and its duration to ensure that the switching action can be performed after the system is fully powered on and stable, so as to avoid abnormal display or logical conflict caused by signal jitter at the moment of vehicle power-on, which would affect the user's perception and experience.
[0023] Secondly, a vehicle fuel level detection device is provided, comprising: a first acquisition module for acquiring the current fuel level obtained based on a current fuel level characteristic curve and the vehicle's actual operating data; a first determination module for determining the target fuel level corresponding to a target fuel level characteristic curve of the vehicle; and a substitution module for determining the vehicle's actual fuel level in response to a preset fuel level characteristic curve switching condition being met by the resistance of a fuel level sensor in the vehicle's fuel tank, the target fuel level, the current fuel level, and the actual operating data, by substituting the current fuel level characteristic curve with the target fuel level characteristic curve.
[0024] Based on the above technical solution, the embodiments of this application can, by combining vehicle fuel level information and actual operating data, switch the vehicle's current fuel level characteristic curve to a new target fuel level characteristic curve when the vehicle meets certain fuel level characteristic curve switching conditions. This ensures that the vehicle's instrument panel can display the fuel level smoothly before and after the fuel level characteristic curve switch, avoiding situations such as sudden jumps or drops in fuel level display, improving the driver's perception and experience. Furthermore, it can adaptively update the fuel level characteristic curve, correcting fuel level measurement errors that may be caused by aging of the fuel level sensor in the fuel tank or changes in fuel quality, thereby effectively improving the long-term stability of fuel level detection and the user's experience and trust.
[0025] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the first acquisition module includes: a first acquisition unit, used to acquire the current vehicle speed, current longitudinal acceleration and current lateral acceleration of the vehicle; and a first determination unit, used to determine the actual operating data of the vehicle based on the current vehicle speed, the current longitudinal acceleration and the current lateral acceleration.
[0026] Based on the above technical solution, the embodiments of this application can obtain multiple data such as vehicle speed, current longitudinal acceleration, and current lateral acceleration to provide a solid data foundation for subsequent processing. In subsequent processing, multiple data can be used to comprehensively characterize the actual operating state of the vehicle, avoiding errors in judgment results due to single data. This ensures that the subsequent judgment of oil level characteristic curve switching conditions can be based on real stable operating conditions, avoiding erroneous switching caused by data errors, and improving the data robustness of this application.
[0027] In conjunction with the second aspect and the above implementation methods, some possible implementation methods further include: an identification module, configured to identify the current state of the vehicle based on the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data before the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data meet the preset fuel level characteristic curve switching conditions, so as to determine whether the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state.
[0028] Based on the above technical solution, the embodiments of this application can comprehensively judge the current state of the vehicle by multiple parameters, and then introduce the vehicle's working condition verification, so that the switching process of the oil level characteristic curve has dual protection, and the preset oil level characteristic curve switching conditions can be expanded, making it easy to add new switching conditions in the future.
[0029] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the identification module includes: a second determining unit, configured to determine that the current state is a stationary state when the absolute value of the difference between the target fuel quantity and the current fuel quantity is less than a preset fuel quantity jump threshold; and a third determining unit, configured to determine that the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data satisfy the preset fuel level characteristic curve switching conditions when the current state is the stationary state, and the vehicle speed is less than or equal to a preset vehicle speed threshold, and the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold.
[0030] Based on the above technical solution, the embodiments of this application can determine that the preset oil level characteristic curve switching conditions are met when the absolute value of the difference between the target oil level characteristic curve and the current oil level characteristic curve of the vehicle is extremely small, and then superimpose the static judgment that the vehicle speed, longitudinal acceleration and lateral acceleration are all close to zero. In this way, the switching from the current oil level characteristic curve to the target oil level characteristic curve is completed under the condition that the oil level is basically absolutely stable. This can avoid display jumps and ensure that the switching action does not introduce new measurement errors.
[0031] In conjunction with the second aspect and the above implementation methods, in some possible implementation methods, the identification module includes: a fourth determining unit, configured to determine that the current state is a first fuel level state when the current fuel level is greater than or equal to a first preset fuel level threshold and the resistance is less than a first preset resistance threshold; and a fifth determining unit, configured to determine that the resistance, the target fuel level, the current fuel level, and the actual operating data satisfy the preset fuel level characteristic curve switching conditions when the current state is the first fuel level state, the vehicle speed is less than or equal to a preset vehicle speed threshold, the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold.
[0032] Based on the above technical solution, the embodiments of this application can determine the actual fuel level in the vehicle's fuel tank by combining the vehicle's current fuel level and the resistance of the fuel level sensor. When it is determined that the actual fuel level is high and the vehicle is in an absolutely stationary or relatively stationary state, it is determined that the preset fuel level characteristic curve switching conditions are met. At this time, the float of the fuel level sensor is almost at the top of the fuel tank, and the resistance is extremely low, which means that there is basically no fuel level fluctuation. On this basis, the switching from the current fuel level characteristic curve to the target fuel level characteristic curve is completed, which can avoid fuel level display jumps and ensure that the switching action does not introduce new measurement errors.
[0033] In conjunction with the second aspect and the above implementation methods, in some possible implementation methods, the identification module includes: a sixth determining unit, configured to determine that the current state is a second fuel level state when the current fuel level is less than or equal to a second preset fuel level threshold and the resistance is greater than a second preset resistance threshold, wherein the second preset fuel level threshold is less than a first preset fuel level threshold, the fuel level corresponding to the second fuel level state is less than the fuel level corresponding to the first fuel level state, and the second preset resistance threshold is greater than the first preset resistance threshold; and a seventh determining unit, configured to determine that the resistance, the target fuel level, the current fuel level, and the actual operating data satisfy the preset fuel level characteristic curve switching conditions when the current state is the second fuel level state, the vehicle speed is less than or equal to a preset vehicle speed threshold, the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold.
[0034] Based on the above technical solution, the embodiments of this application can determine the actual fuel level in the vehicle's fuel tank by combining the vehicle's current fuel level and the resistance of the fuel level sensor. When it is determined that the actual fuel level is low and the vehicle is in an absolutely stationary or relatively stationary state, it is determined that the preset fuel level characteristic curve switching conditions are met. At this time, the float of the fuel level sensor is almost at the bottom of the fuel tank, and the resistance is extremely high, which also means that there is basically no fuel level fluctuation. On this basis, the switching from the current fuel level characteristic curve to the target fuel level characteristic curve is completed. This can also avoid fuel level display jumps and ensure that the switching action does not introduce new measurement errors.
[0035] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the first determining module includes: a query unit, used to query a pre-constructed oil level characteristic curve table based on the resistance of the oil level sensor, and obtain a query result; and an eighth determining unit, used to determine the target oil quantity corresponding to the target oil level characteristic curve based on the query result.
[0036] Based on the above technical solution, the embodiments of this application can obtain the target oil quantity by querying a pre-built characteristic curve table based on the resistance of the oil level sensor, ensuring that the response speed for obtaining the target oil quantity meets the standard, and quickly and stably obtain the reference oil quantity value under the new curve by utilizing the mapping relationship between resistance and oil quantity, thus providing a reliable data foundation for subsequent oil level characteristic curve switching.
[0037] In conjunction with the second aspect and the above implementation methods, some possible implementation methods further include: a second acquisition module, configured to acquire historical fuel tank status data of the vehicle before querying a pre-built fuel level characteristic curve table based on the resistance of the fuel level sensor; a generation module, configured to generate a target fuel level characteristic curve corresponding to the current fuel tank status of the vehicle based on the historical fuel tank status data; and a second determination module, configured to determine the pre-built fuel level characteristic curve table based on the target fuel level characteristic curve.
[0038] Based on the above technical solution, the embodiments of this application can collect historical fuel tank status data of vehicles and pre-construct a fuel level characteristic curve table that matches the current fuel tank status of the vehicle. This effectively enables the construction of different tables based on the fuel tank status of different vehicles, so that the target fuel level characteristic curve to be switched by different vehicles can effectively match the current fuel tank status of the vehicle.
[0039] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the replacement module includes: a second acquisition unit, used to acquire the power status of the vehicle; and a replacement unit, used to replace the current oil level characteristic curve with the target oil level characteristic curve when the power status is on and the on status reaches the target duration.
[0040] Based on the above technical solution, the embodiments of this application can add the judgment of the power-on state and its duration to ensure that the switching action can be performed after the system is fully powered on and stable, so as to avoid abnormal display or logical conflict caused by signal jitter at the moment of vehicle power-on, which would affect the user's perception and experience.
[0041] Thirdly, a vehicle is provided, the vehicle comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the method of the first aspect or any possible implementation thereof.
[0042] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, characterized in that the program is executed by a processor to implement the vehicle fuel level detection method as described above.
[0043] Fifthly, a computer program product is provided, comprising a computer program, characterized in that, when the computer program is executed, it is used to implement the vehicle fuel level detection method as described above. Attached Figure Description
[0044] Figure 1 A flowchart illustrating the fuel level detection method for a vehicle provided in this application embodiment; Figure 2This is a schematic diagram of the judgment condition calculation logic for a vehicle stationary state switching curve according to an embodiment of this application; Figure 3 This is a schematic diagram illustrating the logic for calculating the judgment conditions of a vehicle full fuel state switching curve according to an embodiment of this application. Figure 4 This is a schematic diagram of the judgment condition calculation logic for a vehicle zero-fuel state switching curve according to an embodiment of this application; Figure 5 This is a flowchart illustrating the switching of the oil level characteristic curve according to one embodiment of this application. Figure 6 This is a schematic diagram of the vehicle structure provided in an embodiment of this application. Detailed Implementation
[0045] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0046] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0047] In mass-produced gasoline and hybrid vehicles, the resistance signal collected by the fuel level float sensor is converted into the corresponding fuel quantity through the fuel level characteristic curve built into the vehicle controller, and then the fuel level is displayed on the vehicle's instrument panel. This fuel level characteristic curve is calibrated and fixed to the vehicle controller before the vehicle leaves the factory and cannot be changed by the user.
[0048] However, in the actual sales and use of the vehicle, factors such as tolerance of fuel tank parts and differences in assembly process often cause the fuel level characteristic curve fixed at the factory to be mismatched with the actual fuel tank volume, resulting in problems such as inaccurate fuel level display and large error in range calculation, which affect the normal use of the vehicle by users.
[0049] The solution to this type of problem is often to upgrade the vehicle controller software through offline flashing, thereby replacing the oil level characteristic curve. However, this method requires users to go to a store for operation, which has limited coverage, high after-sales costs, and cannot quickly resolve common problems in a large number of vehicles currently on sale.
[0050] With the application of remote software upgrade technology for vehicle controllers, the oil level characteristic curve can be quickly updated through software upgrade. However, most of the software upgrade methods in related technologies directly replace the original oil level characteristic curve with the new one, without setting any switching restrictions.
[0051] However, when the vehicle is in an intermediate fuel level state (neither full nor empty), the fuel level resistance signal corresponding to the same fuel level will show a significant difference between the old and new curves. In this case, directly replacing the fuel level characteristic curve will cause the fuel level display on the instrument panel to jump or drop suddenly, which can easily lead to user misunderstanding and complaints, reduce the user's driving experience, and even affect the user's trust in the vehicle's fuel system.
[0052] Based on this, this application proposes a safe switching logic for software upgrades of the oil level characteristic curve. It can update and replace the oil level characteristic curve seamlessly and without jumps, based on the vehicle controller software upgrade, without avoiding jumps in the oil level display, thus ensuring the accuracy and reliability of vehicle oil level detection.
[0053] The fuel level detection method for a vehicle according to an embodiment of this application will be illustrated below with reference to the accompanying drawings.
[0054] Figure 1 This is a flowchart of a vehicle fuel level detection method according to one embodiment of this application.
[0055] like Figure 1 As shown, the fuel level detection method for a vehicle according to an embodiment of this application includes the following steps: Step S101: Obtain the current oil quantity and actual vehicle operating data based on the current oil level characteristic curve.
[0056] Those skilled in the art will understand that the oil level characteristic curve here can be understood as a curve used to describe the relationship (such as a functional relationship) between physical quantities such as oil level, resistance, and oil quantity (volume). The variables of the function may be different, for example: The oil level-volume curve can describe the relationship between oil level and oil volume or oil mass, and can be used to estimate oil volume or oil mass from oil level. The oil level-capacitance / resistance curve can describe the relationship between the electrical signal corresponding to a capacitive or resistive oil level sensor and the oil level. The oil level height can be calculated from the electrical signal. The oil level-pressure curve can be used to describe the relationship between bottom pressure and oil level, and can be used to estimate oil level from bottom pressure.
[0057] In the embodiments of this application, the oil level characteristic curve may be, but is not limited to, the oil quantity-resistance curve.
[0058] Furthermore, the current fuel level obtained based on the current fuel level characteristic curve can be understood here as the fuel level inferred from the vehicle's existing fuel level characteristic curve (current fuel level characteristic curve) and displayed on the vehicle's current instrument panel.
[0059] In some embodiments of this application, obtaining the current fuel level and the vehicle's actual operating data based on the current fuel level characteristic curve includes: obtaining the vehicle's current speed, current longitudinal acceleration, and current lateral acceleration; and determining the vehicle's actual operating data based on the current speed, current longitudinal acceleration, and current lateral acceleration.
[0060] In some embodiments, the actual operating data of the vehicle obtained by this application includes, but is not limited to, the vehicle speed, the vehicle's current longitudinal acceleration, and the vehicle's current lateral acceleration.
[0061] Here, the current longitudinal acceleration can be understood as the acceleration along the direction from the front of the vehicle to the rear of the vehicle (or the X-axis).
[0062] The current lateral acceleration can be understood here as the acceleration along the longitudinal direction perpendicular to the vehicle body (or the Y-axis).
[0063] Based on the vehicle's speed, current longitudinal acceleration, and current lateral acceleration, the embodiments of this application can determine the vehicle's fuel level status, avoiding the replacement of the fuel level characteristic curve when the vehicle is in an intermediate fuel level state that is neither full nor empty, which would cause the fuel level display on the instrument panel to jump or drop suddenly, reducing the user's driving experience and trust.
[0064] Step S102: Determine the target oil quantity corresponding to the target oil level characteristic curve of the vehicle.
[0065] In other embodiments, after obtaining the current fuel quantity (displayed fuel quantity) determined by the vehicle's current fuel level characteristic curve, this application can determine the target fuel quantity corresponding to the vehicle's target fuel level characteristic curve.
[0066] Here, the target oil level characteristic curve can be understood as the new oil level characteristic curve that will be used to replace the vehicle's existing current oil level characteristic curve. This new oil level characteristic curve can generally be determined by the actual state of the vehicle's fuel tank.
[0067] The target fuel level here can be understood as the actual fuel level of the vehicle at present, determined based on the target fuel level characteristic curve, which is also the actual fuel level that should be displayed on the vehicle's dashboard.
[0068] In some embodiments of this application, determining the target oil quantity corresponding to the target oil level characteristic curve of a vehicle includes: querying a pre-constructed oil level characteristic curve table based on the resistance of the oil level sensor to obtain the query result; and determining the target oil quantity corresponding to the target oil level characteristic curve based on the query result.
[0069] In actual implementation, this application can determine the target oil quantity corresponding to the target oil level characteristic curve by combining the resistance of the oil level float of the vehicle's on-board fuel tank with the target oil level characteristic curve.
[0070] For example, this application can be based on the resistance of the fuel level sensor of the vehicle's onboard fuel tank. Here, the fuel level sensor can be understood as a sensor in the vehicle's onboard fuel tank used to detect the fuel level, also known as a fuel level float.
[0071] In this embodiment, the oil level sensor refers to a variable resistance oil level sensor. The resistance of the oil level sensor here refers to the variable resistance signal output by the variable resistance oil level sensor.
[0072] Based on the resistance of the oil level sensor, and by consulting a pre-constructed oil level characteristic curve table, this embodiment of the application can determine the target oil quantity corresponding to the target oil level characteristic curve. It should be noted that "the target oil quantity corresponding to the target oil level characteristic curve" can be understood here as the oil quantity under the determined benchmark (such as oil level height, oil level float resistance, etc.) based on the determination benchmark of "the current oil quantity obtained from the current oil level characteristic curve".
[0073] In this embodiment of the application, the oil level characteristic curve is the oil quantity-resistance curve. Therefore, the determination benchmark in this embodiment of the application may be, but is not limited to, the resistance of the oil level float in the vehicle fuel tank.
[0074] In other words, different fuel level characteristic curves represent different relationships between fuel quantity and resistance, but the resistance value of the fuel level sensor in the vehicle's fuel tank is stable. "Current fuel quantity obtained from the current fuel level characteristic curve" is the fuel quantity value obtained by querying the vehicle's current fuel level characteristic curve table based on the resistance, while "target fuel quantity corresponding to the target fuel level characteristic curve" is the fuel quantity value obtained by querying the vehicle's target fuel level characteristic curve table based on the resistance.
[0075] For example, this application can obtain the amount of fuel corresponding to the resistance value of the fuel level sensor of the vehicle's on-board fuel tank by querying a pre-built fuel level characteristic curve table, and use the amount of fuel corresponding to the resistance value as the target amount of fuel corresponding to the target characteristic curve.
[0076] Table 1 is an example table of oil level characteristic curves according to an embodiment of this application. Table 1 can be represented as follows: Table 1
[0077] The oil quantity corresponding to resistance values not listed in Table 1 can be obtained through interpolation.
[0078] In some embodiments of this application, before querying a pre-built oil level characteristic curve table based on the resistance of the oil level sensor, the method further includes: obtaining historical fuel tank status data of the vehicle; generating a target oil level characteristic curve corresponding to the current fuel tank status of the vehicle based on the historical fuel tank status data; and determining the pre-built oil level characteristic curve table based on the target oil level characteristic curve.
[0079] In actual implementation, this application can construct the pre-constructed oil level characteristic curve table before querying it.
[0080] For example, in order to ensure that the target oil level characteristic curve in the pre-constructed oil level characteristic curve table can match the actual volume of the oil tank and ensure that the oil level display on the vehicle system dashboard is accurate, this application can first obtain the vehicle's historical oil tank status data.
[0081] Based on the historical fuel tank status data, this application embodiment can obtain the mapping relationship between the vehicle's resistance change amplitude and fuel quantity change amplitude during the vehicle's historical driving process, and then fit a target fuel level characteristic curve that conforms to the current fuel tank status (the current actual state of the vehicle's fuel tank).
[0082] For example, when the vehicle is in a stable state (such as when the vehicle speed and acceleration are both less than a certain value) and the fuel tank meets certain conditions (such as when the fuel tank has a moderate amount of fuel (avoiding the float mechanical limit areas such as the top of the fuel tank (full fuel) and the bottom of the fuel tank (empty fuel), ensuring that the collected data belongs to the section that is most sensitive to changes in the shape of the fuel tank and most in need of calibration), the change in resistance should be mainly caused by fuel consumption. Therefore, in the embodiments of this application, by analyzing the total change in resistance during this period and the fuel consumption calculated by other methods (such as the fuel injector pulse width), the proportional relationship between the resistance change amplitude and fuel consumption (fuel change amplitude) can be deduced.
[0083] Since vehicle fuel tanks come in a variety of shapes, specific fitting methods can be calibrated by professionals in this field based on experience or experiments according to the actual conditions of the vehicle. For example, nonlinear fitting, linear fitting, etc. The embodiments in this application are only illustrative and do not impose specific limitations.
[0084] By using the fitted target oil level characteristic curve, the embodiments of this application can construct the oil level characteristic curve table, thus obtaining the pre-constructed oil level characteristic curve table required in practical applications.
[0085] Since different vehicles have different fuel tank conditions, and due to fuel tank manufacturing tolerances, individual sensor differences, and long-term wear, each vehicle should have a different fuel level characteristic curve. By pre-constructing, the embodiments of this application can enable vehicles of certain batches or those exceeding a certain mileage to have a fuel level characteristic curve table that closely matches their own fuel tank conditions. Compared with the factory-fixed curve, it can better reflect the true physical characteristics of their own fuel tank, thereby improving the accuracy of fuel quantity calculation throughout the entire life cycle.
[0086] Step S103: In response to the fact that the resistance of the fuel level sensor in the vehicle fuel tank, the target fuel level, the current fuel level, and the actual operating data meet the preset fuel level characteristic curve switching conditions, the current fuel level characteristic curve is replaced by the target fuel level characteristic curve to determine the actual fuel level of the vehicle.
[0087] As one possible approach, after obtaining the resistance of the fuel tank sensor, the target fuel quantity corresponding to the target fuel level characteristic curve, the current fuel quantity displayed on the vehicle's dashboard, and the vehicle's actual operating data, this application can determine whether these data meet the preset fuel level characteristic curve switching conditions.
[0088] Here, the preset oil level characteristic curve switching condition can be understood as a pre-set requirement or standard for determining whether the vehicle can currently perform oil level characteristic curve replacement, such as the vehicle's fuel tank being in a stable state and not causing the fuel level on the dashboard to jump, etc.
[0089] The specific preset oil level characteristic curve switching conditions can be set and adjusted by those skilled in the art according to the actual situation. The embodiments in this application are only illustrative and do not impose specific limitations.
[0090] Next, based on this data, if it is determined that the vehicle meets the preset oil level characteristic curve switching conditions for performing the oil level characteristic curve switching action, that is, when it is determined that the vehicle's fuel tank is not in an intermediate oil level state that is neither full nor empty, the current oil level characteristic curve of the vehicle can be replaced by the target oil level characteristic curve in this embodiment of the application.
[0091] After replacing the vehicle's fuel level characteristic curve, the vehicle can obtain its actual fuel level based on the new fuel level characteristic curve (i.e., the target fuel level characteristic curve). Since the target fuel level characteristic curve is fitted based on the vehicle's current fuel tank condition, the accuracy of the actual fuel level determined by the new fuel level characteristic curve can be greatly improved. When displayed on the vehicle's dashboard, this can effectively enhance the user experience and trust.
[0092] In some embodiments of this application, replacing the current oil level characteristic curve with a target oil level characteristic curve includes: obtaining the power status of the vehicle; when the power status is on and the on status reaches a target duration, replacing the current oil level characteristic curve with a target oil level characteristic curve.
[0093] Those skilled in the art will understand that during the replacement of the current fuel level characteristic curve with the target fuel level characteristic curve, the fuel level display on the vehicle's dashboard may jump or drop suddenly, which can easily lead to user misunderstanding and complaints, reduce the user's driving experience, and even affect the user's trust in the vehicle's fuel system.
[0094] Based on this, in some embodiments, before replacing the vehicle's current oil level characteristic curve with the target characteristic curve, this application may first obtain the vehicle's power status.
[0095] Then, in this embodiment of the application, when the power is on and the target duration is reached, the action of replacing the current oil level characteristic curve of the vehicle with the target characteristic curve is performed.
[0096] Here, the target duration can be understood as a pre-set time period, such as 2 seconds, 3 seconds, etc. The specific target duration can be set and adjusted by those skilled in the art according to actual needs and circumstances. This embodiment is only illustrative and does not impose any specific limitations.
[0097] Specifically, when the vehicle's power is on and the target duration is reached—that is, when the vehicle's power status is detected to switch from OFF to ON and remain there for a certain period of time—it indicates that the vehicle has started running. However, the instrument panel is still responding and has not yet had time to display various vehicle information. In this embodiment, the current oil level characteristic curve is replaced with the target characteristic curve at this time, which can effectively avoid situations such as the instrument panel displaying fluctuating oil levels, thereby avoiding affecting the user's perception and experience.
[0098] In some embodiments of this application, before responding to the fact that the resistance, target fuel quantity, current fuel quantity, and actual operating data meet the preset fuel level characteristic curve switching conditions, the method further includes: identifying the current state of the vehicle based on the resistance, target fuel quantity, current fuel quantity, and actual operating data, so as to determine whether the resistance, target fuel quantity, current fuel quantity, and actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state.
[0099] Based on the descriptions of other embodiments, it is understood that this application can determine whether a vehicle meets the conditions for performing an oil level characteristic curve based on data information such as the resistance of the oil level sensor, the target oil level, the current oil level, and the actual operating data of the vehicle. Then, when the vehicle's fuel tank is not in a safe state such as an intermediate oil level state that is neither full nor zero, the target oil level characteristic curve is used to replace the vehicle's current oil level characteristic curve.
[0100] Based on this, in actual implementation, this application can first determine the current state of the vehicle based on the current state, the resistance, the target fuel level, the current fuel level, and the actual operating data, such as full fuel level, medium fuel level, zero fuel level, etc.
[0101] Then, the embodiments of this application can further determine whether the vehicle meets the preset oil level characteristic curve switching conditions based on the current state of the vehicle, such as whether the oil tank is not in a safe state such as an intermediate oil level state that is not full or zero oil.
[0102] The following section provides a further explanation of how the embodiments of this application identify the current state of the vehicle based on resistance, target fuel level, current fuel level, and actual operating data, and how to determine whether the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state.
[0103] In some embodiments of this application, the current state of the vehicle is identified based on resistance, target fuel level, current fuel level, and actual operating data. Based on the current state, it is determined whether the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions. This includes: determining the current state as a stationary state when the absolute value of the difference between the target fuel level and the current fuel level is less than a preset fuel level jump threshold; and determining that the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions when the current state is stationary, the vehicle speed is less than or equal to a preset vehicle speed threshold, the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold.
[0104] In some embodiments, this application can determine that the current state of the vehicle is stationary, i.e., the vehicle fuel tank is stationary, when the absolute value of the difference between the target fuel quantity corresponding to the target fuel quantity characteristic curve and the current fuel quantity displayed on the vehicle dashboard is less than a preset fuel quantity jump threshold.
[0105] Here, the preset fuel quantity jump threshold can be understood as the upper limit of the absolute value of the difference between the preset target fuel quantity and the current fuel quantity.
[0106] Only when the difference between the target fuel level and the current fuel level does not exceed this threshold can it be considered that switching the fuel level characteristic curve will not cause large abnormal fluctuations in the fuel level on the dashboard, because the fuel level difference is small. At the same time, it can also verify the reliability of the target fuel level and the current fuel level, because both are determined based on the fuel level characteristic curve obtained from the vehicle's fuel tank, so the difference will not be too large.
[0107] Furthermore, when the vehicle is currently stationary, this embodiment of the application can further verify whether the vehicle's state meets the following conditions: (1) The vehicle speed is less than or equal to the preset vehicle speed threshold; (2) The current longitudinal acceleration is less than or equal to the preset longitudinal acceleration threshold; (3) The current lateral acceleration is less than or equal to the preset lateral acceleration threshold.
[0108] Here, the preset vehicle speed threshold can be understood as the maximum boundary value of the vehicle speed that is set in advance to determine whether the vehicle is currently in a non-driving state (absolute stationary state) or a relatively stationary state (uniform linear motion state); the preset longitudinal acceleration threshold can be understood as the maximum boundary value of the current longitudinal acceleration that is set in advance to determine whether the vehicle is currently in a non-driving state or a stable driving state; and the preset lateral acceleration threshold can be understood as the maximum boundary value of the current lateral acceleration that is set in advance to determine whether the vehicle is currently in a non-driving state or a stable driving state.
[0109] A vehicle can only be considered to be in a non-driving state or a very stable driving state when its speed is less than a certain speed threshold, its current longitudinal acceleration is less than or equal to a certain longitudinal acceleration threshold, and its current lateral acceleration is less than or equal to a certain lateral acceleration threshold.
[0110] Under these conditions, when switching the oil level characteristic curve, the oil tank will not shake violently, and there will be no problems such as incorrect calculation of oil level and oil quantity, or violent fluctuations in the oil quantity display on the instrument panel. This ensures that the resistance of the oil level sensor, the target oil quantity, the current oil quantity, and the actual operating data meet the preset oil level characteristic curve switching conditions.
[0111] In some embodiments of this application, the current state of the vehicle is identified based on resistance, target fuel level, current fuel level, and actual operating data. Based on the current state, it is determined whether the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions. This includes: when the current fuel level is greater than or equal to a first preset fuel level threshold and the resistance is less than a first preset resistance threshold, the current state is determined to be a first fuel level state; when the current state is the first fuel level state, and the vehicle speed is less than or equal to a preset vehicle speed threshold, and the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold, the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions.
[0112] In other embodiments, this application can determine the current state as the first fuel level state when the current fuel level displayed on the vehicle dashboard is greater than or equal to a first preset fuel level threshold and the resistance of the fuel level sensor is less than a preset resistance threshold.
[0113] Here, the first preset fuel level threshold can be understood as a pre-set lower limit value for judging whether there is enough fuel in the vehicle's fuel tank.
[0114] The first preset resistance threshold can be understood here as a pre-set upper limit of resistance used to determine whether there is enough fuel in the vehicle's fuel tank.
[0115] When the fuel level in the vehicle's fuel tank is greater than a certain first preset fuel level threshold, and the resistance of the fuel level sensor in the vehicle's fuel tank is less than a certain first preset resistance threshold, it can be determined that there is enough fuel in the vehicle's fuel tank at this time by combining the fuel level and resistance. Therefore, the current state of the vehicle can be determined as the first fuel level state, which can also be understood as a full fuel state.
[0116] Because the current fuel level displayed on the vehicle's instrument panel is a value calculated from a resistor using a current characteristic curve, there may be deviations or delays. The resistance of the fuel level sensor is the most basic physical signal. When there is enough fuel in the vehicle's fuel tank, the sliding contact of the fuel level sensor will be at the end of the resistor plate due to the high fuel level, resulting in a lower resistance value.
[0117] Combining both methods for judgment can effectively ensure the accuracy of the determination of the full fuel tank status of the vehicle, and avoid misjudgment that may be caused by relying on a single calculation value.
[0118] When the vehicle is almost full of fuel, meaning the fuel level is high, it means the float in the fuel tank has reached its highest position and is being held in place by the mechanical structure at the top of the tank. At this point, the float can no longer rise, and the resistance value is almost at the end of the sensor's physical travel.
[0119] At this point, the resistance value of the oil level sensor is almost fixed, that is, the full-level resistance value, and will not be affected by the irregular shape of the oil tank or the sloshing of the oil. Switching the oil level characteristic curve under these circumstances will minimize the error caused by the switching of the oil level characteristic curve.
[0120] Furthermore, similar to the aforementioned embodiments, this application can further determine the vehicle speed, current longitudinal acceleration, and current lateral acceleration, and switch the oil level characteristic curve when the vehicle is in a state of absolute stillness or uniform linear motion, to ensure that the oil level in the tank is completely horizontal and without fluctuation, and to eliminate false oil level interference that may be caused by vehicle acceleration, deceleration, and turning.
[0121] When switching fuel levels under these conditions (full tank and the vehicle is either completely stationary or moving at a constant speed in a straight line), the fuel level displayed on the instrument panel will remain largely unchanged. This ensures that the fuel level curve can be switched while maintaining a satisfactory user experience.
[0122] In some embodiments of this application, the current state of the vehicle is identified based on resistance, target fuel level, current fuel level, and actual operating data. Based on this current state, it is determined whether the resistance, target fuel level, current fuel level, and actual operating data meet preset fuel level characteristic curve switching conditions. This includes: when the current fuel level is less than or equal to a second preset fuel level threshold and the resistance is greater than a second preset resistance threshold, the current state is determined to be a second fuel level state, wherein the second preset fuel level threshold is less than a first preset fuel level threshold, the fuel level corresponding to the second fuel level state is less than the fuel level corresponding to the first fuel level state, and the second preset resistance threshold is greater than the first preset resistance threshold; when the current state is the second fuel level state, and the vehicle speed is less than or equal to a preset vehicle speed threshold, and the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold, the resistance, target fuel level, current fuel level, and actual operating data meet preset fuel level characteristic curve switching conditions.
[0123] In some embodiments, this application can determine the current state as the second fuel level state when the current fuel level in the vehicle fuel tank is less than or equal to a second preset fuel level threshold and the resistance is greater than a preset resistance threshold.
[0124] Here, the second preset fuel level threshold can be understood as a pre-set upper limit value for determining whether the fuel level in the vehicle's fuel tank is low enough.
[0125] The second preset resistance threshold can be understood here as a pre-set lower limit of resistance used to determine whether the amount of oil in the vehicle's fuel tank is low enough.
[0126] When the fuel level in the vehicle's fuel tank is less than a certain second preset fuel level threshold, and the resistance of the fuel level sensor in the vehicle's fuel tank is greater than a certain second preset resistance threshold, the fuel level and resistance can be combined to determine that the fuel level in the vehicle's fuel tank is low enough. Therefore, the current state of the vehicle can be determined as the second fuel level state, which can also be understood as the zero fuel state.
[0127] Because the current fuel level displayed on the vehicle's instrument panel is a value calculated from a resistor using a current characteristic curve, there may be deviations or delays. The resistance of the fuel level sensor is the most basic physical signal. When the fuel level in the vehicle's fuel tank is low enough, the sliding contact of the fuel level sensor will be at the beginning of the resistor plate due to the low fuel level, resulting in a higher resistance value.
[0128] Therefore, the second preset oil quantity threshold is much smaller than the first preset oil quantity threshold, and the oil quantity corresponding to the second preset oil quantity threshold is much smaller than the oil quantity corresponding to the first preset oil quantity threshold; and the second preset resistance threshold is much larger than the first preset resistance threshold.
[0129] Similarly, combining both methods for dual judgment can effectively ensure the accuracy of the determination of the zero-fuel state of the vehicle's fuel tank, avoiding misjudgments that may result from relying solely on a single calculated value.
[0130] When the vehicle is almost out of fuel, meaning the fuel level is low, the float in the fuel tank is already at the bottom and is being held up by a mechanical structure at the bottom of the tank. At this point, the float can no longer descend, and the resistance value is almost at the beginning of the sensor's physical travel.
[0131] At this point, the resistance value of the oil level sensor is almost fixed, that is, the zero resistance value, and it will not be affected by the irregular shape of the oil tank or the sloshing of the oil. Under these circumstances, switching the oil level characteristic curve can also minimize the error caused by the switching of the oil level characteristic curve.
[0132] Furthermore, similar to the aforementioned embodiments, this application can further determine the vehicle speed, current longitudinal acceleration, and current lateral acceleration, and switch the oil level characteristic curve when the vehicle is in a state of absolute stillness or uniform linear motion, to ensure that the oil level in the tank is completely horizontal and without fluctuation, and to eliminate false oil level interference that may be caused by vehicle acceleration, deceleration, and turning.
[0133] When switching in this situation (zero fuel and the vehicle is either completely stationary or moving at a constant speed in a straight line), the fuel level on the instrument panel will not change significantly, ensuring that the fuel level curve can be switched while still providing a satisfactory user experience.
[0134] It should be noted that the specific preset fuel level threshold, preset vehicle speed threshold, preset longitudinal acceleration threshold, preset lateral acceleration threshold, first preset fuel level threshold, first preset resistance threshold, second preset fuel level threshold, and second preset resistance threshold can all be set and adjusted by those skilled in the art according to the actual situation of the vehicle or the driving scenario. The embodiments in this application are only illustrative and do not impose any specific limitations.
[0135] The following is a detailed explanation of the switching process of the oil level characteristic curve in this application, using a specific embodiment.
[0136] Figure 2 This is a schematic diagram of the judgment condition calculation logic for a vehicle stationary state switching curve according to an embodiment of this application; Figure 3 This is a schematic diagram illustrating the logic for calculating the judgment conditions of a vehicle full fuel state switching curve according to an embodiment of this application. Figure 4 This is a schematic diagram of the judgment condition calculation logic for a vehicle zero-fuel state switching curve according to an embodiment of this application; Figure 5 This is a flowchart illustrating the switching process of the oil level characteristic curve according to one embodiment of this application. Figure 2 , Figure 3 , Figure 4 and Figure 5 As shown, the switching process of the oil level characteristic curve can be represented, but is not limited to, as follows: (1) Calculate the oil quantity corresponding to the new oil level characteristic curve. The specific steps are as follows: The resistance of the current fuel tank level float is obtained through the instrument system controller; like Figure 2 As shown, based on the resistance of the oil level float, the oil quantity corresponding to the new oil level characteristic curve is obtained by querying the new oil level characteristic curve table.
[0137] (2) Calculate the judgment condition S1 for the vehicle stationary state switching curve. The specific steps are as follows: The current fuel level is obtained through the instrument system controller, and the vehicle speed, longitudinal acceleration, and lateral acceleration are obtained through the vehicle stability control system controller. like Figure 2 As shown, the absolute value of the difference between the current displayed oil quantity and the oil quantity corresponding to the new oil level characteristic curve is less than or equal to the oil quantity jump threshold A=3L; The vehicle speed is less than or equal to a certain speed threshold B = 3 km / h; The vehicle's longitudinal acceleration is less than or equal to a certain threshold C = 0.4 m / s². 2 ; The vehicle's lateral acceleration is less than or equal to a certain threshold D = 0.4 m / s². 2 ; (3) Calculate the judgment condition S2 of the vehicle full fuel state switching curve. The specific steps are as follows: The instrument system controller obtains the current displayed fuel level and the resistance of the current fuel tank level float, while the vehicle speed, longitudinal acceleration, and lateral acceleration are obtained through the vehicle stability control system controller. like Figure 3 As shown, the current displayed oil level is greater than or equal to a certain oil level threshold F1=50L, and the resistance of the current oil level float in the tank is less than a certain resistance threshold E1=36Ω. The vehicle speed is less than or equal to a certain speed threshold G=3km / h; The vehicle's longitudinal acceleration is less than or equal to a certain threshold H = 0.4 m / s². 2 ; The vehicle's lateral acceleration is less than or equal to a certain threshold J = 0.4 m / s². 2 ; (4) Calculate the judgment condition S3 for the vehicle zero-fuel state switching curve. The specific steps are as follows: The instrument system controller obtains the current displayed fuel level and the resistance of the current fuel tank level float, while the vehicle speed, longitudinal acceleration, and lateral acceleration are obtained through the vehicle stability control system controller. like Figure 4 As shown, the current displayed oil level is less than or equal to a certain oil level threshold F2=0L, and the resistance of the current oil level float in the tank is greater than a certain resistance threshold E2=255Ω. The vehicle speed is less than or equal to a certain speed threshold K=3km / h; The vehicle's longitudinal acceleration is less than or equal to a certain threshold L = 0.4 m / s². 2 ; The vehicle's lateral acceleration is less than or equal to a certain threshold M = 0.4 m / s². 2 ; (5) Calculate the switching of the oil level characteristic curve. The specific steps are as follows: The vehicle power status is obtained through the body control system controller; like Figure 5 As shown, when the vehicle power switch is detected to switch from OFF to ON and remain there for a certain period of time, and when any one of the following conditions is met: stationary state flag S1, full fuel state flag S2, or zero fuel state flag S3, the old fuel level characteristic curve can be switched to the new target fuel level characteristic curve, and the flag position for switching from the old curve to the new curve is stored in the record.
[0138] It should be noted that various thresholds can be adjusted by those skilled in the art based on actual driving scenarios or vehicle conditions. The embodiments in this application are for illustrative purposes only and do not impose specific limitations.
[0139] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of this application. The vehicle may include: The memory 601, the processor 602, and the computer program stored on the memory 601 and capable of running on the processor 602.
[0140] When the processor 602 executes the program, it implements the vehicle fuel level detection method provided in the above embodiments.
[0141] Furthermore, the vehicle also includes: Communication interface 603 is used for communication between memory 601 and processor 602.
[0142] The memory 601 is used to store computer programs that can run on the processor 602.
[0143] The memory 601 may include high-speed RAM (Random Access Memory) memory, and may also include non-volatile memory, such as at least one disk storage.
[0144] If the memory 601, processor 602, and communication interface 603 are implemented independently, then the communication interface 603, memory 601, and processor 602 can be interconnected via a bus to complete communication between them. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0145] Optionally, in a specific implementation, if the memory 601, processor 602, and communication interface 603 are integrated on a single chip, then the memory 601, processor 602, and communication interface 603 can communicate with each other through an internal interface.
[0146] The processor 602 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of this application.
[0147] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0148] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0149] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A method for detecting the fuel level of a vehicle, characterized in that, Includes the following steps: Obtain current fuel level and actual vehicle operating data based on the current fuel level characteristic curve; Determine the target oil quantity corresponding to the target oil level characteristic curve of the vehicle; In response to the fact that the resistance of the fuel level sensor in the vehicle's fuel tank, the target fuel level, the current fuel level, and the actual operating data meet the preset fuel level characteristic curve switching conditions, the current fuel level characteristic curve is replaced by the target fuel level characteristic curve to determine the actual fuel level of the vehicle.
2. The method according to claim 1, characterized in that, The acquisition of current fuel quantity and actual vehicle operating data based on the current fuel level characteristic curve includes: Obtain the vehicle's current speed, current longitudinal acceleration, and current lateral acceleration; The actual operating data of the vehicle are determined based on the current vehicle speed, the current longitudinal acceleration, and the current lateral acceleration.
3. The method according to claim 2, characterized in that, Before the resistance, the target oil quantity, the current oil quantity, and the actual operating data meet the preset oil level characteristic curve switching conditions, the method further includes: Based on the resistance, the target fuel level, the current fuel level, and the actual operating data, the current state of the vehicle is identified, and based on the current state, it is determined whether the resistance, the target fuel level, the current fuel level, and the actual operating data meet the preset fuel level characteristic curve switching conditions.
4. The method according to claim 3, characterized in that, The step of identifying the vehicle's current state based on the resistance, the target fuel level, the current fuel level, and the actual operating data, and determining whether the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state, includes: When the absolute value of the difference between the target fuel quantity and the current fuel quantity is less than a preset fuel quantity jump threshold, the current state is determined to be a stationary state. When the current state is the stationary state, and the vehicle speed is less than or equal to a preset vehicle speed threshold, and the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold, it is determined that the resistance, the target fuel quantity, the current fuel quantity, and the actual operating data satisfy the preset fuel level characteristic curve switching conditions.
5. The method according to claim 3, characterized in that, The step of identifying the vehicle's current state based on the resistance, the target fuel level, the current fuel level, and the actual operating data, and determining whether the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state, includes: When the current fuel level is greater than or equal to a first preset fuel level threshold and the resistance is less than a first preset resistance threshold, the current state is determined to be the first fuel level state. When the current state is the first fuel level state, and the vehicle speed is less than or equal to a preset vehicle speed threshold, and the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold, it is determined that the resistance, the target fuel level, the current fuel level, and the actual operating data satisfy the preset fuel level characteristic curve switching conditions.
6. The method according to claim 3, characterized in that, The step of identifying the vehicle's current state based on the resistance, the target fuel level, the current fuel level, and the actual operating data, and determining whether the resistance, target fuel level, current fuel level, and actual operating data meet the preset fuel level characteristic curve switching conditions based on the current state, includes: When the current fuel level is less than or equal to a second preset fuel level threshold and the resistance is greater than a second preset resistance threshold, the current state is determined to be a second fuel level state, wherein the second preset fuel level threshold is less than a first preset fuel level threshold, the fuel level corresponding to the second fuel level state is less than the fuel level corresponding to the first fuel level state, and the second preset resistance threshold is greater than the first preset resistance threshold. When the current state is the second fuel level state, and the vehicle speed is less than or equal to a preset vehicle speed threshold, and the current longitudinal acceleration is less than or equal to a preset longitudinal acceleration threshold, and the current lateral acceleration is less than or equal to a preset lateral acceleration threshold, it is determined that the resistance, the target fuel level, the current fuel level, and the actual operating data satisfy the preset fuel level characteristic curve switching conditions.
7. The method according to claim 1, characterized in that, Determining the target oil quantity corresponding to the target oil level characteristic curve of the vehicle includes: Based on the resistance of the oil level sensor, the query result is obtained by consulting a pre-constructed oil level characteristic curve table; Based on the query results, the target oil quantity corresponding to the target oil level characteristic curve is determined.
8. The method according to claim 1, characterized in that, Before querying a pre-built oil level characteristic curve table based on the resistance of the oil level sensor, the process also includes: Obtain the historical fuel tank status data of the vehicle; Based on the historical fuel tank status data, a target fuel level characteristic curve corresponding to the current fuel tank status of the vehicle is generated; Based on the target oil level characteristic curve, determine the pre-constructed oil level characteristic curve table.
9. The method according to claim 1, characterized in that, The step of replacing the current oil level characteristic curve with the target oil level characteristic curve includes: Obtain the power status of the vehicle; When the power supply is in the ON state and the ON state reaches the target duration, the current oil level characteristic curve is replaced by the target oil level characteristic curve.
10. A vehicle, characterized in that, The vehicle includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the fuel level detection method for the vehicle as described in any one of claims 1-9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the fuel level detection method for a vehicle as described in any one of claims 1-9.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed, it is used to implement the fuel level detection method for a vehicle as described in any one of claims 1-9.
