Measuring method, device and related equipment for oil quantity display in automobile fuel gauge
By collecting and filtering the oil pump sensor data, combined with vehicle condition calibration, the problem of inaccurate fuel volume in automobile fuel gauges under different road conditions is solved, and a more accurate and stable fuel volume display is achieved.
Patent Information
- Application Number
- CN202010048367.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-01-16
AI Technical Summary
Existing automobile fuel gauges display inaccurate remaining fuel levels under different road and vehicle conditions, especially under sharp turns, uphill and downhill slopes, and bumpy road conditions. The fuel pump sensor fluctuates violently, causing the fuel gauge to display inaccurate fuel levels.
The oil pump sensor collects the resistance values of the car at different calibration moments and the current moment in the same vehicle condition, calculates the fuel quantity at the current moment, performs filtering on the fuel quantity, obtains the calibrated fuel quantity corresponding to the current vehicle condition, and comprehensively calculates the fuel The meter displays the oil quantity to improve the accuracy of the display.
By filtering the calculated fuel quantity, the displayed fuel quantity changes more gently, and the corresponding calibrated fuel quantity is selected based on the vehicle condition, which significantly improves the accuracy of the fuel quantity displayed by the fuel gauge.
Smart Images

Figure CN113124953B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and in particular to a method and device for measuring the oil quantity displayed in an automobile fuel gauge, an automobile electronic control system, and a computer-readable storage medium. Background Art
[0002] There are generally two implementation schemes for calculating the fuel quantity proposed in the prior art.
[0003] One method is to calculate the fuel consumption through the injection signal of the engine control unit, and subtract the fuel consumption from the initial fuel value to get the current remaining fuel amount. However, this solution relies on the injection signal. If the injection signal is not collected accurately, the final calculated remaining fuel amount will also be inaccurate.
[0004] Another method is to collect the resistance signal of the oil pump sensor based on hard wire, convert the collected resistance value into oil volume for display on the fuel gauge. When the oil volume in the fuel tank is the same and the car is driving in different road conditions and vehicle conditions, such as sharp turns, uphill and downhill or bumpy roads, the oil pump sensor will be affected by factors such as acceleration or deceleration, and the resistance value collected will be different, resulting in a different final calculated oil volume displayed on the fuel gauge, causing the oil volume displayed on the fuel gauge to be inaccurate.
[0005] Taking into account the complex road conditions of automobile driving, including turning, sudden acceleration, sudden deceleration, uphill and downhill, bumpy roads, etc., the violent fluctuation of the oil pump sensor can easily cause fluctuations in the fuel gauge display. Therefore, it is necessary to design a fuel gauge display strategy that is compatible with multiple road conditions, so that the remaining fuel displayed on the fuel gauge is more accurate and the change of fuel amount is smoother. Summary of the invention
[0006] The embodiments of the present application provide a method and device for measuring the amount of fuel displayed in a fuel gauge of an automobile, an automobile electronic control system, and a computer-readable storage medium to solve the technical problem of inaccurate remaining fuel amount displayed on a fuel gauge in the prior art.
[0007] According to one aspect of the present invention, a method for measuring the amount of fuel displayed in a fuel gauge of an automobile is provided, the method comprising:
[0008] The oil pump sensor is used to collect the resistance value of the vehicle at different calibration times and the current resistance value in the same vehicle condition;
[0009] Calculating the oil volume at the current moment according to the resistance values at the different calibration moments and the resistance value at the current moment;
[0010] Performing filtering on the oil volume at the current moment to obtain a reference oil volume at the current moment;
[0011] Get the calibrated oil volume set corresponding to the current vehicle condition;
[0012] The fuel quantity displayed by the fuel gauge at the next moment is calculated according to the calibrated fuel quantity and the reference fuel quantity at the current moment.
[0013] According to another aspect of the present invention, a metering device for displaying the amount of oil in a fuel gauge of an automobile is provided, the device comprising:
[0014] The resistance value acquisition module is used to collect the resistance value of the vehicle at different calibration times and the current time in the same vehicle condition through the oil pump sensor;
[0015] A first calculation module, used for calculating the oil volume at the current moment according to the resistance values at different calibration moments and the resistance value at the current moment;
[0016] A filtering module, used for filtering the oil volume at the current moment to obtain a reference oil volume at the current moment;
[0017] A calibration module, used to obtain a calibration oil volume set corresponding to the current vehicle condition;
[0018] The second calculation module is used to calculate the oil quantity displayed by the fuel gauge at the next moment according to the calibrated oil quantity and the reference oil quantity at the current moment.
[0019] According to another aspect of the present invention, an automotive electronic control system is provided, comprising an oil pump sensor, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0020] The oil pump sensor is used to collect the resistance value of the vehicle at different calibration times and the current resistance value in the same vehicle condition;
[0021] Calculating the oil volume at the current moment according to the resistance values at the different calibration moments and the resistance value at the current moment;
[0022] Performing filtering on the oil volume at the current moment to obtain a reference oil volume at the current moment;
[0023] Get the calibrated oil volume set corresponding to the current vehicle condition;
[0024] The fuel quantity displayed by the fuel gauge at the next moment is calculated according to the calibrated fuel quantity and the reference fuel quantity at the current moment.
[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0026] The oil pump sensor is used to collect the resistance value of the vehicle at different calibration times and the current resistance value in the same vehicle condition;
[0027] Calculating the oil volume at the current moment according to the resistance values at the different calibration moments and the resistance value at the current moment;
[0028] Performing filtering on the oil volume at the current moment to obtain a reference oil volume at the current moment;
[0029] Get the calibrated oil volume set corresponding to the current vehicle condition;
[0030] The fuel quantity displayed by the fuel gauge at the next moment is calculated according to the calibrated fuel quantity and the reference fuel quantity at the current moment.
[0031] The present invention provides a metering method and device for displaying the amount of oil in a vehicle fuel gauge, an automotive electronic control system, and a computer-readable storage medium. The fuel pump sensor collects the resistance values of the vehicle at different calibration times and the current time when the vehicle is in the same vehicle condition, calculates the amount of oil at the current time according to the resistance values at different calibration times and the current time, further filters the calculated amount of oil, and obtains the calibrated amount of oil set corresponding to the current vehicle condition. The amount of oil displayed on the fuel gauge at the current time is finally obtained by combining the calibrated amount of oil and the reference amount of oil. This solution further filters the calculated amount of oil so that the change of the displayed amount of oil is smoother, and comprehensively considers the vehicle condition of the vehicle to select the corresponding calibrated amount of oil for calibration, so that the amount of oil displayed on the fuel gauge is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0033] Figure 1 It is a flow chart of a method for measuring the amount of oil displayed in a fuel gauge of an automobile in one embodiment of the present application;
[0034] Figure 2 is a flow chart of a method for measuring the oil quantity displayed in a fuel gauge of an automobile in another embodiment of the present application;
[0035] Figure 3 This is a flow chart of a method for measuring the amount of oil displayed in a fuel gauge of an automobile in another embodiment of the present application;
[0036] Figure 4 This is a schematic diagram of a usage scenario of a vehicle condition change in an embodiment of the present application;
[0037] Figure 5 is a schematic diagram of the waveform change of the oil amount in the relationship between the oil amount and time in one embodiment of the present application;
[0038] Figure 6 It is a structural block diagram of a metering device for displaying the amount of oil in a fuel gauge of an automobile in one embodiment of the present application;
[0039] Figure 7 is a schematic diagram of the structure of an automotive electronic control system in an embodiment of the present application;
[0040] Figure 8 It is a schematic diagram of the use environment of the automotive electronic control system in one embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The implementation of this application is described in detail below with reference to the specific drawings:
[0043] Figure 1 This is a flow chart of a method for measuring the amount of oil displayed in a fuel gauge of an automobile in an embodiment of the present application. Figure 1 The method for measuring the fuel quantity displayed in the fuel gauge of an automobile according to an embodiment of the present application is described in detail. Figure 1 As shown, the method for measuring the oil quantity displayed in the automobile fuel gauge includes the following steps S101 to S105.
[0044] S101. Collecting resistance values of the vehicle at different calibration times and the current time when the vehicle is in the same vehicle condition through an oil pump sensor.
[0045] In this embodiment, the vehicle condition includes but is not limited to a parking state and a driving state. Further, the parking state includes a stationary state and a refueling state, wherein the stationary state may be a shutdown state. Further, the driving state includes a normal driving state and an abnormal driving state, wherein the abnormal driving state includes oil float stuck recovery driving or oil tank leakage driving.
[0046] In one embodiment, the step S101 further includes:
[0047] The resistance value of the oil pump sensor collected at the start time of calibration, the resistance value collected at the end time of calibration, and the resistance value collected at the current time are obtained.
[0048] In this embodiment, the calibration start time and the calibration end time are determined relative to the start time of the car being in the corresponding vehicle condition. For example, if the car is in a normal driving condition at 09:00:00 in the morning, 09:01:02 can be determined as the calibration start time, and 09:01:05 can be determined as the calibration end time.
[0049] S102, calculating the oil volume at the current moment according to the resistance values at different calibration moments and the resistance value at the current moment.
[0050] The calculated fuel volume is not the fuel volume directly displayed on the fuel gauge, but the fuel volume that requires further processing.
[0051] In one embodiment, the step S102 further includes:
[0052] Obtaining the amount of oil provided by the oil tank at the start time of the calibration and the amount of oil provided by the oil tank at the end time of the calibration;
[0053] Calculating the ratio of the change in the oil volume to the change in the resistance value between the calibration start time and the calibration end time;
[0054] The oil volume at the current moment is calculated according to the difference between the resistance value collected at the current moment and the resistance value collected at the calibration start moment, the ratio, and the oil volume provided by the oil tank at the calibration start moment.
[0055] In one embodiment, the method for measuring the oil quantity displayed in the automobile fuel gauge specifically calculates the oil quantity at the current moment by the following formula:
[0056] f(t)=f(x i )+{[f(x i+1 )-f(x i )] / (x i+1 -x i )}*(tx i );
[0057] Among them, x i ≤t≤x i+1 , x i represents the resistance value collected by the oil pump sensor at the start of calibration, x i+1 represents the resistance value collected by the oil pump sensor at the end of calibration, t represents the resistance value collected by the oil pump sensor at the current moment, f(x i ) represents the amount of oil provided by the oil tank at the start of the calibration, f(x i+1 ) represents the amount of oil provided by the oil tank at the end time of the calibration, and f(t) represents the calculated amount of oil at the current moment.
[0058] In the above formula for calculating f(t), [f(x i+1 )-f(x i )] / (x i+1 -x i) represents the ratio of the change in the oil volume to the change in the resistance value between the calibration start time and the calibration end time, (tx i ) represents the difference between the resistance value collected at the current moment and the resistance value collected at the start of calibration, f(x i ) represents the amount of oil provided by the oil tank at the start time of the calibration.
[0059] S103, filtering the oil volume at the current moment to obtain a reference oil volume at the current moment.
[0060] In one embodiment, there are at least two ways to filter the current fuel volume. For the initial moment of the car starting or when it is in a stationary state, average value filtering can be used, and after the car has been started for a period of time, first-order filtering can be used.
[0061] S104: Obtain a calibrated oil volume set corresponding to the current vehicle condition.
[0062] In one embodiment, the calibration oil volume selects different parameters according to different vehicle conditions. For example, when the vehicle condition is a refueling state, it is suitable to select a fast damping calibration oil volume, when the vehicle is in an abnormal driving state, it is suitable to select a medium damping calibration oil volume, and when the vehicle is in a normal driving state, it is suitable to select a slow damping calibration oil volume.
[0063] Furthermore, the calibration oil volume set corresponding to the current vehicle condition is calculated according to the following method:
[0064] Calibration oil volume = k*tank capacity / damping parameter;
[0065] Among them, k represents a coefficient constant, and the value of the damping parameter is set according to the different vehicle conditions. When the vehicle condition is a refueling state, a fast damping parameter is selected, when the vehicle condition is an abnormal driving state, a medium damping parameter is selected, and when the vehicle condition is a normal driving state, a slow damping parameter is selected.
[0066] Optionally, the values of the damping parameters under different vehicle conditions may be preset by the user based on experience.
[0067] In other embodiments, the damping of the calibrated oil volume can also be characterized by the response time. Further, the calibrated oil volume is the quotient of the fuel tank capacity of the vehicle and the response time corresponding to the vehicle condition. Specifically, the calibrated oil volume = fuel tank capacity / response time corresponding to the vehicle condition.
[0068] Furthermore, the response time of fast damping can be set to 2 seconds, the response time of medium damping can be set to 10 minutes, and the response time of slow damping can be set to 90 minutes.
[0069] S105. Calculate the fuel quantity displayed by the fuel gauge at the next moment according to the calibrated fuel quantity and the reference fuel quantity at the current moment.
[0070] In this embodiment, the time interval between the next moment and the previous moment is 1 second.
[0071] Furthermore, when the vehicle is in a refueling state, the amount of fuel displayed on the fuel gauge at the next moment = the amount of fuel displayed on the fuel gauge at the current moment + the calibrated amount of fuel; when the vehicle is in a non-refueling state, the amount of fuel displayed on the fuel gauge at the next moment = the amount of fuel displayed on the fuel gauge at the current moment - the calibrated amount of fuel.
[0072] In one embodiment, when the vehicle is powered on for the first time and the vehicle is in a stationary state, the method further includes:
[0073] The resistance value is collected multiple times within a preset time range by using an oil pump sensor;
[0074] Calculate the average value of the resistance values collected multiple times, wherein the number of times the average value of the resistance values collected may be 10 times;
[0075] Obtaining the amount of oil provided by the oil tank when the resistance value is the average value;
[0076] Repeat the steps of collecting the resistance value multiple times within a preset time range through the oil pump sensor to the step of obtaining the amount of oil provided by the oil tank when the resistance value is the average value multiple times to obtain multiple amounts of oil provided by the oil tank. Optionally, the number of "multiple times" in this step can be 5 times.
[0077] The average value of the multiple fuel amounts provided by the fuel tank is used as the fuel amount displayed by the fuel gauge at the time of power-on.
[0078] In this embodiment, the resistance values of the automobile at different calibration moments and the current moment are collected by the oil pump sensor when the automobile is in the same vehicle condition, and the oil volume at the current moment is calculated according to the resistance values at different calibration moments and the current moment, and the calculated oil volume is further filtered, and the calibrated oil volume set corresponding to the current vehicle condition is obtained, and the oil volume displayed on the fuel gauge at the current moment is finally obtained by combining the calibrated oil volume and the reference oil volume. This solution further filters the calculated oil volume to make the change of the displayed oil volume smoother, and comprehensively considers the vehicle condition of the automobile to select the corresponding calibrated oil volume for calibration, so that the oil volume displayed on the fuel gauge is more accurate.
[0079] Figure 2 FIG. 1 is a flow chart of a method for measuring the amount of oil displayed in a fuel gauge of an automobile in another embodiment of the present application. Figure 2As shown, according to another embodiment of the present application, the method for measuring the oil amount displayed in the automobile fuel gauge includes the above steps S101, S102, S104 and S105, and the above step S103 further includes the following steps S1031 and S1032.
[0080] S1031. Obtain a filter coefficient configured corresponding to the vehicle model.
[0081] In one embodiment, the filter coefficient is a result of a test in which cars of different models are driven in the same condition on the same road section, and the filter coefficient is a result obtained from the test.
[0082] S1032. Filter the oil volume at the current moment by using the filter coefficient to obtain a reference oil volume at the current moment.
[0083] In one embodiment, the measurement method of the fuel quantity displayed in the automobile fuel gauge is to calculate the reference fuel quantity by the following formula:
[0084] V f =V f (t-1)+[f(t)-V f (t-1)]*F / 10000;
[0085] Among them, V f Indicates the reference oil volume at the current moment, V f (t-1) represents the reference oil volume at the previous moment, f(t) represents the calculated oil volume at the current moment, and F represents the filter coefficient configured corresponding to the model of the car.
[0086] Figure 3 A step of determining a filter coefficient according to this embodiment is shown. In one embodiment, the method for measuring the fuel quantity displayed in the automobile fuel gauge further includes the following steps:
[0087] A filter coefficient value is randomly selected within a preset interval, and a vehicle is driven on a preset road section under a preset vehicle condition;
[0088] According to the selected value of the filter coefficient, the fuel volume at each moment during the driving process and the fuel volume displayed by the fuel gauge at the corresponding moment are calculated in real time;
[0089] When the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold, the selected filter coefficient is configured as a filter coefficient corresponding to the vehicle model. Otherwise, another filter coefficient value is selected within a preset interval and the step of selecting a preset vehicle condition for driving on a preset road section is repeated to this step until the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold, and the filter coefficient corresponding to the vehicle model is determined.
[0090] Figure 3 FIG. 1 is a flow chart of a method for measuring the amount of oil displayed in a fuel gauge of an automobile in another embodiment of the present application. Figure 3 As shown, the method for measuring the oil quantity displayed in the automobile fuel gauge includes the following steps S301 to S306 based on the above steps S101 to S105.
[0091] S301, arbitrarily selecting a filter coefficient value within a preset range;
[0092] S302, selecting a preset vehicle condition to drive on a preset road section;
[0093] S303, calculating in real time the fuel volume at each moment during the driving process and the fuel volume displayed by the fuel gauge at the corresponding moment according to the selected value of the filter coefficient;
[0094] S304, judging whether the difference between the fuel volume at each moment and the fuel volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold value, if so, jumping to step S305, otherwise, jumping to step S306;
[0095] S305, configuring the selected filter coefficient to be a filter coefficient corresponding to the vehicle model;
[0096] S306, selecting another filter coefficient value within a preset interval, and repeating the step of selecting a preset vehicle condition for driving on a preset road section to this step, until the difference between the calculated fuel volume at each moment and the fuel volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold.
[0097] Figure 5 FIG. 1 is a schematic diagram of the waveform change of the oil amount in the relationship between the oil amount and time in one embodiment of the present application, such as Figure 5 As shown, the upper waveform represents the resistance value collected by the oil pump sensor at different times, the middle waveform represents the reference oil volume obtained after filtering the oil volume obtained according to the resistance value at different times, and the lower waveform represents the oil volume displayed in the fuel gauge after calibrating the oil volume at different times.
[0098] This embodiment can obtain the most suitable filter coefficient for each vehicle model based on experiments, so that the oil level finally displayed on the fuel gauge of this application combines the characteristics of various aspects of the car itself, further improving the accuracy of the oil level display.
[0099] Figure 4 is a schematic diagram of a use scenario of a vehicle condition change in an embodiment of the present application. According to a use scenario of this embodiment, Figure 4 As shown, when the car is powered on for the first time, the average resistance value is collected within 1 second. If the collected resistance value is within the valid range, the resistance value is converted into a fuel value. The amount of oil displayed on the fuel gauge = the amount of oil provided by the fuel tank = the amount of oil calculated based on the average of multiple amounts of oil provided by the fuel tank.
[0100] like Figure 4 As shown in Figure 1, when the vehicle changes from dynamic to static in the T1 condition:
[0101] When the car is not ignited or the speed of the car is less than a preset value, and the duration of the speed being less than the preset value reaches a certain amount, it can be determined that the current vehicle condition of the car is T1, that is, the vehicle changes from dynamic to static.
[0102] Get the amount of fuel provided by the fuel tank, and get the amount of fuel displayed on the fuel gauge based on the amount of fuel provided by the fuel tank.
[0103] In the T2 condition, the vehicle is refueling while stationary:
[0104] The condition for judging that the vehicle is in the T2 vehicle condition and the vehicle is refueling in a stationary state is: the difference between the fuel volume calculated based on the average value of multiple fuel volumes provided by the fuel tank and the fuel volume provided by the fuel tank at the current moment is greater than or equal to a preset value, and the duration of this state is greater than or equal to a preset time, for example, the duration of this state is greater than or equal to 5 seconds;
[0105] Or the oil volume calculated based on the average value of multiple oil volumes provided by the oil tank continuously increases or decreases within a preset time period (e.g., 5 seconds), and the change step value is ≥ the preset time period, and the difference between the maximum oil volume and the minimum oil volume calculated based on the average value of multiple oil volumes provided by the oil tank during this period is greater than or equal to the preset oil volume value;
[0106] Or the absolute value of the difference between the oil amount displayed on the fuel gauge and the oil amount calculated based on the average of multiple oil amounts provided by the fuel tank is greater than or equal to a preset value, and the duration of this state is greater than or equal to a preset time period, for example, the duration of this state is greater than or equal to 5 seconds.
[0107] When any of the above three conditions is met, it is determined that the vehicle is in a refueling state.
[0108] At this time, the fuel amount displayed on the fuel gauge quickly follows the reference fuel amount obtained by filtering until the refueling mode is exited; the fuel amount provided by the fuel tank quickly follows the fuel amount calculated based on the average of multiple fuel amounts provided by the fuel tank until the refueling mode is exited.
[0109] In T3 condition, the vehicle exits the refueling state and returns to the stationary state:
[0110] The condition for judging that the vehicle is in the T2 vehicle condition or the T3 vehicle condition and exits the refueling state and returns to the stationary state is that the absolute value of the difference between the fuel volume displayed on the fuel gauge and the fuel volume calculated based on the average value of multiple fuel volumes provided by the fuel tank is continuously stable within a preset range, and the continuous stability time reaches a preset time threshold, for example, the continuous stability time reaches 5 seconds;
[0111] Or the oil volume fluctuation range calculated based on the average value of multiple oil volumes provided by the oil tank remains stable within a preset range, and the duration of the continuous stability reaches a preset time threshold, for example, the continuous stability time reaches 5 seconds;
[0112] or the absolute value of the difference between the reference oil volume obtained by filtering and the oil volume calculated according to the average value of multiple oil volumes provided by the fuel tank is continuously and stably within a preset range, and the continuous stability time reaches a preset time threshold, for example, the continuous stability time reaches 5 seconds;
[0113] When any of the above three conditions is met, it is determined that the vehicle is in the T3 vehicle condition and exits the refueling state and returns to a stationary state.
[0114] In T4 and T5 vehicle conditions, the stop mode is switched to the driving mode:
[0115] The judgment condition for judging that the vehicle is in T4 and T5 vehicle conditions and switching from the stop mode to the driving mode is: when the vehicle speed is greater than or equal to the preset speed, it is judged that the vehicle is switched from the stop mode to the driving mode.
[0116] In the T6 condition, the car switches from idling to parking:
[0117] The conditions for judging whether the vehicle is in T6 condition and switching from idling to parking state are:
[0118] The engine does not start or the engine speed is less than the preset speed or the engine disconnection is detected;
[0119] Either the vehicle is not ignited, or the vehicle speed is lower than a preset speed, and the duration of the speed being lower than the preset speed is greater than or equal to a preset time.
[0120] At this time, the fuel amount displayed on the fuel gauge is controlled to remain unchanged, that is, the fuel amount displayed on the fuel gauge at the next moment is equal to the fuel amount displayed on the fuel gauge at the current moment.
[0121] In the T7 condition, the car switches from the parking state to the idling state:
[0122] The conditions for judging that the car is in T7 condition and switching from the shutdown state to the idle state are: the engine signal is valid and the engine speed is greater than or equal to 500r / min, or the vehicle speed is less than or equal to the preset speed, and the duration of being less than the speed reaches a preset time threshold, for example, the continuous stable time reaches 5 seconds.
[0123] At this time, the traditional solution is adopted to calculate the fuel consumption through the injection signal of the engine control unit, and the initial value of the fuel amount is subtracted from the fuel consumption to obtain the current remaining fuel amount as the fuel amount displayed in the fuel gauge.
[0124] In the T8 condition, the car switches from an abnormal state to a normal driving state:
[0125] The conditions for judging that the vehicle is in T8 condition and switching back to normal driving state from abnormal state are: the vehicle speed is greater than or equal to the preset speed, and the absolute value of the difference between the fuel amount displayed on the fuel gauge and the reference fuel amount obtained after filtering is less than or equal to the preset range.
[0126] At this time, exit the medium-speed damping mode and execute the slow-speed damping of the normal driving mode.
[0127] When the fuel tank of the car is in a low fuel state, the oil float is close to the bottom of the tank, and the resistance value detection may be inaccurate. The fuel amount displayed on the fuel gauge is the reference fuel amount obtained after low fuel slow damping approach filtering.
[0128] When the fuel tank of the car is in a normal fuel level state, the fuel level displayed on the fuel gauge is the reference fuel level obtained after the slow damping approach filtering process;
[0129] When the car's fuel tank is in an overfilled state, the fuel is full at this time, so the center value of the oscillation will be smaller than the actual fuel value. The fuel amount displayed on the fuel gauge is the reference fuel amount obtained after the overfilled slow damping approach filtering process.
[0130] In the T9 condition, the car switches from the normal state to the abnormal fuel tank driving state:
[0131] The judgment condition for judging that the car is in T9 condition and switches from normal state to abnormal fuel tank driving state is: the vehicle speed is greater than or equal to the preset speed, and the absolute value of the difference between the fuel amount displayed on the fuel gauge and the reference fuel amount obtained after filtering is greater than or equal to the preset range, and the duration greater than the range reaches a preset time.
[0132] At this time, the medium-speed damping of the normal driving mode is executed and a fault code is sent to the control center.
[0133] If the difference between the oil amount displayed on the fuel gauge and the reference oil amount obtained after filtering is greater than or equal to a preset range, it indicates that the fuel tank is leaking. If the difference between the reference oil amount obtained after filtering and the oil amount displayed on the fuel gauge is greater than or equal to the preset range, it indicates that the oil float is stuck.
[0134] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0135] Figure 6 : is a structural block diagram of a metering device for displaying the amount of oil in a fuel gauge of an automobile in one embodiment of the present application. The metering device for displaying the amount of oil in a fuel gauge of an automobile provided in this embodiment is as follows: Figure 6 As shown, the metering device 100 for displaying the fuel quantity in the automobile fuel gauge includes a resistance value acquisition module 11 , a first calculation module 12 , a filtering module 13 , a calibration module 14 and a second calculation module 15 .
[0136] The resistance value acquisition module 11 is used to acquire the resistance value of the vehicle at different calibration times and the current time when the vehicle is in the same vehicle condition through the oil pump sensor.
[0137] The first calculation module 12 is used to calculate the oil volume at the current moment according to the resistance values at different calibration moments and the resistance value at the current moment.
[0138] The filtering module 13 is used to filter the oil volume at the current moment to obtain a reference oil volume at the current moment.
[0139] In one embodiment, the filtering module further comprises:
[0140] A filter coefficient acquisition unit, used to acquire a filter coefficient configured corresponding to the vehicle model;
[0141] The reference oil quantity calculation unit is used to filter the oil quantity at the current moment through the filter coefficient to obtain the reference oil quantity at the current moment.
[0142] In this embodiment, the reference oil quantity calculation unit is specifically used to calculate the reference oil quantity by the following formula:
[0143] V f =V f (t-1)+[f(t)-V f (t-1)]*F / 10000;
[0144] Among them, V f Indicates the reference oil volume at the current moment, V f(t-1) represents the reference oil volume at the previous moment, f(t) represents the calculated oil volume at the current moment, and F represents the filter coefficient configured corresponding to the model of the car.
[0145] The calibration module 14 is used to obtain a calibration oil volume set corresponding to the current vehicle condition.
[0146] The second calculation module 15 is used to calculate the fuel quantity displayed by the fuel gauge at the next moment according to the calibrated fuel quantity and the reference fuel quantity at the current moment.
[0147] In one embodiment, the metering device for displaying the fuel quantity in the automobile fuel gauge further comprises:
[0148] The filter coefficient selection module is used to arbitrarily select a filter coefficient value within a preset interval and select a preset vehicle condition to drive on a preset road section.
[0149] The first calculation module is also used to calculate the fuel volume at each moment during the driving process and the fuel volume displayed by the fuel gauge at the corresponding moment in real time according to the selected value of the filter coefficient.
[0150] The measuring device for displaying the amount of oil in the automobile fuel gauge also includes:
[0151] A loop module is used to configure the selected filter coefficient as a filter coefficient corresponding to the model of the automobile when the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold value, otherwise another filter coefficient value is selected within a preset interval to repeat the steps of selecting a preset vehicle condition to travel on a preset road section to this step, until the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold value, and the filter coefficient corresponding to the model of the automobile is determined.
[0152] In one embodiment, the resistance value acquisition module 11 is specifically used to obtain the resistance value of the oil pump sensor acquired at the start time of calibration, the resistance value acquired at the end time of calibration, and the resistance value acquired at the current time.
[0153] In one embodiment, the metering device 100 for displaying the fuel quantity in the automobile fuel gauge further comprises:
[0154] A fuel tank oil quantity acquisition unit, used to acquire the fuel quantity provided by the fuel tank at the start time of the calibration and the fuel quantity provided at the end time of the calibration;
[0155] A first calculation unit, used for calculating the ratio of the change in the oil volume to the change in the resistance value between the calibration start time and the calibration end time;
[0156] The second calculation unit is used to calculate the oil volume at the current moment according to the difference between the resistance value collected at the current moment and the resistance value collected at the calibration start moment, the ratio and the oil volume provided by the oil tank at the calibration start moment.
[0157] Furthermore, the second calculation unit calculates the oil volume at the current moment specifically by the following formula:
[0158] f(t)=f(x i )+{[f(x i+1 )-f(x i )] / (x i+1 -x i )}*(tx i );
[0159] Among them, x i ≤t≤x i+1 , x i represents the resistance value collected by the oil pump sensor at the start of calibration, x i+1 represents the resistance value collected by the oil pump sensor at the end of calibration, t represents the resistance value collected by the oil pump sensor at the current moment, f(x i ) represents the amount of oil provided by the oil tank at the start of the calibration, f(x i+1 ) represents the amount of oil provided by the oil tank at the end time of the calibration, and f(t) represents the calculated amount of oil at the current moment.
[0160] In one of the embodiments, the resistance value acquisition module is further used to acquire the resistance value multiple times within a preset time range through an oil pump sensor;
[0161] The measuring device for displaying the fuel quantity in the automobile fuel gauge also includes:
[0162] A third calculation module is used to calculate the average value of the resistance values collected multiple times;
[0163] The oil tank oil quantity acquisition unit is also used to acquire the oil quantity provided by the oil tank when the resistance value is the average value;
[0164] A repeating unit, configured to repeat the steps of collecting the resistance value multiple times within a preset time range through the oil pump sensor to obtaining the oil volume provided by the oil tank when the resistance value is the average value multiple times, to obtain multiple oil volumes provided by the oil tank;
[0165] The fuel quantity determination unit is used to use the average value of multiple fuel quantities provided by the fuel tank as the fuel quantity displayed by the fuel gauge at the time of power-on.
[0166] The specific definition of the metering device for displaying the amount of oil in the automobile fuel gauge can be found in the definition of the remote control method above, which will not be repeated here. Each module in the above-mentioned metering device for displaying the amount of oil in the automobile fuel gauge can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the automobile electronic control system in the form of hardware, or can be stored in the memory in the automobile electronic control system in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules.
[0167] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0168] In one embodiment, an automotive electronic control system is provided. The automotive electronic control system is arranged in an automobile, and its internal structure diagram can be as follows: Figure 7 As shown. The automobile electronic control system includes a processor, a memory, a network interface, a display screen and an oil pump sensor connected through a system bus. Among them, the processor of the automobile electronic control system is used to provide computing and control capabilities. The memory of the automobile electronic control system includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used for the automobile to communicate with the external network, and the oil pump sensor is used to collect resistance values. When the computer program is executed by the processor, a metering method for displaying the amount of oil in the automobile fuel gauge is implemented.
[0169] In one embodiment, an automotive electronic control system is provided, including an oil pump sensor, a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for measuring the oil quantity displayed in the automotive fuel gauge in the above embodiment are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit of the metering device for displaying the fuel quantity in the automobile fuel gauge in the above-mentioned embodiment are realized, for example Figure 6 The functions of modules 11 to 15 are shown in Figure 1. To avoid repetition, they will not be described here.
[0170] Figure 8 Schematic diagram of the use environment of the automotive electronic control system in one embodiment of the present application. Figure 8 As shown, the automobile electronic control system can be arranged inside the automobile.
[0171] In one embodiment, a computer-readable storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for measuring the fuel quantity displayed in the fuel gauge of an automobile in the above embodiment are implemented, for example Figure 1 Alternatively, when the computer program is executed by the processor, the functions of each module / unit of the metering device for displaying the fuel quantity in the automobile fuel gauge in the above-mentioned embodiment are realized, for example Figure 6 The functions of modules 11 to 15 are shown in Figure 1. To avoid repetition, they will not be described here.
[0172] The present embodiment provides a method and device for measuring the oil quantity displayed in an automobile fuel gauge, an automobile electronic control system, and a computer-readable storage medium. The fuel pump sensor collects the resistance values of the automobile at different calibration times and the current time when the automobile is in the same vehicle condition, calculates the oil quantity at the current time according to the resistance values at different calibration times and the current time, further filters the calculated oil quantity, and obtains the calibrated oil quantity set corresponding to the current vehicle condition. The oil quantity displayed on the fuel gauge at the current time is finally obtained by combining the calibrated oil quantity and the reference oil quantity. The present solution further filters the calculated oil quantity to make the displayed oil quantity change more gradually, and comprehensively considers the vehicle condition of the automobile to select the corresponding calibrated oil quantity for calibration, so that the oil quantity displayed on the fuel gauge is more accurate.
[0173] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for measuring the amount of fuel displayed in a car fuel gauge. It is characterized in that The method comprises: The oil pump sensor is used to collect the resistance value of the vehicle at different calibration times and the current resistance value in the same vehicle condition; Calculating the oil volume at the current moment according to the resistance values at the different calibration moments and the resistance value at the current moment; Performing filtering on the oil volume at the current moment to obtain a reference oil volume at the current moment; The step of filtering the oil volume at the current moment includes: Obtaining a filter coefficient configured corresponding to the vehicle model; Performing filtering processing on the oil volume at the current moment by using the filtering coefficient to obtain a reference oil volume at the current moment; Get the calibrated oil volume set corresponding to the current vehicle condition; Calculating the fuel quantity displayed by the fuel gauge at the next moment according to the calibrated fuel quantity and the reference fuel quantity at the current moment; The method further comprises: A filter coefficient value is randomly selected within a preset interval, and a vehicle is driven on a preset road section under a preset vehicle condition; According to the selected value of the filter coefficient, the fuel volume at each moment during the driving process and the fuel volume displayed by the fuel gauge at the corresponding moment are calculated in real time; When the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold, the selected filter coefficient is configured as a filter coefficient corresponding to the vehicle model of the vehicle; otherwise, another filter coefficient value is selected within a preset interval, and the step of selecting a preset vehicle condition and driving on a preset road section is returned to be executed; until the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold, the filter coefficient corresponding to the vehicle model is determined; The reference oil volume is calculated by the following formula: Vf=Vf(t-1)+[f(t)-Vf(t-1)]*F / 10000; Wherein, Vf represents the reference oil volume at the current moment, Vf(t-1) represents the reference oil volume at the previous moment, f(t) represents the calculated oil volume at the current moment, and F represents the filter coefficient configured corresponding to the vehicle model; The calibration oil volume set corresponding to the current vehicle condition is calculated as follows: Calibration oil volume = k*tank capacity / damping parameter; Wherein, k represents a coefficient constant, and the value of the damping parameter is set according to the different vehicle conditions. When the vehicle condition is a refueling state, a fast damping parameter is selected, when the vehicle condition is an abnormal driving state, a medium damping parameter is selected, and when the vehicle condition is a normal driving state, a slow damping parameter is selected; The oil volume at the current moment is calculated by the following formula: f(t)=f(xi)+{[f(xi+1)-f(xi)] / (xi+1-xi)}*(t-xi); Among them, xi≤t≤xi+1, xi represents the resistance value collected by the oil pump sensor at the start time of calibration, xi+1 represents the resistance value collected by the oil pump sensor at the end time of calibration, t represents the resistance value collected by the oil pump sensor at the current moment, f(xi) represents the amount of oil provided by the oil tank at the start time of calibration, f(xi+1) represents the amount of oil provided by the oil tank at the end time of calibration, and f(t) represents the calculated amount of oil at the current moment.
2. The method for measuring the fuel quantity displayed in the automobile fuel gauge according to claim 1, It is characterized in that The step of collecting the resistance values of the vehicle at different calibration times and the resistance value at the current time in the same vehicle condition by using the oil pump sensor comprises: Obtaining the resistance value of the oil pump sensor collected at the start time of calibration, the resistance value collected at the end time of calibration, and the resistance value collected at the current time; The step of calculating the oil volume at the current moment according to the resistance value at the calibration moment and the resistance value at the current moment comprises: Obtaining the amount of oil provided by the oil tank at the start time of the calibration and the amount of oil provided by the oil tank at the end time of the calibration; Calculating the ratio of the change in the oil volume to the change in the resistance value between the calibration start time and the calibration end time; The oil volume at the current moment is calculated according to the difference between the resistance value collected at the current moment and the resistance value collected at the calibration start moment, the ratio, and the oil volume provided by the oil tank at the calibration start moment.
3. The method for measuring the fuel quantity displayed in the automobile fuel gauge according to any one of claims 1 to 2, It is characterized in that When the vehicle is powered on for the first time and the vehicle is in a stationary state, the method further includes: The resistance value is collected multiple times within a preset time range by using an oil pump sensor; Calculating an average value of the resistance values collected multiple times; Obtaining the amount of oil provided by the oil tank when the resistance value is the average value; Repeat the steps of collecting the resistance value multiple times within a preset time range through the oil pump sensor to the step of obtaining the amount of oil provided by the oil tank when the resistance value is the average value multiple times to obtain multiple amounts of oil provided by the oil tank; The average value of the multiple fuel amounts provided by the fuel tank is used as the fuel amount displayed by the fuel gauge at the time of power-on.
4. A measuring device for displaying the amount of fuel in a car fuel gauge, It is characterized in that The device comprises: The resistance value acquisition module is used to collect the resistance value of the vehicle at different calibration times and the current time in the same vehicle condition through the oil pump sensor; The first calculation module is used to calculate the oil volume at the current moment according to the resistance values at different calibration moments and the resistance value at the current moment; the oil volume at the current moment is calculated by the following formula: f(t)=f(xi)+{[f(xi+1)-f(xi)] / (xi+1-xi)}*(t-xi); Wherein, xi≤t≤xi+1, xi represents the resistance value collected by the oil pump sensor at the start time of calibration, xi+1 represents the resistance value collected by the oil pump sensor at the end time of calibration, t represents the resistance value collected by the oil pump sensor at the current time, f(xi) represents the amount of oil provided by the oil tank at the start time of calibration, f(xi+1) represents the amount of oil provided by the oil tank at the end time of calibration, and f(t) represents the calculated amount of oil at the current time; A filtering module, used for filtering the oil volume at the current moment to obtain a reference oil volume at the current moment; The filtering module also includes: A filter coefficient acquisition unit, used to acquire a filter coefficient configured corresponding to the vehicle model; The reference oil quantity calculation unit is used to filter the oil quantity at the current moment by using the filter coefficient to obtain the reference oil quantity at the current moment; the reference oil quantity is calculated by the following formula: Vf=Vf(t-1)+[f(t)-Vf(t-1)]*F / 10000; Wherein, Vf represents the reference oil volume at the current moment, Vf(t-1) represents the reference oil volume at the previous moment, f(t) represents the calculated oil volume at the current moment, and F represents the filter coefficient configured corresponding to the vehicle model; The calibration module is used to obtain the calibration oil volume set corresponding to the current vehicle condition; the calibration oil volume set corresponding to the current vehicle condition is calculated according to the following method: Calibration oil volume = k*tank capacity / damping parameter; Wherein, k represents a coefficient constant, and the value of the damping parameter is set according to the different vehicle conditions. When the vehicle condition is a refueling state, a fast damping parameter is selected, when the vehicle condition is an abnormal driving state, a medium damping parameter is selected, and when the vehicle condition is a normal driving state, a slow damping parameter is selected; A second calculation module, used for calculating the fuel quantity displayed by the fuel gauge at the next moment according to the calibrated fuel quantity and the reference fuel quantity at the current moment; The device also includes: A filter coefficient selection module is used to select a filter coefficient value at random within a preset interval, and select a preset vehicle condition to drive on a preset road section; The first calculation module is further used to calculate the fuel volume at each moment during the driving process and the fuel volume displayed by the fuel gauge at the corresponding moment in real time according to the selected value of the filter coefficient; A loop module is used to configure the selected filter coefficient as a filter coefficient corresponding to the model of the automobile when the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold value, otherwise select another filter coefficient value within a preset interval, and return to execute the step of selecting a preset vehicle condition for driving on a preset road section; until the difference between the calculated oil volume at each moment and the oil volume displayed on the fuel gauge at the corresponding moment is less than a preset threshold value, determine the filter coefficient corresponding to the model of the automobile.
5. An automotive electronic control system, comprising an oil pump sensor, a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method for measuring the oil quantity display in the automobile fuel gauge as claimed in any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method for measuring the fuel quantity display in a fuel gauge of an automobile as claimed in any one of claims 1 to 3 are implemented.
