CN107144316A - The computational methods that a kind of automobile instrument oil mass is shown - Google Patents
The computational methods that a kind of automobile instrument oil mass is shown Download PDFInfo
- Publication number
- CN107144316A CN107144316A CN201710287298.2A CN201710287298A CN107144316A CN 107144316 A CN107144316 A CN 107144316A CN 201710287298 A CN201710287298 A CN 201710287298A CN 107144316 A CN107144316 A CN 107144316A
- Authority
- CN
- China
- Prior art keywords
- states
- oil mass
- reference point
- counter
- statebuild
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F23/00—Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
Landscapes
- Physics & Mathematics (AREA)
- Fluid Mechanics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)
Abstract
The invention discloses the computational methods that a kind of automobile instrument oil mass in automobile instrument field is shown, including following 1)Gather AD signals;2)Judge whether reference point is set up, be, then it is no into next step, then set up reference point and enter next step;3)It is to forbid or move to judge vehicle;3‑1)Static, judgement sets up whether reference point is set up, and is then to enter next step, otherwise sets up reference point and enter next step;Foundation refers to comparison point;Judge whether to refuel, if so, oil mass information is updated, if it is not, then subtracting distributive value, first-order linear damping algorithm process with current display oil mass;3‑2)Motion, removes reference point;Whether oil amount determination is less than " oil mass is low " threshold values, is, then subtracts atomizer distributive value as display oil mass with current display oil mass, and no, first-order linear damping algorithm process is shown as current oil mass;4)According to 1)‑3)Circulation, strong antijamming capability of the present invention can accurately show oil mass, can be applied in automobile oil mass monitoring system.
Description
Technical field
System is shown the present invention relates to a kind of automobile oil mass, more particularly to a kind of automobile oil mass shows computational methods.
Background technology
At present, automobile oil mass table only carries out turning after analog sampling by microprocessor to the resistance signal in fuel sensor
Data signal is turned to, then data signal is converted into Fuel Oil Remaining and is shown, but in vehicle travel process, due to road surface top
Winnow with a dustpan, the turn of vehicle and the factor such as bring to a halt can cause the pasta in fuel tank to rock, and cause the output oil mass on fuel sensor
There is larger deviation with actual fuel tank fuel quantity, or even cause display saltus step, the judgement of mistake is brought to user.
The content of the invention
It is an object of the invention to provide the computational methods that a kind of automobile instrument oil mass is shown, it can not be put down by external interference
Steady accurate display automobile fuel oil is remaining.
The object of the present invention is achieved like this:A kind of computational methods that automobile instrument oil mass is shown, it is characterised in that bag
Include following steps:
Step 1)It is electric in instrument, fuel level sensor collection AD signals;
Step 2)Judge whether reference point is set up, if so, then entering next step, if it is not, then setting up reference point and entering next
Step;
Step 3)It is illegal state or motion state to judge vehicle;
Step 3-1)If inactive state:
Step 3-1-1)Judgement sets up whether reference point is set up, if so, then entering next step, if it is not, then setting up reference point simultaneously
Into next step;
Step 3-1-2)Foundation refers to comparison point;
Step 3-1-3)Judge whether to refuel, if the oil mass with reference to comparison point is more than reference point, and be more than oiling threshold values, then
It is considered that oiling is handled, oil mass information is updated immediately, if it is not, then distributive value is subtracted with current display oil mass, by first-order linear
Algorithm process is damped, is shown as current oil mass;
Step 3-2)If motion state;
Step 3-2-1)Remove reference point;
Step 3-2-2)Whether oil amount determination is less than " oil mass is low " threshold values, is sprayed if so, then subtracting atomizer with current display oil mass
Oil mass is as display oil mass, if it is not, then being shown by first-order linear damping algorithm process as current oil mass;
Step 4)According to step 1)- step 3)Circulation.
Compared with prior art, the beneficial effects of the present invention are strong antijamming capability of the present invention can accurately show oil
Amount, while without making change to hardware configuration, may be directly applied in existing automobile oil mass monitoring system.
In order to further improve the precision of the present invention, step 3)First-order linear damps algorithm:
Sensor collection oil mass SensorVol and current display oil mass FuelVol are compared;
If equal, and damp counter DampCnt more than 0, damping counter successively decreases, until for 0;
If sensor collection oil mass SensorVol is more than current display oil mass FuelVol, and the mark IncFlag quilts that refuel
1 is set to, then damps counter DampCnt and progressively increases, when reaching IncLimited, display oil mass increases 1/512L, and damping meter
Number device DampCnt clear 0, if the other IncFlag of sign that refuels is equal to 0, it is 1 to set IncFlag, and enters next circulation;
If sensor collection oil mass SensorVol is less than current display oil mass FuelVol, and subtracts oil ga(u)ge knowledge DecFlag quilts
1 is set to, then damps counter DampCnt and progressively increases, when reaching DecLimited, display oil mass reduces 1/512L, and damps
Counter DampCnt clear 0, if subtracting oil ga(u)ge shows that other DecFlag is equal to 0, it is 1 to set DecFlag, and enters next follow
Ring;
Wherein, damping counter DampCnt initial values are 0, and IncLimited, DecLimited can be set according to actual needs
Put.
In order to further improve the stability of reference point foundation, step 2)With step 3)The specific method that middle reference point is set up
For:
Detect whether current state is StateInit states;If it is, initialization delay counter DelayCnt is 0, initialization
Sample counter AveCnt is 0, and enters StateDelay states;If it is not, then detection is StateDelay states;
If StateDelay states, then judge whether upper KL30 electricity for the first time, StateBuild states are if it is directly entered,
If not first time upper KL30 electricity, delay counter DelayCnt cycle counts, when DelayCnt reaches Limit, enter
StateBuild states;If not StateDelay states, then detection is StateBuild states, if in
StateBuild states, and sensor collection signal effectively, then adds up sampled value summation, reaches AveLimit times, calculating is adopted
Sample average value, the average value is reference point, and it is 1 to set reference point useful signal RefValid, into StateReady states;
If not in StateBuild states, then whether detection is in StateReady states, if in StateReady states,
Represent that reference point is successfully established, reference point, which is set up, to be terminated;If not in StateReady states, then detection whether
StateReset states, then terminate to set up if in StateReset states, if not in StateReset states, then examine
Whether survey in StateErr states, whether all terminate this reference point in StateErr states and set up;
StateInit states are init state.
In order to further improve the stability set up with reference to comparison point, step 3)The middle specific side set up with reference to comparison point
Method is:
If being currently StateInit states, initialization delay counter DelayCnt is 0, initializes sample counter
AveCnt is 0, into StateBuild states;If not in StateInit states, then whether detection is in StateBuild
State, if in StateBuild states, and sensor collection signal effectively, then adds up sampled value summation, reaches
AveLimit times, sample mean is calculated, the average value is to refer to comparison point, into StateReady states;If not
In StateBuild states, then whether detection is in StateReady states, and StateInit states are init state.
Brief description of the drawings
Fig. 1 is workflow diagram of the present invention.
Fig. 2 is first-order linear damping algorithm flow chart in the present invention.
Fig. 3 is reference point method for building up flow chart in the present invention.
Fig. 4 for the present invention in refer to comparison point method for building up flow chart.
Embodiment
The computational methods that a kind of automobile instrument oil mass as Figure 1-4 is shown, it is characterised in that comprise the following steps:
Step 1)It is electric in instrument, fuel level sensor collection AD signals;
Step 2)Judge whether reference point is set up, if so, then entering next step, if it is not, then setting up reference point and entering next
Step, reference point set up specific method be:Detect whether current state is StateInit states;If it is, initialization delay
Counter DelayCnt is 0, and initialization sample counter AveCnt is 0, and enters StateDelay states;If it is not, then
Detection is StateDelay states;If StateDelay states, then judge whether upper KL30 electricity for the first time, if
StateBuild states are then directly entered, delay counter DelayCnt cycle count electric if not first time upper KL30, when
DelayCnt reaches Limit, into StateBuild states;If not StateDelay states, then detection is
StateBuild states, if in StateBuild states, and sensor collection signal is effectively, then accumulative sampled value is asked
With, reach AveLimit times, calculate sample mean, the average value is reference point, setting reference point useful signal
RefValid is 1, into StateReady states;If not in StateBuild states, then detection whether
StateReady states, if in StateReady states, represent that reference point is successfully established, and reference point, which is set up, to be terminated;If
It is not that in StateReady states, then whether detection if in StateReset state then ties in StateReset states
Shu Jianli, if not in StateReset states, then whether detection is in StateErr states, no matter whether
StateErr states all terminate the foundation of this reference point;StateInit states are init state;
Step 3)It is illegal state or motion state to judge vehicle;
Step 3-1)If inactive state:
Step 3-1-1)Judgement sets up whether reference point is set up, if so, then entering next step, if it is not, then setting up reference point simultaneously
Into next step;
Step 3-1-2)Foundation refers to comparison point, and specific method is:If being currently StateInit states, initialization delay meter
Number device DelayCnt is 0, and initialization sample counter AveCnt is 0, into StateBuild states;If not in
StateInit states, then whether detection is in StateBuild states, if in StateBuild states, and sensor is adopted
Collect signal effectively, then add up sampled value summation, reach AveLimit time, calculate sample mean, the average value be reference than
Compared with point, into StateReady states;If not in StateBuild states, then whether detection is in StateReady shapes
State, StateInit states are init state;
Step 3-1-3)Judge whether to refuel, if the oil mass with reference to comparison point is more than reference point, and be more than oiling threshold values, then
It is considered that oiling is handled, oil mass information is updated immediately, if it is not, then distributive value is subtracted with current display oil mass, by first-order linear
Algorithm process is damped, is shown as current oil mass, first-order linear damping algorithm is specially:Sensor is gathered into oil mass
SensorVol and current display oil mass FuelVol compare;If it is equal, and counter DampCnt is damped more than 0, damping meter
Number devices successively decrease, until for 0;If sensor collection oil mass SensorVol is more than current display oil mass FuelVol, and refuels
Mark IncFlag is arranged to 1, then damps counter DampCnt and progressively increase, and when reaching IncLimited, display oil mass increases by 1/
512L, and damping counter DampCnt clear 0, if the other IncFlag of sign that refuels is equal to 0, it is 1 to set IncFlag, is gone forward side by side
Enter next circulation;If sensor collection oil mass SensorVol is less than current display oil mass FuelVol, and subtracts oil ga(u)ge knowledge
DecFlag is arranged to 1, then damps counter DampCnt and progressively increase, and when reaching DecLimited, display oil mass reduces 1/512L,
And counter DampCnt clear 0 is damped, if subtracting oil ga(u)ge shows that other DecFlag is equal to 0, it is 1 to set DecFlag, and is entered
Next circulation;Wherein, damping counter DampCnt initial values are 0, and IncLimited, DecLimited can be according to actual need
It is configured;
Step 3-2)If motion state;
Step 3-2-1)Remove reference point;
Step 3-2-2)Whether oil amount determination is less than " oil mass is low " threshold values, is sprayed if so, then subtracting atomizer with current display oil mass
Oil mass is as display oil mass, if it is not, then being shown by first-order linear damping algorithm process as current oil mass, first-order linear damping
Algorithm is ibid;
Step 4)According to step 1)- step 3)Circulation.
The invention is not limited in above-described embodiment, on the basis of technical scheme disclosed by the invention, the skill of this area
Art personnel are according to disclosed technology contents, it is not necessary to which performing creative labour just can make one to some of which technical characteristic
A little to replace and deform, these are replaced and deformed within the scope of the present invention.
Claims (4)
1. the computational methods that a kind of automobile instrument oil mass is shown, it is characterised in that comprise the following steps:
Step 1)It is electric in instrument, fuel level sensor collection AD signals;
Step 2)Judge whether reference point is set up, if so, then entering next step, if it is not, then setting up reference point and entering next
Step;
Step 3)It is illegal state or motion state to judge vehicle;
Step 3-1)If inactive state:
Step 3-1-1)Judgement sets up whether reference point is set up, if so, then entering next step, if it is not, then setting up reference point simultaneously
Into next step;
Step 3-1-2)Foundation refers to comparison point;
Step 3-1-3)Judge whether to refuel, if the oil mass with reference to comparison point is more than reference point, and be more than oiling threshold values, then
It is considered that oiling is handled, oil mass information is updated immediately, if it is not, then distributive value is subtracted with current display oil mass, by first-order linear
Algorithm process is damped, is shown as current oil mass;
Step 3-2)If motion state;
Step 3-2-1)Remove reference point;
Step 3-2-2)Whether oil amount determination is less than " oil mass is low " threshold values, is sprayed if so, then subtracting atomizer with current display oil mass
Oil mass is as display oil mass, if it is not, then being shown by first-order linear damping algorithm process as current oil mass;
Step 4)According to step 1)- step 3)Circulation.
2. the computational methods that a kind of automobile instrument oil mass according to claim 1 is shown, it is characterised in that step 3)Single order
Linear damping algorithm is specially:
Sensor collection oil mass SensorVol and current display oil mass FuelVol are compared;
If equal, and damp counter DampCnt more than 0, damping counter successively decreases, until for 0;
If sensor collection oil mass SensorVol is more than current display oil mass FuelVol, and the mark IncFlag quilts that refuel
1 is set to, then damps counter DampCnt and progressively increases, when reaching IncLimited, display oil mass increases 1/512L, and damping meter
Number device DampCnt clear 0, if the other IncFlag of sign that refuels is equal to 0, it is 1 to set IncFlag, and enters next circulation;
If sensor collection oil mass SensorVol is less than current display oil mass FuelVol, and subtracts oil ga(u)ge knowledge DecFlag quilts
1 is set to, then damps counter DampCnt and progressively increases, when reaching DecLimited, display oil mass reduces 1/512L, and damps
Counter DampCnt clear 0, if subtracting oil ga(u)ge shows that other DecFlag is equal to 0, it is 1 to set DecFlag, and enters next follow
Ring;
Wherein, damping counter DampCnt initial values are 0, and IncLimited, DecLimited can be set according to actual needs
Put.
3. the computational methods that a kind of automobile instrument oil mass according to claim 1 or 2 is shown, it is characterised in that step 2)
With step 3)The specific method that middle reference point is set up is:
Detect whether current state is StateInit states;If it is, initialization delay counter DelayCnt is 0, initialization
Sample counter AveCnt is 0, and enters StateDelay states;If it is not, then detection is StateDelay states;
If StateDelay states, then judge whether upper KL30 electricity for the first time, StateBuild states are if it is directly entered,
If not first time upper KL30 electricity, delay counter DelayCnt cycle counts, when DelayCnt reaches Limit, enter
StateBuild states;If not StateDelay states, then detection is StateBuild states, if in
StateBuild states, and sensor collection signal effectively, then adds up sampled value summation, reaches AveLimit times, calculating is adopted
Sample average value, the average value is reference point, and it is 1 to set reference point useful signal RefValid, into StateReady states;
If not in StateBuild states, then whether detection is in StateReady states, if in StateReady states,
Represent that reference point is successfully established, reference point, which is set up, to be terminated;If not in StateReady states, then detection whether
StateReset states, then terminate to set up if in StateReset states, if not in StateReset states, then examine
Whether survey in StateErr states, whether all terminate this reference point in StateErr states and set up;
StateInit states are init state.
4. the computational methods that a kind of automobile instrument oil mass according to claim 1 or 2 is shown, it is characterised in that step 3)
Middle set up be with reference to the specific method of comparison point:
If being currently StateInit states, initialization delay counter DelayCnt is 0, initializes sample counter
AveCnt is 0, into StateBuild states;If not in StateInit states, then whether detection is in StateBuild
State, if in StateBuild states, and sensor collection signal effectively, then adds up sampled value summation, reaches
AveLimit times, sample mean is calculated, the average value is to refer to comparison point, into StateReady states;If not
In StateBuild states, then whether detection is in StateReady states, and StateInit states are init state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710287298.2A CN107144316B (en) | 2017-04-27 | 2017-04-27 | A kind of calculation method that automobile instrument oil mass is shown |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710287298.2A CN107144316B (en) | 2017-04-27 | 2017-04-27 | A kind of calculation method that automobile instrument oil mass is shown |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107144316A true CN107144316A (en) | 2017-09-08 |
CN107144316B CN107144316B (en) | 2019-10-18 |
Family
ID=59774620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710287298.2A Active CN107144316B (en) | 2017-04-27 | 2017-04-27 | A kind of calculation method that automobile instrument oil mass is shown |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107144316B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110411527A (en) * | 2019-07-11 | 2019-11-05 | 北京汽车股份有限公司 | Oil consumption display methods, vehicle, cloud server, oil mass display system |
CN112161663A (en) * | 2020-09-29 | 2021-01-01 | 北京车和家信息技术有限公司 | Vehicle residual oil quantity determination method, device and equipment and vehicle |
CN114739485A (en) * | 2022-03-24 | 2022-07-12 | 润芯微科技(江苏)有限公司 | Automobile fuel calibration method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101660923A (en) * | 2009-09-08 | 2010-03-03 | 重庆长安汽车股份有限公司 | Remaining driving mileage processing method of automobile combination meter |
CN102452319A (en) * | 2010-10-20 | 2012-05-16 | 芜湖华泰汽车仪表有限公司 | Control method for automobile fuel gauge |
CN103644951A (en) * | 2013-12-19 | 2014-03-19 | 埃泰克汽车电子(芜湖)有限公司 | Processing method for fuel gauge of automobile combination meter |
CN104048733A (en) * | 2014-05-23 | 2014-09-17 | 苏州佳世达光电有限公司 | Oil mass measuring method and oil mass measuring system |
CN105021250A (en) * | 2015-06-19 | 2015-11-04 | 江苏新通达电子科技股份有限公司 | Display system of fuel instrument and working method thereof |
CN105270177A (en) * | 2014-07-24 | 2016-01-27 | 成都天兴仪表(集团)有限公司 | Oiling judgment strategy for automotive fuel gauge |
-
2017
- 2017-04-27 CN CN201710287298.2A patent/CN107144316B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101660923A (en) * | 2009-09-08 | 2010-03-03 | 重庆长安汽车股份有限公司 | Remaining driving mileage processing method of automobile combination meter |
CN102452319A (en) * | 2010-10-20 | 2012-05-16 | 芜湖华泰汽车仪表有限公司 | Control method for automobile fuel gauge |
CN103644951A (en) * | 2013-12-19 | 2014-03-19 | 埃泰克汽车电子(芜湖)有限公司 | Processing method for fuel gauge of automobile combination meter |
CN104048733A (en) * | 2014-05-23 | 2014-09-17 | 苏州佳世达光电有限公司 | Oil mass measuring method and oil mass measuring system |
CN105270177A (en) * | 2014-07-24 | 2016-01-27 | 成都天兴仪表(集团)有限公司 | Oiling judgment strategy for automotive fuel gauge |
CN105021250A (en) * | 2015-06-19 | 2015-11-04 | 江苏新通达电子科技股份有限公司 | Display system of fuel instrument and working method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110411527A (en) * | 2019-07-11 | 2019-11-05 | 北京汽车股份有限公司 | Oil consumption display methods, vehicle, cloud server, oil mass display system |
CN112161663A (en) * | 2020-09-29 | 2021-01-01 | 北京车和家信息技术有限公司 | Vehicle residual oil quantity determination method, device and equipment and vehicle |
CN112161663B (en) * | 2020-09-29 | 2024-04-26 | 北京车和家信息技术有限公司 | Vehicle residual oil amount determining method, device, equipment and vehicle |
CN114739485A (en) * | 2022-03-24 | 2022-07-12 | 润芯微科技(江苏)有限公司 | Automobile fuel calibration method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107144316B (en) | 2019-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103645822B (en) | The foreign matter detecting method of touch-screen and touch-screen | |
CN102522975B (en) | Adaptive-environmental touch key circuit and key touch detection method | |
CN107144316A (en) | The computational methods that a kind of automobile instrument oil mass is shown | |
CN101799734B (en) | Key detection method of capacitive touch screen | |
CN103310192B (en) | A kind of motor behavior recognition methods based on single-axis acceleration sensors | |
CN103216172A (en) | Self-learning method of anti-pinch parameters of electric car window | |
CN103606279B (en) | A kind of road trip mode method of discrimination and system based on smart mobile phone | |
CN104732799A (en) | Parking spot state detection method and device | |
CN103913591B (en) | Slewing rotating speed measurement method and device | |
CN101363896A (en) | High precision voltage transient event detection and wave-recording method | |
CN104406603A (en) | Step-counting method based on acceleration sensor and device thereof | |
CN104154989B (en) | The vibration monitoring method of unstable state slewing and vibration monitor system | |
CN104199572A (en) | Touch positioning method of touch display device and touch display device | |
CN105891681B (en) | A kind of cable line fault independent positioning method of the compound triggering of multiple threshold values | |
CN104598143A (en) | Electronic equipment and wakeup method thereof | |
CN108150252A (en) | A kind of urea level detection method and device | |
CN102944773B (en) | Method for detecting and classifying power disturbances based on space conversion | |
CN104535735B (en) | Water quality remote on-line monitoring method | |
CN104163185B (en) | Locomotive wheel-rail lubricating control device and method | |
CN105021250B (en) | A kind of fuel oil instrument display system and its working method | |
CN104201948B (en) | Control device and method of position-free sensor of switched reluctance motor | |
CN103631161A (en) | Filtering method based on state machine | |
CN106502459A (en) | A kind of smooth filtering method of capacitance touching control track noise signal | |
CN108460450A (en) | A kind of meter circle method based on geomagnetic sensor | |
CN103487100A (en) | Oil mass monitoring method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |