Method, device and equipment for calculating residual fuel quantity of vehicle and medium
By using pitch angle and roll angle to correct the resistance value of the liquid level sensor in hybrid vehicles, the theoretical residual oil volume of the oil tank is calculated, and the measurement inaccuracy caused by liquid level fluctuations is solved and the measurement accuracy is improved.
Patent Information
- Application Number
- CN202411897430.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-01
AI Technical Summary
In hybrid vehicles, the fluctuation of the fuel level in the fuel tank causes the residual fuel quantity to be measured inaccurately.
The level resistance detected by the level sensor is corrected by the vehicle's pitch angle and roll angle, and the theoretical residual oil volume of the oil tank is calculated to compensate for the impact of liquid level fluctuations.
The accuracy of the determination of the residual fuel amount of the fuel tank is improved, making it closer to the actual residual fuel amount.
Smart Images

Figure CN119738014A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method, device, equipment and medium for calculating the remaining fuel amount of a vehicle. Background Art
[0002] A hybrid vehicle is a vehicle whose driving system is composed of two or more single driving systems that can operate simultaneously. The vehicle's driving power is provided by the single driving systems alone or together according to the actual vehicle driving state. The remaining fuel of a hybrid vehicle is very important in determining its fuel range.
[0003] In the related art, the remaining fuel amount in the fuel tank is obtained by looking up a table based on the resistance signal of the fuel tank level sensor. However, when the vehicle is driving, the fuel level in the fuel tank will fluctuate, resulting in inaccurate remaining fuel amount finally measured. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide a method, device, equipment and medium for calculating the remaining fuel amount of a vehicle that solves the above problems. The liquid level resistance detected by the liquid level sensor can be corrected by the pitch angle and roll angle of the vehicle to compensate for the impact of liquid level fluctuations, and then the theoretical remaining fuel amount in the fuel tank at the current moment is calculated based on the corrected resistance value, so that the theoretical remaining fuel amount is closer to the actual remaining fuel amount in the fuel tank.
[0005] In a first aspect, the present invention provides a method for calculating the remaining fuel amount of a vehicle, the method comprising:
[0006] At each collection moment, the pitch angle, roll angle and liquid level resistance value of the vehicle and the oil tank are collected, and the liquid level resistance value is corrected based on the pitch angle and the roll angle to obtain a target corrected resistance value; wherein the collection moment is determined within a target time period based on a preset collection frequency;
[0007] Based on the preset correlation between the resistance value and the oil quantity, the oil quantity collection value of the oil tank is predicted according to each of the target corrected resistance values;
[0008] If the vehicle's state is a non-target state, the theoretical remaining oil volume in the fuel tank at the current moment is determined based on all the oil volume sampling values, and the current moment is the end moment of the target time period; the non-target state is a state other than the target state, and the target state includes the refueling state and the draining state.
[0009] Optionally, the correcting the liquid level resistance value based on the pitch angle and the roll angle to obtain a target corrected resistance value includes:
[0010] The liquid level resistance is corrected based on the pitch angle to obtain a first corrected resistance, the liquid level resistance is corrected based on the roll angle to obtain a second corrected resistance, and an average value of the first corrected resistance and the second corrected resistance is calculated to obtain a target corrected resistance.
[0011] Optionally, determining the theoretical remaining fuel volume of the fuel tank at the current moment based on all the fuel volume sampling values includes:
[0012] Averaging all the oil quantity collection values to obtain the average oil quantity collection value at the current moment;
[0013] The average oil volume collected value is filtered to obtain the theoretical remaining oil volume of the oil tank at the current moment.
[0014] Optionally, filtering the average oil volume collected value to obtain the theoretical remaining oil volume of the oil tank at the current moment includes:
[0015] Obtaining the shape regularity of the fuel tank of the vehicle;
[0016] Determining a first filter coefficient according to the shape regularity; wherein the first filter coefficient is positively correlated with the shape regularity;
[0017] Performing a first-order filtering on the average oil quantity collected value based on the first filtering coefficient to obtain the filtered remaining oil quantity at the current moment;
[0018] The theoretical remaining fuel volume of the fuel tank at the current moment is calculated according to the filtered remaining fuel volume at the current moment.
[0019] Optionally, calculating the theoretical remaining fuel volume of the fuel tank at the current moment according to the filtered remaining fuel volume at the current moment includes:
[0020] Obtain the pre-stored historical theoretical remaining oil volume;
[0021] If the historical theoretical remaining oil volume is a valid value, determining a target difference between the filtered remaining oil volume at the current moment and the historical theoretical remaining oil volume, and determining a second filter coefficient based on the target difference; wherein the target difference is negatively correlated with the second filter coefficient;
[0022] The filtered remaining fuel volume at the current moment is first-order filtered using the second filter coefficient to obtain the theoretical remaining fuel volume of the fuel tank at the current moment.
[0023] Optionally, after obtaining the pre-stored historical theoretical remaining oil volume, the method further includes:
[0024] If the historical remaining fuel quantity is an invalid value, the fuel quantity collected at the current moment is determined as the theoretical remaining fuel quantity of the fuel tank at the current moment.
[0025] Optionally, after predicting and obtaining the oil volume collection value of the oil tank according to each of the target corrected resistance values based on the preset correlation between the resistance value and the oil volume, the method further includes:
[0026] If the state of the vehicle is the target state, the fuel volume collected at the current moment is determined as the theoretical remaining fuel volume of the fuel tank at the current moment.
[0027] In a second aspect, the present invention provides a device for calculating the remaining fuel amount of a vehicle, the device comprising:
[0028] A correction module, used for collecting the pitch angle, roll angle and liquid level resistance value of the vehicle and the fuel tank at each collection time, and correcting the liquid level resistance value based on the pitch angle and the roll angle to obtain a target correction resistance value; wherein the collection time is determined within a target time period based on a preset collection frequency;
[0029] A prediction module, configured to predict the oil volume collection value of the oil tank according to each of the target corrected resistance values based on a preset correlation between the resistance value and the oil volume;
[0030] The first determination module is used to determine the theoretical remaining oil volume of the oil tank at the current moment based on all the oil volume sampling values if the state of the vehicle is a non-target state, and the current moment is the end moment of the target time period; the non-target state is a state other than the target state, and the target state includes a refueling state and a draining state.
[0031] In a third aspect, the present invention provides an electronic device comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method described in the first aspect by executing the computer instructions.
[0032] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0033] The technical solution provided in the embodiments of the present invention has at least the following technical effects or advantages:
[0034] A method, device, equipment and medium for calculating the remaining fuel amount of a vehicle provided by an embodiment of the present invention can collect the pitch angle, roll angle and liquid level resistance value of the vehicle and the fuel tank at each collection moment, and correct the liquid level resistance value based on the pitch angle and roll angle to obtain a target corrected resistance value, thereby eliminating the influence of the vehicle tilting on the liquid level resistance value; wherein the collection moment is determined within a target time period based on a preset collection frequency; based on the preset association between the resistance value and the fuel amount, the fuel amount collection value of the fuel tank is predicted according to each target corrected resistance value, and the fuel amount sampling value of the fuel tank is first predicted based on the liquid level situation; if the state of the vehicle is a non-target state, indicating that the vehicle has not been refueled or drained, then based on all the fuel amount sampling values, the theoretical remaining fuel amount of the fuel tank at the current moment is determined, thereby avoiding the influence of the vehicle's tilt angle on the liquid level resistance value of the fuel tank, so that the theoretical remaining fuel amount at the current moment is more accurate.
[0035] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0037] Figure 1 is a flow chart of a method for calculating the remaining fuel amount of a vehicle provided by an embodiment of the present invention;
[0038] Figure 2 The present invention is a structural block diagram of a device for calculating the remaining fuel amount of a vehicle provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present application clearer, the implementation mode of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the embodiments of the present disclosure and the specific features in the embodiments are detailed descriptions of the technical solutions of the present application, rather than limitations on the technical solutions of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0040] Figure 1 is a flow chart of a method for calculating the remaining fuel amount of a vehicle provided by an embodiment of the present invention. Figure 1 As shown, the method includes:
[0041] Step S110: At each collection moment, the pitch angle, roll angle and liquid level resistance value of the fuel tank of the vehicle are collected, and the liquid level resistance value is corrected based on the pitch angle and roll angle to obtain a target corrected resistance value.
[0042] The collection time is determined within the target time period based on the preset collection frequency. The pitch angle of the vehicle refers to the angle between the front and rear direction of the vehicle and the ground plane, and the roll angle of the vehicle refers to the angle between the left and right direction of the vehicle and the ground plane.
[0043] In the embodiment of the present application, the pitch angle and roll angle of the vehicle can be detected by the ramp sensor, and the liquid level resistance of the fuel tank can be detected by the liquid level sensor. The pitch angle range is [-90°~90°]. If the pitch angle is a negative number, it means that the vehicle may be going downhill and the front of the vehicle is tilted downward. If the pitch angle is a positive number, it means that the vehicle may be going uphill and the front of the vehicle is tilted upward. If the pitch angle is 0, it means that the vehicle is not tilted forward or backward. The roll angle range is [-90°~90°]. If the roll angle is a negative number, it means that the vehicle may be tilted to the left. If the roll angle is a positive number, it means that the vehicle may be tilted to the right. If the roll angle is 0, it means that the vehicle is not tilted left or right.
[0044] The pitch angle, roll angle and liquid level resistance of the vehicle are collected once at each collection moment, and the liquid level resistance is corrected by the pitch angle and roll angle to eliminate the influence of the sloped lane on the liquid level resistance, and obtain the target corrected resistance that can reflect the actual liquid level of the fuel tank.
[0045] It should be noted that if there are multiple acquisition moments within the target time period, multiple target corrected resistance values will be obtained and recorded one by one corresponding to each acquisition moment.
[0046] Step S120: Based on the preset correlation between the resistance value and the oil amount, the oil amount collection value of the oil tank is predicted according to each target corrected resistance value.
[0047] In the embodiment of the present application, each target corrected resistance value predicts an oil volume collection value based on the correlation between the resistance value and the oil volume, and ultimately the number of oil volume collection values is determined by the number of target corrected resistance values.
[0048] Exemplarily, the association relationship is a relationship table, and Table 1 is a relationship table between resistance value and oil volume, and Table 1 is as follows:
[0049] Table 1
[0050] Oil volume (L) 3 7 15 23 31 39 47 55 61 Resistance(Ω) 350 315 183 239 195 151 107 63 30
[0051] As shown in Table 1, the oil volume corresponding to the target corrected resistance value can be found from the relationship table, and the oil volume is the oil volume collection value of the fuel tank.
[0052] Step S130: If the state of the vehicle is a non-target state, the theoretical remaining fuel volume of the fuel tank at the current moment is determined based on all fuel volume sampling values.
[0053] The current time is the end time of the target time period, and the target time period may be 10 seconds, 1 minute, or 2 minutes, etc., and may be set according to actual conditions.
[0054] The non-target state is a state other than the target state, and the target state includes a refueling state and a draining state.
[0055] In an embodiment of the present application, if the state of the vehicle is a non-target state, it means that the vehicle is not refueling or draining oil, the refueling port of the fuel tank is in a closed state, the vehicle may be in a normal driving state, and the engine may be in a starting state. At this time, it is necessary to determine the theoretical remaining oil volume in the fuel tank at the current moment based on all the oil volume sampling values. This method compensates for the impact of liquid level fluctuations, and then calculates the theoretical remaining oil volume in the fuel tank at the current moment based on the oil volume sampling value corresponding to the corrected resistance value, so that the theoretical remaining oil volume is closer to the actual remaining oil volume in the fuel tank.
[0056] Optionally, if the state of the vehicle is the target state, the fuel volume collected at the current moment is determined as the theoretical remaining fuel volume in the fuel tank at the current moment.
[0057] In an embodiment of the present application, if the state of the vehicle is the target state, it means that the vehicle is refueling or draining oil. At this time, the engine of the vehicle is in a stopped state, and the actual remaining oil amount in the fuel tank will change with the progress of refueling or draining oil. The change in the remaining oil amount is directly related to the amount of refueling or draining oil. At this time, the corrected target correction resistance value at the current moment is more accurate. Therefore, the oil amount collection value at the current moment is directly determined as the theoretical remaining oil amount in the fuel tank. The real-time change of the oil amount sampling value represents the real-time change of the theoretical remaining oil amount.
[0058] Optionally, step S110 includes:
[0059] The liquid level resistance is corrected based on the pitch angle to obtain a first corrected resistance, the liquid level resistance is corrected based on the roll angle to obtain a second corrected resistance, and the average of the first corrected resistance and the second corrected resistance is calculated to obtain a target corrected resistance.
[0060] In the embodiment of the present application, there is an association between the pitch angle, the liquid level resistance value and the first corrected resistance value. Based on this association, the first corrected resistance value after correction can be obtained by using the pitch angle and the liquid level resistance value. The first corrected resistance value eliminates the influence of the front and rear tilt of the vehicle on the liquid level of the fuel tank, and reflects the liquid level resistance value of the fuel tank when the vehicle is not tilted front and rear. There is also an association between the roll angle, the liquid level resistance value and the second corrected resistance value. Based on this association, the second corrected resistance value after correction can be obtained by using the roll angle and the liquid level resistance value. The second corrected resistance value eliminates the influence of the left and right tilt of the vehicle on the liquid level of the fuel tank, and reflects the liquid level resistance value of the fuel tank when the vehicle is not tilted left and right. Finally, the average value of the first corrected resistance value and the second corrected resistance value is used as the target corrected resistance value, so that the target corrected resistance value can more truly reflect the liquid level of the fuel tank.
[0061] Exemplarily, the correlation between the pitch angle, the liquid level resistance value and the first correction resistance value can be represented by a relationship table, as shown in Table 2:
[0062] Table 2
[0063]
[0064]
[0065] As shown in Table 2, according to the pitch angle α1 of the horizontal coordinate and the liquid level resistance value R of the vertical coordinate, the corresponding first correction resistance value is found from Table 2.
[0066] The correlation between the roll angle, liquid level resistance and the second correction resistance is shown in Table 3:
[0067] Table 3
[0068]
[0069] As shown in Table 3, according to the roll angle α2 of the horizontal coordinate and the liquid level resistance value R of the vertical coordinate, the corresponding second corrected resistance value is found from Table 3.
[0070] Optionally, step S130 includes:
[0071] Step S1301: average all the oil quantity collection values to obtain the average oil quantity collection value at the current moment.
[0072] In the embodiment of the present application, since the liquid level in the fuel tank will shake while the vehicle is driving, the influence of the liquid level shaking on the fuel quantity collection value is eliminated by calculating the average value.
[0073] Specifically, the average value of all the oil quantity collection values in the target time period is taken as the average oil quantity collection value at the current moment. The current moment is also the end moment of the target time period. For example, the average value of all the oil quantity collection values within 1 minute before the current moment is calculated to obtain the average oil quantity collection value at the current moment.
[0074] For example, the interval between two adjacent sampling moments is 100ms, the duration of the target time period is 1s, there will be 10 oil volume collection values within 1s, and the average oil volume collection value of the current second is the average of the 10 oil volume collection values. Similarly, the average oil volume collection value within 10s is the average of the sum of the average oil volume collection values of each 1s in 10s, and the average oil volume collection value within 1min is the average of the sum of the average oil volume collection values of each 10s in 1min. The last second of the 1min is the current moment, and the average oil volume collection value at the current moment is the average of the sum of the average oil volume collection values of each 10s in 1min.
[0075] Step S1302: filter the average oil volume collected value to obtain the theoretical remaining oil volume in the oil tank at the current moment.
[0076] In an embodiment of the present application, the theoretical remaining fuel volume in the fuel tank at the current moment will be displayed on the vehicle's fuel gauge. In order to ensure the smoothness of the data displayed on the fuel gauge, the average fuel volume collection value can be filtered. The filtered average fuel volume collection value is used as the theoretical remaining fuel volume in the fuel tank at the current moment and is displayed on the fuel gauge to let the owner know the remaining fuel volume of the vehicle.
[0077] Optionally, step S1302 includes:
[0078] The first step is to obtain the shape regularity of the vehicle's fuel tank.
[0079] In the embodiments of the present application, the shapes of fuel tanks of different vehicles may be different, and fuel tanks of different shapes may have an impact on the prediction of the theoretical remaining fuel volume of the fuel tank at the current moment. For example, when vehicles pass through the same road, the fuel level in a regular fuel tank will fluctuate less, while the fuel level in an irregular fuel tank will fluctuate more. Therefore, the regularity of the shapes of different fuel tanks can be characterized by shape regularity. The larger the shape regularity, the more regular the shape, and the smaller the shape regularity, the more irregular the shape.
[0080] The second step is to determine the first filter coefficient according to the shape regularity.
[0081] Among them, the first filter coefficient is positively correlated with the shape regularity.
[0082] In the embodiment of the present application, different shape regularities correspond to different first filter coefficients. The greater the shape regularity, the greater the first filter coefficient; the smaller the shape regularity, the smaller the first filter coefficient.
[0083] The third step is to perform a first-order filter on the average oil volume collection value based on the first filter coefficient to obtain the filtered remaining oil volume at the current moment.
[0084] In the embodiment of the present application, the first-order filtering formula is as follows:
[0085] Vproc(t)=Vproc(t-1)+[Vavrg(t)- Vproc(t-1)]× F / 10000; (1)
[0086] Among them, Vproc(t) represents the filtered remaining oil volume at the current moment, Vproc(t-1) represents the filtered remaining oil volume at the previous moment, Vavrg(t) represents the average oil volume collection value at the current moment, and F represents the filter coefficient. The value range of F is 0 to 10000. When F=10000, the filtered remaining oil volume fluctuates with the fluctuation of the average oil volume collection value; when F=0, the filtered remaining oil volume at the current moment is equal to the filtered remaining oil volume at the previous moment, that is, the filtered remaining oil volume remains unchanged.
[0087] It should be noted that the filtered remaining fuel volume at the current moment must be stored after each filtering. Finally, a filtered remaining fuel volume will be stored for each moment. During the next filtering, the filtered remaining fuel volume at the previous moment is the filtered remaining fuel volume at the current moment stored at the previous moment. If the vehicle is powered off and then powered on, the filtered remaining fuel volume at the previous moment is the filtered remaining fuel volume stored for the last time before the vehicle was powered off. If the average fuel volume collection value is filtered for the first time after the vehicle is refueled or drained, the filtered remaining fuel volume at the previous moment is the fuel volume collection value at the current moment.
[0088] Step 4: Calculate the theoretical remaining fuel volume in the fuel tank at the current moment based on the filtered remaining fuel volume at the current moment.
[0089] In an embodiment of the present application, the theoretical remaining fuel amount in the fuel tank at the current moment is calculated based on the filtered remaining fuel amount at the current moment, so that the theoretical remaining fuel amount at the current moment can be closer to the actual remaining fuel amount in the fuel tank.
[0090] Optionally, the fourth step includes:
[0091] Obtain the pre-stored historical theoretical remaining fuel amount; if the historical theoretical remaining fuel amount is a valid value, determine the target difference between the filtered remaining fuel amount at the current moment and the historical theoretical remaining fuel amount, and determine the second filter coefficient based on the target difference; wherein the target difference is negatively correlated with the second filter coefficient; perform a first-order filter on the filtered remaining fuel amount at the current moment with the second filter coefficient to obtain the theoretical remaining fuel amount in the fuel tank at the current moment.
[0092] In the embodiment of the present application, in order to make the theoretical remaining fuel volume of the fuel tank at the current moment predicted more accurately, a second first-order filtering may be performed. The formula of the second first-order filtering is as follows:
[0093] Vdisp(t)=Vdisp(t-1)+[Vproc(t)-Vdisp(t-1)]×K; (2)
[0094] Among them, Vdisp(t) represents the theoretical remaining fuel volume at the current moment, Vdisp(t-1) represents the historical theoretical remaining fuel volume, Vproc(t) represents the filtered remaining fuel volume at the current moment, and K represents the second filter coefficient. The value range of K is 0 to 100, and the historical theoretical remaining fuel volume can be the theoretical remaining fuel volume at the previous moment.
[0095] It should be noted that the theoretical remaining fuel volume at the current moment must be stored after each second filtering. Finally, a theoretical remaining fuel volume will be stored for each moment. During the next second filtering, the theoretical remaining fuel volume at the previous moment is the theoretical remaining fuel volume at the current moment stored at the previous moment. If the vehicle is powered off and then powered on, the theoretical remaining fuel volume at the previous moment is the theoretical remaining fuel volume stored for the last time before the vehicle was powered off. If the filtered remaining fuel volume is filtered for the first time after the vehicle is refueled or drained, the theoretical remaining fuel volume at the previous moment is the fuel volume collection value at the current moment.
[0096] Among them, since the fuel level normally decreases while the vehicle is driving, if Vproc(t)-Vdisp(t-1) is greater than or equal to 0, the theoretical remaining fuel level Vdisp(t) at the current moment is equal to the historical theoretical remaining fuel level Vdisp(t-1), that is, the theoretical remaining fuel level remains unchanged; if Vproc(t)-Vdisp(t-1) is less than 0, the theoretical remaining fuel level at the current moment is calculated based on formula (2).
[0097] In the embodiment of the present application, the second filter coefficient is determined based on the target difference between the filtered remaining oil volume at the current moment and the historical theoretical remaining oil volume; the target difference is negatively correlated with the second filter coefficient. Determining the second filter coefficient based on the target difference includes: determining the second filter coefficient corresponding to the target difference based on the association relationship between the preset target difference and the second filter coefficient.
[0098] Exemplarily, the correlation between the target difference and the second filter coefficient is shown in Table 4:
[0099] Table 4
[0100]
[0101]
[0102] As shown in Table 4, the first column represents the target difference, and the second column represents the second filter coefficient, so the corresponding second filter coefficient can be found from Table 4 according to the target difference.
[0103] Optionally, the method further includes:
[0104] If the historical remaining fuel volume is an invalid value, the fuel volume collected at the current moment is determined as the theoretical remaining fuel volume in the fuel tank at the current moment.
[0105] In an embodiment of the present application, if the historical remaining fuel amount is an invalid value, it will affect the smooth progress of the second filtering. Therefore, at this time, there is no need to perform a second filtering. Instead, the fuel amount collection value at the current moment is directly determined as the theoretical remaining fuel amount in the fuel tank at the current moment.
[0106] The theoretical remaining oil amount at the current moment of the method in the embodiment of the present application comprehensively considers the liquid level resistance, pitch angle and roll angle of the oil tank, corrects the liquid level resistance according to the pitch angle and roll angle, and reduces the influence of the slope on the oil amount sampling value; finally, the oil amount sampling value is averaged and filtered to minimize the influence of liquid level shaking on the theoretical remaining oil amount.
[0107] In order to better understand the above-mentioned method for calculating the remaining fuel amount of a vehicle, an example of the method for calculating the remaining fuel amount of a vehicle of the present application is described in detail below:
[0108] When the vehicle is traveling on an uphill section, the pitch angle α1, roll angle α2 and liquid level resistance R of the fuel tank are collected at each collection moment. The first correction resistance R1 is obtained by looking up Table 2 according to the liquid level resistance R and the pitch angle α1; the second correction resistance R2 is obtained by looking up Table 3 according to the liquid level resistance R and the pitch angle α2; the average value of R1 and R2 is calculated to obtain the target correction resistance Ravrg = (R1 + R2) / 2. The oil volume sampling value Vsamp at each sampling moment is obtained by looking up Table 1 according to the target correction resistance Ravrg at each sampling moment.
[0109] Among them, the liquid level resistance value range output by the liquid level sensor is 30Ω-350Ω, and the corresponding oil volume range of the oil tank is 61L-3L.
[0110] Next, the vehicle is not in the state of refueling or draining oil at this time, so the average value of all the oil volume sampling values within one minute before the current moment is calculated to obtain the average oil volume collection value Vavrg 1min , the average oil volume collection value Vavrg 1min The first filter coefficient is used to perform a first-order filter to obtain the filtered remaining fuel volume Vproc(t), and then the filtered remaining fuel volume Vproc(t) is filtered for the second time with the second filter coefficient to obtain the theoretical remaining fuel volume Vdisp(t) at the current moment. Among them, the first filter coefficient is determined according to the shape regularity of the fuel tank, and the second filter coefficient is determined according to the target difference between the filtered remaining fuel volume Vproc(t) at the current moment and the pre-stored historical theoretical remaining fuel volume Vdisp(t-1), and the historical theoretical remaining fuel volume is a valid value.
[0111] Based on the same inventive concept, an embodiment of the present invention further provides a device for calculating the remaining fuel amount of a vehicle. Figure 2 is a structural block diagram of a device for calculating the remaining fuel amount of a vehicle provided by an embodiment of the present invention, such as Figure 2 As shown, the device 200 includes a correction module 201 , a prediction module 202 and a first determination module 203 .
[0112] The correction module 201 is used to collect the pitch angle, roll angle and liquid level resistance value of the vehicle and the fuel tank at each collection time, and correct the liquid level resistance value based on the pitch angle and roll angle to obtain a target correction resistance value; wherein the collection time is determined within the target time period based on a preset collection frequency;
[0113] The prediction module 202 is used to predict the oil volume collection value of the oil tank according to each target corrected resistance value based on the preset correlation relationship between the resistance value and the oil volume;
[0114] The first determination module 203 is used to determine the theoretical remaining fuel volume in the fuel tank at the current moment based on all fuel volume sampling values if the vehicle is in a non-target state, and the current moment is the end moment of the target time period; the non-target state is a state other than the target state, and the target state includes the refueling state and the draining state.
[0115] Optionally, the correction module 201 is further used for:
[0116] The liquid level resistance is corrected based on the pitch angle to obtain a first corrected resistance, the liquid level resistance is corrected based on the roll angle to obtain a second corrected resistance, and the average of the first corrected resistance and the second corrected resistance is calculated to obtain a target corrected resistance.
[0117] Optionally, the first determining module 203 includes:
[0118] A calculation unit, used for averaging all the oil quantity collection values to obtain an average oil quantity collection value at the current moment;
[0119] The filtering unit is used to filter the average oil volume collected value to obtain the theoretical remaining oil volume in the oil tank at the current moment.
[0120] Optionally, the filtering unit includes:
[0121] An acquisition subunit, used to acquire the shape regularity of the fuel tank of the vehicle;
[0122] A determination subunit, used to determine a first filter coefficient according to the shape regularity; wherein the first filter coefficient is positively correlated with the shape regularity;
[0123] A filtering subunit, used for performing a first-order filtering on the average oil quantity collected value based on a first filtering coefficient to obtain a filtered remaining oil quantity at a current moment;
[0124] The calculation subunit is used to calculate the theoretical remaining fuel volume of the fuel tank at the current moment according to the filtered remaining fuel volume at the current moment.
[0125] Optionally, the computing subunit is further used for:
[0126] Obtain the pre-stored historical theoretical remaining oil volume;
[0127] If the historical theoretical remaining fuel volume is a valid value, determine the target difference between the filtered remaining fuel volume at the current moment and the historical theoretical remaining fuel volume, and determine the second filter coefficient based on the target difference; wherein the target difference is negatively correlated with the second filter coefficient;
[0128] The filtered remaining fuel volume at the current moment is first-order filtered using the second filter coefficient to obtain the theoretical remaining fuel volume in the fuel tank at the current moment.
[0129] Optionally, the computing subunit is further used for:
[0130] If the historical remaining fuel volume is an invalid value, the fuel volume collected at the current moment is determined as the theoretical remaining fuel volume in the fuel tank at the current moment.
[0131] Optionally, the apparatus 200 further includes a second determining module, configured to:
[0132] If the state of the vehicle is the target state, the fuel volume collected at the current moment is determined as the theoretical remaining fuel volume of the fuel tank at the current moment.
[0133] It can be understood that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0134] An embodiment of the present invention further provides an electronic device, which may include a processor and a memory, wherein the processor and the memory may be communicatively connected to each other via a bus or other means.
[0135] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application, or may also be 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 and other chips, or a combination of the above-mentioned chips.
[0136] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the electronic device. In a particular embodiment, the memory may be a non-volatile solid-state memory.
[0137] In one example, the memory may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0138] The processor implements any one of the methods for calculating the remaining fuel amount of the vehicle in the above embodiments by reading and executing computer program instructions stored in the memory.
[0139] In one example, the electronic device may further include a communication interface and a bus. Among them, the processor, memory, and communication interface are connected through a bus and communicate with each other. The communication interface is mainly used to realize the communication between the modules, devices, units and / or devices in the embodiment of the present application. Where appropriate, the bus may include one or more buses.
[0140] In addition, in combination with the method for calculating the remaining fuel amount of a vehicle in the above embodiments, an embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the methods for calculating the remaining fuel amount of a vehicle in the above embodiments is implemented.
[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0142] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0143] The present invention provides a method, device, equipment and medium for calculating the remaining fuel amount of a vehicle. The method can collect the pitch angle, roll angle and liquid level resistance value of the vehicle and the liquid level resistance value of the fuel tank at each collection time, and correct the liquid level resistance value based on the pitch angle and roll angle to obtain the target correction resistance value, thereby eliminating the influence of the vehicle on the liquid level resistance value when it is tilted; wherein the collection time is determined based on the preset collection frequency within the target time period; based on the preset association between the resistance value and the oil amount, the oil amount collection value of the fuel tank is predicted according to each target correction resistance value, and the oil amount sampling value of the fuel tank is first predicted based on the liquid level; if the state of the vehicle is a non-target state, indicating that the vehicle has not been refueled or drained, then based on all the oil amount sampling values, the theoretical remaining oil amount of the fuel tank at the current moment is determined, so that the theoretical remaining oil amount at the current moment is more accurate. The current moment is the end moment of the target time period; the non-target state is a state other than the target state, and the target state includes the refueling state and the draining state. The method makes the theoretical remaining oil amount at the current moment closer to the actual remaining oil amount in the fuel tank at the current moment.
[0144] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0145] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0146] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "one" or "an" preceding a component does not exclude the presence of a plurality of such components. The present invention may be implemented by means of hardware comprising a number of different components and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A method for calculating the remaining fuel amount of a vehicle, characterized in that: The method comprises: At each collection moment, the pitch angle, roll angle and liquid level resistance value of the vehicle and the oil tank are collected, and the liquid level resistance value is corrected based on the pitch angle and the roll angle to obtain a target corrected resistance value; wherein the collection moment is determined within a target time period based on a preset collection frequency; Based on the preset correlation between the resistance value and the oil quantity, the oil quantity collection value of the oil tank is predicted according to each of the target corrected resistance values; If the vehicle's state is a non-target state, the theoretical remaining oil volume in the fuel tank at the current moment is determined based on all the oil volume sampling values, and the current moment is the end moment of the target time period; the non-target state is a state other than the target state, and the target state includes the refueling state and the draining state.
2. The method for calculating the remaining fuel amount of a vehicle according to claim 1, characterized in that: The step of correcting the liquid level resistance value based on the pitch angle and the roll angle to obtain a target corrected resistance value comprises: The liquid level resistance is corrected based on the pitch angle to obtain a first corrected resistance, the liquid level resistance is corrected based on the roll angle to obtain a second corrected resistance, and an average value of the first corrected resistance and the second corrected resistance is calculated to obtain a target corrected resistance.
3. The method for calculating the remaining fuel amount of a vehicle according to claim 1, characterized in that: The step of determining the theoretical remaining fuel volume of the fuel tank at the current moment based on all the fuel volume sampling values includes: Averaging all the oil quantity collection values to obtain the average oil quantity collection value at the current moment; The average oil volume collected value is filtered to obtain the theoretical remaining oil volume of the oil tank at the current moment.
4. The method for calculating the remaining fuel amount of a vehicle according to claim 3, characterized in that: The filtering process of the average oil quantity collected value to obtain the theoretical remaining oil quantity of the oil tank at the current moment includes: Obtaining the shape regularity of the fuel tank of the vehicle; Determining a first filter coefficient according to the shape regularity; wherein the first filter coefficient is positively correlated with the shape regularity; Performing a first-order filtering on the average oil quantity collected value based on the first filtering coefficient to obtain the filtered remaining oil quantity at the current moment; The theoretical remaining fuel volume of the fuel tank at the current moment is calculated according to the filtered remaining fuel volume at the current moment.
5. The method for calculating the remaining fuel amount of a vehicle according to claim 4, characterized in that: The calculating the theoretical remaining fuel volume of the fuel tank at the current moment according to the filtered remaining fuel volume at the current moment comprises: Obtain the pre-stored historical theoretical remaining oil volume; If the historical theoretical remaining oil volume is a valid value, determining a target difference between the filtered remaining oil volume at the current moment and the historical theoretical remaining oil volume, and determining a second filter coefficient based on the target difference; wherein the target difference is negatively correlated with the second filter coefficient; The filtered remaining fuel volume at the current moment is first-order filtered using the second filter coefficient to obtain the theoretical remaining fuel volume of the fuel tank at the current moment.
6. The method for calculating the remaining fuel amount of a vehicle according to claim 5, characterized in that: After obtaining the pre-stored historical theoretical remaining oil volume, the method further includes: If the historical remaining fuel quantity is an invalid value, the fuel quantity collected at the current moment is determined as the theoretical remaining fuel quantity of the fuel tank at the current moment.
7. The method for calculating the remaining fuel amount of a vehicle according to claim 1, characterized in that: After obtaining the oil volume collection value of the oil tank according to each target corrected resistance value prediction based on the preset correlation relationship between the resistance value and the oil volume, the method further includes: If the state of the vehicle is the target state, the fuel volume collected at the current moment is determined as the theoretical remaining fuel volume of the fuel tank at the current moment.
8. A device for calculating the remaining fuel amount of a vehicle, characterized in that: The device comprises: A correction module, used for collecting the pitch angle, roll angle and liquid level resistance value of the vehicle and the fuel tank at each collection time, and correcting the liquid level resistance value based on the pitch angle and the roll angle to obtain a target correction resistance value; wherein the collection time is determined within a target time period based on a preset collection frequency; A prediction module, configured to predict the oil volume collection value of the oil tank according to each of the target corrected resistance values based on a preset correlation between the resistance value and the oil volume; The first determination module is used to determine the theoretical remaining oil volume of the oil tank at the current moment based on all the oil volume sampling values if the state of the vehicle is a non-target state, and the current moment is the end moment of the target time period; the non-target state is a state other than the target state, and the target state includes a refueling state and a draining state.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Fuel tank residual oil amount detection method and device, and vehicle
CN106556441A
Vehicle remaining oil quantity detection method and device, vehicle and storage medium
CN111238600A
Method and device for determining oil mass change of vehicle and computer readable storage medium
CN114111934A
Method and device for estimating residual fuel quantity of fuel tank
CN117146926A
Vehicle fuel quantity estimation method, device and equipment and storage medium
CN118817021A