Method and apparatus for estimating remaining fuel amount of fuel tank
By obtaining the pitch angle and roll angle of the entire electric vehicle, and using preset correction data to correct the estimation method of the residual fuel amount of the fuel tank, the problem of inaccurate estimation of the residual fuel amount of the fuel tank when the engine is not working is solved, and the estimation is improved accuracy.
Patent Information
- Application Number
- PCT/CN2024/072676
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-16
- Filing Date
- 2024-01-17
- Publication Date
- 2025-02-20
AI Technical Summary
The estimate of the remaining fuel volume of the fuel tank of an electric vehicle when the engine is not working is inaccurate, which is mainly due to the different attitudes of the vehicle, resulting in inconsistent resistance values of the fuel level sensor, resulting in calculation deviations.
By obtaining the remaining fuel amount of the fuel tank to be corrected, the power control unit obtains the pitch angle and the roll angle of the vehicle. When these angles are non-zero, the remaining fuel amount of the fuel tank to be corrected is corrected using preset correction data.
The estimation accuracy of the fuel tank residual fuel volume is improved and the calculation deviations caused by vehicle attitude changes are reduced.
Smart Images

Figure CN2024072676_20022025_PF_FP_ABST
Abstract
Description
Method and device for estimating remaining fuel amount in a fuel tank Technical Field
[0001] The present invention relates to the technical field of vehicle-mounted instruments, and in particular to a method and device for estimating the remaining fuel amount in a fuel tank. Background Art
[0002] Electric vehicles are new energy vehicles that can run on either pure electric power or hybrid power. Currently, the remaining fuel level in an electric vehicle's high-pressure tank when the engine is not running is calculated primarily by looking up the resistance value of the fuel level sensor.
[0003] However, due to different vehicle postures, the fuel level sensor resistance value corresponding to the same remaining fuel amount may not be the same. Therefore, the above calculation method using only the fuel level resistance value to calculate the remaining fuel amount will produce deviations when the vehicle is parked on a slope, resulting in inaccurate remaining fuel amount in the tank.
[0004] Summary of the Invention
[0005] In view of the above problems, the present invention provides a method and device for estimating the remaining fuel amount in a fuel tank, the main purpose of which is to improve the estimation accuracy of the remaining fuel amount.
[0006] In order to solve the above technical problems, the present invention proposes the following solutions:
[0007] In a first aspect, the present invention provides a method for estimating the remaining fuel amount in a fuel tank, the method comprising:
[0008] Obtaining the remaining fuel amount in the fuel tank to be corrected, wherein the remaining fuel amount in the fuel tank to be corrected is the remaining fuel amount in the fuel tank obtained by looking up a table and calculating the resistance value of the fuel level sensor;
[0009] Based on the obtained remaining fuel amount in the fuel tank to be corrected, the power control unit obtains an effective vehicle pitch angle and a vehicle roll angle;
[0010] When the vehicle pitch angle and / or the vehicle roll angle are non-zero, the remaining fuel amount in the fuel tank to be corrected is corrected using preset correction data based on the vehicle pitch angle and the vehicle roll angle.
[0011] In a second aspect, the present invention provides a device for estimating the remaining fuel amount in a fuel tank, the device comprising:
[0012] a first acquiring unit, configured to acquire a remaining fuel amount in a fuel tank to be corrected, wherein the remaining fuel amount in the fuel tank to be corrected is obtained by looking up a table and calculating the remaining fuel amount in the fuel tank based on a resistance value of a fuel level sensor;
[0013] a second acquiring unit, configured to acquire, by a power control unit, a valid vehicle pitch angle and vehicle roll angle based on the acquired remaining fuel amount in the fuel tank to be corrected;
[0014] The correction unit is configured to correct the remaining fuel amount in the tank to be corrected using preset correction data based on the vehicle pitch angle and the vehicle roll angle when the vehicle pitch angle and / or the vehicle roll angle are non-zero.
[0015] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a storage medium is provided, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for estimating the remaining fuel amount in the tank described in the first aspect.
[0016] In order to achieve the above-mentioned purpose, according to the fourth aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, all or part of the steps of the device for estimating the remaining fuel amount in a fuel tank as described in the second aspect are implemented.
[0017] Through the above-mentioned technical solution, the present invention provides a method and device for estimating the remaining fuel amount in a fuel tank, which addresses the current problem of inaccurate estimation of the remaining fuel amount in the fuel tank of an electric vehicle when the engine is not operating. To this end, the present invention obtains the remaining fuel amount in the fuel tank to be corrected, and the remaining fuel amount in the fuel tank to be corrected is calculated by looking up the table based on the resistance value of the fuel level sensor; based on the obtained remaining fuel amount in the fuel tank to be corrected, the power control unit obtains the effective pitch angle and roll angle of the entire vehicle; when the angle of the entire vehicle pitch angle and / or the entire vehicle roll angle is non-zero, the remaining fuel amount in the fuel tank to be corrected is corrected using preset correction data based on the entire vehicle pitch angle and the entire vehicle roll angle. The present invention improves the accuracy of the remaining fuel amount estimation.
[0018] 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 in accordance with 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 specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0020] FIG1 shows a flow chart of a method for estimating the remaining fuel amount in a fuel tank according to an embodiment of the present invention;
[0021] FIG2 shows a flow chart of another method for estimating the remaining fuel amount in a fuel tank provided by an embodiment of the present invention;
[0022] FIG3 shows a flow chart of another method for estimating the remaining fuel amount in a fuel tank provided by an embodiment of the present invention;
[0023] FIG4 shows a block diagram of a device for estimating the remaining fuel amount in a fuel tank according to an embodiment of the present invention;
[0024] FIG5 shows a block diagram of another device for estimating the remaining fuel amount in a fuel tank provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0026] Explanation of terminology and abbreviations:
[0027] Vehicle pitch angle: pitch angle;
[0028] Vehicle roll angle: rolling angle;
[0029] HCU: power control unit;
[0030] ICU: instrument display;
[0031] ESC: Vehicle Stability Control System;
[0032] IMU: Inertial Measurement Unit;
[0033] EMS: Engine Management System.
[0034] The current problem of inaccurate fuel estimation in electric vehicles when the engine is not running is that the inaccurate fuel estimation is caused by the influence of the vehicle's posture on the position of the liquid in the tank. Therefore, the inventors have come up with the idea of using effective vehicle pitch and roll angles to correct the remaining fuel amount.
[0035] To this end, an embodiment of the present invention provides a method for estimating the remaining fuel amount in a fuel tank. This method improves the accuracy of estimating the remaining fuel amount. The specific steps of the method are shown in FIG1 , including:
[0036] 101. Obtain the remaining fuel amount in the fuel tank to be corrected.
[0037] The remaining fuel amount in the fuel tank to be corrected is the remaining fuel amount in the fuel tank obtained by looking up the table and calculating based on the resistance value of the fuel level sensor.
[0038] Currently, there are two methods for calculating the remaining fuel in a vehicle's tank. The first involves looking up the fuel level sensor's resistance value in a table; the second involves subtracting the current remaining fuel level from the fuel injection volume during engine operation. The first method is applicable when the vehicle's tank is being refilled, leaking, or in good condition while the vehicle is stationary. The second method is applicable when the vehicle's tank is in good condition while in motion.
[0039] The remaining fuel amount in the fuel tank to be corrected in this embodiment is obtained by using the first calculation method when the vehicle is in the condition corresponding to the first calculation method. It should be noted that this embodiment is not applicable to the condition corresponding to the second calculation method.
[0040] 102. Based on the remaining fuel amount in the fuel tank to be corrected, the power control unit obtains a valid vehicle pitch angle and a vehicle roll angle.
[0041] After obtaining the remaining fuel tank amount to be corrected in step 101, the power control unit uses the IMU to obtain the valid vehicle pitch and roll angles. It should be noted that valid vehicle pitch and roll angles are angles that fall within a valid range; the valid range for the vehicle pitch angle is generally [-90° to 90°]; the valid range for the vehicle roll angle is [-180° to 180°].
[0042] 103. When the vehicle pitch angle and / or the vehicle roll angle are non-zero, the remaining fuel amount in the tank to be corrected is corrected using preset correction data based on the vehicle pitch angle and the vehicle roll angle.
[0043] Because the vehicle's pitch and roll angles change in real time based on the vehicle's posture, they generally differ except on horizontal surfaces. Any non-zero value for either the pitch or roll angle indicates a certain degree of tilt in the vehicle's posture. When both the pitch and roll angles are zero, the vehicle is stable, and the liquid level in the fuel tank is relatively stable. Thus, the remaining fuel amount calculated using the fuel level sensor resistance table lookup will not be biased. Conversely, when the pitch and / or roll angles are non-zero, the vehicle is tilted, and the liquid level in the fuel tank is tilted. Consequently, the remaining fuel amount calculated using the fuel level sensor resistance table lookup will be biased. Therefore, to address the issue of biased calculations of the remaining fuel amount in the fuel tank when the vehicle is tilted, this embodiment provides preset correction data for correcting errors.
[0044] This preset correction data includes a table of vehicle pitch and roll angles and corresponding fuel tank remaining fuel correction coefficients. This table is derived from test results of fuel tank remaining fuel and fuel level sensor resistance at various vehicle pitch and roll angles. For example, at a vehicle pitch angle of 0° and a vehicle roll angle of 0°, a 247.7Ω resistor corresponds to a remaining fuel tank amount of 10L. However, at a vehicle pitch angle of 30° and a vehicle roll angle of 0°, a 247.7Ω resistor corresponds to a remaining fuel tank amount of 7L. Therefore, the correction coefficient for a 30° vehicle pitch angle is 10 / 7.
[0045] After obtaining the effective vehicle pitch angle and vehicle roll angle from step 102, first determine whether the angle value of the vehicle pitch angle and vehicle roll angle is non-zero; if so, then refer to the fuel tank remaining fuel correction coefficient table based on the vehicle pitch angle and vehicle roll angle to correct the fuel tank remaining fuel obtained in step 101.
[0046] For example:
[0047] Assume the vehicle's remaining fuel tank capacity is 18L. The collected valid vehicle pitch angle is "5°" and the vehicle roll angle is "0°." The correction coefficient corresponding to the preset correction data for the vehicle pitch angle of "5°" and the vehicle roll angle of "0°" is known to be 1.11. Therefore, the corrected remaining fuel tank capacity is 19.98L.
[0048] Based on the implementation method of Figure 1 above, it can be seen that the present invention provides a method for estimating the remaining fuel amount in a fuel tank, which introduces the pitch angle and roll angle of the entire vehicle, and corrects the remaining fuel amount in the fuel tank according to the two angle values based on preset correction data, thereby improving the accuracy of the remaining fuel amount calculation.
[0049] Furthermore, since the vehicle's pitch angle and roll angle are obtained by corresponding sensors, in order to eliminate the impact of invalid sensor values on the vehicle's remaining fuel level, this embodiment introduces sensor signal validity judgment as a refinement and expansion of step 102 in the embodiment shown in Figure 1, providing another method for estimating the remaining fuel level in the tank.
[0050] Because the effectiveness of the vehicle pitch and roll angles during the inertial navigation controller power-up and post-power-up phases is different and unstable, using invalid vehicle pitch and roll angles to correct the remaining fuel level in the tank will cause a sudden change in their values. Therefore, this embodiment designs different acquisition methods for the inertial navigation controller power-up and post-power-up phases to obtain valid vehicle pitch and roll angles. As shown in Figure 2, the specific steps are as follows:
[0051] 201. During the power-on phase of the inertial navigation controller, the power control unit obtains the historical vehicle pitch angle and historical vehicle roll angle corresponding to the last time the inertial navigation controller was powered off from pre-stored historical data as the effective vehicle pitch angle and vehicle roll angle.
[0052] During the power-on phase of the inertial navigation controller, the vehicle pitch and roll angles are in the process of being repaired. Therefore, the values at this time are inaccurate and unusable. Therefore, the vehicle pitch and roll angles during the power-on phase are invalid. To address this issue, this embodiment first stores the historical vehicle pitch and roll angles at the last power-off time of the inertial navigation controller. During the current power-on phase, these stored historical vehicle pitch and roll angles can be used as the valid vehicle pitch and roll angles for correcting the remaining fuel in the tank.
[0053] 202. After the inertial navigation controller is powered on, the power control unit collects the vehicle pitch angle and the vehicle roll angle in real time through the inertial navigation controller, and determines whether the vehicle pitch angle and the vehicle roll angle are valid.
[0054] After the inertial navigation controller undergoes the power-on phase of step 201, it enters the normal operation phase after power-on. Under normal circumstances, the vehicle pitch angle and vehicle roll angle collected in real time by the power control unit through the inertial navigation controller are valid. However, due to occasional power supply line problems or inertial navigation controller quality issues, the collected vehicle pitch angle and vehicle roll angle values may change from being within the valid range to being outside the valid range, that is, the vehicle pitch angle and vehicle roll angle change from being valid to being invalid. Therefore, this embodiment is configured to determine whether the vehicle pitch angle and vehicle roll angle are valid. The judgment is based on identifying whether the vehicle pitch angle and vehicle roll angle angle are within the valid range. If so, the vehicle pitch angle and vehicle roll angle are determined to be valid; if not, the vehicle is determined to be invalid. The valid range is [-90° to 90°].
[0055] This step can promptly detect invalid vehicle pitch and roll angles, thus avoiding incorrect correction of the remaining fuel amount in the tank.
[0056] 203. When the vehicle pitch angle and vehicle roll angle are valid, they are directly obtained;
[0057] If the vehicle pitch angle and vehicle roll angle obtained in step 202 are valid, they can be directly obtained and used.
[0058] 204. When the vehicle pitch angle and the vehicle roll angle are invalid, the preset calculation rules are used to recalculate the valid vehicle pitch angle and vehicle roll angle.
[0059] When the vehicle pitch angle and vehicle roll angle obtained from step 202 are invalid, they need to be recalculated using a preset calculation rule to obtain valid vehicle pitch angle and vehicle roll angle.
[0060] The preset calculation rule includes calculating the vehicle pitch angle using a preset formula and resetting the vehicle roll angle to 0. The preset formula for calculating the vehicle pitch angle is as follows: du / dt=a x -g*sinθ
[0061] Among them, u represents the longitudinal speed of the vehicle, t represents the time, represents the longitudinal acceleration of the vehicle, g is the acceleration due to gravity, and θ is the pitch angle of the vehicle.
[0062] The reason for resetting the vehicle roll angle to 0 is to better reflect normal vehicle driving conditions. When the vehicle roll angle is greater than 0, it indicates that the vehicle is in varying degrees of lateral tilt, representing an abnormal driving condition that is not covered by this embodiment and is not considered. This setting is done to directly set the vehicle roll angle to 0 for normal driving conditions, reducing the number of calculation steps required for unusual situations and improving efficiency.
[0063] Based on the implementation of FIG. 2 , it can be seen that the present invention provides a method for estimating the remaining fuel amount in a fuel tank. This method introduces sensor signal validity judgment. When power is first applied and the inertial navigation controller signal is invalid, the stored values of the two angles are used to correct the remaining fuel amount. If the signal value is invalid during driving, the vehicle pitch angle is calculated according to the kinematic equation, and the roll angle is directly set to 0 considering the actual driving conditions. This ensures that the inertial navigation controller can obtain valid vehicle pitch and roll angles at different stages, preventing sudden changes in the remaining fuel amount.
[0064] Furthermore, due to the difference between the vehicle tank status and the vehicle driving status, the method of calculating the remaining fuel amount in the tank will be different. The remaining fuel amount to be corrected in the present invention refers to the remaining fuel amount in the tank obtained by looking up the table based on the resistance value of the fuel level sensor. In order to clearly and accurately obtain the remaining fuel amount to be corrected, this embodiment introduces the tank status judgment logic and the fuel level sensor resistance judgment logic as a refinement and expansion of step 101 of the embodiment shown in Figure 1, providing another method for estimating the remaining fuel amount in the tank.
[0065] Since the fuel tank status judgment logic of this embodiment is based on the effective fuel level sensor resistance value, the fuel level sensor resistance judgment logic is designed to be placed before the fuel tank status judgment logic, as shown in FIG3 . The specific steps are as follows:
[0066] 301. During the power-on phase of the engine controller, the power control unit obtains, from pre-stored historical data, a historical fuel level sensor resistance value corresponding to the last time the engine controller was powered off, as a valid fuel level sensor resistance value.
[0067] Since the resistance value of the fuel level sensor will be in an invalid state for a certain period of time when the engine controller is powered on, in order to ensure that the valid resistance value of the fuel level sensor can be obtained during the power-on phase of the engine controller, this embodiment first stores the historical resistance value of the fuel level sensor at the time the engine controller was last powered off. During the current power-on phase, the stored historical resistance value of the fuel level sensor can be first obtained as the valid resistance value of the fuel level sensor.
[0068] 302. After the engine controller is powered on, the power control unit collects the resistance value of the fuel level sensor in real time through the engine controller and determines whether the resistance value of the fuel level sensor is valid.
[0069] After the engine controller undergoes the power-up phase in step 301, it enters the normal operation phase after power-up. Under normal circumstances, the fuel level sensor resistance value collected in real time by the power control unit via the engine controller is valid. However, occasional power supply line problems or inertial navigation controller quality issues can cause the collected fuel level sensor resistance value to fall outside the valid range, effectively turning the fuel level sensor resistance value from valid to invalid. Therefore, this embodiment provides a method for determining whether the fuel level sensor resistance value is valid. The determination is based on whether the fuel level sensor resistance value falls within the valid range. If so, the fuel level sensor is determined to be valid; if not, the fuel level sensor is determined to be invalid. The valid range is [30Ω to 300Ω].
[0070] 303. When the resistance value of the fuel level sensor is valid, it is directly obtained.
[0071] If the resistance value of the fuel level sensor obtained in step 302 is valid, it can be directly obtained and used.
[0072] 304. When the resistance value of the fuel level sensor is invalid, it is discarded and the remaining fuel amount in the tank is not updated during this power-on cycle.
[0073] If the fuel level sensor resistance value obtained in step 302 is invalid, subsequent operations cannot be performed. Therefore, this embodiment discards it and does not update the remaining fuel amount in the tank during this power-on cycle. The remaining fuel amount in the tank is updated only after a valid fuel level sensor resistance value is obtained next time.
[0074] 305. Identify the fuel tank status based on the change information of the effective fuel level sensor resistance within a preset time.
[0075] The fuel tank status includes a refueling status, an oil leakage status and a normal status.
[0076] After the power control unit obtains the effective fuel level sensor resistance value through the engine controller in step 303, it identifies the fuel tank status according to the change information of the effective fuel level sensor resistance value within a preset time.
[0077] Specifically, when the resistance value of the fuel level sensor changes in the direction of increasing fuel volume by more than a preset threshold within a preset time, the fuel tank is determined to be in a refueling state; when the resistance value of the fuel level sensor changes in the direction of decreasing fuel volume by more than a preset threshold within a preset time, the fuel tank is determined to be in a leaking state. When the fuel tank is neither in a refueling state nor in a leaking state, the fuel tank is determined to be in a normal state.
[0078] 306. When the fuel tank state is a refueling state or a fuel leaking state, the remaining fuel amount in the fuel tank is allowed to jump, and a table lookup calculation is performed based on the resistance value of the fuel level sensor to obtain the remaining fuel amount in the fuel tank to be corrected.
[0079] 307. When the fuel tank status is normal, the driving status of the vehicle is further identified.
[0080] After determining that the fuel tank status is normal in step 305, it is necessary to identify the vehicle's driving state. This is because the remaining fuel in the tank to be corrected in this embodiment is calculated by looking up the resistance value of the fuel level sensor. Typically, when the vehicle is in driving mode, the engine fuel injection amount is integrated to calculate the cumulative fuel consumption. The remaining fuel in the tank is then calculated by subtracting the current remaining fuel amount from the cumulative fuel consumption when the engine is operating. Therefore, this embodiment excludes the case where the vehicle is in driving mode.
[0081] The driving status of the vehicle can be identified based on the vehicle speed, engine working status, etc., which is a conventional technical means and is not specifically limited in this embodiment.
[0082] 308. When the vehicle is stationary, a table lookup calculation is performed based on the resistance value of the fuel level sensor to obtain the remaining fuel amount in the fuel tank to be corrected.
[0083] From step 307, it is determined that when the vehicle is stationary, a table lookup is performed based on the resistance value of the fuel level sensor to obtain the remaining fuel in the tank to be corrected. Based on the implementation of FIG3 , it can be seen that the present invention provides a method for estimating the remaining fuel in a fuel tank. This method incorporates logic for determining the fuel tank state and the resistance value of the fuel level sensor, refines the remaining fuel calculation scenarios, reduces the remaining fuel calculation logic in refueling or oil leak scenarios, and improves system calculation efficiency.
[0084] Furthermore, in order to facilitate and accurately use the vehicle pitch angle and the vehicle roll angle to correct the remaining fuel amount in the fuel tank, in another preferred embodiment of the present invention, the preset correction data can also be set according to the corresponding relationship between the angles of the vehicle pitch angle and the vehicle roll angle and the change in the remaining fuel amount in the fuel tank.
[0085] Furthermore, as an implementation of the method shown in FIG. 1 , an embodiment of the present invention also provides a device for estimating the remaining fuel in a tank, for implementing the method shown in FIG. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not further detail the aforementioned method embodiment. However, it should be understood that the device in this embodiment is capable of implementing all of the aforementioned method embodiments. As shown in FIG. 4 , the device includes:
[0086] The first acquiring unit 31 is configured to acquire the remaining fuel amount in the fuel tank to be corrected, wherein the remaining fuel amount in the fuel tank to be corrected is calculated by looking up a table based on the resistance value of the fuel level sensor;
[0087] a second acquiring unit 32 configured to acquire, by a power control unit, an effective vehicle pitch angle and a vehicle roll angle based on the acquired remaining fuel amount in the fuel tank to be corrected obtained from the first acquiring unit 31;
[0088] The correction unit 33 is configured to correct the remaining fuel amount in the tank to be corrected using preset correction data based on the vehicle pitch angle and the vehicle roll angle obtained from the second acquisition unit 32 when the vehicle pitch angle and / or the vehicle roll angle are non-zero.
[0089] Furthermore, as an implementation of the method shown in Figures 2-3 above, an embodiment of the present invention also provides another device for estimating the remaining fuel in a tank, which is used to implement the method shown in Figures 2-3 above. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not further elaborate on the details of the aforementioned method embodiment. However, it should be clear that the device in this embodiment is capable of implementing all of the aforementioned method embodiments. As shown in Figure 5, the device includes:
[0090] The setting unit 34 is configured to set the preset correction data according to a correspondence between the vehicle pitch angle, the vehicle roll angle, and a change in the remaining fuel amount in the tank.
[0091] The first acquiring unit 31 is configured to acquire the remaining fuel amount in the fuel tank to be corrected, wherein the remaining fuel amount in the fuel tank to be corrected is obtained by looking up the table and calculating the resistance value of the fuel level sensor;
[0092] a second acquiring unit 32 configured to acquire, by a power control unit, an effective vehicle pitch angle and a vehicle roll angle based on the acquired remaining fuel amount in the fuel tank to be corrected obtained from the first acquiring unit 31;
[0093] The correction unit 33 is configured to correct the remaining fuel amount in the tank to be corrected based on the vehicle pitch angle and the vehicle roll angle obtained from the second acquisition unit 32 and the preset correction data obtained from the setting unit 34 when the vehicle pitch angle and / or the vehicle roll angle are non-zero.
[0094] Furthermore, the second acquiring unit 32 includes:
[0095] The first acquisition module 321 is configured to, when the inertial navigation controller is powered on, cause the power control unit to obtain, from pre-stored historical data, the historical vehicle pitch angle and historical vehicle roll angle corresponding to the last time the inertial navigation controller was powered off, as the valid vehicle pitch angle and vehicle roll angle;
[0096] a judgment module 322 configured to, after the inertial navigation controller is powered on, cause the power control unit to collect the vehicle pitch angle and the vehicle roll angle in real time through the inertial navigation controller, and to determine whether the vehicle pitch angle and the vehicle roll angle are valid;
[0097] A second acquisition module 323 is configured to directly acquire the vehicle pitch angle and the vehicle roll angle obtained from the judgment module 322 if they are valid;
[0098] The calculation module 324 is configured to recalculate valid vehicle pitch angles and vehicle roll angles using preset calculation rules when the vehicle pitch angle and vehicle roll angle obtained from the judgment module 322 are invalid.
[0099] Furthermore, the calculation module 324 includes:
[0100] The calculation submodule 3241 is used to calculate the effective pitch angle of the vehicle using a preset formula; wherein the preset formula is as follows: du / dt=a x -g*sinθ
[0101] Where u represents the longitudinal speed, t represents the time, represents the longitudinal acceleration of the vehicle, g represents the acceleration due to gravity, and θ represents the pitch angle of the vehicle.
[0102] The setting submodule 3242 is used to set the vehicle roll angle to 0.
[0103] Furthermore, the first acquiring unit 31 includes:
[0104] An acquisition module 311 is configured for the power control unit to acquire a valid resistance value of the fuel level sensor through an engine controller;
[0105] A first identification module 312 is configured to identify a fuel tank state based on the effective information on the change in the resistance value of the fuel level sensor within a preset time obtained from the acquisition module 311; wherein the fuel tank state includes a refueling state, a fuel leakage state, and a normal state;
[0106] a first calculation module 313 configured to, when the fuel tank status obtained from the first identification module 312 is a refueling state or a fuel leakage state, allow the remaining fuel amount in the fuel tank to jump, and perform a table lookup calculation based on the resistance value of the fuel level sensor to obtain the remaining fuel amount in the fuel tank to be corrected;
[0107] a second recognition module 314, configured to further recognize the driving state of the vehicle when the fuel tank state obtained from the first recognition module 312 is normal;
[0108] The second calculation module 315 is configured to, when the driving state of the vehicle obtained from the second identification module 314 is stationary, perform a table lookup calculation based on the resistance value of the fuel level sensor to obtain the remaining fuel amount in the fuel tank to be corrected.
[0109] Furthermore, the first identification module 312 includes:
[0110] The first determination module 3121 is configured to determine that the fuel tank state is refueling when the resistance value of the fuel level sensor changes in the direction of increasing fuel amount and exceeds a preset threshold within a preset time.
[0111] The second determination module 3122 is configured to determine that the fuel tank is in a leaking state when the resistance value of the fuel level sensor changes in a direction of decreasing fuel quantity by more than a preset threshold value within a preset time.
[0112] Furthermore, the acquisition module 311 includes:
[0113] The first acquisition submodule 3111 is configured to, during the power-on phase of the engine controller, cause the power control unit to acquire, from pre-stored historical data, a historical fuel level sensor resistance value corresponding to the last time the engine controller was powered off, as a valid fuel level sensor resistance value;
[0114] a judgment submodule 3112 configured to, after the engine controller is powered on, cause the power control unit to collect the resistance value of the fuel level sensor in real time through the engine controller and to determine whether the resistance value of the fuel level sensor is valid;
[0115] A second acquisition submodule 3113 is configured to directly acquire the fuel level sensor resistance value obtained from the judgment submodule 3112 if the fuel level sensor resistance value is valid;
[0116] The discarding submodule 3114 is configured to discard the fuel level sensor resistance value obtained from the judging submodule 3112 when it is invalid, and the remaining fuel amount in the tank is not updated in this power-on cycle.
[0117] Furthermore, an embodiment of the present invention also provides a processor, which is used to run a program, wherein when the program is run, the method for estimating the remaining fuel amount in the fuel tank described in Figures 1-2 above is executed.
[0118] Furthermore, an embodiment of the present invention also provides a storage medium, which is used to store a computer program, wherein when the computer program is running, it controls the device where the storage medium is located to execute the method for estimating the remaining fuel amount in the tank described in Figures 1-2 above.
[0119] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] It is understood that the relevant features of the above methods and devices can be referenced to each other. In addition, the terms "first" and "second" in the above embodiments are used to distinguish between the embodiments, and do not represent the advantages and disadvantages of the embodiments.
[0121] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0122] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general-purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the best mode of the present invention.
[0123] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0124] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0125] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.
[0126] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0128] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0129] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0130] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0131] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0133] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A method for estimating the amount of remaining fuel in a fuel tank, characterized in that: The method comprises: Acquire the remaining fuel amount in the fuel tank to be corrected, wherein the remaining fuel amount in the fuel tank to be corrected is the remaining fuel amount in the fuel tank obtained by looking up a table and calculating the resistance value of the fuel level sensor; Based on the obtained remaining fuel amount in the fuel tank to be corrected, the power control unit obtains an effective vehicle pitch angle and a vehicle roll angle; When the vehicle pitch angle and / or the vehicle roll angle is non-zero, the remaining fuel amount in the fuel tank to be corrected is corrected using preset correction data based on the vehicle pitch angle and the vehicle roll angle.
2. The method according to claim 1, characterized in that The power control unit obtains effective vehicle pitch angle and vehicle roll angle, including: During the power-on phase of the inertial navigation controller, the power control unit obtains the historical vehicle pitch angle and the historical vehicle roll angle corresponding to the last power-off of the inertial navigation controller from pre-stored historical data as the effective vehicle pitch angle and vehicle roll angle; After the inertial navigation controller is powered on, the power control unit collects the vehicle pitch angle and the vehicle roll angle in real time through the inertial navigation controller, and determines whether the vehicle pitch angle and the vehicle roll angle are valid; When the vehicle pitch angle and the vehicle roll angle are valid, they are directly acquired; When the vehicle pitch angle and the vehicle roll angle are invalid, a preset calculation rule is used to recalculate the valid vehicle pitch angle and the vehicle roll angle.
3. The method according to claim 2, characterized in that When the vehicle pitch angle and the vehicle roll angle are invalid, recalculating the valid vehicle pitch angle and the vehicle roll angle by using a preset calculation rule includes: The effective pitch angle of the whole vehicle is calculated using a preset formula; wherein the preset formula is as follows: du / dt=a x -g*sinθ Among them, u represents the longitudinal speed, t represents the time, a x represents the longitudinal acceleration of the vehicle, g is the acceleration due to gravity, and θ is the pitch angle of the vehicle; Set the vehicle roll angle to 0.
4. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining the remaining fuel amount in the fuel tank to be corrected includes: The power control unit obtains the effective resistance value of the fuel level sensor through the engine controller; Identify the fuel tank status according to the change information of the effective fuel level sensor resistance value within a preset time; wherein the fuel tank status includes refueling status, oil leakage status and normal status; When the fuel tank is in a refueling state or a leaking state, the remaining fuel amount in the fuel tank is allowed to jump, and a table lookup calculation is performed based on the resistance value of the fuel level sensor to obtain the remaining fuel amount in the fuel tank to be corrected; When the fuel tank state is normal, further identifying the driving state of the vehicle; When the vehicle is in a stationary state, a table lookup calculation is performed based on the resistance value of the fuel level sensor to obtain the remaining fuel amount in the fuel tank to be corrected.
5. The method according to claim 4, characterized in that When the resistance value of the fuel level sensor is valid, identifying the fuel tank state according to the change information of the resistance value of the fuel level sensor within a preset time includes: When the resistance value of the fuel level sensor changes in the direction of increasing the amount of fuel within a preset time and exceeds a preset threshold, it is determined that the fuel tank state is a refueling state; When the resistance value of the fuel level sensor changes in the direction of oil quantity reduction within a preset time and exceeds a preset threshold, it is determined that the fuel tank state is an oil leakage state.
6. The method according to claim 5, characterized in that The power control unit obtains the effective resistance value of the fuel level sensor through the engine controller, including: During the power-on phase of the engine controller, the power control unit obtains the historical fuel level sensor resistance value corresponding to the last power-off of the engine controller from pre-stored historical data as the effective fuel level sensor resistance value; After the engine controller is powered on, the power control unit collects the resistance value of the fuel level sensor in real time through the engine controller, and determines whether the resistance value of the fuel level sensor is valid; When the resistance value of the fuel level sensor is valid, it is directly acquired; When the resistance value of the fuel level sensor is invalid, it is discarded, and the remaining fuel amount in the fuel tank is not updated in this power-on cycle.
7. The method according to claim 1, characterized in that The method further comprises: The preset correction data is set according to the correspondence between the angles of the whole vehicle pitch angle and the whole vehicle roll angle and the change in the remaining fuel amount in the fuel tank.
8. A device for estimating the amount of remaining fuel in a fuel tank, characterized in that: include: A first acquisition unit is used to acquire the remaining fuel amount in the fuel tank to be corrected, wherein the remaining fuel amount in the fuel tank to be corrected is obtained by looking up a table based on the resistance value of the fuel level sensor; A second acquisition unit is used for the power control unit to acquire a valid vehicle pitch angle and vehicle roll angle based on the acquired remaining fuel amount in the fuel tank to be corrected; The correction unit is used to correct the remaining fuel amount in the fuel tank to be corrected by using preset correction data based on the pitch angle of the whole vehicle and the roll angle of the whole vehicle when the pitch angle of the whole vehicle and / or the roll angle of the whole vehicle is non-zero.
9. A storage medium comprising a stored program, characterized in that: When the program is running, the device where the storage medium is located is controlled to execute the method for estimating the remaining fuel amount in the tank as described in any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for estimating the remaining fuel amount in the tank as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Fuel quantity displaying method and system
CN103940492A
Method and system for measuring fuel surplus
CN107121171A
Oil quantity detection method and oil tank of engineering vehicle
CN109000749A
Method and device for determining oil quantity of vehicle and computer equipment
CN110514268A
Vehicle remaining oil quantity detection method and device, vehicle and storage medium
CN111238600A