Height value calculation method, device and equipment of height sensor and readable storage medium

By detecting and calculating corrected height values, the problem of air suspension disabling caused by height sensor failure is solved, ensuring system availability and user experience.

CN118565299APending Publication Date: 2024-08-30VOYAH AUTOMOBILE TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410641306.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When the output height value of the height sensor is invalid due to a fault, the air suspension function needs to be disabled, resulting in poor user experience.

Method used

By detecting whether the height value output by each vehicle suspension height sensor is valid, calculating the corrected height value, and replacing the invalid height value with the corrected height value, the availability of the air suspension system is ensured.

Benefits of technology

There is no need to disable the air suspension, which improves user experience and ensures that the vehicle can still adjust the height of the vehicle when the height sensor fails, providing a stable and comfortable driving experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118565299A
    Figure CN118565299A
Patent Text Reader

Abstract

The invention discloses a height sensor height value calculation method, device and equipment and a readable storage medium. The height sensor height value calculation method comprises the steps that whether height values output by all height sensors of a vehicle suspension are effective or not is detected; when the height values output by the at least two height sensors are invalid, calculating corrected height values corresponding to the at least two height sensors according to the distances between the other height sensors and the at least two height sensors, the inclination state of the vehicle body, the inclination angle of the vehicle body and the effective height values output by the other height sensors; and replacing the height values output by the at least two height sensors with the corrected height value. According to the application, when the height value output by the height sensor is invalid, the corrected height value corresponding to the height sensor can be obtained through calculation as long as the height value output by one height sensor is valid, and the output height value is replaced by the corrected height value, so that the air suspension does not need to be forbidden, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automobile suspension height sensors, and in particular to a height sensor height value calculation method, device, equipment and readable storage medium. Background Art

[0002] Currently, air suspension is used in more and more car models. Air suspension has an automatic adjustment function, which can automatically or manually adjust the height of the vehicle body and the hardness of the shock absorber according to different road conditions and driving needs. This automatic adjustment function enables the vehicle to adapt to various complex terrains and environments, improve the vehicle's passability and stability, and greatly improve the driver's comfort. The air suspension adjusts the vehicle height mainly through hardware equipment such as air springs, air tanks, air pumps, distribution valves, height sensors and air release valves. When the air tank and air pump inflate the air spring, the vehicle height increases, and when the air release valve is opened, the vehicle height decreases.

[0003] The vehicle's suspension system adjusts the height of the vehicle body based on the height values ​​output by four height sensors. However, the height sensor hardware may malfunction during long-term use. When the height value output by the height sensor is invalid due to a malfunction, the air suspension function is often disabled, resulting in a poor user experience. Summary of the invention

[0004] The present application provides a height sensor height value calculation method, device, equipment and readable storage medium, aiming to solve the technical problem that when the output height value of the height sensor is invalid due to a fault, the air suspension function is often disabled, resulting in a poor user experience.

[0005] In a first aspect, an embodiment of the present application provides a method for calculating a height value of a height sensor, the method comprising:

[0006] Check whether the height values ​​output by each height sensor of the vehicle suspension are valid;

[0007] When the height values ​​output by at least two height sensors are invalid, calculating the corrected height values ​​corresponding to the at least two height sensors according to the distance between other height sensors and the at least two height sensors, the tilt state of the vehicle body, the inclination angle of the vehicle body and the valid height values ​​output by other height sensors;

[0008] The altitude values ​​output by the at least two altitude sensors are replaced by the corrected altitude value.

[0009] Optionally, the detecting whether the height values ​​output by each height sensor of the vehicle suspension are valid includes:

[0010] For each height sensor of the vehicle suspension, if the height value output by the height sensor does not change for a preset time after the vehicle is powered on, it is determined that the detection result is that the height value output by the height sensor is invalid;

[0011] If the difference between the height value output by the height sensor and the average calculated value is greater than the preset difference, the detection result is determined to be that the height value output by the height sensor is invalid, and the average calculated value is the average value of the output height values ​​of other height sensors.

[0012] Optionally, the vehicle suspension includes four height sensors, and after detecting whether the height values ​​output by each height sensor of the vehicle suspension are valid, the method further includes:

[0013] When the height values ​​output by three height sensors are valid and the height value output by one height sensor is invalid, a corrected height value of one height sensor is calculated by solving the plane equation according to the installation positions of the four height sensors and the valid height values ​​output by the three height sensors.

[0014] Optionally, the calculating the corrected height value of one height sensor by solving a plane equation according to the installation positions of the four height sensors and the effective height values ​​output by the three height sensors includes:

[0015] A three-dimensional coordinate system is established with the projection point of the vehicle's center of mass on the ground as the origin and the vehicle's forward direction as the positive X-axis.

[0016] For each height sensor, the installation position is the X-coordinate and the Y-coordinate, and the output height value is the Z-coordinate;

[0017] According to the coordinates of the three effective height sensors in the three-dimensional coordinate system, a plane is jointly determined and the plane equation is established;

[0018] Substitute the X coordinate and Y coordinate of a height sensor whose output height value is invalid into the plane equation and solve it to calculate the corrected height value of the height sensor.

[0019] Optionally, the vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by two height sensors are invalid, the calculation of the corrected height values ​​corresponding to the at least two height sensors according to the distance between the other height sensors and the at least two height sensors, the tilt state of the vehicle body, the inclination angle of the vehicle body and the valid height values ​​output by the other height sensors includes:

[0020] For each height sensor that outputs an invalid height value, a corrected height value of the height sensor that outputs an invalid height value is calculated based on the distance between the height sensor on the opposite side that outputs a valid height value and the height sensor that outputs an invalid height value, the inclination state of the vehicle body, the inclination angle of the vehicle body and the valid height value output by the height sensor on the opposite side, wherein front and rear are opposite sides, and left and right are opposite sides.

[0021] Optionally, the vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by the three height sensors are invalid, the calculation of the corrected height values ​​corresponding to the at least two height sensors according to the distance between the other height sensors and the at least two height sensors, the tilt state of the vehicle body, the inclination angle of the vehicle body and the valid height values ​​output by the other height sensors includes:

[0022] Calculate the corrected height value of the height sensor on the opposite side according to the distance between the height sensor whose height value is effective and the height sensor on the opposite side, the tilt state of the vehicle body, the tilt angle of the vehicle body and the effective height value output by the height sensor, and obtain the corrected height values ​​of the height sensors on the two opposite sides, wherein the front and the rear are opposite sides, and the left and the right are opposite sides;

[0023] Take any one of the two height sensors that obtain the corrected height value as the reference height sensor, calculate the corrected height value of the height sensor whose height value output on the opposite side is invalid according to the distance between the reference height sensor and the height sensor whose height value output on the opposite side is invalid, the inclination state of the vehicle body, the inclination angle of the vehicle body and the corrected height value of the reference height sensor, and obtain the corrected height value of the remaining height sensor.

[0024] Optionally, after replacing the altitude values ​​output by the at least two altitude sensors with the corrected altitude value, the method further comprises:

[0025] Based on the height values ​​output by each height sensor, respond to the vehicle height adjustment request.

[0026] In a second aspect, an embodiment of the present application provides a height sensor height value calculation device, the height sensor height value calculation device comprising:

[0027] A detection module, used to detect whether the height values ​​output by each height sensor of the vehicle suspension are valid;

[0028] a calculation module, configured to calculate, when the height values ​​output by at least two height sensors are invalid, corrected height values ​​corresponding to the at least two height sensors according to the distance between other height sensors and the at least two height sensors, the tilt state of the vehicle body, the tilt angle of the vehicle body, and the valid height values ​​output by other height sensors;

[0029] A substitution module is used to replace the altitude values ​​output by the at least two altitude sensors with the corrected altitude value.

[0030] In a third aspect, an embodiment of the present application provides an altitude sensor altitude value calculation device, which includes a processor, a memory, and an altitude sensor altitude value calculation program stored in the memory and executable by the processor, wherein when the altitude sensor altitude value calculation program is executed by the processor, the steps of the altitude sensor altitude value calculation method described above are implemented.

[0031] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a height sensor height value calculation program is stored, wherein when the height sensor height value calculation program is executed by a processor, the steps of the height sensor height value calculation method as described above are implemented.

[0032] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0033] In the embodiment of the present application, it is detected whether the height values ​​output by each height sensor of the vehicle suspension are valid; when the height values ​​output by at least two height sensors are invalid, the corrected height values ​​corresponding to the at least two height sensors are calculated according to the distance between other height sensors and the at least two height sensors, the tilt state of the vehicle body, the tilt angle of the vehicle body, and the valid height values ​​output by other height sensors; the height values ​​output by the at least two height sensors are replaced with the corrected height values. In the embodiment of the present application, when the height value output by the height sensor is invalid, as long as there is a valid height value output by the height sensor, the corrected height values ​​corresponding to the at least two height sensors can be calculated according to the distance between the other height sensors whose output height values ​​are valid and the at least two height sensors whose output height values ​​are invalid, the tilt state of the vehicle body, the tilt angle of the vehicle body, and the valid height values ​​output by other height sensors, and the output height values ​​are replaced with the corrected height values, thereby eliminating the need to disable the air suspension and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a flow chart of an embodiment of a method for calculating a height value of a height sensor of the present application;

[0035] Figure 2 For this application Figure 1 A detailed flow chart of step S10;

[0036] Figure 3 Another schematic diagram of a flow chart of an embodiment of a method for calculating a height value of a height sensor of the present application;

[0037] Figure 4This is a functional module diagram of an embodiment of a height value calculation device for a height sensor of the present application;

[0038] Figure 5 This is a schematic diagram of the hardware structure of the height sensor height value calculation device involved in the embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0041] In a first aspect, an embodiment of the present application provides a method for calculating a height value of a height sensor.

[0042] In one embodiment, referring to Figure 1 , Figure 1 Schematic diagram of a flow chart of an embodiment of a method for calculating a height value of a height sensor of the present application. Figure 1 As shown, the height sensor height value calculation method includes:

[0043] Step S10, detecting whether the height values ​​output by each height sensor of the vehicle suspension are valid.

[0044] In this embodiment, the vehicle's air suspension includes multiple height sensors, which are used to measure and output the height of the vehicle body. The air suspension system adjusts the height of the vehicle body based on the height value output by the height sensor. However, the hardware of the height sensor may malfunction during long-term use, resulting in invalid height values ​​output by the height sensor. When the height value output by the height sensor is invalid, the air suspension function is often disabled, resulting in a poor user experience. Therefore, it is first detected whether the height values ​​output by each height sensor of the vehicle suspension are valid, so as to further correct the invalid height values ​​output by the height sensor.

[0045] Step S20, when the height values ​​output by at least two height sensors are invalid, the corrected height values ​​corresponding to the at least two height sensors are calculated according to the distance between other height sensors and the at least two height sensors, the tilt state of the vehicle body, the inclination angle of the vehicle body and the valid height values ​​output by other height sensors.

[0046] In the present embodiment, taking the air suspension including four height sensors as an example, the height values ​​output by at least two height sensors are invalid, which is divided into two situations. One is that the height value output by one height sensor is valid and the height values ​​output by three height sensors are invalid, and the other is that the height values ​​output by two height sensors are valid and the height values ​​output by two height sensors are invalid. In these two situations, the corrected height value of the two or three height sensors whose output height values ​​are invalid is calculated based on the distance between the height sensor whose output height value is valid and the height sensor whose output height value is invalid, the inclination state of the vehicle body, the inclination angle of the vehicle body and the effective height value output by the height sensor whose output height value is valid, wherein the inclination state of the vehicle body and the inclination angle of the vehicle body can be determined by an inclinometer installed at the center of mass of the vehicle body.

[0047] Step S30: replacing the altitude values ​​output by the at least two altitude sensors with the corrected altitude value.

[0048] In this embodiment, since the hardware of the height sensor may fail during long-term use, the output height value is invalid, and the invalid height value can be replaced by the corrected height value calculated in step S20, so that the air suspension can still adjust the height of the vehicle body based on the height values ​​of each height sensor, so there is no need to disable the air suspension, which can improve the user experience. If the height sensor fails while the vehicle is driving and it is detected that the height value output by the height sensor is invalid, the corresponding fault light can be lit on the central control screen of the vehicle, and the driver can still adjust the height of the vehicle body before going to the maintenance point, ensuring the availability of the air suspension system and providing the vehicle with a more stable and comfortable driving experience.

[0049] In this embodiment, since the air suspension system adjusts the height of the vehicle body based on the height value output by the height sensor, firstly, it is detected whether the height value output by each height sensor of the vehicle suspension is valid. When the height value output by the height sensor is invalid, as long as the height value output by one height sensor is valid, the corrected height values ​​of the two or three height sensors whose output height values ​​are invalid can be calculated according to the distance between the height sensor whose output height value is valid and the height sensor whose output height value is invalid, the tilt state of the vehicle body, the tilt angle of the vehicle body and the effective height value output by the height sensor whose output height value is valid. The invalid height value is replaced by the corrected height value, so that the air suspension can still adjust the height of the vehicle body based on the height value of each height sensor, so that there is no need to disable the air suspension, which can improve the user experience. If the height sensor fails during the driving of the vehicle and detects that the height value output by the height sensor is invalid, the corresponding fault light can be lit on the central control screen of the vehicle, and the driver can still adjust the height of the vehicle body before reaching the maintenance point, thereby ensuring the availability of the air suspension system and providing the vehicle with a more stable and comfortable driving experience.

[0050] Further, in one embodiment, referring to Figure 2 , Figure 2 For this application Figure 1 The detailed flow chart of step S10 is as follows: Figure 2 As shown, step S10 includes:

[0051] Step S101, for each height sensor of the vehicle suspension, if the height value output by the height sensor does not change for a preset time after the vehicle is powered on, then determining that the detection result is that the height value output by the height sensor is invalid;

[0052] Step S102, if the difference between the height value output by the height sensor and the average calculated value is greater than a preset difference, it is determined that the detection result is that the height value output by the height sensor is invalid, and the average calculated value is the average value of the output height values ​​of other height sensors.

[0053] In this embodiment, the two methods described in step S101 and step S102 can be used to detect whether the height values ​​output by each height sensor of the suspension are valid. Step S101 refers to the loss of the height value output by the height sensor. Since the accuracy of the height sensor is at the millimeter level, after the vehicle is powered on, as long as the vehicle body height changes slightly, the height value output by the height sensor will change. Therefore, if the height value output by the height sensor does not change for a preset time after the vehicle is powered on, it means that the height value of the height sensor is lost and the height sensor fails. It is determined that the detection result is that the height value output by the height sensor is invalid; step S102 refers to Due to the influence of harsh environment and complex working conditions, the height sensor may have numerical display errors, such as displaying the height sensor extreme value. Since there are multiple height sensors, the probability of multiple height sensors having numerical display errors at the same time is very small. Therefore, for each height sensor, the height values ​​output by other height sensors can be averaged, and the difference between the average of the height values ​​output by other height sensors and the height value output by the height sensor can be compared. If the difference is greater than the preset difference, it means that the height sensor has a numerical display error, and the detection result is determined to be that the height value output by the height sensor is invalid. The preset difference used for comparison can be obtained through calibration.

[0054] Further, in one embodiment, the vehicle suspension includes four height sensors, and after step S10, the following steps are included:

[0055] When the height values ​​output by three height sensors are valid and the height value output by one height sensor is invalid, a corrected height value of one height sensor is calculated by solving the plane equation according to the installation positions of the four height sensors and the valid height values ​​output by the three height sensors.

[0056] In this embodiment, when the height values ​​output by three of the four height sensors of the vehicle suspension are valid and the height value output by one height sensor is invalid, the corrected height value of one height sensor can be calculated by solving the plane equation based on the installation positions of the four height sensors and the valid height values ​​output by the three height sensors.

[0057] Further, in one embodiment, the calculating the corrected height value of one height sensor by solving the plane equation according to the installation positions of the four height sensors and the effective height values ​​output by the three height sensors includes:

[0058] A three-dimensional coordinate system is established with the projection point of the vehicle's center of mass on the ground as the origin and the vehicle's forward direction as the positive X-axis.

[0059] For each height sensor, the installation position is the X-coordinate and the Y-coordinate, and the output height value is the Z-coordinate;

[0060] According to the coordinates of the three effective height sensors in the three-dimensional coordinate system, a plane is jointly determined and the plane equation is established;

[0061] Substitute the X coordinate and Y coordinate of a height sensor whose output height value is invalid into the plane equation and solve it to calculate the corrected height value of the height sensor.

[0062] In this embodiment, a three-dimensional coordinate system is established with the projection point of the vehicle's center of mass on the ground as the origin and the vehicle's forward direction as the positive direction of the X-axis. For each height sensor, the installation position is the X-coordinate and the Y-coordinate, and the output height value is the Z-coordinate. The coordinates of the three height sensors with valid output height values ​​are A (X1, Y1, Z1), B (X2, Y2, Z2) and C (X3, Y3, Z3), respectively. The coordinates of a height sensor with an invalid output height value are D (X4, Y4, W). The X-coordinate and Y-coordinate of the installation position of the four height sensors can be obtained by measurement or calibration. The Z-coordinates Z1, Z2 and Z3 of the three height sensors with valid output height values ​​are all known. Now the only thing that needs to be determined is the W in the coordinate D of the height sensor with an invalid output height value. It can be known from the plane equation theory that the three points A, B and C are not collinear. Therefore, a plane can be determined by the three points A, B and C. The plane equation is obtained by the three-point coordinates. First, the plane normal vector is obtained. Plane Normal and vertical, Y2-Y1, Z2-Z1), Normal vector for and Cross multiplication,

[0063]

[0064] a=(Y2-Y1)(Z3-Z2)-(Y3-Y2)(Z2-Z1), b=(X2-X1)(Z3-Z2)-(X3-X2)(Z2-Z1), c=(X2-X1)(Y3-Y2)-(X3-X2)(Y2-Y1), where the plane equation is a(X-X1)+b(Y-Y1)+c(Z-Z1)=0, i is the unit vector in the X direction, j is the unit vector in the Y direction, k is the unit vector in the Z direction, abc are the plane equation coefficients respectively, given the coordinates A(X1, Y1, Z1) of the height sensor and X4 and Y4 in the coordinates D(X4, Y4, W) of a height sensor whose output height value is invalid, X1, Y1, Z1, X4 and Y4 are substituted into the aforementioned plane equation for solution, and the coordinate value W in the Z direction in the coordinate D can be obtained.

[0065] Further, in one embodiment, the vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by two height sensors are invalid, step S20 includes:

[0066] For each height sensor that outputs an invalid height value, a corrected height value of the height sensor that outputs an invalid height value is calculated based on the distance between the height sensor on the opposite side that outputs a valid height value and the height sensor that outputs an invalid height value, the inclination state of the vehicle body, the inclination angle of the vehicle body and the valid height value output by the height sensor on the opposite side, wherein front and rear are opposite sides, and left and right are opposite sides.

[0067] In this embodiment, the inclination state and the inclination angle of the vehicle body are determined by an inclinometer installed at the center of mass of the vehicle body. The inclination state and the inclination angle of the vehicle body can be divided into the following four situations: forward inclination: at this time, the front axle of the vehicle is low and the rear axle is high, at this time the inclination angle in the front and rear direction is positive, and the forward inclination angle is α; backward inclination: at this time, the front axle of the vehicle is high and the rear axle is low, at this time the inclination angle in the front and rear direction is negative, and the forward inclination angle is -α; right inclination: at this time, the right side of the vehicle is low and the left side is high, at this time the inclination angle in the left and right directions is positive, and the forward inclination angle is β; left inclination: at this time, the right side of the vehicle is high and the left side is low, at this time the inclination angle in the left and right directions is negative, and the forward inclination angle is -β; the specific calculation methods of the four corrected height values ​​are as follows:

[0068] The height value output by the height sensor on the left is valid. The height value output by the height sensor on the right is invalid. The corrected height value is calculated. There are two cases: left tilt and right tilt. If it is left tilt, the corrected height value of the other side is: H 右 =H 左 +L×sin|-β|, if it is right-leaning, the corrected height value on the other side is: H 右=H 左 -L×sin|β|;

[0069] The height value output by the height sensor on the right is valid. The height value output by the height sensor on the left is invalid. The corrected height value is calculated. There are two cases: left tilt and right tilt. If it is left tilt, the corrected height value on the other side is: H 左 =H 右 -L×sin|-β|, if it is right-leaning, the corrected height value on the other side is: H 左 =H 右 +L×sin|β|, where L is the distance between the projection points of the left and right height sensors on the ground, which can be calibrated through actual vehicle testing;

[0070] The height value output by the front axle height sensor is valid. The height value output by the rear axle on the same side is invalid. The height value of the height sensor is calculated. There are two cases: forward tilt and backward tilt. If it is forward tilt, the corrected height value on the same side of the rear axle is: H 后 =H 前 +L′×sin|α|, if it is tilted backward, the corrected height value on the same side of the rear axle is: H 后 =H 前 -L′×sin|-α|;

[0071] The height value output by the rear axle height sensor is valid. The height value output by the height sensor on the same side of the front axle is invalid. The corrected height value is also divided into two cases: forward tilt and backward tilt. If it is forward tilt, the corrected height value on the same side of the front axle is: H 前 =H 后 -L′×sin|α|, if it is tilted backward, the corrected height value on the same side of the front axle is: H 前 =H 后 +L′×sin|-α|, where L' is the distance between the projection points of the front and rear height sensors on the ground, which can be calibrated through actual vehicle testing.

[0072] Further, in one embodiment, the vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by the three height sensors are invalid, step S20 includes:

[0073] Calculate the corrected height value of the height sensor on the opposite side according to the distance between the height sensor whose height value is effective and the height sensor on the opposite side, the tilt state of the vehicle body, the tilt angle of the vehicle body and the effective height value output by the height sensor, and obtain the corrected height values ​​of the height sensors on the two opposite sides, wherein the front and the rear are opposite sides, and the left and the right are opposite sides;

[0074] Take any one of the two height sensors that obtain the corrected height value as the reference height sensor, calculate the corrected height value of the height sensor whose height value output on the opposite side is invalid according to the distance between the reference height sensor and the height sensor whose height value output on the opposite side is invalid, the inclination state of the vehicle body, the inclination angle of the vehicle body and the corrected height value of the reference height sensor, and obtain the corrected height value of the remaining height sensor.

[0075] In this embodiment, when the height values ​​output by the three height sensors are invalid, the corrected height value of the height sensor on the opposite side is calculated based on the distance between the height sensor whose height value is valid and the height sensor on the opposite side, the inclination state of the vehicle body, the inclination angle of the vehicle body and the valid height value output by the height sensor, to obtain the corrected height values ​​of the two height sensors on the opposite sides. At this time, the corrected height value of one height sensor whose height value is invalid has not been calculated. Any one of the two height sensors that obtain the corrected height value can be used as a reference height sensor, and the same method can be used to calculate the corrected height value of the remaining height sensor.

[0076] Further, in one embodiment, referring to Figure 3 , Figure 3 This is another flow chart of an embodiment of a method for calculating the height value of a height sensor of the present application. Figure 3 As shown, after step S30, the following steps are included:

[0077] Step S40: responding to a vehicle height adjustment request based on the height values ​​output by each height sensor.

[0078] In this embodiment, the current actual height can be displayed in real time on the vehicle's central control screen. The vehicle height level is divided into five gears, namely: very high, high, medium, low and very low. If the driver needs to adjust the vehicle height, he only needs to click the corresponding button on the central control screen. The central control screen will send the target height level to the air suspension controller in real time. If the target height level is consistent with the current actual height level, the vehicle does not need to adjust the height. If the current height level is lower than the target height level, it is divided into two situations: if the air tank pressure is sufficient, the air tank solenoid valve and the air spring solenoid valve are controlled to open, and the air tank inflates the air spring, and the suspension height increases; if the air tank pressure is insufficient, the air pump is controlled to absorb air from the outside to inflate the air spring, and the suspension height increases; if the current height level is higher than the target height level, the air release valve is opened, the gas flows into the atmosphere, and the suspension height decreases. When a vehicle height adjustment request is received, the air suspension responds to the vehicle height adjustment request based on the height values ​​output by each height sensor. For example, the user can set a target height on the central control screen. The air suspension adjusts the vehicle height based on the height values ​​output by each height sensor. If the height is lower than the target height, the controller controls the distribution valve assembly to inflate the corresponding air spring. If the height is higher than the target height, the controller controls the distribution valve assembly to deflate the corresponding air spring.

[0079] Further, in one embodiment, after responding to the vehicle height adjustment request based on the height values ​​output by each height sensor, the method includes:

[0080] When the vehicle is stationary, if the difference between the height value output by each height sensor and the target adjustment height is within a first preset range, it is determined that the adjustment is successful;

[0081] When the vehicle is in motion, if the difference between the height value output by each height sensor and the target adjustment height is within a second preset range, it is determined that the adjustment is successful, and the second preset range is larger than the first preset range.

[0082] In this embodiment, a target height detection system is set up. When the vehicle is stationary, if the difference between the height value output by each height sensor and the target adjustment height is within a first preset range (such as ±3 mm), the adjustment is determined to be successful. When the vehicle is in motion, if the difference between the height value output by each height sensor and the target adjustment height is within a second preset range (such as ±5 mm), the adjustment is determined to be successful.

[0083] In a second aspect, an embodiment of the present application also provides a device for calculating a height value of a height sensor.

[0084] In one embodiment, referring to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of a height value calculation device for a height sensor of the present application, such as Figure 4As shown, the height sensor height value calculation device includes:

[0085] The detection module 10 is used to detect whether the height values ​​output by each height sensor of the vehicle suspension are valid;

[0086] a calculation module 20, configured to calculate, when the height values ​​output by at least two height sensors are invalid, corrected height values ​​corresponding to the at least two height sensors according to the distance between other height sensors and the at least two height sensors, the tilt state of the vehicle body, the inclination angle of the vehicle body, and the valid height values ​​output by other height sensors;

[0087] The replacement module 30 is used to replace the altitude values ​​output by the at least two altitude sensors with the corrected altitude value.

[0088] Furthermore, in one embodiment, the detection module 10 is used to:

[0089] For each height sensor of the vehicle suspension, if the height value output by the height sensor does not change for a preset time after the vehicle is powered on, it is determined that the detection result is that the height value output by the height sensor is invalid;

[0090] If the difference between the height value output by the height sensor and the average calculated value is greater than the preset difference, the detection result is determined to be that the height value output by the height sensor is invalid, and the average calculated value is the average value of the output height values ​​of other height sensors.

[0091] Furthermore, in one embodiment, the vehicle suspension includes four height sensors, and the height sensor height value calculation device also includes a plane equation solving module for:

[0092] When the height values ​​output by three height sensors are valid and the height value output by one height sensor is invalid, a corrected height value of one height sensor is calculated by solving the plane equation according to the installation positions of the four height sensors and the valid height values ​​output by the three height sensors.

[0093] Further, in one embodiment, according to the installation positions of the four height sensors and the effective height values ​​output by the three height sensors, the corrected height value of one height sensor is calculated by solving the plane equation for:

[0094] A three-dimensional coordinate system is established with the projection point of the vehicle's center of mass on the ground as the origin and the vehicle's forward direction as the positive X-axis.

[0095] For each height sensor, the installation position is the X-coordinate and the Y-coordinate, and the output height value is the Z-coordinate;

[0096] According to the coordinates of the three effective height sensors in the three-dimensional coordinate system, a plane is jointly determined and the plane equation is established;

[0097] Substitute the X coordinate and Y coordinate of a height sensor whose output height value is invalid into the plane equation and solve it to calculate the corrected height value of the height sensor.

[0098] Further, in one embodiment, the vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by two height sensors are invalid, the calculation module 20 is used to:

[0099] For each height sensor that outputs an invalid height value, a corrected height value of the height sensor that outputs an invalid height value is calculated based on the distance between the height sensor on the opposite side that outputs a valid height value and the height sensor that outputs an invalid height value, the inclination state of the vehicle body, the inclination angle of the vehicle body and the valid height value output by the height sensor on the opposite side, wherein front and rear are opposite sides, and left and right are opposite sides.

[0100] Further, in one embodiment, the vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by the three height sensors are invalid, the calculation module 20 is used to:

[0101] Calculate the corrected height value of the height sensor on the opposite side according to the distance between the height sensor whose height value is effective and the height sensor on the opposite side, the tilt state of the vehicle body, the tilt angle of the vehicle body and the effective height value output by the height sensor, and obtain the corrected height values ​​of the height sensors on the two opposite sides, wherein the front and the rear are opposite sides, and the left and the right are opposite sides;

[0102] Take any one of the two height sensors that obtain the corrected height value as the reference height sensor, calculate the corrected height value of the height sensor whose height value output on the opposite side is invalid according to the distance between the reference height sensor and the height sensor whose height value output on the opposite side is invalid, the inclination state of the vehicle body, the inclination angle of the vehicle body and the corrected height value of the reference height sensor, and obtain the corrected height value of the remaining height sensor.

[0103] Furthermore, in one embodiment, the height sensor height value calculation device further includes a response module, which is used to:

[0104] Based on the height values ​​output by each height sensor, respond to the vehicle height adjustment request.

[0105] Among them, the functional implementation of each module in the above-mentioned height sensor height value calculation device corresponds to the various steps in the above-mentioned height sensor height value calculation method embodiment, and its functions and implementation processes are no longer repeated here one by one.

[0106] In a third aspect, an embodiment of the present application provides a device for calculating an altitude value of an altitude sensor.

[0107] Reference Figure 5 , Figure 5 Schematic diagram of the hardware structure of the height sensor height value calculation device involved in the embodiment of the present application. In the embodiment of the present application, the height sensor height value calculation device may include a processor, a memory, a communication interface and a communication bus.

[0108] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0109] The communication interface includes an input / output (I / O) interface, a physical interface, and a logical interface, which are used to interconnect the devices inside the height sensor height value calculation device, and an interface used to interconnect the height sensor height value calculation device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0110] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0111] The processor may be a general-purpose processor, and the general-purpose processor may call the height sensor height value calculation program stored in the memory, and execute the height sensor height value calculation method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the height sensor height value calculation program is called may refer to the various embodiments of the height sensor height value calculation method of the present application, which will not be repeated here.

[0112] Those skilled in the art will understand that Figure 5 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0113] In a fourth aspect, an embodiment of the present application also provides a readable storage medium.

[0114] The readable storage medium of the present application stores a height sensor height value calculation program, wherein when the height sensor height value calculation program is executed by a processor, the steps of the height sensor height value calculation method as described above are implemented.

[0115] Among them, the method implemented when the height sensor height value calculation program is executed can refer to the various embodiments of the height sensor height value calculation method of the present application, and will not be repeated here.

[0116] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0117] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0118] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0119] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0120] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0122] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for calculating the height value of a height sensor, characterized in that: The height sensor height value calculation method comprises: Check whether the height values ​​output by each height sensor of the vehicle suspension are valid; When the height values ​​output by at least two height sensors are invalid, calculating the corrected height values ​​corresponding to the at least two height sensors according to the distance between other height sensors and the at least two height sensors, the tilt state of the vehicle body, the inclination angle of the vehicle body and the valid height values ​​output by other height sensors; The altitude values ​​output by the at least two altitude sensors are replaced by the corrected altitude value.

2. The method for calculating the height value of the height sensor according to claim 1, wherein: The step of detecting whether the height values ​​output by each height sensor of the vehicle suspension are valid comprises: For each height sensor of the vehicle suspension, if the height value output by the height sensor does not change for a preset time after the vehicle is powered on, it is determined that the detection result is that the height value output by the height sensor is invalid; If the difference between the height value output by the height sensor and the average calculated value is greater than the preset difference, the detection result is determined to be that the height value output by the height sensor is invalid, and the average calculated value is the average value of the output height values ​​of other height sensors.

3. The height sensor height value calculation method according to claim 1, characterized in that: The vehicle suspension includes four height sensors. After detecting whether the height values ​​output by each height sensor of the vehicle suspension are valid, the method includes: When the height values ​​output by three height sensors are valid and the height value output by one height sensor is invalid, a corrected height value of one height sensor is calculated by solving the plane equation according to the installation positions of the four height sensors and the valid height values ​​output by the three height sensors.

4. The method for calculating the height value of the height sensor according to claim 3, wherein: The method of calculating the corrected height value of one height sensor by solving the plane equation according to the installation positions of the four height sensors and the effective height values ​​output by the three height sensors includes: A three-dimensional coordinate system is established with the projection point of the vehicle's center of mass on the ground as the origin and the vehicle's forward direction as the positive X-axis. For each height sensor, the installation position is the X-coordinate and the Y-coordinate, and the output height value is the Z-coordinate; According to the coordinates of the three effective height sensors in the three-dimensional coordinate system, a plane is jointly determined and the plane equation is established; Substitute the X coordinate and Y coordinate of a height sensor whose output height value is invalid into the plane equation and solve it to calculate the corrected height value of the height sensor.

5. The method for calculating the height value of the height sensor according to claim 1, wherein: The vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by two height sensors are invalid, the calculation of the corrected height values ​​corresponding to the at least two height sensors according to the distance between the other height sensors and the at least two height sensors, the tilt state of the vehicle body, the tilt angle of the vehicle body and the valid height values ​​output by the other height sensors includes: For each height sensor that outputs an invalid height value, a corrected height value of the height sensor that outputs an invalid height value is calculated based on the distance between the height sensor on the opposite side that outputs a valid height value and the height sensor that outputs an invalid height value, the inclination state of the vehicle body, the inclination angle of the vehicle body and the valid height value output by the height sensor on the opposite side, wherein front and rear are opposite sides, and left and right are opposite sides.

6. The method for calculating the height value of the height sensor according to claim 1, wherein: The vehicle suspension includes four height sensors, which are respectively located at the left front, right front, left rear and right rear positions of the vehicle body. When the height values ​​output by the three height sensors are invalid, the calculation of the corrected height values ​​corresponding to the at least two height sensors according to the distance between the other height sensors and the at least two height sensors, the tilt state of the vehicle body, the tilt angle of the vehicle body and the valid height values ​​output by the other height sensors includes: Calculate the corrected height value of the height sensor on the opposite side according to the distance between the height sensor whose height value is effective and the height sensor on the opposite side, the tilt state of the vehicle body, the tilt angle of the vehicle body and the effective height value output by the height sensor, and obtain the corrected height values ​​of the height sensors on the two opposite sides, wherein the front and the rear are opposite sides, and the left and the right are opposite sides; Take any one of the two height sensors that obtain the corrected height value as the reference height sensor, calculate the corrected height value of the height sensor whose height value output on the opposite side is invalid according to the distance between the reference height sensor and the height sensor whose height value output on the opposite side is invalid, the inclination state of the vehicle body, the inclination angle of the vehicle body and the corrected height value of the reference height sensor, and obtain the corrected height value of the remaining height sensor.

7. The method for calculating the height value of a height sensor according to claim 1, wherein: After replacing the altitude values ​​output by the at least two altitude sensors with the corrected altitude value, the method further comprises: Based on the height values ​​output by each height sensor, respond to the vehicle height adjustment request.

8. A device for calculating the height value of a height sensor, characterized in that: The height sensor height value calculation device comprises: A detection module, used to detect whether the height values ​​output by each height sensor of the vehicle suspension are valid; a calculation module, configured to calculate, when the height values ​​output by at least two height sensors are invalid, corrected height values ​​corresponding to the at least two height sensors according to the distance between other height sensors and the at least two height sensors, the tilt state of the vehicle body, the tilt angle of the vehicle body, and the valid height values ​​output by other height sensors; A substitution module is used to replace the altitude values ​​output by the at least two altitude sensors with the corrected altitude value.

9. A device for calculating the height value of a height sensor, characterized in that: The height sensor height value calculation device includes a processor, a memory, and a height sensor height value calculation program stored in the memory and executable by the processor, wherein when the height sensor height value calculation program is executed by the processor, the steps of the height sensor height value calculation method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a height sensor height value calculation program, wherein when the height sensor height value calculation program is executed by a processor, the steps of the height sensor height value calculation method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Height sensor fault detection method and device, vehicle and storage medium

    CN119413120A

  • Height Sensor Fault Detection Method, Device, Vehicle and Storage Medium

    CN119413120B