Fuel tank oil quantity correction method, device, electronic equipment and storage medium
By real-time detection of the oil quantity value of the oil quantity sensor and calculating the oil quantity deviation value, the problem of oil quantity detection error caused by the oil quantity sensor oxidation is solved, and the accuracy and stability of oil quantity detection are achieved.
Patent Information
- Application Number
- CN202411665298.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-20
AI Technical Summary
After using the oil quantity sensor for a long time, it is easy to generate oxides, resulting in abnormal resistance and incorrect oil quantity detection.
By real-time detection of the oil quantity value of the oil quantity sensor, we can determine whether it meets the oil quantity change trend during the refueling process. If it does not meet, it will be determined as an error value. Based on the error value and the non-error value, the oil quantity deviation value is calculated, and the oil quantity value to be corrected is recorded at the end of refueling. If the deviation value meets the preset conditions, the oil quantity correction is performed to obtain the corrected oil quantity value.
It effectively avoids oil quantity detection errors caused by oxidation of oil quantity sensors, improves the accuracy of oil quantity detection, and prevents abnormal fluctuations in oil quantity values.
Smart Images

Figure CN119147082B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a method, a device, an electronic device and a storage medium for correcting the amount of oil in a fuel tank. Background Art
[0002] In vehicles that use fuel-powered engines or range extenders, fuel level sensors are currently commonly used to detect the amount of fuel in the tank. However, after a long period of use, the surface of the fuel level sensor is prone to oxide formation, which causes abnormal feedback resistance of the fuel level sensor, resulting in some problems. For example, these problems include: abnormal increase in the resistance value of the fuel level sensor when the vehicle is stationary; resistance value fluctuations when the fuel is full, resulting in the inability to correctly display the fuel level; incorrect fuel level display during vehicle driving, etc. Summary of the invention
[0003] In view of this, in order to solve some or all of the above technical problems, an embodiment of the present invention provides a method, device, electronic device and storage medium for correcting the oil level in a fuel tank.
[0004] In a first aspect, an embodiment of the present invention provides a method for correcting the oil quantity in a fuel tank, the method comprising: in a process of refueling the fuel tank, obtaining a first oil quantity value obtained by detecting the oil quantity in the fuel tank by an oil quantity sensor; if the first oil quantity value does not conform to the oil quantity change trend during the refueling process, determining the first oil quantity value as an erroneous oil quantity value; if the oil quantity value detected again conforms to a preset oil quantity deviation calculation condition, determining an oil quantity deviation value based on the erroneous oil quantity value detected at a first target historical moment and the non-erroneous oil quantity value detected at a second target historical moment; in response to the end of the refueling process, recording the oil quantity value to be corrected obtained by the detection, and determining whether the obtained oil quantity deviation value meets the preset oil quantity correction condition; if the oil quantity correction condition is met, determining an oil quantity correction value based on the obtained oil quantity deviation value; and correcting the oil quantity value to be corrected based on the oil quantity correction value to obtain a corrected oil quantity value.
[0005] In a possible implementation, the fuel quantity deviation calculation condition includes any one of the following: the fuel quantity value detected again conforms to the fuel quantity change trend, and the refueling process ends after the fuel quantity value that does not conform to the fuel quantity change trend is detected again.
[0006] In one possible implementation, based on the obtained oil quantity deviation value, an oil quantity correction value is determined, including: calculating the average value of each oil quantity deviation value, and determining the current oil quantity deviation threshold; taking the minimum value between the average value and the oil quantity deviation threshold as the oil quantity correction value.
[0007] In a possible implementation, determining the current fuel level deviation threshold includes: determining a current pressure value of the fuel tank; and determining, according to a preset first correspondence table, a fuel level deviation threshold corresponding to the pressure value as the current fuel level deviation threshold.
[0008] In a possible implementation manner, the oil quantity correction condition includes: the number of calculated oil quantity deviation values reaches a preset number.
[0009] In one possible implementation, after the oil quantity value to be corrected is corrected based on the oil quantity correction value to obtain the corrected oil quantity value, the method further includes: during the driving process of the vehicle in which the fuel tank is located, based on the calculated oil quantity deviation value, estimating the detection error degree of the oil quantity sensor to obtain an estimation result; if the estimation result indicates that the detection error degree is less than a preset degree threshold, obtaining a second oil quantity value currently collected by the oil quantity sensor; determining the current remaining oil quantity ratio based on the second oil quantity value and the historical remaining oil quantity ratio determined in the previous detection cycle; if the estimation result indicates that the detection error degree is greater than or equal to the detection error degree threshold, obtaining the current injection quantity signal; determining the current remaining oil quantity ratio based on the injection quantity signal and the historical remaining oil quantity ratio determined in the previous detection cycle.
[0010] In one possible implementation, the current remaining fuel ratio is determined based on the second fuel level value and the historical remaining fuel ratio determined in the previous detection cycle, including: determining the fuel level value of the previous detection cycle based on the historical remaining fuel ratio; if the second fuel level value is less than the fuel level value of the previous detection cycle, determining the corresponding estimated fuel injection amount according to the current driving speed of the vehicle; determining the current remaining fuel ratio based on the fuel level value and the estimated fuel injection amount of the previous detection cycle; if the second fuel level value is greater than or equal to the fuel level value of the previous detection cycle, setting the current remaining fuel ratio to be the same as the historical remaining fuel ratio.
[0011] In one possible implementation, a corresponding fuel injection amount estimation value is determined according to the current driving speed of the vehicle, including: determining an initial fuel injection amount estimation value corresponding to the current driving speed of the vehicle based on a preset second correspondence table; obtaining a current fuel injection amount signal, and calculating a fuel injection amount threshold value based on a preset coefficient and the fuel injection amount signal; and taking the minimum value between the initial fuel injection amount estimation value and the fuel injection amount threshold value as the fuel injection amount estimation value corresponding to the current driving speed of the vehicle.
[0012] In one possible implementation, the detection error degree of the oil level sensor is estimated to obtain an estimation result, including: if the number of calculated oil level deviation values is less than a preset number, and / or the oil level correction value is less than a preset threshold, generating an estimation result indicating that the detection error degree is lower than the detection error degree threshold; if the number of calculated oil level deviation values is greater than or equal to the preset number, and / or the oil level correction value is greater than or equal to the preset threshold, generating an estimation result indicating that the detection error degree is greater than or equal to the detection error degree threshold.
[0013] In a second aspect, an embodiment of the present invention provides a fuel tank oil quantity correction device, the device comprising: a first acquisition module, used to obtain a first oil quantity value obtained by detecting the oil quantity in the fuel tank by an oil quantity sensor during the process of refueling the fuel tank; a first determination module, used to determine the first oil quantity value as an erroneous oil quantity value if the first oil quantity value does not conform to the oil quantity change trend during the refueling process; a second determination module, used to determine the oil quantity deviation value based on the erroneous oil quantity value detected at the first target historical moment and the non-erroneous oil quantity value detected at the second target historical moment if the re-detected oil quantity value conforms to the preset oil quantity deviation calculation condition; a third determination module, used to record the oil quantity value to be corrected obtained by the detection in response to the end of the refueling process, and determine whether the obtained oil quantity deviation value meets the preset oil quantity correction condition; a fourth determination module, used to determine the oil quantity correction value based on the obtained oil quantity deviation value if the oil quantity correction condition is met; and a correction module, used to correct the oil quantity value to be corrected based on the oil quantity correction value to obtain a corrected oil quantity value.
[0014] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the method for correcting the fuel tank fuel level of the first aspect of the present invention is implemented.
[0015] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, a method as in any embodiment of the method for correcting the fuel level in the fuel tank of the first aspect is implemented.
[0016] In a fifth aspect, an embodiment of the present invention provides a computer program, which includes a computer readable code. When the computer readable code is executed on a device, the processor in the device implements a method as in any embodiment of the method for correcting the fuel tank fuel level in the first aspect described above.
[0017] The fuel tank oil quantity correction method, device, electronic device and storage medium provided by the embodiment of the present invention detects the oil quantity value in real time by the oil quantity sensor during the process of refueling the fuel tank. If the oil quantity value does not conform to the oil quantity change trend during the refueling process, the oil quantity deviation value is determined based on the erroneous oil quantity value detected at the first target historical moment and the non-erroneous oil quantity value detected at the second target historical moment. At the end of the refueling process, the oil quantity value to be corrected is recorded, and when the oil quantity deviation value meets the oil quantity correction condition, the oil quantity correction value is determined based on the obtained oil quantity deviation value. Finally, based on the oil quantity correction value, the oil quantity value to be corrected is corrected to obtain the corrected oil quantity value. The embodiment of the present invention realizes the deviation correction of the oil quantity value detected by the oil quantity sensor during refueling, avoids the oil quantity detection error in the mailbox caused by abnormal scenes such as oxidation of the oil quantity sensor, and avoids abnormal fluctuations in the oil quantity value displayed on the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0021] Figure 1 A schematic flow chart of a method for correcting the amount of oil in a fuel tank provided by an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of a driving circuit of an oil level sensor provided in an embodiment of the present invention;
[0023] Figure 3 A flow chart for determining an oil quantity deviation value provided by an embodiment of the present invention;
[0024] Figure 4 A schematic flow chart of a second method for correcting the amount of oil in a fuel tank provided by an embodiment of the present invention;
[0025] Figure 5 A schematic flow chart of a third method for correcting the amount of fuel in a fuel tank provided by an embodiment of the present invention;
[0026] Figure 6 A schematic flow chart of a fourth method for correcting the amount of fuel in a fuel tank provided by an embodiment of the present invention;
[0027] Figure 7 A schematic flow chart of a fifth method for correcting the amount of fuel in a fuel tank provided by an embodiment of the present invention;
[0028] Figure 8 A schematic structural diagram of a fuel tank fuel quantity correction device provided by an embodiment of the present invention;
[0029] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the parts and steps, the numerical expressions and the numerical values set forth in these embodiments do not limit the scope of the present invention.
[0031] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present invention are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0032] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0033] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0034] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0035] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0036] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0037] Technologies, circuits, and devices known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, circuits, and devices should be considered as part of the specification.
[0038] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0039] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0040] In order to solve the technical problem that the oil level sensor in the prior art has incorrect oil level values due to oxidation and other phenomena, the present invention provides a tank oil level correction method, which can correct the oil level value according to the changing trend of the oil level value, thereby improving the accuracy of oil level detection and avoiding abnormal fluctuations in the oil level value.
[0041] Figure 1 The present invention provides a flowchart of a method for correcting the fuel tank fuel level according to an embodiment of the present invention. The method can be applied to one or more electronic devices on a vehicle, for example, the method can be executed by one or more controllers on the vehicle.
[0042] Optionally, the method may also be executed by one or more electronic devices that are communicatively connected to the vehicle, such as a server, a smart phone, a personal computer, etc. When the method is executed by these devices, the oil level value may be obtained from the oil level sensor on the vehicle, and the oil level value may be corrected, and the corrected oil level value may be fed back to the controller on the vehicle.
[0043] In addition, the execution subject of the present method may be hardware or software. When the execution subject is hardware, the execution subject may be one or more of the electronic devices. For example, a single electronic device may execute the present method, or a plurality of electronic devices may cooperate with each other to execute the present method. When the execution subject is software, the present method may be implemented as a plurality of software or software modules, or as a single software or software module. No specific limitation is made herein.
[0044] like Figure 1 As shown, the method specifically includes:
[0045] Step 101, during the process of refueling a fuel tank, a first fuel level value is obtained by detecting the fuel level in the fuel tank through a fuel level sensor.
[0046] In some embodiments, the electronic device executing the method can automatically determine whether the fuel tank is in the refueling process. For example, when the vehicle is in a stationary state and the fuel tank cap is open according to the vehicle speed signal and the fuel tank cap signal, the fuel volume value at this time is first recorded as X4, and then the real-time detected fuel volume value is recorded as X1. If |X1-X4|≥5L, and the duration of meeting this condition is greater than a preset time (for example, 5s), it is determined that the fuel tank is currently in the refueling process (or enters the refueling mode). At this time, the fuel volume value detected by the fuel volume sensor can be obtained in real time as the first fuel volume value.
[0047] The above oil level sensor can determine the corresponding oil level value according to its own resistance value. Figure 2 As shown, it shows a schematic diagram of the driving circuit of the oil level sensor. In this circuit, R3 represents the equivalent resistance of the oil level sensor, which changes with the change of the oil level, and the resistance value can be mapped to the oil level value. The oil level sensor can collect the voltage of R3 to calculate the resistance value of R3. The resistance values of R1 and R2 can be set according to the current range required by the circuit and the resistance range of R3. For example, if the current of the circuit needs to be ≥20mA, and the range of R3 is [A,B], then R1=R2=2*[(5 / 0.02)]-B]. R1 and R2 of this circuit can be adjusted to increase the current and strengthen the breakdown effect on the oxide, making the resistance detection more accurate.
[0048] Step 102: If the first fuel level value does not conform to the fuel level change trend during the refueling process, the first fuel level value is determined as an erroneous fuel level value.
[0049] In some embodiments, since the refueling process is currently in progress, the detected oil quantity value change trend should be that the oil quantity value gradually increases. If the first oil quantity value currently detected is lower than the oil quantity value detected at the previous moment, or the first oil quantity value currently detected is equal to the oil quantity value detected at the previous moment, it can be determined that the first oil quantity value does not conform to the oil quantity change trend, and the first oil quantity value is recorded as an erroneous oil quantity value; correspondingly, if the first oil quantity value currently detected is higher than the oil quantity value detected at the previous moment, it can be determined that the first oil quantity value conforms to the oil quantity change trend, and the erroneous oil quantity value is not recorded at this time. As an example, a variable X6 can be set, which can store an erroneous oil quantity value.
[0050] Step 103, if the re-detected oil quantity value meets the preset oil quantity deviation calculation condition, determine the oil quantity deviation value based on the erroneous oil quantity value detected at the first target historical moment and the non-erroneous oil quantity value detected at the second target historical moment.
[0051] In some embodiments, after at least one detection cycle, if the detected oil level value meets the oil level deviation calculation condition, the oil level deviation value can be calculated.
[0052] The oil quantity deviation calculation conditions can be set according to the changes in the oil quantity value detected during the refueling process. Optionally, the oil quantity deviation calculation conditions may include any of the following: the re-detected oil quantity value is consistent with the oil quantity change trend, and the refueling process ends after the oil quantity value that does not conform to the oil quantity change trend is detected again. Among them, the re-detected oil quantity value is consistent with the oil quantity change trend, that is, the oil quantity value detected in one detection cycle is larger than the oil quantity value detected in the previous detection cycle (or the Nth detection cycle before, N is a preset value). When the re-detected oil quantity value is consistent with the oil quantity change trend, the oil quantity value deviation calculation can be performed for the most recent situation that does not conform to the oil quantity change trend.
[0053] The end of the refueling process can be determined by judging whether the fuel tank cap is closed. That is, if it is detected that the fuel tank cap is closed, it is determined that the refueling process is over, and the oil volume value detected before the end of refueling still does not conform to the oil volume change trend, then it can be determined that the current conditions for calculating the oil volume deviation are met, and the deviation calculation can be performed based on the erroneous oil volume value detected before the end of refueling.
[0054] By setting the above oil quantity deviation calculation conditions, the oil quantity value that does not conform to the oil quantity change trend during the refueling process can be timely calculated for deviation, thereby improving the execution efficiency and accuracy of correcting the oil quantity value.
[0055] The first target historical moment may be the moment when the most recent detection was detected to be inconsistent with the oil quantity change trend. For example, if the oil quantity values of multiple consecutive detection cycles do not conform to the oil quantity change trend, the oil quantity value of the last detection cycle is used as the erroneous oil quantity value used in calculating the deviation, which can be represented by variable X6. The second target historical moment may be the moment when the most recent detection was detected to be consistent with the oil quantity change trend. For example, if the oil quantity values of multiple consecutive detection cycles do not conform to the oil quantity change trend, the oil quantity value detected in the detection cycle before the first detection cycle is the non-erroneous oil quantity value used in calculating the deviation, which can be represented by variable X5.
[0056] The oil quantity deviation value can be calculated according to the following formula (1):
[0057] Δ n =|X6-X5|(1)
[0058] Wherein, n is the sequence number of the fuel quantity deviation value calculated during the refueling process.
[0059] As an example, Figure 3 As shown, the first oil level value detected in real time is represented by a variable X1, that is, X1 changes in real time. Each time a new oil level value is detected, X1 is updated. The execution process of step 101 to step 103 can be as follows:
[0060] The first step is to record X1 obtained in the first detection cycle of the refueling process, and assign X1 to variable X5, which is a variable for temporarily recording the oil volume value.
[0061] In the second step, in the next detection cycle, the first oil level value is detected again and assigned to variable X1. The updated X1 is compared with the recorded X5. If X1≥X5, X1 is reassigned to X5, that is, X5 is updated to X5=X1, and then the second step is re-executed; if X1<X5, X1 is assigned to variable X6, which is used to record the oil level value that does not conform to the oil level change trend, and X6 is updated to X6=X1, and then the third step is executed.
[0062] Step 3: In the next detection cycle after the second step, the first oil level value is detected again and assigned to variable X1. X1 is compared with X6 recorded in the second step. If X1 ≥ X6, Δ is calculated according to the above formula (1). n , add 1 for n times, and reassign X1 to X5 and X6, that is, update X5 and X6 to X5=X6=X1, and then re-execute the second step; if X1<X6, assign X1 to variable X6, that is, update X6 to X6=X1, and then re-execute the third step.
[0063] It can be seen from the above steps that after multiple cycles, the variable X6 always stores the error oil volume value of the most recent detection, and the variable X5 always stores the non-error oil volume value of the most recent detection.
[0064] Step 104, in response to the refueling process being completed, recording the detected oil quantity value to be corrected, and determining whether the obtained oil quantity deviation value satisfies a preset oil quantity correction condition.
[0065] In some embodiments, the end of the refueling process can be automatically determined by the electronic device, for example, when the fuel tank cap is closed, the refueling process is determined to be ended. At this time, the oil amount value to be corrected can be determined from the various oil amount values detected. Optionally, the oil amount value to be corrected can be the maximum value detected during the refueling process, or the oil amount value to be corrected can also be the oil amount value detected last time before the end of the refueling process.
[0066] The above-mentioned oil quantity correction condition can be set according to the needs of the actual scene, that is, when the oil quantity correction condition is met, it means that the oil quantity value detected during the refueling process has a large deviation, and the oil quantity value to be corrected needs to be corrected. Optionally, the oil quantity correction condition may include: any calculated oil quantity deviation value is greater than a preset threshold value. Or, the sum of the calculated oil quantity deviation values is greater than a preset threshold value.
[0067] Optionally, the oil quantity correction condition includes: the number of calculated oil quantity deviation values reaches a preset number. The number of oil quantity deviation values is n in the above formula (1). When n is greater than or equal to the preset number (for example, 3), that is, the oil quantity values detected at least three times do not conform to the oil quantity change law, it is determined that the oil quantity correction condition is met, and the oil quantity correction operation is triggered. Judging whether the oil quantity correction condition is met based on the number of oil quantity deviation values realizes a more accurate and efficient judgment of the oil quantity detection deviation during the refueling process.
[0068] Step 105: If the oil quantity correction condition is met, determine the oil quantity correction value based on the obtained oil quantity deviation value.
[0069] In some embodiments, the number of the fuel quantity deviation values calculated during the refueling process is at least one, and therefore, each fuel quantity deviation value may be calculated to obtain a fuel quantity correction value. For example, the average value of each fuel quantity deviation value may be used as the fuel quantity correction value, or the maximum value, median value, etc. of each fuel quantity deviation value may be used as the fuel quantity correction value.
[0070] Step 106, based on the oil quantity correction value, correct the oil quantity value to be corrected to obtain a corrected oil quantity value.
[0071] In this embodiment, since the oil quantity correction value is a value calculated during the refueling process and indicates that the oil quantity does not conform to the law of increasing the oil quantity, the oil quantity value to be corrected can be added to the oil quantity correction value to obtain the corrected oil quantity value. Alternatively, a correction ratio can be set, and after multiplying the correction ratio by the oil quantity correction value, the product is added to the oil quantity value to be corrected.
[0072] Usually, after obtaining the corrected oil value, the remaining oil ratio can be calculated. The remaining oil ratio is usually a percentage. The formula for calculating the remaining oil ratio is shown in the following formula 2:
[0073] y=[(X7+Δ b )-X2]} / (X3-X2)(2)
[0074] Among them, X7 is the oil value to be corrected, X2 is the oil value when the tank contains only bottom oil (equivalent to the tank being empty), X3 is the oil value when the tank is full (this value can be preset), Δ b is the oil quantity correction value, X7+Δ b This is the corrected oil volume value.
[0075] It should be noted that if the oil quantity deviation value does not meet the oil quantity correction condition (for example, when the above n is less than 3), there is no need to correct the oil quantity value to be corrected. Therefore, the remaining oil quantity ratio is calculated according to the following formula (3):
[0076] y=(X7-X2) / (X3-X2)(3)
[0077] It should also be noted that if X7=X3, no correction is required and the remaining oil ratio is directly determined to be 100%.
[0078] The method for correcting the oil level in a fuel tank provided by the embodiment of the present invention is to detect the oil level value in real time by the oil level sensor during the process of refueling the fuel tank. If the oil level value does not conform to the oil level change trend during the refueling process, the oil level deviation value is determined based on the erroneous oil level value detected at the first target historical moment and the non-erroneous oil level value detected at the second target historical moment. At the end of the refueling process, the oil level value to be corrected is recorded, and when the oil level deviation value meets the oil level correction condition, the oil level correction value is determined based on the obtained oil level deviation value. Finally, based on the oil level correction value, the oil level value to be corrected is corrected to obtain the corrected oil level value. The embodiment of the present invention realizes the deviation correction of the oil level value detected by the oil level sensor during refueling, avoids the error in the detection of the oil level in the mailbox caused by abnormal scenes such as oxidation of the oil level sensor, and avoids abnormal fluctuations in the oil level value displayed on the vehicle.
[0079] In some optional implementations, such as Figure 4 As shown, step 105 includes:
[0080] Step 1051, calculate the average value of each oil quantity deviation value, and determine the current oil quantity deviation threshold.
[0081] Optionally, the oil quantity deviation threshold may be preset, for example, may be set to a fixed value of 5L.
[0082] Step 1052, taking the minimum value between the average value and the oil quantity deviation threshold as the oil quantity correction value.
[0083] Specifically, the oil quantity correction value can be determined according to the following formula (4):
[0084] Δ b =min[(Δ1+Δ2+…+Δ n ) / n, a] (4)
[0085] Where min means taking the minimum value of the two values in the brackets, a means the oil deviation threshold, (Δ1+Δ2+…+Δ n ) / n is the average value of each oil quantity deviation value.
[0086] This embodiment achieves setting an upper limit for the oil quantity correction value by calculating the average value of the oil quantity deviation value and setting the oil quantity deviation threshold, thereby avoiding a large correction amount caused by excessive calculation error and reducing the risk of errors in oil quantity correction.
[0087] In some optional implementations, step 1051 may be performed as follows:
[0088] First, determine the current pressure value of the fuel tank.
[0089] The pressure value can be acquired in real time by the pressure sensor in the fuel tank, and the pressure value can reflect the amount of oil in the fuel tank.
[0090] Then, according to the preset first correspondence table, the oil quantity deviation threshold value corresponding to the pressure value is determined as the current oil quantity deviation threshold value.
[0091] The first correspondence table is used to indicate the correspondence between the pressure value and the oil quantity deviation threshold value, that is, the first correspondence table includes at least two pressure values and the oil quantity deviation threshold value corresponding to each pressure value.
[0092] As an example, let the pressure value be F, and the preset pressure threshold be Ft. If F≤Ft, the fuel volume deviation threshold is 10L, and if F>Ft, the fuel volume deviation threshold is 20L. That is, during the refueling process, the fuel tank pressure gradually increases. When it increases to the point where the gun is about to jump, the deviation of the detected fuel volume value is usually large, and a larger fuel volume deviation threshold is set accordingly; when the fuel tank pressure is low, the deviation of the detected fuel volume value is usually small, and a smaller fuel volume deviation threshold is set accordingly.
[0093] This embodiment determines the corresponding oil quantity deviation threshold by collecting the oil tank pressure value, thereby selecting the corresponding oil quantity deviation threshold according to the oil content in the oil tank after refueling. The upper limit of the oil quantity correction value can be set more specifically, thereby improving the accuracy of the oil quantity correction.
[0094] In some optional implementations, such as Figure 5 As shown, after step 106, the method further includes:
[0095] Step 107 , during the driving process of the vehicle in which the fuel tank is located, based on the calculated fuel amount deviation value, the detection error degree of the fuel amount sensor is estimated to obtain an estimation result.
[0096] Generally, the degree of detection error of the oil level sensor is related to the degree of oxidation of the oil level sensor, that is, the higher the degree of oxidation, the higher the degree of detection error, that is, the lower the detection accuracy. Specifically, the degree of detection error of the oil level sensor can be characterized by the oil level deviation value. That is, when the oil level deviation value is large, or the number of oil level deviation values calculated during the refueling process is large (that is, the number of oil level detection errors is large), the degree of detection error is high. For example, a correspondence between the oil level deviation value and the degree of detection error can be set. If the oil level deviation value is greater than a preset threshold, it means that the degree of detection error is greater than or equal to the preset degree threshold, otherwise the degree of detection error is less than the preset degree threshold.
[0097] Step 108: If the estimation result indicates that the detection error degree is less than the detection error degree threshold, a second oil level value currently collected by the oil level sensor is obtained.
[0098] The second fuel level value is the fuel level value collected in real time by the fuel level sensor during the driving of the vehicle, that is, the currently collected fuel level value is recorded as the second fuel level value.
[0099] Step 109, determining the current remaining fuel volume ratio based on the second fuel volume value and the historical remaining fuel volume ratio determined in the previous detection cycle.
[0100] The historical remaining fuel ratio determined in the previous detection cycle is the remaining fuel ratio obtained after the method of this embodiment is executed in the previous detection cycle. It should be understood that the remaining fuel ratio corresponding to the first detection cycle after the vehicle starts to travel can be the remaining fuel ratio calculated based on the corrected fuel value after the above refueling process is completed.
[0101] As an example, the fuel volume value of the previous detection cycle can be calculated based on the historical remaining fuel volume ratio, and then the fuel volume injected in one detection cycle is subtracted from the fuel volume value to obtain the estimated fuel volume value of the current detection cycle. Using an algorithm similar to the above formula (3), the estimated fuel volume value is replaced by X7 to obtain the current remaining fuel volume ratio.
[0102] Step 110: If the estimation result indicates that the detection error degree is greater than or equal to the detection error degree threshold, the current fuel injection amount signal is obtained.
[0103] The fuel injection quantity signal can be collected in real time or calculated based on parameters such as vehicle speed and throttle opening.
[0104] Step 111, determining the current remaining fuel ratio based on the fuel injection amount signal and the historical remaining fuel ratio determined in the previous detection cycle.
[0105] Specifically, the current remaining fuel ratio can be calculated according to the following formula (5):
[0106] y=[α*(X3-X2)-Y] / (X3-X2) (5)
[0107] Among them, α is the historical remaining fuel ratio, and Y is the injection amount represented by the injection amount signal.
[0108] This embodiment realizes that when the detection error degree of the oil level sensor is low, the accuracy of the sensor is high. At this time, the remaining oil percentage can be calculated using the oil level value checked by the oil level sensor; when the detection error degree of the oil level sensor is high, the resistance value accuracy of the oil level sensor is low, and the oil level percentage is estimated using the injected oil amount, thereby realizing targeted estimation of the remaining oil level percentage according to the detection error degree of the oil level sensor, improving the accuracy of determining the oil level percentage, and reducing the risk of large deviations when displaying the oil level percentage.
[0109] In some optional implementations, such as Figure 6 As shown, step 109 includes:
[0110] Step 1091, based on the historical remaining oil volume ratio, determine the oil volume value of the previous detection cycle.
[0111] Specifically, the oil volume value of the previous detection cycle can be calculated according to the following formula (6):
[0112] x=α*(X3-X2)+X2(6)
[0113] Among them, α is the historical remaining oil volume ratio.
[0114] Step 1092: If the second fuel quantity value is less than the fuel quantity value of the previous detection cycle, determine the corresponding estimated value of the injection quantity according to the current driving speed of the vehicle.
[0115] Here, the variable X1 is continued to be used to store the real-time collected oil quantity value. During the vehicle driving process, the value of the variable X1 is updated according to the real-time collected oil quantity value. Then the second oil quantity value currently detected can be read from the variable X1. If X1 < x, it means that the change of the oil quantity conforms to the decreasing law. At this time, the estimated value of the injection amount can be determined according to the vehicle speed. The corresponding relationship between the vehicle speed and the estimated value of the injection amount can be calibrated in advance.
[0116] Step 1093, based on the oil quantity value of the previous detection cycle and the estimated value of the injection quantity, determine the current remaining oil quantity ratio.
[0117] Specifically, the current remaining fuel ratio can be calculated according to the following formula (7):
[0118] y=[α*(X3-X2)-β] / (X3-X2) (7)
[0119] Among them, β is the estimated value of the injection amount.
[0120] Step 1094, if the second oil level value is greater than or equal to the oil level value of the previous detection cycle, the current remaining oil level ratio is set to be the same as the historical remaining oil level ratio.
[0121] That is, if X1≥x, it means that the change in the oil volume does not conform to the decreasing law. At this time, the remaining oil volume ratio can be kept unchanged.
[0122] This embodiment achieves accurate estimation of the fuel injection amount based on the vehicle speed by comparing the fuel amount value obtained in the current detection cycle with the fuel amount value obtained in the previous detection cycle, and determining the estimated value of the fuel injection amount corresponding to the current vehicle speed, thereby improving the accuracy of real-time determination of the remaining fuel ratio during driving.
[0123] In some optional implementations, such as Figure 7 As shown, the above step 1092 includes:
[0124] Step 10921, based on a preset second correspondence table, determine an estimated value of an initial fuel injection amount corresponding to the current driving speed of the vehicle.
[0125] The second correspondence table may be a pre-calibrated table, which includes multiple vehicle speeds and the initial fuel injection amount estimation value corresponding to each vehicle speed. As an example, the second correspondence table may be shown in Table 1 below:
[0126] Table 1 Correspondence between vehicle speed and initial fuel injection amount estimation
[0127]
[0128] Wherein, b represents the estimated value of the initial injection amount, the unit is L / s, and the unit of vehicle speed is km / h.
[0129] Step 10922, obtain the current injection quantity signal, and calculate the injection quantity threshold based on the preset coefficient and the injection quantity signal.
[0130] The above coefficient can be set according to actual needs, for example, it is set to 3, the injection amount represented by the injection amount signal is Y, and the injection amount threshold is 3Y. The unit of the injection amount corresponds to the initial injection amount estimation value, that is, the injection amount per second.
[0131] Step 10923, taking the minimum value between the initial fuel injection amount estimate value and the fuel injection amount threshold value as the fuel injection amount estimate value corresponding to the current driving speed of the vehicle.
[0132] The calculation method of the estimated value of the injection amount is shown in the following formula (8):
[0133] B=min(b,kY)(8)
[0134] Among them, k is the coefficient, Y is the injection amount, and min means taking the minimum value of the two values in brackets.
[0135] Generally, the detection period of this embodiment is 0.01s, and the fuel injection amount Y is the fuel injection amount within 0.01s, and b is the fuel injection amount per second. Therefore, it is necessary to divide b in formula (8) by 100, that is, min(b / 100, kY).
[0136] This embodiment limits the estimated fuel injection amount by setting the second correspondence table and the fuel injection amount threshold, thereby reducing the risk of incorrect fuel amount values caused by large calculation errors.
[0137] In some optional implementations, an estimation result indicating that the detection error degree is less than a detection error degree threshold may be generated in the following manner:
[0138] If the calculated number of oil quantity deviation values is less than the preset number, and / or the oil quantity correction value is less than the preset threshold, an estimation result indicating that the detection error degree is less than the detection error degree threshold is generated. This estimation result can be used as the estimation result in the above step 107.
[0139] The number of oil quantity deviation values is n in the above formula (1). When n is less than a preset number (for example, 3), it means that the number of times the detected oil quantity value deviates is small, and the resistance value accuracy of the oil quantity sensor is high. Therefore, the detection error degree of the oil quantity sensor is less than the detection error degree threshold. When the oil quantity correction value is less than a preset threshold (for example, 2L), it means that the deviation between the detected oil quantity value and the actual oil quantity value is small. At this time, the resistance value accuracy of the oil quantity sensor is high. Therefore, the detection error degree of the oil quantity sensor is less than the detection error degree threshold.
[0140] If the calculated number of oil quantity deviation values is greater than or equal to a preset number, and / or the oil quantity correction value is greater than or equal to a preset threshold, an estimation result is generated indicating that the detection error degree is greater than or equal to the detection error degree threshold.
[0141] Specifically, when n is greater than or equal to a preset number, it means that the detected oil quantity value has a large number of deviations, and the resistance accuracy of the oil quantity sensor is low. Therefore, the detection error degree of the oil quantity sensor is greater than or equal to the detection error degree threshold. When the oil quantity correction value is less than the preset threshold, it means that the deviation between the detected oil quantity value and the actual oil quantity value is large, and the resistance accuracy of the oil quantity sensor is low. Therefore, the detection error degree of the oil quantity sensor is greater than or equal to the detection error degree threshold.
[0142] This embodiment determines the degree of detection error of the oil level sensor by counting the number of oil level deviation values and / or judging the size of the oil level correction value, thereby achieving accurate judgment of the state of the oil level sensor, thereby improving the accuracy of estimating the remaining oil level ratio for different states of the oil level sensor during vehicle driving.
[0143] Figure 8A schematic diagram of the structure of a fuel tank oil quantity correction device provided by an embodiment of the present invention. Specifically comprising: a first acquisition module 801, used to obtain a first oil quantity value obtained by detecting the oil quantity of the fuel tank by the oil quantity sensor during the process of refueling the fuel tank; a first determination module 802, used to determine the first oil quantity value as an erroneous oil quantity value if the first oil quantity value does not conform to the oil quantity change trend during the refueling process; a second determination module 803, used to determine the oil quantity deviation value based on the erroneous oil quantity value detected at the first target historical moment and the non-erroneous oil quantity value detected at the second target historical moment if the re-detected oil quantity value conforms to the preset oil quantity deviation calculation condition; a third determination module 804, used to record the oil quantity value to be corrected obtained by the detection in response to the end of the refueling process, and determine whether the obtained oil quantity deviation value meets the preset oil quantity correction condition; a fourth determination module 805, used to determine the oil quantity correction value based on the obtained oil quantity deviation value if the oil quantity correction condition is met; a correction module 806, used to correct the oil quantity value to be corrected based on the oil quantity correction value to obtain the corrected oil quantity value.
[0144] In some optional implementations, the fuel quantity deviation calculation condition includes any of the following: the re-detected fuel quantity value is consistent with the fuel quantity change trend, and the refueling process ends after the fuel quantity value that does not comply with the fuel quantity change trend is detected again.
[0145] In some optional implementations, the fourth determination module 805 includes: a first calculation unit, used to calculate the average value of each oil quantity deviation value and determine the current oil quantity deviation threshold; a second calculation unit, used to take the minimum value between the average value and the oil quantity deviation threshold as the oil quantity correction value.
[0146] In some optional implementations, the first calculation unit includes: a first determination subunit, used to determine the current pressure value of the fuel tank; and a second determination subunit, used to determine the fuel quantity deviation threshold corresponding to the pressure value as the current fuel quantity deviation threshold according to a preset first correspondence table.
[0147] In some optional implementations, the oil quantity correction condition includes: the number of calculated oil quantity deviation values reaches a preset number.
[0148] In some optional implementations, the device also includes: an estimation module, which is used to estimate the detection error degree of the fuel quantity sensor based on the calculated fuel quantity deviation value to obtain an estimation result during the driving process of the vehicle in which the fuel tank is located; a second acquisition module, which is used to obtain a second fuel quantity value currently collected by the fuel quantity sensor if the estimation result indicates that the detection error degree is less than a detection error degree threshold; a fifth determination module, which is used to determine the current remaining fuel quantity ratio based on the second fuel quantity value and the historical remaining fuel quantity ratio determined in the previous detection cycle; a third acquisition module, which is used to obtain the current fuel injection quantity signal if the estimation result indicates that the detection error degree is greater than or equal to the detection error degree threshold; and a sixth determination module, which is used to determine the current remaining fuel quantity ratio based on the fuel injection quantity signal and the historical remaining fuel quantity ratio determined in the previous detection cycle.
[0149] In some optional implementations, the fifth determination module includes: a first determination unit, used to determine the fuel level value of the previous detection cycle based on the historical remaining fuel level ratio; a second determination unit, used to determine the corresponding fuel injection amount estimation value according to the current driving speed of the vehicle if the second fuel level value is less than the fuel level value of the previous detection cycle; a third determination unit, used to determine the current remaining fuel level ratio based on the fuel level value of the previous detection cycle and the fuel injection amount estimation value; a setting unit, used to set the current remaining fuel level ratio to the same as the historical remaining fuel level ratio if the second fuel level value is greater than or equal to the fuel level value of the previous detection cycle.
[0150] In some optional implementations, the second determination unit includes: a third determination subunit, used to determine an initial fuel injection quantity estimate corresponding to the current driving speed of the vehicle based on a preset second correspondence table; a first calculation subunit, used to obtain a current fuel injection quantity signal, and calculate a fuel injection quantity threshold based on a preset coefficient and the fuel injection quantity signal; and a second calculation subunit, used to take the minimum value between the initial fuel injection quantity estimate and the fuel injection quantity threshold as the fuel injection quantity estimate corresponding to the current driving speed of the vehicle.
[0151] In some optional implementations, the estimation module includes: a first generating unit, which is used to generate an estimation result indicating that the detection error degree is less than a detection error degree threshold if the number of calculated oil quantity deviation values is less than a preset number and / or the oil quantity correction value is less than a preset threshold; and a second generating unit, which is used to generate an estimation result indicating that the detection error degree is greater than or equal to the detection error degree threshold if the number of calculated oil quantity deviation values is greater than or equal to the preset number and / or the oil quantity correction value is greater than or equal to the preset threshold.
[0152] The fuel tank oil quantity correction device provided in this embodiment can be as follows Figure 8The fuel tank oil quantity correction device shown in can execute all steps of the above fuel tank oil quantity correction methods, thereby achieving the technical effects of the above fuel tank oil quantity correction methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0153] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Fig. 9 The electronic device 900 shown includes: at least one processor 901, a memory 902, at least one network interface 904 and other user interfaces 903. The various components in the electronic device 900 are coupled together via a bus system 905. It is understood that the bus system 905 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 905 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 905 is not described in detail. Fig. 9 Various buses are labeled as bus system 905.
[0154] The user interface 903 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0155] It can be understood that the memory 902 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 902 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0156] In some embodiments, the memory 902 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 9021 and an application program 9022 .
[0157] The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 9022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 9022.
[0158] In this embodiment, by calling the program or instruction stored in the memory 902, specifically, the program or instruction stored in the application 9022, the processor 901 is used to execute the method steps provided by each method embodiment, for example, including:
[0159] During the process of refueling the fuel tank, a first fuel quantity value is obtained by detecting the fuel quantity in the fuel tank with a fuel quantity sensor; if the first fuel quantity value does not conform to the fuel quantity change trend during the refueling process, the first fuel quantity value is determined as an erroneous fuel quantity value; if the re-detected fuel quantity value conforms to the preset fuel quantity deviation calculation condition, the fuel quantity deviation value is determined based on the erroneous fuel quantity value detected at the first target historical moment and the non-erroneous fuel quantity value detected at the second target historical moment; in response to the end of the refueling process, the detected oil quantity value to be corrected is recorded, and it is determined whether the obtained oil quantity deviation value meets the preset oil quantity correction condition; if the oil quantity correction condition is met, the oil quantity correction value is determined based on the obtained oil quantity deviation value; based on the oil quantity correction value, the oil quantity value to be corrected is corrected to obtain the corrected oil quantity value.
[0160] The method disclosed in the above embodiment of the present invention can be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 901 or the instruction in the form of software. The above processor 901 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902 and completes the steps of the above method in combination with its hardware.
[0161] It is understood that the embodiments described herein can be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present invention or a combination thereof.
[0162] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0163] The electronic device provided in this embodiment may be Fig. 9 The electronic device shown in can execute all the steps of the above-mentioned fuel tank oil level correction method, thereby achieving the technical effects of the above-mentioned fuel tank oil level correction method. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0164] The embodiment of the present invention further provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0165] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned method for correcting the fuel tank oil level executed on the electronic device side can be implemented.
[0166] The processor is used to execute the program stored in the memory to implement the following steps of the tank oil quantity correction method executed on the electronic device side:
[0167] During the process of refueling the fuel tank, a first fuel quantity value is obtained by detecting the fuel quantity in the fuel tank with a fuel quantity sensor; if the first fuel quantity value does not conform to the fuel quantity change trend during the refueling process, the first fuel quantity value is determined as an erroneous fuel quantity value; if the re-detected fuel quantity value conforms to the preset fuel quantity deviation calculation condition, the fuel quantity deviation value is determined based on the erroneous fuel quantity value detected at the first target historical moment and the non-erroneous fuel quantity value detected at the second target historical moment; in response to the end of the refueling process, the detected oil quantity value to be corrected is recorded, and it is determined whether the obtained oil quantity deviation value meets the preset oil quantity correction condition; if the oil quantity correction condition is met, the oil quantity correction value is determined based on the obtained oil quantity deviation value; based on the oil quantity correction value, the oil quantity value to be corrected is corrected to obtain the corrected oil quantity value.
[0168] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different circuits to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0169] The steps of the circuits or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, software modules executed by a processor, or a combination of the two. The software modules may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0170] It should be understood that the terms used in the text are only for the purpose of describing specific example embodiments, and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The steps, processes, and operations described in the text are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0171] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for correcting the amount of oil in a fuel tank, characterized in that: The method comprises: During the process of refueling the fuel tank, obtaining a first fuel level value obtained by detecting the fuel level of the fuel tank by a fuel level sensor; If the first oil level value does not conform to the oil level change trend during the refueling process, determining the first oil level value as an erroneous oil level value; If the re-detected oil quantity value meets the preset oil quantity deviation calculation condition, the oil quantity deviation value is determined based on the error oil quantity value detected at the first target historical moment and the non-error oil quantity value detected at the second target historical moment, wherein the oil quantity deviation calculation condition includes any one of the following: the re-detected oil quantity value meets the oil quantity change trend, and the refueling process ends after the oil quantity value that does not meet the oil quantity change trend is detected again; In response to the refueling process being completed, recording the detected oil quantity value to be corrected, and determining whether the obtained oil quantity deviation value satisfies a preset oil quantity correction condition, wherein the oil quantity correction condition indicates that the deviation degree of the oil quantity value detected during the refueling process exceeds a preset deviation degree; If the oil quantity correction condition is met, determining an oil quantity correction value based on the obtained oil quantity deviation value; Based on the oil quantity correction value, correcting the oil quantity value to be corrected to obtain a corrected oil quantity value; The method of determining the oil quantity deviation value based on the error oil quantity value detected at the first target historical moment and the non-error oil quantity value detected at the second target historical moment comprises: The absolute value of the difference between the erroneous oil quantity value detected at the first target historical moment and the non-erroneous oil quantity value detected at the second target historical moment is determined as the oil quantity deviation value. The first target historical moment is the most recent moment detected as not conforming to the oil quantity change trend, and the second target historical moment is the most recent moment detected as conforming to the oil quantity change trend.
2. The method according to claim 1, characterized in that The step of determining the oil quantity correction value based on the obtained oil quantity deviation value comprises: Calculate the average value of each fuel quantity deviation value, and determine the current fuel quantity deviation threshold; The minimum value between the average value and the oil quantity deviation threshold is taken as the oil quantity correction value.
3. The method according to claim 2, characterized in that Determining the current oil quantity deviation threshold comprises: Determining a current pressure value of the fuel tank; According to a preset first correspondence table, the oil level deviation threshold corresponding to the pressure value is determined as the current oil level deviation threshold.
4. The method according to claim 1, characterized in that The oil quantity correction condition includes: the number of calculated oil quantity deviation values reaches a preset number.
5. The method according to claim 1, characterized in that After the oil quantity value to be corrected is corrected based on the oil quantity correction value to obtain the corrected oil quantity value, the method further includes: During the driving of the vehicle in which the fuel tank is located, estimating the detection error degree of the fuel level sensor based on the calculated fuel level deviation value to obtain an estimation result; If the estimation result indicates that the detection error degree is less than the detection error degree threshold, obtaining a second oil level value currently collected by the oil level sensor; Determine a current remaining fuel volume ratio based on the second fuel volume value and a historical remaining fuel volume ratio determined in a previous detection cycle; If the estimation result indicates that the detection error degree is greater than or equal to the detection error degree threshold, obtaining a current fuel injection amount signal, wherein the fuel injection amount signal indicates the fuel injection amount in the current detection cycle; Determining a current remaining fuel volume ratio based on the fuel injection volume signal and a historical remaining fuel volume ratio determined in a previous detection cycle; The estimating the detection error degree of the oil level sensor to obtain an estimation result includes: If the calculated number of oil quantity deviation values is less than a preset number, and / or the oil quantity correction value is less than a preset threshold, generating an estimation result indicating that the detection error degree is less than the detection error degree threshold; If the calculated number of oil quantity deviation values is greater than or equal to the preset number, and / or the oil quantity correction value is greater than or equal to the preset threshold, an estimation result is generated indicating that the detection error degree is greater than or equal to the detection error degree threshold.
6. The method according to claim 5, characterized in that The determining the current remaining fuel amount ratio based on the second fuel amount value and the historical remaining fuel amount ratio determined in the previous detection cycle includes: Based on the historical remaining oil volume ratio, determining the oil volume value of the previous detection cycle; If the second fuel quantity value is less than the fuel quantity value of the previous detection cycle, determining a corresponding fuel injection quantity estimation value according to the current driving speed of the vehicle; Determining the current remaining fuel volume ratio based on the fuel volume value of the previous detection cycle and the estimated value of the fuel injection volume; If the second oil level value is greater than or equal to the oil level value of the previous detection cycle, the current remaining oil level ratio is set to be the same as the historical remaining oil level ratio.
7. The method according to claim 6, characterized in that The step of determining a corresponding fuel injection amount estimation value according to the current driving speed of the vehicle includes: Determining an initial fuel injection quantity estimation value corresponding to the current driving speed of the vehicle based on a preset second correspondence table; Acquire a current fuel injection quantity signal, and calculate a fuel injection quantity threshold value based on a preset coefficient and the fuel injection quantity signal; The minimum value between the initial fuel injection amount estimation value and the fuel injection amount threshold value is taken as the fuel injection amount estimation value corresponding to the current driving speed of the vehicle.
8. A fuel tank oil level correction device, characterized in that: The device includes: A first acquisition module, used for acquiring a first fuel level value obtained by detecting the fuel level in the fuel tank by the fuel level sensor during the process of refueling the fuel tank; A first determination module, configured to determine the first fuel quantity value as an erroneous fuel quantity value if the first fuel quantity value does not conform to the fuel quantity change trend during the refueling process; A second determination module is configured to determine the fuel quantity deviation value based on the erroneous fuel quantity value detected at the first target historical moment and the non-erroneous fuel quantity value detected at the second target historical moment if the re-detected fuel quantity value meets the preset fuel quantity deviation calculation condition, wherein the fuel quantity deviation calculation condition includes any one of the following: the re-detected fuel quantity value meets the fuel quantity change trend, and the refueling process ends after the fuel quantity value that does not meet the fuel quantity change trend is detected again; a third determination module, configured to record the detected oil quantity value to be corrected in response to the end of the refueling process, and determine whether the obtained oil quantity deviation value satisfies a preset oil quantity correction condition, wherein the oil quantity correction condition indicates that the deviation degree of the oil quantity value detected during the refueling process exceeds a preset deviation degree; a fourth determination module, configured to determine an oil quantity correction value based on the obtained oil quantity deviation value if the oil quantity correction condition is met; A correction module, used for correcting the oil quantity value to be corrected based on the oil quantity correction value to obtain a corrected oil quantity value; The second determining module is further used for: The absolute value of the difference between the erroneous oil quantity value detected at the first target historical moment and the non-erroneous oil quantity value detected at the second target historical moment is determined as the oil quantity deviation value. The first target historical moment is the most recent moment detected as not conforming to the oil quantity change trend, and the second target historical moment is the most recent moment detected as conforming to the oil quantity change trend.
9. An electronic device, characterized in that: include: Memory for storing computer programs; The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method for correcting the fuel tank oil level described in any one of claims 1 to 7 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for correcting the fuel tank fuel level according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Vehicle oil quantity detection device and method
CN109115308A
Energy monitoring method and device for extended-range automobile
CN116749834A