Fuel quantity display method, device, electronic device and readable storage medium
By collecting the resistance value of the sliding rheostat of the oil level sensor, and selecting different mapping relationships and resistance correction coefficients according to its status, the problem of inaccurate oil level display caused by the generation of silver sulfide in the fuel tank sensor is solved, and the accuracy of the oil level display is achieved.
Patent Information
- Application Number
- CN202411526884.4
- 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
In the prior art, silver sulfide is generated by long-term immersion of the oil tank sensor in oil, resulting in the resistance of the sliding varistor under the same liquid level, resulting in the problem of inaccurate oil quantity display.
By collecting the current resistance value of the sliding rheostat of the oil quantity sensor, if the sliding rheostat is in a normal state, the current oil quantity is determined according to the preset first mapping relationship; if the sliding rheostat is in an abnormal state, the current oil quantity is determined according to the preset second mapping relationship. , correct the resistance value through the resistance correction coefficient, determine the current fuel level, and display it on the vehicle instrument.
Effectively solve the problem of inaccurate oil display due to silver sulfide, and ensure the accuracy of the amount of oil display by correcting the resistance value.
Smart Images

Figure CN119043458B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of new energy vehicles, and in particular to a fuel level display method, device, electronic device and readable storage medium. Background Art
[0002] Fuel level display is an important information for human-vehicle interaction. 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, and then displays the specific amount of oil (percentage) through the instrument.
[0003] The sliding part of the sliding rheostat is composed of an alloy of oil silver and palladium. Oil contains sulfur, and the oil 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 (conversely, the smaller the resistance, the higher the oil level), and even the situation where the oil is full but the instrument shows that it is not full, resulting in inaccurate oil display. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a fuel level display method, device, electronic device and readable storage medium to solve the problem in the prior art that the resistance of the sliding rheostat increases at the same liquid level due to the fuel tank sensor being immersed in oil for a long time to generate silver sulfide, thereby causing inaccurate fuel level display.
[0005] According to a first aspect of an embodiment of the present application, a method for displaying fuel level is provided, comprising:
[0006] Collect the current resistance value of the sliding rheostat of the oil level sensor;
[0007] If the sliding rheostat is in a normal state, the current oil volume corresponding to the current resistance value is determined according to a preset first mapping relationship between the oil volume and the resistance, and the current oil volume is displayed on the vehicle instrument;
[0008] If the sliding rheostat is in an abnormal state, the preset oil volume and resistance are two Mapping relationship, determine the current oil volume corresponding to the current resistance value, and display the current oil volume on the vehicle instrument;
[0009] The second mapping relationship is determined by the following steps:
[0010] Determine the basic resistance value of the sliding rheostat of the fuel level sensor when it is in a normal state; wherein the basic resistance value is the data measured by the preset range extender fuel consumption test;
[0011] Record the first resistance value to the second resistance value each time the vehicle fails to start the range extender due to fuel exhaustion. i Resistance value; where, i is an integer ≥ 2;
[0012] Between each time the vehicle is refueled and the next time it is refueled, the fuel consumption of the first range extender is counted to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount; of which, j is an integer ≥ 2;
[0013] According to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total amount of oil added, determine the resistance correction factor;
[0014] A second mapping relationship is determined according to the first mapping relationship and the resistance correction coefficient.
[0015] According to a second aspect of the embodiment of the present application, there is provided a fuel level display device, comprising:
[0016] A resistance acquisition module is configured to acquire a current resistance value of a sliding rheostat of the oil level sensor;
[0017] The first display module is configured to determine the current oil volume corresponding to the current resistance value according to a preset first mapping relationship between the oil volume and the resistance if the sliding rheostat is in a normal state, and display the current oil volume on the vehicle instrument;
[0018] The second display module is configured to determine the current oil volume corresponding to the current resistance value according to a preset second mapping relationship between the oil volume and the resistance if the sliding rheostat is in an abnormal state, and display the current oil volume on the vehicle instrument;
[0019] The second mapping relationship is determined by the following steps:
[0020] Determine the basic resistance value of the sliding rheostat of the fuel level sensor when it is in a normal state; wherein the basic resistance value is the data measured by the preset range extender fuel consumption test;
[0021] Record the first resistance value to the second resistance value each time the vehicle fails to start the range extender due to fuel exhaustion. i Resistance value; where, i is an integer ≥ 2;
[0022] Between each time the vehicle is refueled and the next time it is refueled, the fuel consumption of the first range extender is counted to the jRange extender fuel consumption and total fueling from the first to the j Total refueling amount; of which, j is an integer ≥ 2;
[0023] According to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total amount of oil added, determine the resistance correction factor;
[0024] A second mapping relationship is determined according to the first mapping relationship and the resistance correction coefficient.
[0025] 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.
[0026] 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.
[0027] Compared with the prior art, the beneficial effects of the embodiments of the present application include at least: by collecting the current resistance value of the sliding rheostat of the oil level sensor, and then according to the state of the sliding rheostat (whether silver sulfide is generated), selecting to use the first mapping relationship or the second mapping relationship to determine the current oil level corresponding to the current resistance value; wherein the second mapping relationship is determined according to the first mapping relationship and the resistance correction coefficient, and when the sliding rheostat is in an abnormal state, the current oil level corresponding to the current resistance value can be determined by the corrected second mapping relationship, 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 generation of silver sulfide when the oil tank sensor is immersed in oil for a long time, thereby causing inaccurate oil level display. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] 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.
[0029] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application;
[0030] Figure 2 It is a flow chart of a method for displaying the amount of oil provided in an embodiment of the present application;
[0031] Figure 3 It is a structural schematic diagram of an oil level display device provided in an embodiment of the present application;
[0032] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] 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.
[0034] A method and device for displaying the amount of oil according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0035] 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.
[0036] 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.
[0037] During the use of the vehicle, first, the vehicle controller 101 collects the current resistance value of the sliding rheostat of the oil level sensor 102; if the sliding rheostat is in a normal state (i.e., the sliding rheostat has not reacted with the sulfur in the oil to generate silver sulfide), then the current oil level corresponding to the current resistance value is determined according to a preset first mapping relationship between the oil level and the resistance, and the current oil level is displayed on a vehicle instrument (such as an in-vehicle infotainment system 103); if the sliding rheostat is in an abnormal state (i.e., the sliding rheostat has reacted with the sulfur in the oil to generate silver sulfide), then the current oil level corresponding to the current resistance value is determined according to a preset second mapping relationship between the oil level and the resistance, and the current oil level is displayed on a vehicle instrument; wherein the second mapping relationship is determined based on the first mapping relationship and a resistance correction coefficient.
[0038] The technical solution provided by the embodiment of the present application is that the vehicle controller collects the current resistance value of the sliding rheostat of the oil level sensor, and then selects to use the first mapping relationship or the second mapping relationship to determine the current oil level corresponding to the current resistance value according to the state of the sliding rheostat (whether silver sulfide is generated); wherein the second mapping relationship is determined according to the first mapping relationship and the resistance correction coefficient, and when the sliding rheostat is in an abnormal state, the current oil level corresponding to the current resistance value can be determined by the corrected second mapping relationship, 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 generation of silver sulfide caused by the oil tank sensor being immersed in oil for a long time, thereby causing inaccurate oil level display.
[0039] Figure 2 It is a flow chart of a method for displaying oil quantity provided in an embodiment of the present application. Figure 2 The oil quantity display method can be Figure 1 The vehicle controller 101 is used to execute. Figure 2 As shown, the oil level display method may specifically include the following steps:
[0040] Step S201, collecting the current resistance value of the sliding rheostat of the oil level sensor.
[0041] During the driving process of the vehicle, as the fuel consumption gradually increases, the oil in the fuel tank will gradually decrease, and the resistance of the sliding rheostat of the fuel level sensor 102 will gradually increase. The vehicle controller 101 can collect the current resistance value of the sliding rheostat of the fuel level sensor 102 in real time or regularly, and record the current collection time.
[0042] The current collection time refers to the time point when the vehicle controller 101 collects the current resistance value of the sliding resistor of the oil level sensor.
[0043] Step S202, if the sliding rheostat is in a normal state, the current oil volume corresponding to the current resistance value is determined according to a preset first mapping relationship between the oil volume and the resistance, and the current oil volume is displayed on the vehicle instrument.
[0044] 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.
[0045] During the fuel tank design phase, a series of resistance and fuel quantity test results can be obtained through a refueling test (testing the resistance value during the process of injecting fuel into the fuel tank), and then a first mapping relationship between the fuel quantity and the resistance can be established.
[0046] 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.
[0047] Table 1 The first mapping relationship between oil volume and resistance
[0048]
[0049] In Table 1, , , ..., , Gradually increase, that is < <...< < ; , , ..., , Gradually decreases, that is > >...> > .
[0050] 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, it can be obtained that 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 .
[0051] Afterwards, the vehicle controller 101 can obtain the current fuel level 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.
[0052] Step S203, if the sliding rheostat is in an abnormal state, the current oil volume corresponding to the current resistance value is determined according to a preset second mapping relationship between the oil volume and the resistance, and the current oil volume is displayed on the vehicle instrument.
[0053] The second mapping relationship is determined by the following steps:
[0054] Determine the basic resistance value of the sliding rheostat of the fuel level sensor when it is in a normal state; wherein the basic resistance value is the data measured by the preset range extender fuel consumption test;
[0055] Record the first resistance value to the second resistance value each time the vehicle fails to start the range extender due to fuel exhaustion. i Resistance value; where, i is an integer ≥ 2;
[0056] Between each time the vehicle is refueled and the next time it is refueled, the fuel consumption of the first range extender is counted to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount; of which, j is an integer ≥ 2;
[0057] According to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total amount of oil added, determine the resistance correction factor;
[0058] A second mapping relationship is determined according to the first mapping relationship and the resistance correction coefficient.
[0059] As an example, when performing a range extender fuel consumption test, the vehicle controller 101 may collect the fuel resistance value when the range extender of a vehicle cannot be started due to fuel exhaustion, which is the basic resistance value and can be recorded as .
[0060] As another example, the above-mentioned range extender fuel consumption test may be performed multiple times on multiple vehicles (of the same model) to obtain the fuel resistance values when the range extenders of the multiple vehicles in each test cannot be started due to fuel exhaustion, and the average value of the fuel resistance values of the multiple tests on the multiple vehicles is calculated, and the average value is determined as the basic resistance value when the sliding rheostat of the fuel level sensor is in a normal state.
[0061] The vehicle controller 101 can record the first resistance value to the second resistance value each time the range extender cannot be started due to fuel exhaustion during the use of the vehicle within a preset collection period (the preset collection period can be set according to actual conditions, for example, the preset collection period can be set to 1 year). i The resistance value can be expressed as (corresponding to the first resistance value), ..., (Corresponding to i resistance value).
[0062] The vehicle controller 101 can collect the fuel consumption of the first range extender from the time the vehicle is refueled to the time the vehicle is refueled again within a preset collection period (for example, the preset collection period is 1 year). j The fuel consumption of the range extender can be expressed as (corresponding to the fuel consumption of the first range extender),..., (Corresponding to j In the embodiment of the present application, the vehicle controller 101 can receive the fuel consumption rate sent by the EMS (range extender) between each time the vehicle is refueled and the next time it is refueled, and then integrate the fuel consumption rate to obtain the fuel consumption of the first range extender to the second range extender. j Range extender fuel consumption.
[0063] The vehicle controller 101 counts the total fueling amount from the first filling to the next filling. j The total amount of oil added (the oil amount display is inaccurate due to the abnormal state of the sliding rheostat, and there may be a situation where the oil is not fully filled between two fillings) can be recorded as (corresponding to the first total refueling amount),..., (Corresponding to j The first total refueling amount refers to the total refueling amount between the first refueling and the second refueling. j The total amount of fuel is the amount of fuel in the vehicle. j Fill up the fuel tank to j+1 Total fueling between refuelings.
[0064] The technical solution provided in the embodiment of the present application collects the current resistance value of the sliding rheostat of the oil level sensor, and then selects to use the first mapping relationship or the second mapping relationship to determine the current oil level corresponding to the current resistance value according to the state of the sliding rheostat (whether silver sulfide is generated); wherein the second mapping relationship is determined according to the first mapping relationship and the resistance correction coefficient, and when the sliding rheostat is in an abnormal state, the current oil level corresponding to the current resistance value can be determined by the corrected second mapping relationship, 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 generation of silver sulfide when the oil tank sensor is immersed in oil for a long time, thereby causing inaccurate oil level display.
[0065] In some embodiments, the base resistance value, the first resistance value to the second resistance value are i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total fuel volume, determine resistance correction factor, including:
[0066] According to the basic resistance value and the first resistance value to the i Resistance value, calculate the change rate of the first resistance to the i Resistance change rate;
[0067] According to the fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount, calculate the error rate from the first to the j Error rate;
[0068] According to the first resistance change rate to the i Resistance change rate and error rate from the first to the second j Error rate, determine the resistance correction factor.
[0069] Specifically, the first resistance value and the base resistance value can be calculated according to formula (1): The first resistance change rate between .
[0070] (1).
[0071] According to formula (2), calculate i Resistance Value With the basic resistance value The first i Resistance change rate ;in, i is an integer ≥ 2.
[0072] (2).
[0073] According to formula (3), the first error rate between the first range extender fuel consumption and the first total fuel consumption is calculated. .
[0074] (3).
[0075] According to formula (4), calculate j Range extender fuel consumption and j Total refueling amount j Error rate ;in, j is an integer ≥2.
[0076] (4).
[0077] In some embodiments, according to the first resistance change rate to the first i Resistance change rate and error rate from the first to the second j Error rate, determine the resistance correction factor, including:
[0078] Calculate the first resistance change rate to the i The resistance change rate mean and resistance change rate standard deviation of the resistance change rate;
[0079] Calculate the error rate from the first to the j Error mean and error standard deviation of error rate;
[0080] Based on the mean resistance change rate and the standard deviation of the resistance change rate, the resistance change rate from the first resistance change rate to the i Selecting at least one target resistance change rate from the resistance change rates;
[0081] Based on the error mean and error standard deviation, from the first error rate to the j Selecting at least one target error rate from the error rates;
[0082] The resistance correction coefficient is determined based on the target resistance change rate and the target error rate.
[0083] In some embodiments, based on the resistance change rate mean and the resistance change rate standard deviation, the resistance change rate from the first resistance change rate to the second resistance change rate is calculated. i At least one target resistance change rate is selected from the resistance change rate, including:
[0084] Determine the upper limit value of the resistance change rate and the lower limit value of the resistance change rate based on the mean value of the resistance change rate and the standard deviation of the resistance change rate;
[0085] If the first resistance change rate is greater than or equal to the resistance change rate upper limit value and less than or equal to the resistance change rate lower limit value, the first resistance change rate is determined as the target resistance change rate;
[0086] Jordii If the resistance change rate is greater than or equal to the upper limit of the resistance change rate and less than or equal to the lower limit of the resistance change rate, i The resistance change rate is determined as a target resistance change rate.
[0087] First, calculate the first resistance change rate To the i-th resistance change rate The average resistance change rate And the standard deviation of resistance change rate ; Then, according to and Determine the upper limit value and lower limit value of the resistance change rate. Among them, the upper limit value of the resistance change rate is The lower limit of resistance change rate is .
[0088] Next, from the first resistance change rate To the i-th resistance change rate At least one target resistance change rate is selected.
[0089] When the first resistance change rate The following conditions must be met:
[0090] ,
[0091] Then the first resistance change rate Determined as the target resistance change rate.
[0092] When i Resistance change rate The following conditions must be met:
[0093] ,
[0094] Then the i-th resistance change rate Determined as the target resistance change rate.
[0095] Similarly, calculate the first error rate To j Error rate The mean error and standard deviation of error Then, from the first error rate To j Error rate At least one target error rate is selected.
[0096] When the first error rate The following conditions must be met:
[0097] ,
[0098] The first error rate Determined as the target error rate.
[0099] When the jth error rate The following conditions must be met:
[0100] ,
[0101] The j-th error rate Determined as the target error rate.
[0102] In some embodiments, determining the resistance correction coefficient according to the target resistance change rate and the target error rate includes:
[0103] According to all target resistance change rates, calculate the average target resistance change rate;
[0104] According to all target error rates, calculate the mean target error rate;
[0105] Counting a first quantity of all target resistance change rates and a second quantity of all target error rates;
[0106] Determining a first weight coefficient and a second weight coefficient according to the first quantity and the second quantity;
[0107] A resistance correction coefficient is calculated according to the target resistance change rate average, the target error rate average, the first weight coefficient and the second weight coefficient.
[0108] In some embodiments, calculating the target resistance change rate average according to all target resistance change rates includes:
[0109] determining a median value of a target resistance change rate among all target resistance change rates;
[0110] Determine the distance value between each target resistance change rate and the median value of the target resistance change rate;
[0111] Determine the distribution coefficient corresponding to each target resistance change rate according to the distance value;
[0112] Based on all target resistance change rates and their distribution coefficients, the target resistance change rate average is calculated.
[0113] As an example, first, calculate the median of each target resistance change rate screened in the above steps (i.e., the median value of the target resistance change rate). If the first number of the average values of the screened target resistance change rates is an odd number, then the median value of the target resistance change rate is the middle number of these target resistance change rates; if the first number of the average values of the screened target resistance change rates is an even number, then the median value of the target resistance change rate is the average value of the two middle target resistance change rates. The median value of the target resistance change rate is recorded as M. Then, determine the distance value between each target resistance change rate and the median value of the target resistance change rate respectively; determine the allocation coefficient corresponding to each target resistance change rate according to the distance value.
[0114] Exemplarily, the allocation coefficient corresponding to each target resistance change rate may be determined according to formula (5).
[0115] (5);
[0116] In formula (5), represents the distribution coefficient corresponding to the b-th target resistance change rate; represents the bth target resistance change rate, where the value range of b is 1 to n1, and n1 represents the first number of all target resistance change rates; Indicates the median value of the target resistance change rate; It is a very small constant used to prevent the denominator from being zero and can be set flexibly.
[0117] The mean value of the target resistance change rate is calculated according to formula (6).
[0118] (6);
[0119] In formula (6), Indicates the mean value of the target resistance change rate; represents the distribution coefficient corresponding to the b-th target resistance change rate; Indicates the bth target resistance change rate.
[0120] It can be understood that the target resistance change rate average value can be determined by referring to the above The method to determine the target error rate mean , I will not go into details here.
[0121] In some embodiments, the resistance correction coefficient is calculated according to the target resistance change rate average, the target error rate average, the first weight coefficient and the second weight coefficient, including:
[0122] Calculating a first correction factor according to the target resistance change rate average and a first weight coefficient;
[0123] Calculate a second correction factor according to the target error rate mean and the second weight coefficient;
[0124] A resistance correction factor is calculated based on the first correction factor and the second correction factor.
[0125] As an example, assume that the target resistance change rate includes , , , and , then calculate , , , and The average value of the target resistance change rate is obtained, which is recorded as . Assume that the target error rate includes , , , and , then calculate , , , and The average value of the target error rate is obtained, which is recorded as .
[0126] In the above example, the first number n1 of the target resistance change rate is 5 (i.e., including 5 target resistance change rates), and the second number n2 of the target error rate is 5 (i.e., including 5 target error rates). Next, the average of the target resistance change rate is determined based on the first number n1 and the second number n2. The corresponding first weight coefficient and the mean of the target error rate The corresponding second weight coefficient. Specifically, the first weight coefficient is: ; The second weight coefficient is: .
[0127] Next, the resistance correction factor can be calculated according to formula (7): .
[0128] (7).
[0129] in, is the first correction factor; is the second correction factor.
[0130] In some embodiments, determining the second mapping relationship according to the first mapping relationship and the resistance correction coefficient includes:
[0131] Obtain the first resistance setting value in the first mapping relationship to the K Resistance setting value; where, K is an integer ≥ 2;
[0132] According to the resistance correction coefficient and the first resistance setting value to the K Resistance setting value, determine the first correction resistance value to the P Correction resistance value; where, P is an integer ≥ 2;
[0133] The first resistor setting value in the first mapping relationship is set to K The resistance setting value is updated to the first correction resistance value to the P The resistance value is corrected to obtain a second mapping relationship.
[0134] As an example, obtain the first resistance setting value to the first resistance setting value in the first mapping relationship (i.e., Table 1 above). K The resistance setting value is the value in Table 1. , , ..., , ,in, K=x . , , ..., , Multiply by the resistance correction factor calculated above (at this time M =1), and obtain the first correction resistance value to the P Correct the resistance value; that is , , ..., , Then, set the first resistor in Table 1 to K The resistance setting value is updated to the first correction resistance value to the P The resistance value is corrected to obtain a second mapping relationship, as shown in Table 2.
[0135] Table 2 The second mapping relationship between oil volume and resistance
[0136]
[0137] 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 The corresponding current oil volume is .
[0138] In some embodiments, after collecting the current resistance value of the sliding rheostat of the oil level sensor, the method further includes:
[0139] Determine the initial use time of a new fuel level sensor installed on a vehicle;
[0140] Calculate the time difference between the current collection time and the initial use time, and calculate the ratio between the time difference and the preset collection period;
[0141] If the ratio is less than or equal to 1, it is determined that the current collection time is within the first collection cycle;
[0142] In the first acquisition cycle, if the sliding rheostat is in a normal state, the current oil volume corresponding to the current resistance value is determined according to a preset first mapping relationship between the oil volume and the resistance;
[0143] In the first collection cycle, if the sliding rheostat is in an abnormal state, the first resistance value to the i-th resistance value, the first range extender fuel consumption to the j-th range extender fuel consumption, and the first total refueling amount to the j-th total refueling amount recorded in the time period from the current collection time to the initial use time are intercepted; according to the basic resistance value, the first resistance value to the i-th resistance value, the first range extender fuel consumption to the j-th range extender fuel consumption, and the first total refueling amount to the j-th total refueling amount, the resistance correction coefficient is determined; then according to the first mapping relationship and the resistance correction coefficient, a second mapping relationship is determined, and the current fuel amount corresponding to the current resistance value is determined according to the second mapping relationship.
[0144] 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.
[0145] The time difference between the current acquisition time and the initial use time can be calculated according to formula (8).
[0146] (8);
[0147] In formula (8), Indicates the current collection time; Indicates the initial use time; Indicates the time difference between the current collection time and the initial usage time.
[0148] As an example, assuming that the preset collection period is 1 year (12 months), and the ratio of the calculated time difference to the preset collection period is less than 1, it can be determined that the current collection time is within the first collection period. For example, if the time difference is 6 months, then the ratio of the time difference (6 months) to the preset collection period (12 months) is less than 1, and the current collection time is within the first collection period. If the ratio of the calculated time difference to the preset collection period is greater than 1 and less than 2, it can be determined that the current collection time is within the second collection period. Similarly, if the ratio of the calculated time difference to the preset collection period is greater than 3 and less than 4, it can be determined that the current collection time is within the fourth collection period.
[0149] As an example, assuming that the preset collection 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 collection period (i.e., within the first year). The start time of the first collection 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 ).
[0150] In the first case, if the current acquisition time (marked by ) In the first collection cycle, if the sliding resistor 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.
[0151] In the second case, if the current acquisition time (marked by ) In the first collection cycle, if the sliding resistor of the oil level sensor is in an abnormal state, the current collection time is intercepted. To the start time of the first collection cycle The first resistance value to the i-th resistance value, the first range extender fuel consumption to the j-th range extender fuel consumption, and the first total refueling amount to the j-th total refueling amount recorded in the time period between; then, according to the basic resistance value, the first resistance value to the i-th resistance value, the first range extender fuel consumption to the j-th range extender fuel consumption, and the first total refueling amount to the j-th total refueling amount, determine the resistance correction coefficient; then, according to the first mapping relationship and the resistance correction coefficient, determine the second mapping relationship (as shown in Table 2 above). Finally, determine the current collection time according to the second mapping relationship The current oil volume corresponding to the current resistance collected.
[0152] When the sliding rheostat remains in an abnormal state, the current acquisition time The following collection time points to the final time point of the first collection cycle The current resistance collected is determined by querying the second mapping relationship in Table 2 to determine the corresponding current oil volume.
[0153] When the preset collection period expires (e.g., one year), and the second collection period (i.e., within the second year) is entered, the first collection period (from the start time) is intercepted. To the final time This period of time) records the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to thej Total refueling amount; then, according to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j The total refueling amount is used to determine a first updated resistance correction coefficient; and the second mapping relationship is corrected according to the first updated resistance correction coefficient to obtain a corrected second mapping relationship.
[0154] Next, when the second acquisition period expires (for example, one year), the first resistance value recorded in the second period (from the start time to the end time of the second period) is intercepted to the first resistance value recorded in the second period. i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount; then, according to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j The total refueling amount is used to determine the second updated resistance correction coefficient, and then the above-corrected second mapping relationship is corrected according to the first updated resistance correction coefficient to obtain the second corrected mapping relationship.
[0155] It can be understood that when the third collection cycle expires, the second mapping relationship corrected after the second collection cycle expires can be iteratively corrected in accordance with the above method, which will not be described in detail herein.
[0156] That is to say, every time a preset collection cycle expires (such as after 1 year), the mapping relationship between the oil volume and the resistance in the previous preset collection cycle can be corrected based on the previous preset collection cycle with reference to the above embodiment, so as to obtain the mapping relationship between the oil volume and the resistance in the next preset collection cycle.
[0157] 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.
[0158] 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.
[0159] 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.
[0160] Figure 3 Schematic diagram of an oil level display device provided in an embodiment of the present application. Figure 3As shown, the oil quantity display device comprises:
[0161] The resistance acquisition module 301 is configured to acquire the current resistance value of the sliding rheostat of the oil level sensor;
[0162] The first display module 302 is configured to determine the current oil volume corresponding to the current resistance value according to a preset first mapping relationship between the oil volume and the resistance if the sliding rheostat is in a normal state, and display the current oil volume on the vehicle instrument;
[0163] The second display module 303 is configured to determine the current oil volume corresponding to the current resistance value according to a preset second mapping relationship between the oil volume and the resistance if the sliding rheostat is in an abnormal state, and display the current oil volume on the vehicle instrument;
[0164] The second mapping relationship is determined by the following steps:
[0165] Determine the basic resistance value of the sliding rheostat of the fuel level sensor when it is in a normal state; wherein the basic resistance value is the data measured by the preset range extender fuel consumption test;
[0166] Record the first resistance value to the second resistance value each time the vehicle fails to start the range extender due to fuel exhaustion. i Resistance value; where, i is an integer ≥ 2;
[0167] Between each time the vehicle is refueled and the next time it is refueled, the fuel consumption of the first range extender is counted to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount; of which, j is an integer ≥ 2;
[0168] According to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total amount of oil added, determine the resistance correction factor;
[0169] A second mapping relationship is determined according to the first mapping relationship and the resistance correction coefficient.
[0170] In some embodiments, the second display module 303 includes a coefficient determination unit, which can be configured to: i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total oil volume, determine resistance correction factor.
[0171] The coefficient determination unit may include:
[0172] The first calculation component is configured to calculate the first resistance value according to the base resistance value and the first resistance value. i Resistance value, calculate the change rate of the first resistance to the i Resistance change rate;
[0173] The second calculation component is configured to calculate the fuel consumption of the first range extender to the first range extender according to the fuel consumption of the first range extender j Range extender fuel consumption and total fueling from the first to the j Total refueling amount, calculate the error rate from the first to the j Error rate;
[0174] The coefficient determination component is configured to change the resistance according to the first resistance change rate to the first resistance change rate. i Resistance change rate and error rate from the first to the second j Error rate, determine the resistance correction factor.
[0175] In some embodiments, the coefficient determination component may be specifically configured as follows:
[0176] Calculate the resistance change rate mean and resistance change rate standard deviation from the first resistance change rate to the i-th resistance change rate;
[0177] Calculate the error mean and error standard deviation of the first error rate to the jth error rate;
[0178] Based on the resistance change rate mean and the resistance change rate standard deviation, screening out at least one target resistance change rate from the first resistance change rate to the i-th resistance change rate;
[0179] Based on the error mean and the error standard deviation, selecting at least one target error rate from the first error rate to the jth error rate;
[0180] The resistance correction coefficient is determined based on the target resistance change rate and the target error rate.
[0181] In some embodiments, determining the resistance correction coefficient according to the target resistance change rate and the target error rate includes:
[0182] According to all target resistance change rates, calculate the average target resistance change rate;
[0183] According to all target error rates, calculate the mean target error rate;
[0184] Counting a first quantity of all target resistance change rates and a second quantity of all target error rates;
[0185] Determining a first weight coefficient and a second weight coefficient according to the first quantity and the second quantity;
[0186] A resistance correction coefficient is calculated according to the target resistance change rate average, the target error rate average, the first weight coefficient and the second weight coefficient.
[0187] In some embodiments, calculating the target resistance change rate average according to all target resistance change rates includes:
[0188] determining a median value of a target resistance change rate among all target resistance change rates;
[0189] Determine the distance value between each target resistance change rate and the median value of the target resistance change rate;
[0190] Determine the distribution coefficient corresponding to each target resistance change rate according to the distance value;
[0191] Based on all target resistance change rates and their distribution coefficients, the target resistance change rate average is calculated.
[0192] In some embodiments, the resistance correction coefficient is calculated according to the target resistance change rate average, the target error rate average, the first weight coefficient and the second weight coefficient, including:
[0193] Calculating a first correction factor according to the target resistance change rate average and a first weight coefficient;
[0194] Calculate a second correction factor according to the target error rate mean and the second weight coefficient;
[0195] A resistance correction factor is calculated based on the first correction factor and the second correction factor.
[0196] In some embodiments, based on the resistance change rate mean and the resistance change rate standard deviation, the resistance change rate from the first resistance change rate to the second resistance change rate is calculated. i At least one target resistance change rate is selected from the resistance change rate, including:
[0197] Determine the upper limit value of the resistance change rate and the lower limit value of the resistance change rate based on the mean value of the resistance change rate and the standard deviation of the resistance change rate;
[0198] If the first resistance change rate is greater than or equal to the resistance change rate upper limit value and less than or equal to the resistance change rate lower limit value, the first resistance change rate is determined as the target resistance change rate;
[0199] Jordi i If the resistance change rate is greater than or equal to the upper limit of the resistance change rate and less than or equal to the lower limit of the resistance change rate, i The resistance change rate is determined as a target resistance change rate.
[0200] In some embodiments, determining the second mapping relationship according to the first mapping relationship and the resistance correction coefficient includes:
[0201] Obtain the first resistance setting value in the first mapping relationship to the K Resistance setting value; where, K is an integer ≥ 2;
[0202] According to the resistance correction coefficient and the first resistance setting value to the K Resistance setting value, determine the first correction resistance value to the P Correction resistance value; where, P is an integer ≥ 2;
[0203] The first resistor setting value in the first mapping relationship is set to K The resistance setting value is updated to the first correction resistance value to the P The resistance value is corrected to obtain a second mapping relationship.
[0204] 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.
[0205] 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.
[0206] 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.
[0207] 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.
[0208] 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.
[0209] 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.
[0210] 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.
[0211] 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 displaying oil quantity, characterized in that: include: Collect the current resistance value of the sliding rheostat of the oil level sensor; If the sliding rheostat is in a normal state, the current oil volume corresponding to the current resistance value is determined according to a preset first mapping relationship between the oil volume and the resistance, and the current oil volume is displayed on the vehicle instrument; If the sliding rheostat is in an abnormal state, the current oil volume corresponding to the current resistance value is determined according to a preset second mapping relationship between the oil volume and the resistance, and the current oil volume is displayed on the vehicle instrument; The second mapping relationship is determined by the following steps: Determine the basic resistance value of the sliding rheostat of the oil level sensor when it is in a normal state; wherein the basic resistance value is data measured by a preset range extender fuel consumption test; Record the first resistance value to the second resistance value each time the vehicle fails to start the range extender due to fuel exhaustion. i Resistance value; where, i is an integer ≥ 2; Between each time the vehicle is refueled and the next time it is refueled, the fuel consumption of the first range extender is counted to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount; of which, j is an integer ≥ 2; According to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total amount of oil added, determine the resistance correction factor; Determining a second mapping relationship according to the first mapping relationship and the resistance correction coefficient; According to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total fuel volume, determine resistance correction factor, including: According to the basic resistance value and the first resistance value to the i Resistance value, calculate the change rate of the first resistance to the i Resistance change rate; According to the fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount, calculate the error rate from the first to the j Error rate; According to the first resistance change rate to the i Resistance change rate and error rate from the first to the second j Error rate, determine the resistance correction factor; According to the first resistance change rate to the i Resistance change rate and error rate from the first to the second j Error rate, determine the resistance correction factor, including: Calculate the first resistance change rate to the i The resistance change rate mean and resistance change rate standard deviation of the resistance change rate; Calculate the error rate from the first to the j Error mean and error standard deviation of error rate; Based on the resistance change rate mean and the resistance change rate standard deviation, from the first resistance change rate to the i Selecting at least one target resistance change rate from the resistance change rates; Based on the error mean and error standard deviation, from the first error rate to the j Selecting at least one target error rate from the error rates; Determining a resistance correction coefficient according to the target resistance change rate and the target error rate; Determining a resistance correction coefficient according to the target resistance change rate and the target error rate includes: Calculating a target resistance change rate average value based on all the target resistance change rates; Calculate the target error rate mean based on all the target error rates; Counting a first quantity of all the target resistance change rates and a second quantity of all the target error rates; Determining a first weight coefficient and a second weight coefficient according to the first quantity and the second quantity; Calculating a resistance correction coefficient according to the target resistance change rate mean, the target error rate mean, the first weight coefficient and the second weight coefficient; According to all the target resistance change rates, the target resistance change rate average is calculated, including: Determining a median value of a target resistance change rate among all the target resistance change rates; Determine a distance value between each of the target resistance change rates and a median value of the target resistance change rate; Determine a distribution coefficient corresponding to each target resistance change rate according to the distance value; Based on all the target resistance change rates and their distribution coefficients, calculating a target resistance change rate average; Calculating a resistance correction coefficient according to the target resistance change rate mean, the target error rate mean, the first weight coefficient and the second weight coefficient includes: Calculating a first correction factor according to the target resistance change rate average and a first weight coefficient; Calculate a second correction factor according to the target error rate mean and a second weight coefficient; A resistance correction coefficient is calculated according to the first correction factor and the second correction factor.
2. The method according to claim 1, characterized in that Based on the resistance change rate mean and the resistance change rate standard deviation, from the first resistance change rate to the i At least one target resistance change rate is selected from the resistance change rate, including: Determine an upper limit value of the resistance change rate and a lower limit value of the resistance change rate based on the resistance change rate mean value and the resistance change rate standard deviation; If the first resistance change rate is greater than or equal to the resistance change rate lower limit value and less than or equal to the resistance change rate upper limit value, determining the first resistance change rate as the target resistance change rate; If the i If the resistance change rate is greater than or equal to the lower limit of the resistance change rate and less than or equal to the upper limit of the resistance change rate, the first i The resistance change rate is determined as a target resistance change rate.
3. The method according to any one of claims 1 to 2, characterized in that Determining a second mapping relationship according to the first mapping relationship and the resistance correction coefficient includes: Obtain the first resistance setting value in the first mapping relationship to the K Resistance setting value; where, K is an integer ≥ 2; According to the resistance correction coefficient and the first resistance setting value to the K Resistance setting value, determine the first correction resistance value to the P Correction resistance value; where, P is an integer ≥ 2; The first resistor setting value in the first mapping relationship is set to K The resistance setting value is updated to the first correction resistance value to the P The resistance value is corrected to obtain a second mapping relationship.
4. An oil level display device, characterized in that: include: A resistance acquisition module is configured to acquire a current resistance value of a sliding rheostat of the oil level sensor; a first display module configured to determine the current oil volume corresponding to the current resistance value according to a preset first mapping relationship between the oil volume and the resistance if the sliding rheostat is in a normal state, and to display the current oil volume on a vehicle instrument; a second display module configured to determine the current oil volume corresponding to the current resistance value according to a preset second mapping relationship between the oil volume and the resistance if the sliding rheostat is in an abnormal state, and to display the current oil volume on a vehicle instrument; The second mapping relationship is determined by the following steps: Determine the basic resistance value of the sliding rheostat of the oil level sensor when it is in a normal state; wherein the basic resistance value is data measured by a preset range extender fuel consumption test; Record the first resistance value to the second resistance value each time the vehicle fails to start the range extender due to fuel exhaustion. i Resistance value; where, i is an integer ≥ 2; Between each time the vehicle is refueled and the next time it is refueled, the fuel consumption of the first range extender is counted to the j Range extender fuel consumption and total fueling from the first to the j Total refueling amount; of which, j is an integer ≥ 2; According to the basic resistance value, the first resistance value to the i Resistance value, fuel consumption of the first range extender to the j Range extender fuel consumption and total fueling from the first to the j Total amount of oil added, determine the resistance correction factor; Determining a second mapping relationship according to the first mapping relationship and the resistance correction coefficient; Determining a resistance correction coefficient according to the basic resistance value, the first resistance value to the i-th resistance value, the first range extender fuel consumption to the j-th range extender fuel consumption, and the first total refueling amount to the j-th total refueling amount includes: Calculating a first resistance change rate to an i-th resistance change rate according to the basic resistance value and the first resistance value to the i-th resistance value; Calculating first to j-th error rates according to the first to j-th range extender fuel consumption and the first to j-th total refueling amounts; Determining a resistance correction coefficient according to the first resistance change rate to the i-th resistance change rate and the first error rate to the j-th error rate; Determining a resistance correction coefficient according to the first resistance change rate to the i-th resistance change rate and the first error rate to the j-th error rate includes: Calculate the resistance change rate mean and resistance change rate standard deviation from the first resistance change rate to the i-th resistance change rate; Calculate the error mean and error standard deviation of the first error rate to the jth error rate; Based on the resistance change rate mean and the resistance change rate standard deviation, screening out at least one target resistance change rate from the first resistance change rate to the i-th resistance change rate; Based on the error mean and the error standard deviation, selecting at least one target error rate from the first error rate to the jth error rate; Determining a resistance correction coefficient according to the target resistance change rate and the target error rate; Determining a resistance correction coefficient according to the target resistance change rate and the target error rate includes: Calculating a target resistance change rate average value based on all the target resistance change rates; Calculate the target error rate mean based on all the target error rates; Counting a first quantity of all the target resistance change rates and a second quantity of all the target error rates; Determining a first weight coefficient and a second weight coefficient according to the first quantity and the second quantity; Calculating a resistance correction coefficient according to the target resistance change rate mean, the target error rate mean, the first weight coefficient and the second weight coefficient; According to all the target resistance change rates, the target resistance change rate average is calculated, including: Determining a median value of a target resistance change rate among all the target resistance change rates; Determine a distance value between each of the target resistance change rates and a median value of the target resistance change rate; Determine a distribution coefficient corresponding to each target resistance change rate according to the distance value; Based on all the target resistance change rates and their distribution coefficients, calculating a target resistance change rate average; Calculating a resistance correction coefficient according to the target resistance change rate mean, the target error rate mean, the first weight coefficient and the second weight coefficient includes: Calculating a first correction factor according to the target resistance change rate average and a first weight coefficient; Calculate a second correction factor according to the target error rate mean and a second weight coefficient; A resistance correction coefficient is calculated according to the first correction factor and the second correction factor.
5. 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 3 are implemented.
6. 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 3 are implemented.
Citation Information
Patent Citations
Oil pump oil quantity sensor of automobile
CN103033238A
Fuel endurance determination method and device and vehicle
CN116279222A