Oil quantity determination method, device, electronic device and readable storage medium

By collecting the resistance value in the oil volume sensor and determining the amount of oil based on different mapping relationships, the oil volume display caused by silver sulfide generates inaccurate problems, and the accuracy of the oil volume sensor in the abnormal state is achieved.

CN119043459BActive Publication Date: 2025-01-24CHENGDU CELIS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411526922.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-01-24
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

In the prior art, silver sulfide is generated by the oil quantity sensor for a long time soaking in oil, resulting in the resistance of the sliding varistor to increase, and the amount of oil collected by the controller to decrease, resulting in the problem of inaccurate oil quantity display.

Method used

By collecting the current resistance value of the sliding rheostat of the vehicle's fuel quantity sensor, if it is a normal state, the fuel quantity is determined based on the first mapping relationship; if it is an abnormal state, the fuel quantity is determined based on the second mapping relationship. The second mapping relationship is obtained by correcting the first mapping relationship by determining the basic resistance change error rate and the refueling resistance change error rate.

Benefits of technology

It solves the problem of inaccurate oil level display caused by the generation of silver sulfide in the oil level sensor, ensuring the accuracy of the oil level sensor under abnormal conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119043459B_ABST
    Figure CN119043459B_ABST
Patent Text Reader

Abstract

This application relates to the field of new energy vehicles and provides a method, apparatus, electronic device, and readable storage medium for determining fuel level. The method includes: if the sliding rheostat is in a normal state, determining the current fuel level corresponding to the current resistance value based on a first mapping relationship; if the sliding rheostat is in an abnormal state, determining the current fuel level corresponding to the current resistance value based on a second mapping relationship; the second mapping relationship is obtained by correcting the first mapping relationship based on the error rate of the basic resistance change of the sliding rheostat of the fuel tank sensor and the error rate of the refueling resistance change. This application can solve the problem of inaccurate fuel level display caused by the increased resistance of the fuel tank sensor due to the formation of silver sulfide from long-term immersion in fuel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy vehicles, and in particular to a method and device for determining fuel quantity, an electronic device, and a readable storage medium. Background Art

[0002] The fuel tank sensor (or fuel level sensor) consists of an oil float and a resistance sensor. When the oil in the tank rises or falls, the oil float will rise or fall accordingly, thereby driving the resistance of the sliding rheostat of the resistance sensor to increase or decrease. The controller collects the resistance of the fuel tank sensor and then determines the amount of oil in the tank (percentage) based on the corresponding relationship between resistance and oil level.

[0003] The sliding part of the sliding rheostat is composed of an alloy of oil, silver and palladium. Oil contains sulfur, and the fuel tank sensor is easily immersed in oil for a long time to produce silver sulfide, which causes the resistance of the sliding rheostat to increase at the same liquid level, resulting in a smaller amount of oil collected by the controller (such as the vehicle controller) (the smaller the resistance, the higher the oil level), and even the situation where the fuel tank is full but the instrument shows that it is not full, resulting in inaccurate fuel display. Summary of the invention

[0004] In view of this, the embodiments of the present application provide an oil level determination method, device, electronic device and readable storage medium to solve the problem in the prior art that the oil level sensor is immersed in oil for a long time to generate silver sulfide, which causes the resistance to increase, resulting in a decrease in the oil amount collected by the controller, thereby causing inaccurate oil level display.

[0005] According to a first aspect of an embodiment of the present application, a method for determining an oil quantity is provided, comprising:

[0006] During the refueling process of the vehicle, the current resistance value of the sliding rheostat of the vehicle's oil level sensor is collected;

[0007] If the sliding rheostat is in a normal state, the current oil volume corresponding to the current resistance value is determined based on the first mapping relationship;

[0008] If the sliding rheostat is in an abnormal state, the current oil volume corresponding to the current resistance value is determined based on the second mapping relationship;

[0009] The second mapping relationship is determined by the following steps:

[0010] Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state;

[0011] Determine the error rate of the refueling resistance change of the sliding rheostat of the fuel tank sensor;

[0012] Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain the second mapping relationship.

[0013] According to a second aspect of an embodiment of the present application, there is provided an oil quantity determination device, comprising:

[0014] A collection module is configured to collect a current resistance value of a sliding rheostat of an oil level sensor of the vehicle;

[0015] A first determination module is configured to determine a current oil volume corresponding to a current resistance value based on a first mapping relationship if the sliding rheostat is in a normal state;

[0016] a second determination module configured to determine a current oil volume corresponding to a current resistance value based on a second mapping relationship if the sliding rheostat is in an abnormal state;

[0017] The second mapping relationship is determined by the following steps:

[0018] Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state;

[0019] Determine the error rate of the refueling resistance change of the sliding rheostat of the fuel tank sensor;

[0020] Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain the second mapping relationship.

[0021] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0022] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0023] Compared with the prior art, the beneficial effects of the embodiments of the present application include at least: when the sliding rheostat is in a normal state, the current oil level corresponding to the current resistance value of the sliding rheostat of the oil level sensor is determined based on a first mapping relationship; when the sliding rheostat is in an abnormal state, the current oil level corresponding to the current resistance value of the sliding rheostat of the oil level sensor is determined based on a second mapping relationship; wherein the second mapping relationship is obtained by correcting the first mapping relationship based on the basic resistance change error rate and the refueling resistance change error rate, thereby solving the problem in the prior art that the resistance of the sliding rheostat becomes larger at the same liquid level due to the formation of silver sulfide caused by the fuel tank sensor being immersed in oil for a long time, thereby causing inaccurate oil level display. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application;

[0026] Figure 2 It is a flow chart of a method for determining oil quantity provided in an embodiment of the present application;

[0027] Figure 3 is a structural schematic diagram of an oil quantity determination device provided in an embodiment of the present application;

[0028] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0030] A method and device for determining oil quantity according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0031] Figure 1 is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario may include a vehicle controller 101 (referred to as "VCU"), a fuel level sensor (or fuel tank sensor) 102, and an in-vehicle infotainment system 103 (referred to as "IVI") deployed on a new energy vehicle. The vehicle controller 101 can be connected to a network through Ethernet or CAN The bus establishes communication connection with the oil level sensor 102 and the vehicle infotainment system 103. The oil level sensor 102 includes an oil float and a resistance sensor. When the oil in the oil tank rises or falls, the oil float will rise or fall accordingly, thereby driving the resistance of the sliding rheostat of the resistance sensor to increase or decrease.

[0032] The new energy vehicles in the embodiments of this application refer to vehicles that use new energy (non-traditional petroleum and diesel energy) and have advanced technology. These vehicles use new power systems that can effectively reduce vehicle emissions, reduce environmental impact, and improve energy efficiency. The new energy vehicles in the embodiments of this application include but are not limited to the following types of vehicles: electric vehicles (EV), battery electric vehicles (BEV), fuel cell electric vehicles (FCEV), plug-in hybrid electric vehicles (PHEV), and hybrid electric vehicles (HEV), etc.

[0033] The vehicle controller 101 can collect the current resistance value of the sliding rheostat of the vehicle's fuel level sensor 102; if the sliding rheostat is in a normal state, the current fuel level corresponding to the current resistance value is determined based on the first mapping relationship; then, the vehicle controller 101 can determine the current fuel level and send it to the in-vehicle infotainment system 103 for display; if the sliding rheostat is in an abnormal state, the current fuel level corresponding to the current resistance value is determined based on the second mapping relationship; then, the vehicle controller 101 can determine the current fuel level and send it to the in-vehicle infotainment system 103 for display; wherein, the second mapping relationship can be determined by the following steps: determining the basic resistance change error rate when the sliding rheostat of the fuel tank sensor 102 is in a normal state; determining the refueling resistance change error rate of the sliding rheostat of the fuel tank sensor 102; correcting the first mapping relationship based on the basic resistance change error rate and the refueling resistance change error rate to obtain a second mapping relationship. The technical solution provided in the embodiment of the present application can effectively solve the problem that the resistance of the oil level sensor increases due to the generation of silver sulfide caused by long-term immersion in oil, resulting in a decrease in the amount of oil collected by the controller, thereby causing inaccurate oil level display.

[0034] Figure 2 It is a flow chart of a method for determining oil quantity provided in an embodiment of the present application. Figure 2 The oil quantity can be determined by Figure 1 The vehicle controller 101 is used to execute. Figure 2 As shown, the oil quantity determination method may include the following steps:

[0035] Step S201, collecting the current resistance value of the sliding rheostat of the fuel level sensor of the vehicle.

[0036] When collecting the current resistance value, the vehicle controller 101 can record the current collection time point.

[0037] The current collection time point refers to the time point when the vehicle controller 101 collects the current resistance value of the sliding rheostat of the oil level sensor.

[0038] Step S202: If the sliding rheostat is in a normal state, the current oil volume corresponding to the current resistance value is determined based on the first mapping relationship.

[0039] The normal state of the sliding rheostat means that the sliding rheostat has not reacted with the oil in the oil tank to generate silver sulfide. Chemical testing and other means can be used to detect whether the sliding rheostat has generated silver sulfide, thereby determining the state of the sliding rheostat.

[0040] During the fuel tank design phase, a refueling test (testing the resistance value during the process of injecting fuel into the fuel tank) can be performed to obtain a series of test results of the resistance of the sliding rheostat and the oil volume in the fuel tank, and then a first mapping relationship between the oil volume and the resistance can be established.

[0041] As an example, the first mapping relationship between the oil volume and the resistance can be recorded and managed in the form of a table, as shown in Table 1.

[0042] Table 1 The first mapping relationship between oil volume and resistance

[0043]

[0044] In Table 1, , , ..., , Gradually increase, that is < <...< < ; , , ..., , Gradually decreases, that is > >...> > .

[0045] As an example, assume that the current resistance value of the sliding rheostat of the vehicle's oil level sensor collected by the vehicle controller 101 is , the oil level sensor does not generate silver sulfide (i.e. it is in normal state), then by querying the above Table 1, the current resistance value can be obtained. Corresponding to the resistance in Table 1 , and the resistor The corresponding oil volume is , from which the current oil volume can be determined to be .

[0046] See also Figure 1 The vehicle controller 101 can obtain the current fuel volume by looking up the table The information is sent to the vehicle instrument (such as the in-vehicle infotainment system 103) for display. The user (such as the driver) can view the current fuel level of the vehicle's fuel tank through the screen of the vehicle instrument.

[0047] Step S203: if the sliding rheostat is in an abnormal state, the current oil volume corresponding to the current resistance value is determined based on the second mapping relationship.

[0048] The sliding rheostat is in an abnormal state, which means that the sliding rheostat reacts with the oil in the oil tank to generate silver sulfide due to being immersed in the oil in the oil tank for a long time.

[0049] The second mapping relationship is determined by the following steps:

[0050] Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state;

[0051] Determine the error rate of the refueling resistance change of the sliding rheostat of the fuel tank sensor;

[0052] Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain the second mapping relationship.

[0053] It should be noted that the step of determining the second mapping relationship may be performed after the above step S202, or after the above step S201, or before the step S201, and the embodiment of the present application does not impose any limitation on this.

[0054] The technical solution provided in the embodiment of the present application is to determine the current oil level corresponding to the current resistance value of the sliding rheostat of the oil level sensor based on a first mapping relationship when the sliding rheostat is in a normal state; and to determine the current oil level corresponding to the current resistance value of the sliding rheostat of the oil level sensor based on a second mapping relationship when the sliding rheostat is in an abnormal state; wherein the second mapping relationship is obtained by correcting the first mapping relationship based on the basic resistance change error rate and the refueling resistance change error rate, thereby solving the problem in the prior art that the resistance of the sliding rheostat becomes larger at the same liquid level due to the formation of silver sulfide caused by the fuel tank sensor being immersed in oil for a long time, thereby causing inaccurate oil level display.

[0055] In some embodiments, determining a basic resistance change error rate when a sliding rheostat of a fuel tank sensor is in a normal state includes:

[0056] determining a first basic resistance increase value and a first basic resistance decrease value of a sliding rheostat of a fuel tank sensor during detection of the fuel refueling device injecting fuel into an empty fuel tank;

[0057] After the fuel tank is filled with fuel and has been left to stand for a preset period of time, determining a second basic resistance increase value and a second basic resistance decrease value of the sliding rheostat of the fuel tank sensor;

[0058] A basic resistance change error rate of the sliding resistor of the fuel tank sensor is calculated based on the first basic resistance increase value, the first basic resistance decrease value, the second basic resistance increase value, and the second basic resistance decrease value.

[0059] The basic resistance change error rate includes the basic resistance increase error rate and the basic resistance decrease error rate.

[0060] In some embodiments, determining a first basic resistance increase value and a first basic resistance decrease value of a sliding resistor of a fuel tank sensor includes:

[0061] Record the first resistance sampling point to the i The first resistance value to the second resistance value corresponding to the resistance sampling point i Resistance value; where, i is an integer ≥ 2;

[0062] From the first resistance value to the i Filter out the resistor value n Increase the resistance value and m Reduce the resistance value, where n+m= i ;

[0063] according to n An increased resistance value is calculated to calculate a first basic resistance increase value of the sliding rheostat of the fuel tank sensor;

[0064] according to m A reduced resistance value is obtained to calculate a first basic resistance reduction value of the sliding resistor of the fuel tank sensor.

[0065] As an example, when the fuel tank on the vehicle is empty and the fuel level sensor in the fuel tank is new and has not produced silver sulfide (i.e., normal state), the vehicle controller 101 records the resistance from the first sampling point to the second sampling point when detecting that the refueling equipment (such as the refueling gun at the gas station) is injecting fuel into the empty fuel tank of the vehicle. i The first resistance value to the second resistance value corresponding to the resistance sampling point i Resistance value, wherein the first resistance value to the i The resistance values ​​can be expressed as (corresponding to the first resistance value), ..., (Corresponding to i resistance value).

[0066] Since the liquid level of the fuel is swaying after it is added into the fuel tank, the resistance value gradually decreases in a sawtooth shape. If the resistance value of the current resistance sampling point increases compared to the resistance value of the previous resistance sampling point, then the resistance value of the current resistance sampling point is recorded as an increased resistance value. If the resistance value of the current resistance sampling point decreases compared to the resistance value of the previous resistance sampling point, then the resistance value of the current resistance sampling point is recorded as a decreased resistance value. Exemplarily, first, compare the first resistance value of the first resistance sampling point The previous resistance value corresponding to the previous resistance sampling point (null value), if the first resistance value is greater than the previous resistance value, then the first resistance value is recorded as an increased resistance value of 01 (which can be recorded as ); Then, compare the second resistance value of the second resistance sampling point The first resistance value of the first resistance sampling point If the second resistance value is smaller than the first resistance value, the second resistance value is recorded as a reduced resistance value of 01 (which can be recorded as ); Then, compare the third resistance value of the third resistance sampling point with the second resistance value of the second resistance sampling point. If the third resistance value is smaller than the second resistance value, the third resistance value is recorded as a reduced resistance value of 02 (which can be recorded as ); ..., and so on, until the comparison is completed. i The resistance sampling point i Resistance value and i -1 resistor sampling point i -1 resistance value.

[0067] According to the above comparison results, the resistance value can be changed from the first resistance value to the second resistance value. i Filter out the resistor value n The resistance value can be recorded as ,..., )and m The resistance value is reduced (which can be recorded as , ..., ).

[0068] In some embodiments, according to n The first basic resistance increase value of the sliding rheostat of the fuel tank sensor is calculated by adding a resistance value, including:

[0069] from n Select from the increasing resistance values k The target increases the resistance value, where 1≤ k≤n ;

[0070] calculate kThe target resistance increase average value is determined as a first basic resistance increase value of the sliding resistor of the fuel tank sensor.

[0071] Specifically, first, calculate n Increase the resistance value (i.e. ,..., ) is the average value of the increased resistance, recorded as ; and calculation n Increase the resistance value (i.e. ,..., ) of the increased resistance standard deviation, denoted as ; Then, according to , ,from n Increase the resistance value (i.e. ,..., ) k Increase the resistance value by one target.

[0072] When increasing the resistance The following conditions must be met:

[0073] ,

[0074] Will increase the resistance value Determine the resistance value to increase for your target.

[0075] When increasing the resistance The following conditions must be met:

[0076] ,

[0077] Will increase the resistance value Determine the resistance value to increase for your target.

[0078] Next, calculate k The target resistance increase average of the target resistance increase values ​​is determined as the first basic resistance increase value of the sliding resistor of the fuel tank sensor, and is recorded as .

[0079] Similarly, according to m Reduce the resistance value (i.e. , ..., ), calculate the first basic resistance reduction value of the sliding rheostat of the fuel tank sensor, specifically, you can first calculate m Reduce the resistance value (i.e. , ..., ) is the average value of the reduced resistance, recorded as ; and calculation m Reduce the resistance value (i.e. , ..., ) of the reduced resistance standard deviation, denoted as ; Then, according to , ,from m Reduce the resistance value (i.e. , ..., ) l The target is to reduce the resistance value, where 1≤ l≤m .

[0080] When the resistance value is reduced The following conditions must be met:

[0081] ,

[0082] Will reduce the resistance value Decide on a target to reduce the resistance value.

[0083] When the resistance value is reduced The following conditions must be met:

[0084] ,

[0085] Will reduce the resistance value Decide on a target to reduce the resistance value.

[0086] Next, calculate l The target resistance reduction average of the target resistance reduction values ​​is determined as the first basic resistance reduction value of the sliding resistor of the fuel tank sensor, and is recorded as .

[0087] The preset duration can be flexibly set according to actual conditions, for example, it can be set to 6 months, 1 year, etc. Generally, the preset duration is set to 1 year.

[0088] As an example, after the vehicle's fuel tank is filled with fuel and left to stand for a preset period of time (which can be flexibly set according to actual conditions, for example, can be set to 1 year), the second basic resistance increase value (denoted as ) and the second base resistance reduction value (denoted as ), which will not be elaborated here.

[0089] The error rate of the basic resistance increase of the sliding rheostat of the fuel tank sensor can be calculated according to formula (1): .

[0090] (1);

[0091] In formula (1), Indicates the error rate of the basic resistance increase; Indicates the second basic resistance increase value; represents the increase in the first basic resistance; A represents the sensor aging coefficient.

[0092] The basic resistance reduction error rate of the sliding rheostat of the fuel tank sensor can be calculated according to formula (2): .

[0093] (2);

[0094] In formula (2), Indicates the basic resistance reduction error rate; represents a second basic resistance reduction value; represents the first basic resistance reduction value; A represents the sensor aging coefficient.

[0095] Taking into account that different fuel tank sensors produce different basic resistance change error rates, the sensor aging coefficient A is introduced to correct the basic resistance change error rate and improve the accuracy of the calculation results.

[0096] In some implementations, the sensor aging factor A may be determined as follows:

[0097] Use multiple production batches of fuel tank sensors, fill the fuel tank sensors with 50% fuel (50% of the fuel tank sensor's oil chamber volume), record the fuel tank sensor resistance value when the fuel is just filled and the fuel tank sensor resistance value after the fuel is filled with 50% and left for a preset time (such as 1 year), and record them as , .

[0098] Calculate the sensor aging coefficient A according to formula (3).

[0099] (3);

[0100] In formula (3), Indicates the resistance value of the fuel tank sensor when the fuel is just filled to 50%; It indicates the resistance value of the fuel tank sensor after being filled with 50% fuel and left for a preset period of time (such as 1 year); A indicates the sensor aging coefficient.

[0101] In some embodiments, determining a refueling resistance variation error rate of a sliding rheostat of a fuel tank sensor includes:

[0102] Determine the fuel tank sensor's sliding rheostat's fueling resistance increase value and fueling resistance decrease value;

[0103] The refueling resistance change error rate is calculated based on the first basic resistance increase value, the first basic resistance decrease value, the refueling resistance increase value and the refueling resistance decrease value.

[0104] The error rate of the refueling resistance change includes the error rate of the refueling resistance increase and the error rate of the refueling resistance decrease.

[0105] In some embodiments, determining a refueling resistance increase value and a refueling resistance decrease value of a sliding rheostat of a fuel tank sensor includes:

[0106] Record the first sampling point to the j The first refueling resistor to the first j Refueling resistor; among them, j is an integer ≥ 2;

[0107] From the first refueling resistance value to the j Filter out the refueling resistor p Increase the refueling resistance value and q Reduce the refueling resistance value, among which, p+q=j ;

[0108] according to p Increase the refueling resistance value, and calculate the refueling resistance increase value of the sliding rheostat of the fuel tank sensor;

[0109] according to q Reduce the refueling resistance value and calculate the refueling resistance reduction value of the sliding resistor of the fuel tank sensor.

[0110] As an example, during the refueling process of the vehicle, the vehicle controller 101 records the first sampling point to the second sampling point. j The first refueling resistor to the first j Fueling resistor, where the first fueling resistor to the j The refueling resistance can be expressed as (corresponding to the first refueling resistor),..., (Corresponding to j Refueling resistor).

[0111] Next, the first basic resistance increase value and the first basic resistance decrease value can be determined by referring to the above-mentioned method of determining the first basic resistance increase value and the first basic resistance decrease value. j Refueling resistor (i.e. , ..., ) p The increase in the refueling resistance (denoted as , ..., ),as well as q Reduce the refueling resistance value (denoted as , ..., ), which will not be elaborated here.

[0112] In some embodiments, according to pIncrease the refueling resistance value, calculate the refueling resistance increase value of the sliding rheostat of the fuel tank sensor, including:

[0113] Calculate the first increase in refueling resistance value to p Increase the first error rate between the refueling resistance value and the first basic resistance increase value to the p Error rate;

[0114] Eliminate the first to p The error rate is greater than the preset error threshold. t Increase the refueling resistance value by one and get r The target is to increase the refueling resistance value; among them, t+r=p ;

[0115] according to r Increase the refueling resistance value according to the target, and calculate the increased refueling resistance value of the sliding rheostat of the fuel tank sensor.

[0116] Specifically, the first error rate between the first increased refueling resistance value and the first basic resistance increased value can be calculated according to formula (3): .

[0117] (4);

[0118] In formula (4), represents the first error rate; Indicates the first increase in refueling resistance value; Indicates the first basic resistance increase value.

[0119] According to formula (5), calculate p The first increase in the refueling resistance value and the first basic resistance increase value p Error rate .

[0120] (5);

[0121] In formula (5), Indicates p Error rate; Indicates p Increase the refueling resistance value; Indicates the first basic resistance increase value.

[0122] Preset error threshold, usually set to add error rate to base resistance .

[0123] Next, compare the error rates from the first to the p Error rate (i.e. , ..., )and to eliminate those with an error rate greater than of t Then, the remaining pt added refueling resistance values ​​are sorted in order from small to large, and the box analysis method is used to extract the values ​​between the first quartile and the third quartile. r The target is to increase the refueling resistance value. Then, calculate r The average value of the target increase in refueling resistance is the increase in refueling resistance.

[0124] As an example, assume p=10, where , , and are greater than the preset error threshold (set to ), then remove Corresponding , Corresponding , Corresponding ,as well as Corresponding , at this time t=4; the remaining 6 (at this time pt=10-4=6) increase the refueling resistance value, respectively , , , , and Then, in order from smallest to largest , , , , and Sort them, and then use the box analysis method to extract the values ​​between the first quartile and the third quartile. r The target is to increase the refueling resistance value. Assuming that the extracted r The target increase in refueling resistance is , , and ,at this time, r =4. Next, calculate , , and The average value of the refueling resistance is obtained, which can be expressed as .

[0125] Similarly, the above method of determining the increase in refueling resistance can be used to determine the increase in refueling resistance. q Reduce the refueling resistance value and select t The target is to reduce the refueling resistance value, and thent The target is to reduce the refueling resistance value, and calculate the refueling resistance reduction value of the sliding rheostat of the fuel tank sensor, which can be recorded as , I will not go into details here.

[0126] Next, the error rate of the refueling resistance increase can be calculated according to formula (6): .

[0127] (6);

[0128] In formula (6), Indicates that the error rate increases due to the refueling resistance; Indicates the added value of the refueling resistance; Indicates the first basic resistance increase value.

[0129] The error reduction rate of refueling resistance can be calculated according to formula (7): .

[0130] (7);

[0131] In formula (7), Indicates that the error rate of refueling resistance is reduced; Indicates the reduction value of refueling resistance; Indicates the first basic resistance reduction value.

[0132] like ≤ ,and ≤ , the first mapping relationship is not corrected, and the first mapping relationship is continued to be used to determine the current oil volume.

[0133] if > , and / or > , then the first mapping relationship is modified to obtain the second mapping relationship.

[0134] In some embodiments, based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain a second mapping relationship, including:

[0135] If the refueling resistance change error rate is greater than the basic resistance change error rate, the first set resistance value in the first mapping relationship is obtained. W Set the resistance value; where, W is an integer ≥ 2;

[0136] Determine a first weight coefficient corresponding to an error rate of an increase in the refueling resistance and a second weight coefficient corresponding to an error rate of a decrease in the refueling resistance;

[0137] Calculate a correction coefficient according to the increase error rate of the refueling resistance, the first weight coefficient, the decrease error rate of the refueling resistance, and the second weight coefficient;

[0138] According to the correction coefficient, the first set resistance value to the W Set the resistance value to correct and obtain the first corrected resistance value to the W Correct the resistance value;

[0139] The first set resistance value in the first mapping relationship is converted to the W The set resistance value is updated to the first correction resistance value to the W The resistance value is corrected to obtain a second mapping relationship.

[0140] Specifically, if the error rate of the increase in the refueling resistance is greater than the error rate of the increase in the basic resistance, and the error rate of the decrease in the refueling resistance is greater than the error rate of the decrease in the basic resistance, then according to r The number of target refueling resistance values ​​is r ;as well as t The target is to reduce the amount of refueling resistance value, which is t , determine a first weight coefficient corresponding to the error rate of the refueling resistance increase, and a second weight coefficient corresponding to the error rate of the refueling resistance decrease.

[0141] Among them, the first weight coefficient is: ; The second weight coefficient is: .

[0142] Calculate the correction factor according to formula (7): .

[0143] (8);

[0144] In formula (8), represents the correction factor, Indicates that the error rate increases due to the refueling resistance; Indicates that adding oil to the resistor reduces the error rate.

[0145] As an example, if > , and / or > , then obtain the first resistance setting value in the first mapping relationship (i.e., the above Table 1) to the first W The resistance setting value is the value in Table 1. , , ..., , ,in, W=x . , , ..., , Multiply by the correction factor calculated above , get the first correction resistance value to the W Correct the resistance value, that is , , ..., , Then, set the first resistor in Table 1 to W The resistance setting value is updated to the first correction resistance value to the W The resistance value is corrected to obtain a second mapping relationship, as shown in Table 2.

[0146] Table 2 The second mapping relationship between oil volume and resistance

[0147]

[0148] As an example, when the vehicle controller 101 detects that the sliding rheostat is in an abnormal state and collects the current resistance By consulting Table 2 above, the current resistance Corresponding current oil volume .

[0149] In some embodiments, after collecting the current resistance value of the sliding rheostat of the oil level sensor, the method further includes:

[0150] Determine the initial use time of a new fuel level sensor installed on a vehicle;

[0151] Calculate the time difference between the current acquisition time and the initial use time, and calculate the ratio between the time difference and the set period;

[0152] If the ratio is less than or equal to 1, it is determined that the current acquisition time is within the first set period;

[0153] In the first setting cycle, if the sliding rheostat is in a normal state, the current oil volume corresponding to the current resistance value is determined based on the first mapping relationship;

[0154] Within the first set cycle, if the sliding resistor is in an abnormal state, the time period from the current acquisition time to the initial use time is determined as the target time period. If the refueling resistance increase error rate within the target time period is greater than the basic resistance increase error rate and / or the refueling resistance decrease error rate is greater than the basic resistance increase error rate, the first mapping relationship is corrected to obtain the second mapping relationship, and the current oil volume corresponding to the current resistance value is determined according to the second mapping relationship.

[0155] The initial use time refers to the time when the oil level sensor is newly installed on the vehicle, that is, the start time of the first collection cycle.

[0156] As an example, assuming that the set period is 1 year (12 months), if the ratio of the calculated time difference to the set period is less than 1, it can be determined that the current collection time is within the first set period. For example, if the time difference is 6 months, then the ratio of the time difference (6 months) to the set period (12 months) is less than 1, and the current collection time is within the first set period. If the ratio of the calculated time difference to the set period is greater than 1 and less than 2, it can be determined that the current collection time is within the second set period. Similarly, if the ratio of the calculated time difference to the set period is greater than 3 and less than 4, it can be determined that the current collection time is within the fourth set period.

[0157] In one example, assuming that the set period is 1 year, if the time difference between the current collection time when the vehicle control 101 collects the current resistance value of the sliding rheostat of the oil level sensor and the initial use time when the vehicle is newly equipped with the oil level sensor is less than or equal to 1, then it is determined that the current collection time is within the first set period (i.e., within the first year). The start time of the first set period (marked as ) is the initial use time of the fuel level sensor when it is newly installed on the vehicle (marked as ), the final time is the time point one year after the start time (marked as ).

[0158] In the first case, if the current acquisition time (marked by ) Within the first set period, if the sliding rheostat of the oil level sensor is in a normal state, the current oil level corresponding to the current resistance value collected at the current collection time point is determined according to the first mapping relationship in Table 1 above.

[0159] In the second case, if the current acquisition time (marked by ) In the first set cycle, the sliding resistor of the oil level sensor is in an abnormal state, and the current acquisition time Time to initial use The time period between the two is determined as the target time period. If it is determined according to the above implementation that the refueling resistance increase error rate within the target time period is greater than the basic resistance increase error rate and / or the refueling resistance decrease error rate is greater than the basic resistance increase error rate, the first mapping relationship is corrected to obtain a second mapping relationship (as shown in Table 2 above), and the current oil volume corresponding to the current resistance value is determined according to the second mapping relationship.

[0160] When the sliding rheostat remains in an abnormal state, the current acquisition time The subsequent collection time point to the final time point of the first set cycle The current resistance collected is determined by querying the second mapping relationship in Table 2 to determine the corresponding current oil volume.

[0161] When the set period expires (e.g. 1 year), and enters the second set period (i.e. within the second year), the start time of the first set period will be To the final time This time period is determined as the target time period. If the error rate of increase in refueling resistance within the target time period is greater than the error rate of increase in basic resistance and / or the error rate of decrease in refueling resistance is greater than the error rate of increase in basic resistance, the above-mentioned second mapping relationship is corrected to obtain a corrected second mapping relationship, and the current oil volume corresponding to the current resistance value is determined based on the corrected second mapping relationship.

[0162] Next, when the second set period expires (e.g., one year), and the third set period begins (i.e., the third year), the time from the start of the second set period will be To the final time This time period is determined as the target time period. If the error rate of increase in refueling resistance within the target time period is greater than the error rate of increase in basic resistance and / or the error rate of decrease in refueling resistance is greater than the error rate of increase in basic resistance, the above-mentioned corrected second mapping relationship is corrected to obtain a second corrected mapping relationship, and the current oil volume corresponding to the current resistance value is determined based on the second corrected mapping relationship.

[0163] It can be understood that when the third setting period expires and the fourth setting period begins, the second mapping relationship corrected after the second setting period expires can be iteratively corrected in the above manner, which will not be described in detail here.

[0164] That is to say, every time a set period expires (such as 1 year), if > , and / or > , the mapping relationship between the oil volume and the resistance in the previous set cycle is corrected to obtain the mapping relationship between the oil volume and the resistance in the next set cycle.

[0165] In this way, it can be avoided that the oil level sensor generates silver sulfide due to long-term contact with oil, which causes the resistance of its sliding rheostat to increase, thereby causing inaccurate collection and display of the oil level.

[0166] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0167] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0168] Figure 3 Schematic diagram of an oil quantity determination device provided in an embodiment of the present application. Figure 3 As shown, the oil quantity determination device includes:

[0169] The acquisition module 301 is configured to acquire the current resistance value of the sliding rheostat of the fuel level sensor of the vehicle;

[0170] The first determination module 302 is configured to determine the current oil volume corresponding to the current resistance value based on the first mapping relationship if the sliding rheostat is in a normal state;

[0171] The second determination module 303 is configured to determine the current oil volume corresponding to the current resistance value based on the second mapping relationship if the sliding rheostat is in an abnormal state;

[0172] The second mapping relationship is determined by the following steps:

[0173] Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state;

[0174] Determine the error rate of the refueling resistance change of the sliding rheostat of the fuel tank sensor;

[0175] Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain the second mapping relationship.

[0176] In some embodiments, determining a basic resistance change error rate when a sliding rheostat of a fuel tank sensor is in a normal state includes:

[0177] determining a first basic resistance increase value and a first basic resistance decrease value of a sliding rheostat of a fuel tank sensor during detection of the fuel refueling device injecting fuel into an empty fuel tank;

[0178] After the fuel tank is filled with fuel and has been left to stand for a preset period of time, determining a second basic resistance increase value and a second basic resistance decrease value of the sliding rheostat of the fuel tank sensor;

[0179] A basic resistance change error rate of the sliding resistor of the fuel tank sensor is calculated based on the first basic resistance increase value, the first basic resistance decrease value, the second basic resistance increase value, the second basic resistance decrease value, and the sensor aging coefficient.

[0180] In some embodiments, determining a first basic resistance increase value and a first basic resistance decrease value of a sliding resistor of a fuel tank sensor includes:

[0181] Record the first resistance sampling point to the i The first resistance value to the second resistance value corresponding to the resistance sampling point i Resistance value; where, i is an integer ≥ 2;

[0182] From the first resistance value to thei Filter out the resistor value n Increase the resistance value and m Reduce the resistance value, where n+m= i ;

[0183] according to n An increased resistance value is calculated to calculate a first basic resistance increase value of the sliding rheostat of the fuel tank sensor;

[0184] according to m A reduced resistance value is obtained to calculate a first basic resistance reduction value of the sliding resistor of the fuel tank sensor.

[0185] In some embodiments, according to n The first basic resistance increase value of the sliding rheostat of the fuel tank sensor is calculated by adding a resistance value, including:

[0186] from n Select from the increasing resistance values k The target increases the resistance value, where 1≤ k≤n ;

[0187] calculate k The target resistance increase average value is determined as a first basic resistance increase value of the sliding resistor of the fuel tank sensor.

[0188] In some embodiments, determining a refueling resistance variation error rate of a sliding rheostat of a fuel tank sensor includes:

[0189] Determine the fuel tank sensor's sliding rheostat's fueling resistance increase value and fueling resistance decrease value;

[0190] The refueling resistance change error rate is calculated based on the first basic resistance increase value, the first basic resistance decrease value, the refueling resistance increase value and the refueling resistance decrease value.

[0191] In some embodiments, determining a refueling resistance increase value and a refueling resistance decrease value of a sliding rheostat of a fuel tank sensor includes:

[0192] Record the first sampling point to the j The first refueling resistor to the first j Refueling resistor; among them, j is an integer ≥ 2;

[0193] From the first refueling resistance value to the j Filter out the refueling resistor p Increase the refueling resistance value and q Reduce the refueling resistance value, among which, p+q=j ;

[0194] according to p Increase the refueling resistance value, and calculate the refueling resistance increase value of the sliding rheostat of the fuel tank sensor;

[0195] according to q Reduce the refueling resistance value and calculate the refueling resistance reduction value of the sliding resistor of the fuel tank sensor.

[0196] In some embodiments, according to p Increase the refueling resistance value, calculate the refueling resistance increase value of the sliding rheostat of the fuel tank sensor, including:

[0197] Calculate the first increase in refueling resistance value to p Increase the first error rate between the refueling resistance value and the first basic resistance increase value to the p Error rate;

[0198] Eliminate the first error rate to the p The error rate is greater than the preset error threshold. t Increase the refueling resistance value by one and get r The target is to increase the refueling resistance value; among them, t+r=p ;

[0199] according to r Increase the refueling resistance value according to the target, and calculate the increased refueling resistance value of the sliding rheostat of the fuel tank sensor.

[0200] In some embodiments, the refueling resistance change error rate includes a refueling resistance increase error rate and a refueling resistance decrease error rate; based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain a second mapping relationship, including:

[0201] If the refueling resistance change error rate is greater than the basic resistance change error rate, the first set resistance value in the first mapping relationship is obtained. W Set the resistance value; where, W is an integer ≥ 2;

[0202] Determine a first weight coefficient corresponding to an error rate of an increase in the refueling resistance and a second weight coefficient corresponding to an error rate of a decrease in the refueling resistance;

[0203] Calculate a correction coefficient according to the increase error rate of the refueling resistance, the first weight coefficient, the decrease error rate of the refueling resistance, and the second weight coefficient;

[0204] According to the correction coefficient, the first set resistance value to the W Set the resistance value to correct and obtain the first corrected resistance value to the W Correct the resistance value;

[0205] The first set resistance value in the first mapping relationship is converted to the W The set resistance value is updated to the first correction resistance value to the W The resistance value is corrected to obtain a second mapping relationship.

[0206] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0207] Figure 4 Schematic diagram of an electronic device 4 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0208] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , and may include more or less components than those shown in the figure, or different components.

[0209] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0210] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. The memory 402 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device.

[0211] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0212] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (such as a computer-readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0213] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for determining oil quantity, characterized in that: include: Collect the current resistance value of the sliding rheostat of the vehicle's oil level sensor; If the sliding rheostat is in a normal state, determining the current oil volume corresponding to the current resistance value based on the first mapping relationship; If the sliding rheostat is in an abnormal state, determining a current oil volume corresponding to the current resistance value based on a second mapping relationship; The second mapping relationship is determined by the following steps: Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state; Determine the error rate of the refueling resistance change of the sliding rheostat of the fuel tank sensor; Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain a second mapping relationship; Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state, including: determining a first basic resistance increase value and a first basic resistance decrease value of a sliding rheostat of a fuel tank sensor during detection of the fuel refueling device injecting fuel into an empty fuel tank; After the fuel tank is filled with fuel and has been left to stand for a preset period of time, determining a second basic resistance increase value and a second basic resistance decrease value of the sliding rheostat of the fuel tank sensor; Calculating a basic resistance change error rate of a sliding resistor of a fuel tank sensor based on the first basic resistance increase value, the first basic resistance decrease value, the second basic resistance increase value, the second basic resistance decrease value and a sensor aging coefficient; Determine the oil tank sensor's sliding rheostat's refueling resistance change error rate, including: Determine the fuel tank sensor's sliding rheostat's fueling resistance increase value and fueling resistance decrease value; Calculate the refueling resistance change error rate according to the first basic resistance increase value, the first basic resistance decrease value, the refueling resistance increase value and the refueling resistance decrease value; The refueling resistance change error rate includes a refueling resistance increase error rate and a refueling resistance decrease error rate; Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain a second mapping relationship, including: If the refueling resistance change error rate is greater than the basic resistance change error rate, obtaining the first set resistance value to the Wth set resistance value in the first mapping relationship; wherein W is an integer ≥ 2; Determine a first weight coefficient corresponding to an error rate of an increase in the refueling resistance, and a second weight coefficient corresponding to an error rate of a decrease in the refueling resistance; Calculating a correction coefficient according to the refueling resistance increase error rate, the first weight coefficient, the refueling resistance decrease error rate and the second weight coefficient; Correcting the first set resistance value to the Wth set resistance value according to the correction coefficient to obtain the first corrected resistance value to the Wth corrected resistance value; The first set resistance value to the Wth set resistance value in the first mapping relationship are correspondingly updated to the first corrected resistance value to the Wth corrected resistance value to obtain a second mapping relationship.

2. The method according to claim 1, characterized in that Determining a first basic resistance increase value and a first basic resistance decrease value of a sliding rheostat of a fuel tank sensor includes: Record the first resistance sampling point to the i The first resistance value to the second resistance value corresponding to the resistance sampling point i Resistance value; where, i is an integer ≥ 2; From the first resistance value to the i Filter out the resistor value n Increase the resistance value and m Reduce the resistance value, where n+m= i ; according to n The increased resistance value is used to calculate the first basic resistance increase value of the sliding rheostat of the fuel tank sensor; according to m The reduced resistance value is used to calculate a first basic resistance reduction value of the sliding resistor of the fuel tank sensor.

3. The method according to claim 2, characterized in that according to n The first basic resistance increase value of the sliding rheostat of the fuel tank sensor is calculated by adding the resistance value, including: from n The increased resistance value is selected k The target increases the resistance value, where 1≤ k≤n ; calculate k The target resistance increase average value is determined as a first basic resistance increase value of the sliding resistor of the fuel tank sensor.

4. The method according to claim 1, characterized in that Determine the fuel tank sensor's sliding rheostat's refueling resistance increase value and refueling resistance decrease value, including: Record the first sampling point to the j The first refueling resistor to the first j Refueling resistor; among them, j is an integer ≥ 2; From the first refueling resistance value to the j Filter out the refueling resistor p Increase the refueling resistance value and q Reduce the refueling resistance value, among which, p+q=j ; according to p The increased refueling resistance value is calculated by the sliding rheostat of the fuel tank sensor; according to q The reduced refueling resistance value is used to calculate the reduced refueling resistance value of the sliding resistor of the fuel tank sensor.

5. The method according to claim 4, characterized in that according to p The increased refueling resistance value is calculated by calculating the increased refueling resistance value of the sliding rheostat of the fuel tank sensor, including: Calculate the first increase in refueling resistance value to p a first error rate between the increased refueling resistance value and the first basic resistance increased value to a first p Error rate; Eliminate the first error rate to the p The error rate is greater than the preset error threshold. t Increase the refueling resistance value by one and get r The target increases the refueling resistance value; among them, t+r=p ; according to r The target refueling resistance value is increased, and the refueling resistance increase value of the sliding resistor of the fuel tank sensor is calculated.

6. An oil quantity determination device, characterized in that: include: A collection module is configured to collect a current resistance value of a sliding rheostat of an oil level sensor of the vehicle; a first determination module configured to determine a current oil volume corresponding to the current resistance value based on a first mapping relationship if the sliding rheostat is in a normal state; a second determination module configured to determine a current oil volume corresponding to the current resistance value based on a second mapping relationship if the sliding rheostat is in an abnormal state; The second mapping relationship is determined by the following steps: Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state; Determine the error rate of the refueling resistance change of the sliding rheostat of the fuel tank sensor; Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain a second mapping relationship; Determine the basic resistance change error rate when the sliding rheostat of the fuel tank sensor is in a normal state, including: determining a first basic resistance increase value and a first basic resistance decrease value of a sliding rheostat of a fuel tank sensor during detection of the fuel refueling device injecting fuel into an empty fuel tank; After the fuel tank is filled with fuel and has been left to stand for a preset period of time, determining a second basic resistance increase value and a second basic resistance decrease value of the sliding rheostat of the fuel tank sensor; Calculating a basic resistance change error rate of a sliding resistor of a fuel tank sensor based on the first basic resistance increase value, the first basic resistance decrease value, the second basic resistance increase value, the second basic resistance decrease value and a sensor aging coefficient; Determine the oil tank sensor's sliding rheostat's refueling resistance change error rate, including: Determine the fuel tank sensor's sliding rheostat's fueling resistance increase value and fueling resistance decrease value; Calculate the refueling resistance change error rate according to the first basic resistance increase value, the first basic resistance decrease value, the refueling resistance increase value and the refueling resistance decrease value; The refueling resistance change error rate includes a refueling resistance increase error rate and a refueling resistance decrease error rate; Based on the basic resistance change error rate and the refueling resistance change error rate, the first mapping relationship is corrected to obtain a second mapping relationship, including: If the refueling resistance change error rate is greater than the basic resistance change error rate, obtaining the first set resistance value to the Wth set resistance value in the first mapping relationship; wherein W is an integer ≥ 2; Determine a first weight coefficient corresponding to an error rate of an increase in the refueling resistance, and a second weight coefficient corresponding to an error rate of a decrease in the refueling resistance; Calculating a correction coefficient according to the refueling resistance increase error rate, the first weight coefficient, the refueling resistance decrease error rate and the second weight coefficient; Correcting the first set resistance value to the Wth set resistance value according to the correction coefficient to obtain the first corrected resistance value to the Wth corrected resistance value; The first set resistance value to the Wth set resistance value in the first mapping relationship are correspondingly updated to the first corrected resistance value to the Wth corrected resistance value to obtain a second mapping relationship.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Vehicle remaining oil quantity detection method and device, vehicle and storage medium

    CN111238600A

  • Vehicle fuel quantity display correction method, device and equipment and storage medium

    CN116972935A