CN112539694B - Automobile body height detection device and method and automobile - Google Patents

Automobile body height detection device and method and automobile Download PDF

Info

Publication number
CN112539694B
CN112539694B CN202011301447.4A CN202011301447A CN112539694B CN 112539694 B CN112539694 B CN 112539694B CN 202011301447 A CN202011301447 A CN 202011301447A CN 112539694 B CN112539694 B CN 112539694B
Authority
CN
China
Prior art keywords
data
sampling
determining
sampling data
length
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.)
Active
Application number
CN202011301447.4A
Other languages
Chinese (zh)
Other versions
CN112539694A (en
Inventor
刘壬生
魏恒
邱东
陈辉
周亚生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011301447.4A priority Critical patent/CN112539694B/en
Publication of CN112539694A publication Critical patent/CN112539694A/en
Application granted granted Critical
Publication of CN112539694B publication Critical patent/CN112539694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/02Measuring arrangements characterised by the use of electric or magnetic techniques for measuring length, width or thickness
    • G01B7/06Measuring arrangements characterised by the use of electric or magnetic techniques for measuring length, width or thickness for measuring thickness

Abstract

The invention discloses a device and a method for detecting the height of a vehicle body of a vehicle and the vehicle, wherein the device comprises: the sampling unit is used for sampling the time of each charge and discharge of the inductor in the height sensor of the automobile according to a set sampling period to obtain the charge and discharge time as sampling data; the control unit is used for determining the maximum data length of a data group formed by the sampling data within a set sampling period and recording the maximum data length as n; and determining an average value of the first m sampled data within the data length; wherein n and m are positive integers, and m is less than or equal to n; taking the difference value between the (m + 1) th sampling data and the average value as a deviation amount, and determining the effective data length of a data group formed by the sampling data according to the deviation amount; and determining the height of the automobile body according to the data group of the sampling data corresponding to the effective data length. According to the scheme, the detection precision of the inductive height sensor for measuring the height of the automobile body of the automobile is improved.

Description

Automobile body height detection device and method and automobile
Technical Field
The invention belongs to the technical field of automobiles, and particularly relates to an automobile body height detection device and method of an automobile and an automobile, in particular to a self-adaptive acquisition device and method of an inductive height sensor and an automobile.
Background
In the related scheme, the height sensor for measuring the height of the vehicle body mainly comprises an inductive type height sensor, a Hall voltage type height sensor and a current type height sensor. Because the signal of the voltage type and current type height sensors is seriously attenuated due to the overlong wiring harness, most of commercial vehicles with longer bodies adopt the inductance type height sensors to measure the height of the bodies.
However, for the inductive height sensor, the measuring range is from several mH to hundreds mH, the inductance variation corresponding to the angle (height) is relatively small, and the sampling precision requirement reaches 0.1mH (about 1-5 per thousand). The reliability of the height sensor data is the basis for directly controlling the height and the posture of the vehicle body, namely the rapid and accurate acquisition of inductance, and the stability and the reliability of the data are very important.
The inductance of the inductance type height sensor is measured with high precision, which is very important for the control of the height of the vehicle body and the design of the posture of the vehicle body, and the rapidity and the accuracy of the sampling and the stability of the acquired data directly determine the control precision. For the measurement of the inductance of the inductive height sensor, the stability of the measurement accuracy and the real-time measurement are often contradictory.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention aims to provide a device and a method for detecting the height of an automobile body and the automobile, which aim to solve the problems that the stability and the real-time performance of an inductive height sensor for measuring the height of the automobile body cannot be synchronized, the detection precision of the inductive height sensor for measuring the height of the automobile body is influenced, and the effect of improving the detection precision of the inductive height sensor for measuring the height of the automobile body is achieved.
The invention provides a vehicle body height detection device of an automobile, comprising: a sampling unit and a control unit; the sampling unit is configured to sample the time of each charge and discharge of an inductor in the height sensor of the automobile according to a set sampling period to obtain charge and discharge time as sampling data; the control unit is configured to determine the maximum data length of a data group formed by the sampling data within a set sampling period, and the maximum data length is recorded as n; and determining an average value of the first m sampled data within the data length; wherein n and m are positive integers, and m is less than or equal to n; taking the difference value between the (m + 1) th sampling data and the average value as a deviation amount, and determining the effective data length of a data group formed by the sampling data according to the deviation amount; wherein the deviation is any one of variance deviation, standard deviation and mean square deviation; and determining the height of the automobile body according to the data group of the sampling data corresponding to the effective data length.
In some embodiments, the sampling unit includes: the device comprises a power supply, a reference power supply, a comparison module and an acquisition module; wherein, the sampling unit samples the time of inductance charging and discharging in the height sensor of car every time, includes: under the action of excitation of the power supply, the inductor and the resistor in the height sensor of the automobile are charged and discharged, the comparison module compares the voltage at two ends of the inductor with the voltage provided by the reference power supply and outputs a comparison result, and the acquisition module acquires the time difference from the excitation time of the power supply to the comparison result output time of the comparison module and takes the time difference as the charging and discharging time of the inductor in the height sensor of the automobile.
In some embodiments, the determining, by the control unit, the maximum data length of the data group of the sample data includes: determining the maximum data length of a data group formed by the sampling data according to the following formula:
Figure GDA0003338430950000021
wherein n is the maximum data length, v is the speed of the air spring height of the automobile, T is the sampling period, i is the current sampling frequency, Riδ is the weight occupied by the ith sampling data, and δ is the set target allowable deviation value.
In some embodiments, the control unit, determining an average of the first m sample data, comprises: and (4) assigning a set weight to each data in the first m sampling data, and calculating a weighted average value of the first m sampling data.
In some embodiments, the determining, by the control unit, an effective data length of a data group formed by the sample data according to the deviation amount includes: determining whether the deviation amount is greater than or equal to a set value; if the deviation is larger than or equal to the set value, determining that the effective data length of a data group formed by the sampling data is m-1; if the deviation is smaller than the set value, determining that the effective data length of a data group formed by the sampling data is m +1 under the condition that m +1 is smaller than or equal to n; and determining the effective data length of the data group formed by the sampling data to be n when m +1 is larger than n.
In some embodiments, the control unit determines an effective data length of a data group formed by the sample data according to the deviation amount, and further includes: under the condition that the effective data length of a data group formed by the sampling data is m-1, eliminating the sampling data of the 1 st time and the sampling data of the 2 nd time from the data group formed by the sampling data, reserving the sampling data of the m +1 th time, then continuously taking the difference value between the sampling data of the m +2 th time and the average value of the sampling data of the 3 rd time to the m +1 th time as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount; when the effective data length of the data group formed by the sampling data is m +1, adding the sampling data of the m +1 th time in the data group formed by the sampling data, then determining the average value of the first m +1 sampling data, continuously taking the difference value between the m +2 th sampling data and the average value of the first m +1 sampling data as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount; under the condition that the effective data length of a data group formed by the sampling data is n, removing the 1 st sampling data from the data group formed by the sampling data, adding the m +1 th sampling data, then determining the average value of the 2 nd sampling data to the m +1 th sampling data, taking the difference value between the m +2 th sampling data and the average value of the 2 nd sampling data to the m +1 th sampling data as a deviation, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation.
In some embodiments, the determining, by the control unit, the body height of the automobile according to the data group of the sampled data corresponding to the effective data length includes: determining an average value of the data group of the sampling data corresponding to the effective data length; and determining the inductance value of the height sensor of the automobile according to the average value of the data group of the sampling data corresponding to the effective data length, and determining the height of the automobile according to the inductance value of the height sensor of the automobile and the length of the connecting rod of the height sensor of the automobile.
In accordance with the above apparatus, a further aspect of the present invention provides an automobile comprising: the vehicle body height detection device of the vehicle is described above.
In accordance with the above-mentioned vehicle, a further aspect of the present invention provides a vehicle body height detecting method, including: sampling the time of each charge and discharge of an inductor in the height sensor of the automobile according to a set sampling period through a sampling unit to obtain the charge and discharge time as sampling data; determining the maximum data length of a data group formed by the sampling data within a set sampling period through a control unit, and recording the maximum data length as n; and determining an average value of the first m sampled data within the data length; wherein n and m are positive integers, and m is less than or equal to n; taking the difference value between the (m + 1) th sampling data and the average value as a deviation amount, and determining the effective data length of a data group formed by the sampling data according to the deviation amount; wherein the deviation is any one of variance deviation, standard deviation and mean square deviation; and determining the height of the automobile body according to the data group of the sampling data corresponding to the effective data length.
In some embodiments, the sampling unit includes: the device comprises a power supply, a reference power supply, a comparison module and an acquisition module; wherein, through the sampling unit, to the inductance is the time of charging and discharging at every turn in the height sensor of car samples, includes: under the action of excitation of the power supply, the inductor and the resistor in the height sensor of the automobile are charged and discharged, the comparison module compares the voltage at two ends of the inductor with the voltage provided by the reference power supply and outputs a comparison result, and the acquisition module acquires the time difference from the excitation time of the power supply to the comparison result output time of the comparison module and takes the time difference as the charging and discharging time of the inductor in the height sensor of the automobile.
In some embodiments, determining, by the control unit, a maximum data length of a data group of the sample data includes: determining the maximum data length of a data group formed by the sampling data according to the following formula:
Figure GDA0003338430950000041
wherein n is the maximum data length, v is the speed of the air spring height of the automobile, T is the sampling period, i is the current sampling frequency, Riδ is the weight occupied by the ith sampling data, and δ is the set target allowable deviation value.
In some embodiments, determining, by the control unit, an average of the first m sample data comprises: and (4) assigning a set weight to each data in the first m sampling data, and calculating a weighted average value of the first m sampling data.
In some embodiments, determining, by the control unit, an effective data length of the data group of the sample data according to the deviation amount includes: determining whether the deviation amount is greater than or equal to a set value; if the deviation is larger than or equal to the set value, determining that the effective data length of a data group formed by the sampling data is m-1; if the deviation is smaller than the set value, determining that the effective data length of a data group formed by the sampling data is m +1 under the condition that m +1 is smaller than or equal to n; and determining the effective data length of the data group formed by the sampling data to be n when m +1 is larger than n.
In some embodiments, determining, by the control unit, an effective data length of a data group formed by the sample data according to the deviation amount further includes: under the condition that the effective data length of a data group formed by the sampling data is m-1, eliminating the sampling data of the 1 st time and the sampling data of the 2 nd time from the data group formed by the sampling data, reserving the sampling data of the m +1 th time, then continuously taking the difference value between the sampling data of the m +2 th time and the average value of the sampling data of the 3 rd time to the m +1 th time as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount; when the effective data length of the data group formed by the sampling data is m +1, adding the sampling data of the m +1 th time in the data group formed by the sampling data, then determining the average value of the first m +1 sampling data, continuously taking the difference value between the m +2 th sampling data and the average value of the first m +1 sampling data as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount; under the condition that the effective data length of a data group formed by the sampling data is n, removing the 1 st sampling data from the data group formed by the sampling data, adding the m +1 th sampling data, then determining the average value of the 2 nd sampling data to the m +1 th sampling data, taking the difference value between the m +2 th sampling data and the average value of the 2 nd sampling data to the m +1 th sampling data as a deviation, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation.
In some embodiments, determining, by the control unit, a body height of the automobile according to the data set of the sampling data corresponding to the effective data length includes: determining an average value of the data group of the sampling data corresponding to the effective data length; and determining the inductance value of the height sensor of the automobile according to the average value of the data group of the sampling data corresponding to the effective data length, and determining the height of the automobile according to the inductance value of the height sensor of the automobile and the length of the connecting rod of the height sensor of the automobile.
Therefore, according to the scheme of the invention, different charging and discharging times of different inductance values are acquired through the charging constant circuit based on the measured voltage, and the small variation of the inductance values is captured to be used as the acquired data; filtering the acquired data by adopting a data length self-adaptive array type weighted average method in combination with the change condition of the height of the electric control air suspension; the self-adaptive control of real-time performance and stability is carried out on the measurement data of the inductive height sensor for measuring the height of the automobile body through the deviation between the acquisition data obtained by the m +1 th sampling and the average acquisition data of the acquisition data obtained by the m previous sampling, and the detection precision of the inductive height sensor for measuring the height of the automobile body is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
Fig. 1 is a schematic structural view of an embodiment of a body height detecting apparatus of an automobile according to the present invention;
FIG. 2 is a schematic structural diagram of an electrically controlled air suspension, specifically a side view of a vehicle, according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a sampling circuit;
FIG. 4 is a schematic diagram of an embodiment of a sampling circuit;
FIG. 5 is a schematic flow chart of an adaptive data length algorithm, specifically, an adaptive data length algorithm with variance as an example;
FIG. 6 is a data scale diagram of a queued weighted average data processing;
FIG. 7 is a schematic flow chart illustrating an embodiment of a method for detecting a body height of a vehicle according to the present invention;
FIG. 8 is a flowchart illustrating an embodiment of determining an effective data length of a data group formed by the sample data according to the deviation amount in the method of the present invention;
fig. 9 is a schematic flow chart of an embodiment of determining the body height of the vehicle in the method of the present invention.
The reference numbers in the embodiments of the present invention are as follows, in combination with the accompanying drawings:
1-a vehicle frame; 2-wheel support; 3-vehicle wheels; 4-an air spring; 5-a shock absorber; 6-a height sensor; 7-a height sensor connection rod; 8-an electromagnetic valve; 9-a gas storage tank; 10-height Control Unit ECU (Electronic Control Unit); 11-gas path; 12-signal lines.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to an embodiment of the present invention, there is provided a body height detecting apparatus of an automobile. Referring to fig. 1, a schematic diagram of an embodiment of the apparatus of the present invention is shown. The body height detecting apparatus of the automobile may include: a sampling unit and a control unit.
The sampling unit is configured to sample the time of each charging and discharging of an inductor in the height sensor of the automobile according to a set sampling period to obtain charging and discharging time as sampling data.
In some embodiments, the sampling unit includes: the device comprises a power supply, a reference power supply, a comparison module and an acquisition module (such as a main IC chip). The positive pole of power supply is connected to the first input of comparison module behind the resistance R among the height sensor of car, power supply's negative pole with reference power supply's negative pole is connected to the first input of comparison module behind the inductance L among the height sensor of car, reference power supply's positive pole is connected to the second input of comparison module, the output of comparison module is connected to collection module.
Specifically, the signal acquisition module is composed of an acquisition module (such as a main IC chip) and a peripheral circuit thereof. A comparator module comprising a comparator, a RL circuit comprising a resistor and an inductor, wherein the voltage U of the power supply source1And a comparison voltage U used as a reference power supply2Voltage of power supply U1Voltage U higher than reference power supply2
Wherein, the sampling unit samples the time of inductance charging and discharging in the height sensor of car every time, includes: under the action of excitation of the power supply, the inductor and the resistor in the height sensor of the automobile are charged and discharged, the comparison module compares the voltage at two ends of the inductor with the voltage provided by the reference power supply and outputs a comparison result, and the acquisition module acquires the time difference from the excitation time of the power supply to the comparison result output time of the comparison module and takes the time difference as the charging and discharging time of the inductor in the height sensor of the automobile.
Specifically, the power supply source U1Given a step signal, under the action of the excitation, the response voltage at two ends of the inductor in the RL loop is matched
Figure GDA0003338430950000072
The case (1). By adopting the method, different charging and discharging time of different inductance values can be captured quickly, so that the difference of small change of the inductance values is obtained, but the situation that the charging time fluctuates up and down at the moment of voltage comparison of the comparison module due to certain jitter of circuit voltage is caused, and therefore jitter elimination and filtering processing of software is required to be carried out on collected data.
The control unit is configured to determine the maximum data length of a data group formed by the sampling data within a set sampling period, and the maximum data length is recorded as n; and determining an average of the first m sample data over the data length. Wherein n and m are positive integers, and m is less than or equal to n.
In some embodiments, the determining, by the control unit, the maximum data length of the data group of the sample data includes: the control unit is specifically further configured to determine a maximum data length of a data group formed by the sample data according to the following formula:
Figure GDA0003338430950000071
wherein n is the maximum data length, v is the speed of the air spring height of the automobile, and T is the sampling periodI is the current sampling number, Riδ is the weight occupied by the ith sampling data, and δ is the set target allowable deviation value.
Specifically, due to the adoption of a data processing method of a weighted average value, if an array participating in calculation is too long, namely n is too large, data is distorted, and height sensor data cannot be reflected in time, so that control delay is caused; therefore, the maximum value range of n is considered. According to the example shown in fig. 2, when the control unit ECU charges and discharges the air spring by turning on and off the solenoid valve, the speed v of the vehicle height (i.e. the air spring height) is related to the on-off time (i.e. the duty ratio) of the solenoid valve, and when the main IC chip performs data sampling in the period of T and the length of the array data is n, the calculated data is delayed by
Figure GDA0003338430950000081
Therefore, the maximum value of the data length n is required to satisfy the requirement of setting the target allowable deviation value δ
Figure GDA0003338430950000082
The method is obtained according to the characteristics of the system such as the suspension, the air spring and the like and the target allowable deviation. Wherein v is the lifting speed of the vehicle body height (namely the air spring height), T is the sampling period, i is the current sampling frequency, n is the data length, Riδ is the weight occupied by the ith sampling data, and δ is the set target allowable deviation value.
Therefore, by combining the precision requirement required by the height of the vehicle body and the control speed of the air spring, the length of the sampling array participating in calculation is automatically adjusted, and the precision and the speed of the height adjustment of the vehicle body are controllable.
In some embodiments, the control unit, determining an average of the first m sample data, comprises: the control unit is specifically configured to assign a set weight to each of the first m pieces of sample data, and calculate a weighted average of the first m pieces of sample data.
Specifically, in the data processing mode of the queue-type weighted average with the self-adaptive data length, the sampling module acquires data regularly or irregularly, the IC chip arranges the data in the queue-type sequence according to the sampling time, n (n is a natural number, and n is more than or equal to 1) newly sampled samples are used, and then each data is assigned with a certain weight to calculate the weighted value.
Such as: collecting usage data D1~Dn,DnFor the latest data acquisition, the weight occupied by the n data is distributed as R1~RnWherein R is1+R2+..Rn+..+R n1 and R1≤R2≤..Rn≤..≤RnAnd finally obtaining filtering data:
Figure GDA0003338430950000083
in this algorithm, the value of the array n is variable, increasing or decreasing adaptively, depending on the value of the height sensor.
The control unit is further configured to determine a deviation amount between the m +1 th sample data and the average value, namely, a difference value between the m +1 th sample data and the average value as a deviation amount, and determine an effective data length of a data group formed by the sample data according to the deviation amount. Wherein the deviation is any one of variance deviation, standard deviation and mean square deviation.
Specifically, after the system starts operating, the main IC chip uses m values (D) of the latest data1~DmM is less than or equal to n), and calculating the average value of the array
Figure GDA0003338430950000084
And the deviation degree of each data of the array, including but not limited to variance, standard deviation, mean square deviation, and the like. When the main IC chip collects new data of the height sensor, the data deviation (variance Delta D) is calculated2) And judging whether the height has an ascending or descending trend according to the deviation degree.
In some embodiments, the determining, by the control unit, an effective data length of a data group formed by the sample data according to the deviation amount includes:
the control unit is specifically further configured to determine whether the deviation amount is greater than or equal to a set value.
The control unit is specifically configured to determine that the effective data length of the data group formed by the sampling data is m-1 and remove the (m + 1) th sampling data from the data group formed by the sampling data if the deviation amount is greater than or equal to the set value.
Specifically, when the new data deviates to a large extent (e.g., variance Δ D)2Greater than or equal to a set value Sset) When the height is judged to have the ascending or descending trend, the length of the calculation array is shortened so as to quickly respond to the change of the height. Such as the amount of deviation deltad between the weighted average of the m +1 th data and the previous m data2Greater than or equal to a set value SsetIn the case of (2), the data length is shortened from L ═ m to L ═ m-1.
The control unit is specifically further configured to determine that the effective data length of the data group formed by the sampling data is m +1 and add the sampling data of the (m + 1) th time to the data group formed by the sampling data when m +1 is less than or equal to n if the deviation amount is less than the set value; and under the condition that m +1 is larger than n, determining that the effective data length of the data group formed by the sampling data is n, and eliminating the sampling data of the 1 st time and adding the sampling data of the m +1 st time in the data group formed by the sampling data.
Specifically, when the new data deviation is small (e.g., variance Δ D)2Less than a set value Sset) When the height is judged to have no ascending or descending trend, the array D is normally counted1~Dm+1Up to n data samples (if m + 1)>n, then according to the queue mode, D1~DnUpdate of data of to D2~Dm+1) So as to eliminate the jitter brought by the circuit. Such as the amount of deviation deltad between the weighted average of the m +1 th data and the previous m data2Less than a set value SsetIn the case of (3), the data length L is equal to m +1 if m +1 is less than or equal to n, and is equal to n if m +1 is greater than n.
Therefore, the acquired data can be subjected to jitter elimination, the self-adaptive switching control of the precision and stability of data acquisition is realized, and the stability can be effectively improved while the timeliness of the acquired data is not influenced.
In some embodiments, the control unit determines the effective data length of the data group formed by the sampling data according to the deviation amount, and further includes any one of the following cyclic control processes:
the first cycle control process: the control unit is specifically configured to, when the effective data length of the data group formed by the sample data is m-1, remove the sample data of the 1 st time and the sample data of the 2 nd time from the data group formed by the sample data, retain the sample data of the m +1 th time, then continue to use the difference between the sample data of the m +2 th time and the average value of the sample data of the 3 rd time to the m +1 th time as a deviation amount, and continue to determine the effective data length of the data group formed by the sample data according to the deviation amount.
And a second cyclic control process: the control unit is specifically further configured to, when the effective data length of the data group of the sample data is m +1, add the sample data of the m +1 th time to the data group of the sample data, determine an average value of the first m +1 sample data, continue to use a difference between the m +2 th sample data and the average value of the first m +1 sample data as a deviation amount, and continue to determine the effective data length of the data group of the sample data according to the deviation amount.
The third circulation control process: the control unit is specifically configured to, when the effective data length of the data group formed by the sample data is n, remove the sample data of the 1 st time and add the sample data of the m +1 th time in the data group formed by the sample data, then determine an average value of the 2 nd sample data to the m +1 th sample data, continue to use a difference value between the m +2 th sample data and the average value of the 2 nd sample data to the m +1 th sample data as a deviation amount, and continue to determine the effective data length of the data group formed by the sample data according to the deviation amount.
Specifically, after the main IC chip collects new data of the height sensor, the data deviation amount (variance Δ D) is calculated2) And judging whether the height has an ascending or descending trend according to the deviation degree, and executing in a circulating way. When the height sensor is in a static state or fluctuates in a small range, the value of n is relatively large, and the stability of data is guaranteed. When the height sensor is in dynamic change and the height is judged to rise and fall, the value of n is correspondingly reduced, and the quick response to the height change is achieved.
The control unit is further configured to determine the body height of the automobile according to the effective data length of a data group formed by the sampling data and the data group of the sampling data corresponding to the effective data length.
Specifically, by improving inductance measurement, a hardware circuit is adopted for sampling and a data filtering mode is combined, so that the detection precision of the inductance measurement of the circuit is improved, and self-adaptive control is realized in the process of acquiring, processing and guaranteeing the real-time performance of data and improving the stability of the data.
In some embodiments, the determining, by the control unit, the body height of the automobile according to the data group of the sampled data corresponding to the effective data length includes:
the control unit is specifically further configured to determine an average value of the data group of the sampling data corresponding to the effective data length.
The control unit is specifically further configured to determine an inductance value of the height sensor of the automobile according to an average value of the data group of the sampling data corresponding to the effective data length, and determine a body height of the automobile according to the inductance value of the height sensor of the automobile and the length of the connecting rod of the height sensor of the automobile.
Specifically, after the main IC chip collects new data of the height sensor, the data deviation amount (variance Δ D) is calculated2) And judging whether the height has an ascending or descending trend according to the deviation degree, and calculating the length of the sample. After the sample number length is calculated, an array with self-adaptive data length can be obtained.
Due to the voltage U of the power supply1Voltage U higher than reference power supply2During the fall of the inductor voltage U (t), the voltage value can cross the comparison voltage U2. When U (t) is equal to U2During the process, an inverse level can be output through the comparison module, and after the acquisition module captures the signal, the time t from the beginning of excitation to the output of the inverse level of the comparison module is calculated1That is to say have
Figure GDA0003338430950000111
Where R is the resistance of the circuit, t1Is the time of acquisition of the main IC, U1、U2The inductance L can be obtained by designing the voltage.
In some examples, according to the automobile body height detection scheme provided by the scheme of the invention, the time of each charge and discharge of the inductor in the automobile height sensor can be sampled according to a set sampling period to obtain the charge and discharge time as sampling data; determining effective sampling data according to the set detection precision (such as a set target allowable deviation value delta) of the body height of the automobile, the control speed (such as the speed v of the height rise and fall of the air spring of the automobile) of the automobile and the deviation between the sampling data obtained by the m +1 th sampling and the average sampling data of the sampling data obtained by the m previous samplings; determining the height of the automobile body according to the effective sampling data; wherein m is a positive integer.
Optionally, determining valid sample data may include: preliminarily determining the sampling times of sampling the charging time of an inductor in a height sensor of the automobile as an initial sampling data length (such as the maximum data length n of a data group formed by the sampling data) according to the set detection precision of the height of the automobile body and the control speed of an air spring of the automobile; adjusting the initial sampling data length according to the sampling data obtained by each sampling to obtain an effective sampling data length (namely an effective data length); and determining the average value of the sampling data in the effective sampling data length as effective sampling data.
Wherein, according to the sampling data obtained by each sampling, adjusting the length of the initial sampling data comprises: under the condition that the current sampling times are m, calculating a weighted average value of the m sampling data to obtain average sampling data; m is a positive integer and is less than or equal to the initial sampling data length; acquiring the (m + 1) th sampling data, determining the deviation between the (m + 1) th sampling data and the average sampling data, and adjusting the length of the initial sampling data according to the deviation and a set value; wherein the deviation is any one of variance deviation, standard deviation and mean square deviation.
Optionally, determining the body height of the automobile may include: determining the inductance of the inductor in the height sensor according to the effective sampling data; and determining the height of the automobile body according to the inductance value and the length of the connecting rod of the height sensor of the automobile.
The inductance value corresponds to the angle of the inductive height sensor, and the angle, in combination with the length of the connecting rod (i.e., the swing link), determines the height of the vehicle body.
Specifically, after the main IC chip collects new data of the height sensor, the data deviation amount (variance Δ D) is calculated2) And judging whether the height has an ascending or descending trend according to the deviation degree, and calculating the length of the sample. After the sample number length is calculated, an array with self-adaptive data length can be obtained.
Due to the voltage U of the power supply1Voltage U higher than reference power supply2During the fall of the inductor voltage U (t), the voltage value can cross the comparison voltage U2. When U (t) is equal to U2During the process, an inverse level can be output through the comparison module, and after the acquisition module captures the signal, the time t from the beginning of excitation to the output of the inverse level of the comparison module is calculated1That is to say have
Figure GDA0003338430950000121
Where R is the resistance of the circuit, t1Is the time of acquisition of the main IC, U1、U2The inductance L can be obtained by designing the voltage.
Through a large number of tests, the technical scheme of the invention is adopted, different charging and discharging times of different inductance values are collected through a charging constant circuit based on measured voltage, and tiny variation of the inductance values is captured to be used as collected data; filtering the acquired data by adopting a data length self-adaptive array type weighted average method in combination with the change condition of the height of the electric control air suspension; the self-adaptive control of real-time performance and stability is carried out on the measurement data of the inductive height sensor for measuring the height of the automobile body through the deviation between the acquisition data obtained by the m +1 th sampling and the average acquisition data of the acquisition data obtained by the m previous sampling, and the detection precision of the inductive height sensor for measuring the height of the automobile body is improved.
According to an embodiment of the present invention, there is also provided an automobile corresponding to the body height detection device of the automobile. The automobile may include: the vehicle body height detection device of the vehicle is described above.
In some embodiments, the present invention provides an adaptive acquisition scheme for an inductive height sensor, which can improve the detection accuracy of the inductance of a circuit by combining a hardware circuit with a data filtering method for improving the inductance measurement, and implement adaptive control in ensuring real-time data acquisition and processing and improving data stability.
In the scheme of the invention, a hardware circuit of the sampling circuit adopts the principle of inductive charging and discharging, combines the calculation of a software data filtering algorithm, and can adopt the measurement of a voltage charging constant according to the principle of the circuit on inductive charging and discharging so as to achieve the purpose of rapidly and accurately measuring the inductance; the jitter of the acquired data can be eliminated, the self-adaptive switching control of the precision and the stability of data acquisition is realized, and the stability can be effectively improved while the timeliness of the acquired data is not influenced; the length of the sampling array participating in calculation can be automatically adjusted by combining the precision requirement required by the height of the vehicle body and the control speed of the air spring, so that the precision and the speed of the height adjustment of the vehicle body can be controlled.
For data measurement of the inductive height sensor, the scheme of the invention provides a method for rapidly acquiring different charging and discharging times of different inductance values and capturing small variation of the inductance values based on a circuit for measuring a voltage charging constant; the method combines the change condition of the height of the electric control air suspension, adopts a queue type weighted average method with self-adaptive data length to filter the collected data, achieves the rapidity of collecting inductance data, and can also achieve the effect of effectively improving the stability of the data.
The following describes an exemplary implementation process of the scheme of the present invention with reference to the examples shown in fig. 2 to fig. 6.
Fig. 2 is a schematic structural diagram of an electrically controlled air suspension according to an embodiment of the present invention, specifically, a side view of a vehicle. As shown in fig. 2, an electronically controlled air suspension for an automobile, includes: the device comprises a frame 1, a wheel bracket 2, wheels 3, an air spring 4, a shock absorber 5, a height sensor 6, a height sensor connecting rod 7, an electromagnetic valve 8, an air storage tank 9, a height control unit ECU 10, an air circuit 11 and a signal circuit 12.
Fig. 3 is a schematic structural diagram of an embodiment of a sampling circuit.
As shown in fig. 3, the signal acquisition module mainly comprises three parts, wherein the first part mainly comprises an acquisition module (such as a main IC chip) and a peripheral circuit thereof; the second part is a comparison module composed of a comparator and the like, the third part is an RL circuit composed of a resistor and an inductor, wherein the voltage U of the power supply source1And a comparison voltage U used as a reference power supply2Voltage of power supply U1Voltage U higher than reference power supply2
The height sensor 6, the height sensor link 7 and the height control unit ECU 10 in fig. 2 are devices for detecting the height of the vehicle body, wherein the height control unit ECU 10 covers the acquisition module, the comparison module and the control parts of the power supplies U1, U2 in fig. 3, and the height sensor 6 is the inductance L part in fig. 3. The array type weighted average filtering algorithm with the self-adaptive effective data length carries out self-adaptive filtering on the sampling data of the inductive height sensor in timeliness and stability, and further guarantees the reliable operation and control of an air suspension system.
Power supply U1Given a step signal, under the action of the excitation, the response voltage at two ends of the inductor in the RL loop is matched
Figure GDA0003338430950000141
The case (1).
Fig. 4 is a schematic diagram of an operation principle of an embodiment of the sampling circuit.
As shown in fig. 4, due to the voltage U of the power supply source1Voltage U higher than reference power supply2During the fall of the inductor voltage U (t), the voltage value can cross the comparison voltage U2. When U (t) is equal to U2During the process, an inverse level can be output through the comparison module, and after the acquisition module captures the signal, the time t from the beginning of excitation to the output of the inverse level of the comparison module is calculated1That is to say have
Figure GDA0003338430950000142
Where R is the resistance of the circuit, t1Is the time of acquisition of the main IC, U1、U2The inductance L can be obtained by designing the voltage.
The voltage drop of the inductor is that in the charging and discharging process, under the charging of the step signal, the voltage at two ends of the inductor jumps to high voltage first and then drops along the exponential change of the RL circuit.
By adopting the method, different charging and discharging time of different inductance values can be captured quickly, so that the difference of small change of the inductance values is obtained, but the situation that the charging time fluctuates up and down at the moment of voltage comparison of the comparison module due to certain jitter of circuit voltage is caused, and therefore jitter elimination and filtering processing of software is required to be carried out on collected data.
There may be jitter in the discharge time, but the IC does not handle the inductive discharge period.
FIG. 6 is a data scale diagram of the processing of the queued weighted average data.
The scheme of the invention provides a data processing mode of queue type weighted average with self-adaptive data length, as shown in fig. 6, a sampling module acquires data regularly or irregularly, an IC chip arranges the data in sequence according to sampling time, n (n is a natural number, and n is more than or equal to 1) samples sampled newly are used, and each data is assigned with a certain weight to calculate a weighted value.
Such as: collecting usage data D1~Dn,DnFor the latest data acquisition, the weight occupied by the n data is distributed as R1~RnWherein R is1+R2+..Rn+..+R n1 and R1≤R2≤..Rn≤..≤RnAnd finally obtaining filtering data:
Figure GDA0003338430950000143
in this algorithm, the value of the array n is variable, increasing or decreasing adaptively, depending on the value of the height sensor.
When the height sensor is in a static state or fluctuates in a small range, the value of n is relatively large, and the stability of data is guaranteed; when the height sensor is in dynamic change and the height is judged to rise and fall, the value of n is correspondingly reduced, and the quick response to the height change is achieved.
Due to the adoption of a data processing method of a weighted average value, if an array participating in calculation is too long, namely n is too large, data can be distorted, and height sensor data cannot be reflected in time, so that control delay is caused; therefore, the maximum value range of n is considered. According to the example shown in fig. 2, when the control unit ECU charges and discharges the air spring by turning on and off the solenoid valve, the speed v of the vehicle height (i.e. the air spring height) is related to the on-off time (i.e. the duty ratio) of the solenoid valve, and when the main IC chip performs data sampling in the period of T and the length of the array data is n, the calculated data is delayed by
Figure GDA0003338430950000151
Therefore, the maximum value of the data length n is required to satisfy the requirement of setting the target allowable deviation value δ
Figure GDA0003338430950000152
The method is obtained according to the characteristics of the system such as the suspension, the air spring and the like and the target allowable deviation.
Wherein v is the lifting speed of the vehicle body height (namely the air spring height), T is the sampling period, i is the current sampling frequency, n is the data length, Riδ is the weight occupied by the ith sampling data, and δ is the set target allowable deviation value.
Fig. 5 is a schematic flow chart of an adaptive data length algorithm, specifically, a schematic flow chart of an adaptive data length algorithm taking variance as an example. As shown in fig. 5, the flow of the adaptive data length algorithm may include:
step 1, after the system starts working, the main IC chip uses m values (D) of the latest data1~DmM is less than or equal to n), and calculating the average value D of the arraymAnd the degree of deviation of each data of the array (including but not limited to variance, standard deviation, mean square deviation, etc., the following embodiments take variance as an example of the degree of deviation).
Step 2, calculating the data deviation (variance Delta D) after the main IC chip collects new data of the height sensor2) And judging whether the height has an ascending or descending trend according to the deviation degree:
alternatively, when the new data deviates to a large extent (e.g., variance Δ D)2Greater than or equal to a set value Sset) When the height is judged to have the ascending or descending trend, the length of the calculation array is shortened so as to quickly respond to the change of the height.
Specifically, the deviation amount Δ D between the m +1 th data and the weighted average of the previous m data2Greater than or equal to a set value SsetIn the case of (2), the data length is shortened from L ═ m to L ═ m-1.
Alternatively, when the new data deviation is small (e.g., variance Δ D)2Less than a set value Sset) When the height is judged to have no ascending or descending trend, the array D is normally counted1~Dm+1Up to n data samples (if m + 1)>n, then according to the queueMode (1), D1~DnUpdate of data of to D2~Dm+1) So as to eliminate the jitter brought by the circuit.
Specifically, the deviation amount Δ D between the m +1 th data and the weighted average of the previous m data2Less than a set value SsetIn the case of (3), the data length L is equal to m +1 if m +1 is less than or equal to n, and is equal to n if m +1 is greater than n.
After the sample number length is calculated, an array with self-adaptive data length can be obtained.
And 3, circularly executing the step 1 and the step 2.
Since the processing and functions of the automobile of this embodiment are basically corresponding to the embodiment, principle and example of the device shown in fig. 1, the description of this embodiment is not given in detail, and reference may be made to the related description in the foregoing embodiment, which is not described herein again.
Through a large number of tests, the technical scheme of the invention is adopted, and the circuit based on the voltage measurement charging constant can quickly acquire different charging and discharging time of different inductance values and capture the small variation of the inductance values; the method combines the change condition of the height of the electric control air suspension, adopts a queue type weighted average method with self-adaptive data length to filter the collected data, achieves the rapidity of collecting inductance data, and can also achieve the effect of effectively improving the stability of the data.
According to the embodiment of the invention, a method for detecting the height of the automobile body corresponding to the automobile is also provided, and a flow chart of the embodiment of the method is shown in fig. 7. The method for detecting the height of the automobile body can comprise the following steps: step S110 to step S140.
In step S110, sampling, by a sampling unit, the time of each charging and discharging of the inductor in the height sensor of the automobile according to a set sampling period, to obtain charging and discharging time as sampling data.
In some embodiments, the sampling unit includes: the device comprises a power supply, a reference power supply, a comparison module and an acquisition module (such as a main IC chip). The positive pole of power supply is connected to the first input of comparison module behind the resistance R among the height sensor of car, power supply's negative pole with reference power supply's negative pole is connected to the first input of comparison module behind the inductance L among the height sensor of car, reference power supply's positive pole is connected to the second input of comparison module, the output of comparison module is connected to collection module.
Specifically, the signal acquisition module is composed of an acquisition module (such as a main IC chip) and a peripheral circuit thereof. A comparator module comprising a comparator, a RL circuit comprising a resistor and an inductor, wherein the voltage U of the power supply source1And a comparison voltage U used as a reference power supply2Voltage of power supply U1Voltage U higher than reference power supply2
In step S110, sampling the time of each charging and discharging of the inductor in the height sensor of the vehicle by the sampling unit includes: under the action of excitation of the power supply, the inductor and the resistor in the height sensor of the automobile are charged and discharged, the comparison module compares the voltage at two ends of the inductor with the voltage provided by the reference power supply and outputs a comparison result, and the acquisition module acquires the time difference from the excitation time of the power supply to the comparison result output time of the comparison module and takes the time difference as the charging and discharging time of the inductor in the height sensor of the automobile.
Specifically, the power supply source U1Given a step signal, under the action of the excitation, the response voltage at two ends of the inductor in the RL loop is matched
Figure GDA0003338430950000171
The case (1). By adopting the method, different charging and discharging time of different inductance values can be captured quickly, so that the difference of small change of the inductance values is obtained, but the situation that the charging time fluctuates up and down at the moment of voltage comparison of the comparison module due to certain jitter of circuit voltage is caused, and therefore jitter elimination and filtering processing of software is required to be carried out on collected data.
At step S120, determining, by the control unit, a maximum data length, denoted as n, of a data group formed by the sampling data in a set sampling period; and determining an average of the first m sample data over the data length. Wherein n and m are positive integers, and m is less than or equal to n.
In some embodiments, the determining, by the control unit, the maximum data length of the data group formed by the sample data in step S120 includes: determining the maximum data length of a data group formed by the sampling data according to the following formula:
Figure GDA0003338430950000172
wherein n is the maximum data length, v is the speed of the air spring height of the automobile, T is the sampling period, i is the current sampling frequency, Riδ is the weight occupied by the ith sampling data, and δ is the set target allowable deviation value.
Specifically, due to the adoption of a data processing method of a weighted average value, if an array participating in calculation is too long, namely n is too large, data is distorted, and height sensor data cannot be reflected in time, so that control delay is caused; therefore, the maximum value range of n is considered. According to the example shown in fig. 2, when the control unit ECU charges and discharges the air spring by turning on and off the solenoid valve, the speed v of the vehicle height (i.e. the air spring height) is related to the on-off time (i.e. the duty ratio) of the solenoid valve, and when the main IC chip performs data sampling in the period of T and the length of the array data is n, the calculated data is delayed by
Figure GDA0003338430950000173
Therefore, the maximum value of the data length n is required to satisfy the requirement of setting the target allowable deviation value δ
Figure GDA0003338430950000174
The method is obtained according to the characteristics of the system such as the suspension, the air spring and the like and the target allowable deviation. Wherein v is the speed of the lifting of the vehicle body height (namely the height of the air spring), T is the sampling period, and i isCurrent number of samples, n is data length, Riδ is the weight occupied by the ith sampling data, and δ is the set target allowable deviation value.
Therefore, by combining the precision requirement required by the height of the vehicle body and the control speed of the air spring, the length of the sampling array participating in calculation is automatically adjusted, and the precision and the speed of the height adjustment of the vehicle body are controllable.
In some embodiments, the determining, by the control unit, an average value of the first m sample data in step S120 includes: and (4) assigning a set weight to each data in the first m sampling data, and calculating a weighted average value of the first m sampling data.
Specifically, in the data processing mode of the queue-type weighted average with the self-adaptive data length, the sampling module acquires data regularly or irregularly, the IC chip arranges the data in the queue-type sequence according to the sampling time, n (n is a natural number, and n is more than or equal to 1) newly sampled samples are used, and then each data is assigned with a certain weight to calculate the weighted value.
Such as: collecting usage data D1~Dn,DnFor the latest data acquisition, the weight occupied by the n data is distributed as R1~RnWherein R is1+R2+..Rn+..+R n1 and R1≤R2≤..Rn≤..≤RnAnd finally obtaining filtering data:
Figure GDA0003338430950000181
in this algorithm, the value of the array n is variable, increasing or decreasing adaptively, depending on the value of the height sensor.
At step S130, by the control unit, a deviation amount between the m +1 th sample data and the average value, that is, a difference between the m +1 th sample data and the average value is also determined as a deviation amount, and an effective data length of a data group formed by the sample data is determined according to the deviation amount. Wherein the deviation is any one of variance deviation, standard deviation and mean square deviation.
Specifically, after the system starts operating, the main IC chip uses m values (D) of the latest data1~DmM is less than or equal to n), and calculating the average value of the array
Figure GDA0003338430950000182
And the deviation degree of each data of the array, including but not limited to variance, standard deviation, mean square deviation, and the like. When the main IC chip collects new data of the height sensor, the data deviation (variance Delta D) is calculated2) And judging whether the height has an ascending or descending trend according to the deviation degree.
In some embodiments, the specific process of determining the effective data length of the data group formed by the sample data according to the deviation amount in step S130 by the control unit may be referred to the following exemplary description.
With reference to the flowchart of fig. 8, which shows an embodiment of the method according to the present invention, that determines the effective data length of the data group formed by the sample data according to the deviation amount, a specific process of determining the effective data length of the data group formed by the sample data according to the deviation amount in step S130 may include: step S210 to step S230.
Step S210, it is determined whether the deviation amount is greater than or equal to a set value.
Step S220, if the deviation is greater than or equal to the set value, determining that the effective data length of the data group formed by the sampling data is m-1, and removing the (m + 1) th sampling data from the data group formed by the sampling data.
Specifically, when the new data deviates to a large extent (e.g., variance Δ D)2Greater than or equal to a set value Sset) When the height is judged to have the ascending or descending trend, the length of the calculation array is shortened so as to quickly respond to the change of the height. Such as the amount of deviation deltad between the weighted average of the m +1 th data and the previous m data2Greater than or equal to a set value SsetIn the case of (2), the data length is shortened from L ═ m to L ═ m-1.
Step S230, if the deviation is smaller than the set value, determining that the effective data length of the data group formed by the sampling data is m +1 when m +1 is smaller than or equal to n, and adding the sampling data of the (m + 1) th time to the data group formed by the sampling data; and under the condition that m +1 is larger than n, determining that the effective data length of the data group formed by the sampling data is n, and eliminating the sampling data of the 1 st time and adding the sampling data of the m +1 st time in the data group formed by the sampling data.
Specifically, when the new data deviation is small (e.g., variance Δ D)2Less than a set value Sset) When the height is judged to have no ascending or descending trend, the array D is normally counted1~Dm+1Up to n data samples (if m + 1)>n, then according to the queue mode, D1~DnUpdate of data of to D2~Dm+1) So as to eliminate the jitter brought by the circuit. Such as the amount of deviation deltad between the weighted average of the m +1 th data and the previous m data2Less than a set value SsetIn the case of (3), the data length L is equal to m +1 if m +1 is less than or equal to n, and is equal to n if m +1 is greater than n.
Therefore, the acquired data can be subjected to jitter elimination, the self-adaptive switching control of the precision and stability of data acquisition is realized, and the stability can be effectively improved while the timeliness of the acquired data is not influenced.
In some embodiments, the specific process of determining the effective data length of the data group formed by the sample data according to the deviation amount in step S130 by the control unit further includes any one of the following cyclic control processes:
the first cycle control process: under the condition that the effective data length of the data group formed by the sampling data is m-1, the sampling data of the 1 st time and the sampling data of the 2 nd time are removed from the data group formed by the sampling data, the sampling data of the m +1 th time is reserved, then the difference value between the sampling data of the m +2 th time and the average value of the sampling data of the 3 rd time to the m +1 th time is used as a deviation amount, and the effective data length of the data group formed by the sampling data is determined continuously according to the deviation amount.
And a second cyclic control process: and when the effective data length of the data group formed by the sampling data is m +1, adding the sampling data of the m +1 th time in the data group formed by the sampling data, then determining the average value of the first m +1 sampling data, continuously taking the difference value between the m +2 th sampling data and the average value of the first m +1 sampling data as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount.
The third circulation control process: under the condition that the effective data length of a data group formed by the sampling data is n, removing the 1 st sampling data from the data group formed by the sampling data, adding the m +1 th sampling data, then determining the average value of the 2 nd sampling data to the m +1 th sampling data, taking the difference value between the m +2 th sampling data and the average value of the 2 nd sampling data to the m +1 th sampling data as a deviation, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation.
Specifically, after the main IC chip collects new data of the height sensor, the data deviation amount (variance Δ D) is calculated2) And judging whether the height has an ascending or descending trend according to the deviation degree, and executing in a circulating way. When the height sensor is in a static state or fluctuates in a small range, the value of n is relatively large, and the stability of data is guaranteed. When the height sensor is in dynamic change and the height is judged to rise and fall, the value of n is correspondingly reduced, and the quick response to the height change is achieved.
In step S140, the body height of the automobile is determined by the control unit according to the effective data length of the data set formed by the sampling data and the data set of the sampling data corresponding to the effective data length.
Specifically, by improving inductance measurement, a hardware circuit is adopted for sampling and a data filtering mode is combined, so that the detection precision of the inductance measurement of the circuit is improved, and self-adaptive control is realized in the process of acquiring, processing and guaranteeing the real-time performance of data and improving the stability of the data.
In some embodiments, in step S140, a specific process of determining the body height of the automobile according to the data set of the sampling data corresponding to the effective data length may be performed by the control unit, and refer to the following exemplary description.
The following further describes a specific process of determining the body height of the automobile in step S140, with reference to a schematic flow chart of an embodiment of determining the body height of the automobile in the method of the present invention shown in fig. 9, and the specific process may include: step S310 and step S320.
Step S310, determining an average value of the data group of the sampling data corresponding to the effective data length.
Step S320, determining the inductance value of the height sensor of the automobile according to the average value of the data group of the sampling data corresponding to the effective data length, and determining the height of the automobile body of the automobile according to the inductance value of the height sensor of the automobile and the length of the connecting rod of the height sensor of the automobile.
The inductance value corresponds to the angle of the inductive height sensor, and the angle, in combination with the length of the connecting rod (i.e., the swing link), determines the height of the vehicle body.
Specifically, after the main IC chip collects new data of the height sensor, the data deviation amount (variance Δ D) is calculated2) And judging whether the height has an ascending or descending trend according to the deviation degree, and calculating the length of the sample. After the sample number length is calculated, an array with self-adaptive data length can be obtained.
Due to the voltage U of the power supply1Voltage U higher than reference power supply2During the fall of the inductor voltage U (t), the voltage value can cross the comparison voltage U2. When U (t) is equal to U2During the process, an inverse level can be output through the comparison module, and after the acquisition module captures the signal, the time t from the beginning of excitation to the output of the inverse level of the comparison module is calculated1That is to say have
Figure GDA0003338430950000211
Where R is the resistance of the circuit, t1Is collected by the master ICTime, U1、U2The inductance L can be obtained by designing the voltage.
Since the processing and functions implemented by the method of this embodiment substantially correspond to the embodiments, principles and examples of the automobile, reference may be made to the related descriptions in the foregoing embodiments without being detailed in the description of this embodiment, which is not described herein.
Through a large number of tests, the technical scheme of the embodiment is adopted, the principle of inductance charging and discharging is adopted, the calculation of a software data filtering algorithm is combined, the inductance can be rapidly and accurately measured by adopting the measurement of a voltage charging constant according to the principle of inductance charging and discharging of a circuit, and the detection precision of the inductance type height sensor for measuring the height of the automobile body of the automobile can be improved.
In summary, it is readily understood by those skilled in the art that the advantageous modes described above can be freely combined and superimposed without conflict.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (11)

1. A body height detecting device for an automobile, comprising: a sampling unit and a control unit; wherein the content of the first and second substances,
the sampling unit is configured to sample the time of each charging and discharging of an inductor in the height sensor of the automobile according to a set sampling period to obtain charging and discharging time as sampling data;
the control unit is configured to determine the maximum data length of a data group formed by the sampling data within a set sampling period, and the maximum data length is recorded as n; and determining an average value of the first m sampled data within the data length; wherein n and m are positive integers, and m is less than or equal to n; wherein the control unit determines a maximum data length of a data group formed by the sample data, and includes: determining the maximum data length of a data group formed by the sampling data according to the following formula:
Figure FDA0003338430940000011
wherein n is the maximum data length, v is the speed of the air spring height of the automobile, T is the sampling period, i is the current sampling frequency, RiThe weight occupied by the ith sampling data is delta, and the delta is a set target allowable deviation value;
taking the difference value between the (m + 1) th sampling data and the average value as a deviation amount, and determining the effective data length of a data group formed by the sampling data according to the deviation amount; wherein the deviation is any one of variance deviation, standard deviation and mean square deviation; the control unit determines an effective data length of a data group formed by the sampling data according to the deviation amount, and includes: determining whether the deviation amount is greater than or equal to a set value; if the deviation is larger than or equal to the set value, determining that the effective data length of a data group formed by the sampling data is m-1; if the deviation is smaller than the set value, determining that the effective data length of a data group formed by the sampling data is m +1 under the condition that m +1 is smaller than or equal to n; determining the effective data length of a data group formed by the sampling data to be n under the condition that m +1 is larger than n;
and determining the height of the automobile body according to the data group of the sampling data corresponding to the effective data length.
2. The vehicle body height detecting apparatus of claim 1, wherein the sampling unit includes: the device comprises a power supply, a reference power supply, a comparison module and an acquisition module;
wherein the content of the first and second substances,
the sampling unit is to the time of inductance charge-discharge at every turn in the altitude sensor of car samples, includes:
under the action of excitation of the power supply, the inductor and the resistor in the height sensor of the automobile are charged and discharged, the comparison module compares the voltage at two ends of the inductor with the voltage provided by the reference power supply and outputs a comparison result, and the acquisition module acquires the time difference from the excitation time of the power supply to the comparison result output time of the comparison module and takes the time difference as the charging and discharging time of the inductor in the height sensor of the automobile.
3. The vehicle body height detection device of an automobile according to claim 1 or 2, wherein the control unit determines an average value of the first m sampled data, including:
and (4) assigning a set weight to each data in the first m sampling data, and calculating a weighted average value of the first m sampling data.
4. The vehicle body height detecting apparatus according to claim 1, wherein the control unit determines an effective data length of a data group formed by the sample data based on the deviation amount, and further includes:
under the condition that the effective data length of a data group formed by the sampling data is m-1, eliminating the sampling data of the 1 st time and the sampling data of the 2 nd time from the data group formed by the sampling data, reserving the sampling data of the m +1 th time, then continuously taking the difference value between the sampling data of the m +2 th time and the average value of the sampling data of the 3 rd time to the m +1 th time as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount;
when the effective data length of the data group formed by the sampling data is m +1, adding the sampling data of the m +1 th time in the data group formed by the sampling data, then determining the average value of the first m +1 sampling data, continuously taking the difference value between the m +2 th sampling data and the average value of the first m +1 sampling data as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount;
under the condition that the effective data length of a data group formed by the sampling data is n, removing the 1 st sampling data from the data group formed by the sampling data, adding the m +1 th sampling data, then determining the average value of the 2 nd sampling data to the m +1 th sampling data, taking the difference value between the m +2 th sampling data and the average value of the 2 nd sampling data to the m +1 th sampling data as a deviation, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation.
5. The apparatus according to claim 1 or 2, wherein the control unit determines the body height of the vehicle based on the data group of the sampled data corresponding to the effective data length, and includes:
determining an average value of the data group of the sampling data corresponding to the effective data length;
and determining the inductance value of the height sensor of the automobile according to the average value of the data group of the sampling data corresponding to the effective data length, and determining the height of the automobile according to the inductance value of the height sensor of the automobile and the length of the connecting rod of the height sensor of the automobile.
6. An automobile, comprising: the vehicle body height detection device of the automobile according to any one of claims 1 to 5.
7. A method for detecting the height of a vehicle body of an automobile, comprising:
sampling the time of each charge and discharge of an inductor in the height sensor of the automobile according to a set sampling period through a sampling unit to obtain the charge and discharge time as sampling data;
determining the maximum data length of a data group formed by the sampling data within a set sampling period through a control unit, and recording the maximum data length as n; and determining an average value of the first m sampled data within the data length; wherein n and m are positive integers, and m is less than or equal to n; wherein, determining the maximum data length of a data group formed by the sampling data through a control unit comprises: determining the maximum data length of a data group formed by the sampling data according to the following formula:
Figure FDA0003338430940000031
wherein n is the maximum data length, v is the speed of the air spring height of the automobile, T is the sampling period, i is the current sampling frequency, RiThe weight occupied by the ith sampling data is delta, and the delta is a set target allowable deviation value;
taking the difference value between the (m + 1) th sampling data and the average value as a deviation amount, and determining the effective data length of a data group formed by the sampling data according to the deviation amount; wherein the deviation is any one of variance deviation, standard deviation and mean square deviation; determining, by a control unit, an effective data length of a data group constituted by the sample data according to the deviation amount, including: determining whether the deviation amount is greater than or equal to a set value; if the deviation is larger than or equal to the set value, determining that the effective data length of a data group formed by the sampling data is m-1; if the deviation is smaller than the set value, determining that the effective data length of a data group formed by the sampling data is m +1 under the condition that m +1 is smaller than or equal to n; determining the effective data length of a data group formed by the sampling data to be n under the condition that m +1 is larger than n;
and determining the height of the automobile body according to the data group of the sampling data corresponding to the effective data length.
8. The method for detecting the body height of an automobile according to claim 7, wherein the sampling unit includes: the device comprises a power supply, a reference power supply, a comparison module and an acquisition module; wherein the content of the first and second substances,
through the sampling unit, to the inductance is the time of charging and discharging at every turn in the altitude sensor of car samples, includes:
under the action of excitation of the power supply, the inductor and the resistor in the height sensor of the automobile are charged and discharged, the comparison module compares the voltage at two ends of the inductor with the voltage provided by the reference power supply and outputs a comparison result, and the acquisition module acquires the time difference from the excitation time of the power supply to the comparison result output time of the comparison module and takes the time difference as the charging and discharging time of the inductor in the height sensor of the automobile.
9. The vehicle body height detection method of an automobile according to claim 7 or 8, wherein determining, by the control unit, an average value of the first m sampled data includes:
and (4) assigning a set weight to each data in the first m sampling data, and calculating a weighted average value of the first m sampling data.
10. The method for detecting the body height of an automobile according to claim 9, wherein determining, by the control unit, the effective data length of the data group constituted by the sample data based on the deviation amount further includes:
under the condition that the effective data length of a data group formed by the sampling data is m-1, eliminating the sampling data of the 1 st time and the sampling data of the 2 nd time from the data group formed by the sampling data, reserving the sampling data of the m +1 th time, then continuously taking the difference value between the sampling data of the m +2 th time and the average value of the sampling data of the 3 rd time to the m +1 th time as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount;
when the effective data length of the data group formed by the sampling data is m +1, adding the sampling data of the m +1 th time in the data group formed by the sampling data, then determining the average value of the first m +1 sampling data, continuously taking the difference value between the m +2 th sampling data and the average value of the first m +1 sampling data as a deviation amount, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation amount;
under the condition that the effective data length of a data group formed by the sampling data is n, removing the 1 st sampling data from the data group formed by the sampling data, adding the m +1 th sampling data, then determining the average value of the 2 nd sampling data to the m +1 th sampling data, taking the difference value between the m +2 th sampling data and the average value of the 2 nd sampling data to the m +1 th sampling data as a deviation, and continuously determining the effective data length of the data group formed by the sampling data according to the deviation.
11. The method for detecting the body height of the automobile according to claim 7 or 8, wherein determining the body height of the automobile by a control unit based on the data group of the sampled data corresponding to the effective data length includes:
determining an average value of the data group of the sampling data corresponding to the effective data length;
and determining the inductance value of the height sensor of the automobile according to the average value of the data group of the sampling data corresponding to the effective data length, and determining the height of the automobile according to the inductance value of the height sensor of the automobile and the length of the connecting rod of the height sensor of the automobile.
CN202011301447.4A 2020-11-19 2020-11-19 Automobile body height detection device and method and automobile Active CN112539694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011301447.4A CN112539694B (en) 2020-11-19 2020-11-19 Automobile body height detection device and method and automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011301447.4A CN112539694B (en) 2020-11-19 2020-11-19 Automobile body height detection device and method and automobile

Publications (2)

Publication Number Publication Date
CN112539694A CN112539694A (en) 2021-03-23
CN112539694B true CN112539694B (en) 2021-12-14

Family

ID=75014396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011301447.4A Active CN112539694B (en) 2020-11-19 2020-11-19 Automobile body height detection device and method and automobile

Country Status (1)

Country Link
CN (1) CN112539694B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201352107Y (en) * 2008-10-24 2009-11-25 江苏大学 Air suspension bus body height detecting system
CN103322918A (en) * 2013-05-24 2013-09-25 陕西科技大学 Equipment for measuring height of vehicle and measuring method thereof
CN104634237A (en) * 2013-11-06 2015-05-20 上海信耀电子有限公司 Vehicle height sensor
CN109308589A (en) * 2018-11-20 2019-02-05 国网山西省电力公司 Grid automation data quality monitoring method, storage medium, terminal device and system
CN208506138U (en) * 2018-01-24 2019-02-15 深圳市汇顶科技股份有限公司 Capacitive detection circuit, touch detecting apparatus and terminal device
CN109496273A (en) * 2018-01-24 2019-03-19 深圳市汇顶科技股份有限公司 Capacitive detection circuit, touch detecting apparatus and terminal device
CN110531728A (en) * 2019-10-14 2019-12-03 上海欣巴自动化科技有限公司 A kind of control system and control method of AGV fork truck

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3379277B1 (en) * 2015-11-20 2021-01-27 Nissan Motor Co., Ltd. Capacity maintenance rate estimation apparatus or capacity maintenance rate estimation method
CN110998344B (en) * 2017-07-31 2022-05-06 日产自动车株式会社 Degraded state calculating method and degraded state calculating device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201352107Y (en) * 2008-10-24 2009-11-25 江苏大学 Air suspension bus body height detecting system
CN103322918A (en) * 2013-05-24 2013-09-25 陕西科技大学 Equipment for measuring height of vehicle and measuring method thereof
CN104634237A (en) * 2013-11-06 2015-05-20 上海信耀电子有限公司 Vehicle height sensor
CN208506138U (en) * 2018-01-24 2019-02-15 深圳市汇顶科技股份有限公司 Capacitive detection circuit, touch detecting apparatus and terminal device
CN109496273A (en) * 2018-01-24 2019-03-19 深圳市汇顶科技股份有限公司 Capacitive detection circuit, touch detecting apparatus and terminal device
CN109308589A (en) * 2018-11-20 2019-02-05 国网山西省电力公司 Grid automation data quality monitoring method, storage medium, terminal device and system
CN110531728A (en) * 2019-10-14 2019-12-03 上海欣巴自动化科技有限公司 A kind of control system and control method of AGV fork truck

Also Published As

Publication number Publication date
CN112539694A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
US6933867B2 (en) A/D conversion processing apparatus providing improved elimination of effects of noise through digital processing, method of utilizing the A/D conversion processing apparatus, and electronic control apparatus incorporating the A/D conversion processing apparatus
CN1677115A (en) Capacitance change detection device
JP6025187B2 (en) Bioelectric signal measurement circuit
DE102010028827A1 (en) Method for adjusting an acceleration sensor and electronic device
CN112539694B (en) Automobile body height detection device and method and automobile
US7723976B2 (en) Self-adjusting hold-off trigger
CN110422153B (en) Slope signal optimization method and system of vehicle slope sensor and automobile
CN106108922B (en) Drowsiness detection device
EP0670248B1 (en) Control of a supplemental inflatable restraint
CN112539693B (en) Automobile body height detection device and method and automobile
JP2002527754A (en) Signal processing method and circuit device for motion sensor
JPH10505035A (en) System and method for adjusting crash identification measurements
CN110418937A (en) Controller of vehicle
JP6969934B2 (en) Battery status diagnostic device and battery status diagnostic method
CN111775739A (en) Foreign matter detection method, device and system for wireless charging system and electronic equipment
CN112611402B (en) Capacitive-based steering wheel touch identification method and system
CN114461984A (en) Temperature data processing method and device, intelligent door lock and storage medium
CN110208882B (en) Rainfall data processing method and device, vehicle and equipment
CN210981427U (en) Fuel liquid level detection device
CN110632397B (en) Signal analysis method and computer readable storage medium
CN106468968A (en) Touch control correction system and touch control correction method
JP3236217B2 (en) Knock sensor signal processing device
CN111220234A (en) Method, device and system for calculating urea liquid level measurement value
WO1991011685A1 (en) Position detector
CN110672911A (en) Clothes airing machine load estimation circuit and 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