Vehicle weight determination method, device and equipment, vehicle and storage medium
By performing Kalman filtering and calibration of the data collected by the vehicle acceleration sensor, combined with the vehicle condition data, the problem of low accuracy in determining the vehicle weight is solved, and higher accuracy and reliability of vehicle weight calculation are achieved.
Patent Information
- Application Number
- CN202411287269.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-11-08
AI Technical Summary
In the prior art, vehicle acceleration sensors are affected by vibration when collecting data, resulting in low accuracy in vehicle weight determination.
The Kalman filtering algorithm is used to process the original acceleration values collected by the three-axis acceleration sensor, and combined with vehicle condition data and calibration model, the vehicle weight is determined, and the preset vehicle re-estimation conditions are met and calculated.
By reducing the noise and error of acceleration data, the accuracy and reliability of vehicle weight determination are improved, and the accuracy of vehicle weight calculation results are ensured under certain conditions.
Smart Images

Figure CN118907125A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile weight data processing, and in particular to a method, device, equipment, vehicle and storage medium for determining vehicle weight. Background Art
[0002] As a key means of transportation, commercial vehicles carry cargo that often changes in weight, resulting in large fluctuations and frequent changes in total weight. This fluctuation in total weight directly affects the smoothness and success rate of the transmission shift, and is also related to functions such as speed limit and overspeed shifting, which further affects the vehicle's driving safety and driving experience. Therefore, it is particularly important to accurately and quickly determine the current vehicle weight.
[0003] In the related art, the current weight of the vehicle is usually determined based on the vehicle dynamics formula by using the acceleration collected by the sensor. However, in the above process, when the sensor collects the acceleration of the vehicle, it will be affected by the vibration generated when the vehicle is driving, resulting in a large error in the collected acceleration, which in turn leads to a low accuracy in the determined vehicle weight. Summary of the invention
[0004] The present application provides a vehicle weight determination method, device, equipment, vehicle and storage medium, which are used to solve the problem in the related art that the collected vehicle acceleration has a large error, thereby resulting in low accuracy of the determined vehicle weight.
[0005] In a first aspect, the present application provides a method for determining vehicle weight, the method comprising:
[0006] Obtain the original acceleration value collected by the vehicle's three-axis acceleration sensor;
[0007] Performing Kalman filtering on the original acceleration value to obtain a processed acceleration value;
[0008] After determining that a preset vehicle weight estimation condition is met according to the acceleration value and the vehicle condition data, the weight of the vehicle is determined according to the acceleration value.
[0009] In a possible implementation manner, the vehicle condition data includes: accelerator pedal opening, full wheel end driving force, and gear shifting status;
[0010] The vehicle weight estimation conditions include: the slope is less than a first preset value, the lateral acceleration is less than a second preset value, the longitudinal acceleration is greater than a third preset value, the accelerator pedal opening is greater than a fourth preset value, the entire wheel end driving force is greater than a fifth preset value, and the vehicle is in a non-shifting process.
[0011] In a possible implementation manner, after performing Kalman filtering on the original acceleration value to obtain the processed acceleration value, the method further includes:
[0012] Performing installation error calibration on the processed acceleration value based on a calibration model to obtain a calibrated acceleration value, wherein the calibration model is determined according to an axis rotation angle between the three-axis acceleration sensor and a corresponding dimension of a vehicle coordinate system;
[0013] Determining the slope of the vehicle according to the whole vehicle acceleration and the longitudinal acceleration in the calibrated acceleration value;
[0014] It is determined whether the vehicle weight estimation condition is met according to the calibrated acceleration value, the slope and the vehicle condition data.
[0015] In a possible implementation manner, before performing Kalman filtering on the original acceleration value to obtain the processed acceleration value, the method further includes:
[0016] Determining whether the original acceleration value is valid according to the vehicle speed and the acceleration value collected in real time by the three-axis acceleration sensor;
[0017] Accordingly, performing Kalman filtering on the original acceleration value to obtain the processed acceleration value includes:
[0018] If it is determined that the original acceleration value is valid, Kalman filtering is performed on the original acceleration value to obtain a processed acceleration value.
[0019] In a possible implementation, the method further includes:
[0020] If it is determined that the acceleration raw value is invalid, a preset vehicle weight is output.
[0021] In a possible implementation manner, determining whether the original acceleration value is valid according to the vehicle speed and the acceleration value collected in real time by the three-axis acceleration sensor includes:
[0022] If the speed of the vehicle is greater than a preset speed, and the acceleration value collected by the three-axis acceleration sensor does not change within a preset time period, then determining that the original acceleration value is invalid;
[0023] Otherwise, it is determined that the acceleration raw value is valid.
[0024] In a possible implementation manner, determining the weight of the vehicle according to the acceleration value includes:
[0025] According to the vehicle dynamics formula, a vehicle weight estimation model is constructed;
[0026] The acceleration value is input into the vehicle weight estimation model to calculate the weight of the vehicle.
[0027] In a second aspect, the present application provides a device for determining vehicle weight, the device comprising:
[0028] An acquisition module is used to acquire the original acceleration value collected by the three-axis acceleration sensor of the vehicle;
[0029] A first processing module, configured to perform Kalman filtering on the original acceleration value to obtain a processed acceleration value;
[0030] The second processing module is used to determine the weight of the vehicle according to the acceleration value after determining that a preset vehicle weight estimation condition is met according to the acceleration value and the vehicle condition data.
[0031] In a third aspect, the present application provides a controller, comprising: a processor, a memory, and a communication interface;
[0032] The memory stores computer-executable instructions;
[0033] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for determining the vehicle weight as described in any one of the first aspects.
[0034] In a fourth aspect, the present application provides a vehicle, comprising: a vehicle body, a three-axis acceleration sensor disposed in the vehicle body, and a controller as described in the third aspect.
[0035] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for determining the vehicle weight as described in any one of the first aspects.
[0036] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method for determining the vehicle weight as described in any one of the first aspects.
[0037] The present application provides a method, device, equipment, vehicle and storage medium for determining vehicle weight. The original acceleration value collected by the three-axis acceleration sensor of the vehicle is obtained by a controller, and the original acceleration value is processed by Kalman filtering to obtain the processed acceleration value. After determining that the acceleration value and vehicle condition data meet the preset vehicle weight estimation conditions, the weight of the vehicle can be calculated by the acceleration value. Through the above method, a more accurate acceleration value can be obtained, and after the preset vehicle weight estimation conditions are met, the weight of the vehicle can be calculated by the acceleration value, ensuring that the determined vehicle weight has a higher accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application;
[0040] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for determining vehicle weight provided in the present application;
[0041] Figure 3 A schematic diagram of a flow chart of a second embodiment of a method for determining vehicle weight provided in the present application;
[0042] Figure 4 A structural schematic diagram of the installation position of the three-axis acceleration sensor provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of a flow chart of a third embodiment of a method for determining vehicle weight provided in the present application;
[0044] Figure 6 A flow chart of an example of a method for determining vehicle weight provided in this application;
[0045] Figure 7 A schematic diagram of the structure of a first embodiment of a vehicle weight determination device provided in the present application;
[0046] Figure 8 A schematic diagram of the structure of a second embodiment of a vehicle weight determination device provided in the present application;
[0047] Fig. 9 A schematic diagram of the structure of a controller provided in an embodiment of the present application;
[0048] Fig.10 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application.
[0049] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0051] First, let’s explain the terms involved in this application:
[0052] Triaxial accelerometer: A sensor that can simultaneously measure the acceleration of a vehicle in three orthogonal directions (usually the X, Y, and Z axes).
[0053] Kalman filter algorithm: Provides an optimal estimate by combining measurement data from sensors and predictions from system models to reduce disturbances and noise in the data.
[0054] Slope: It is used to indicate the ratio of the change in vertical height of the road to the horizontal distance, and can be expressed as a percentage (%).
[0055] Installation error: The angular deviation between the three axes of the triaxial accelerometer and the three axes in the vehicle coordinate system.
[0056] In the transportation process of commercial vehicles, the gross weight of the vehicle, or vehicle weight, is a key parameter that directly affects the vehicle's power performance and safety. Commercial vehicles are usually used to transport a variety of goods, the total weight of which can range from hundreds of kilograms to tens of tons, resulting in frequent changes in vehicle weight.
[0057] As a core component of the vehicle's transmission system, the transmission's shifting strategy needs to be adjusted according to the vehicle's weight. Vehicle weight fluctuations can affect the smoothness and success rate of the transmission's shifting. For example, when the vehicle is heavily loaded, the transmission needs to shift at a lower speed to provide sufficient torque; while when the vehicle is unloaded or lightly loaded, the transmission can shift at a higher speed to improve fuel economy. If the vehicle's weight information cannot be accurately obtained, the transmission's shifting strategy may be inaccurate, leading to problems such as shift shock, insufficient power, or increased fuel consumption.
[0058] In addition, vehicle weight is directly related to functions such as speed limit and overspeed shifting. Modern commercial vehicles are usually equipped with an Electronic Control Unit (ECU) to monitor and control various parameters of the vehicle. In order to ensure driving safety, the ECU needs to obtain the vehicle weight information in real time so that it can perform speed limit control when necessary to prevent speeding. At the same time, in some cases, the vehicle needs to perform overspeed shifting operations to cope with emergency situations or special road conditions, which also requires accurate weight information as a reference.
[0059] Therefore, how to quickly and accurately determine the weight of a vehicle while driving has become an urgent problem to be solved.
[0060] In the related art, the current weight of a vehicle is determined by the vehicle dynamics formula and based on the acceleration collected by the sensor. However, in this process, when the sensor collects the vehicle acceleration, it will be affected by the vibration generated during the vehicle's driving, resulting in a large error in the collected acceleration (such as disturbance and noise), which makes the determined vehicle weight less accurate.
[0061] In response to the above problems, the inventors considered that the acceleration values collected by the sensor can be filtered through the Kalman filter algorithm to reduce the collected acceleration error. Specifically, after many experiments, the inventors found that the original acceleration values collected by the three-axis acceleration sensor of the vehicle can be obtained, and the original acceleration values can be processed through the Kalman filter algorithm to obtain the processed acceleration values. After determining that the preset vehicle weight estimation conditions are met based on the acceleration values and vehicle condition data, the weight of the vehicle can be determined based on the acceleration values. This method can filter the original acceleration values collected by the three-axis acceleration sensor, eliminate disturbances and noise, and determine the weight of the vehicle by meeting the preset vehicle weight estimation conditions, thereby improving the accuracy of the determined vehicle weight. Based on this, the present application proposes a method for determining vehicle weight to further improve the accuracy of the determined vehicle weight.
[0062] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 The vehicle controller can perform Kalman filtering on the original acceleration value to eliminate disturbance and noise errors and obtain more accurate and stable processed acceleration values. Then, the controller can determine the weight of the vehicle based on the processed acceleration values.
[0063] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0064] Figure 2 This is a flow chart of the first embodiment of the method for determining vehicle weight provided in this application. Figure 2 , the method may include:
[0065] S201. Obtain original acceleration values collected by a three-axis acceleration sensor of the vehicle.
[0066] The execution subject of the embodiment of the present application may be a controller in the vehicle, or a vehicle weight determination device provided in the controller. The vehicle weight determination device may be implemented by software, or by a combination of software and hardware. The vehicle weight determination device may be a processor in the controller. For ease of understanding, the following description will be made by taking the execution subject as an example of a controller.
[0067] In the embodiment of the present application, the controller can be any one of the vehicle controller Unit (VCU), cockpit domain controller, and transmission controller Unit (TCU) in the vehicle, and technicians in this field can set it according to actual needs.
[0068] In this step, the controller may obtain original acceleration values collected by the three-axis acceleration sensor of the vehicle, wherein the original acceleration values include original acceleration values of three axes.
[0069] For example, the controller can obtain the original acceleration value collected by the three-axis acceleration sensor of the vehicle at the current moment, and the original acceleration value includes: the original acceleration value AccX of the X axis int , the original value of the acceleration on the Y axis AccY int , and the original value of the acceleration of the Z axis AccZ int .
[0070] S202: Perform Kalman filtering on the original acceleration value to obtain a processed acceleration value.
[0071] In this step, the controller can perform Kalman filtering on the acquired original acceleration value to eliminate the interference and noise in the original acceleration value and obtain the processed acceleration value. In the specific implementation, the estimated system covariance at the current moment can be calculated by the system covariance at the previous moment and the process noise covariance; the Kalman gain at the current moment can be calculated by the estimated system covariance at the current moment and the observed noise covariance; and the filtered acceleration value can be calculated by the Kalman gain at the current moment.
[0072] Specifically, the estimated covariance of the system at the current moment can be calculated by formula (1):
[0073]
[0074] In formula (1), Estimate the covariance of the system at time k, P k-1 is the system covariance at time k-1, and Q is the process noise covariance. The value of Q can be 0.0001.
[0075] It should be noted that the k moment may be the current moment, and the k-1 moment may be the moment before the current moment.
[0076] Specifically, the Kalman gain at the current moment can be calculated by formula (2):
[0077]
[0078] In formula (2), K k is the Kalman gain at time k, and R is the observation noise covariance. The value of R can be 0.043.
[0079] Specifically, the filtered acceleration value can be calculated by formula (3):
[0080] Acc flt(k) =Acc flt(k-1) +K k *(Acc int -Acc flt(k-1) ) Formula (3)
[0081] In formula (3), Acc flt(k) is the filtered acceleration value at time k, Acc flt(k-1) is the filtered acceleration value at time k-1, Acc int is the original value of the acceleration collected.
[0082] Furthermore, the system covariance at time k can be calculated using formula (4):
[0083]
[0084] For example, the controller can calculate the raw value of acceleration AccX int , the original value of acceleration AccY int , and the original value of acceleration AccZ int Perform Kalman filtering to eliminate the interference and noise in the original acceleration value and obtain the processed acceleration value, which is the acceleration value of the X axis AccX flt , Y-axis acceleration value AccY flt , and the acceleration value of the Z axis AccZ flt .
[0085] S203: After determining that a preset vehicle weight estimation condition is met according to the acceleration value and the vehicle condition data, determine the weight of the vehicle according to the acceleration value.
[0086] In this step, the controller can determine whether the preset vehicle weight estimation conditions are met based on the processed acceleration value and the acquired vehicle condition data. After determining that the preset vehicle weight estimation conditions are met, the weight of the vehicle can be determined based on the processed acceleration value.
[0087] The vehicle condition data may include the current accelerator pedal opening, the entire wheel end driving force, and whether the vehicle is in the process of shifting gears.
[0088] The accelerator pedal opening refers to the degree to which the accelerator pedal is depressed, usually expressed as a percentage (%). 0% means that the accelerator pedal is completely released, and 100% means that the accelerator pedal is fully depressed. For example, the accelerator pedal opening at the current moment is 20%.
[0089] Optionally, the controller may obtain vehicle condition data indirectly or directly.
[0090] For example, if the controller is a transmission controller, the transmission controller can obtain the current wheel-end driving force indirectly. In specific implementation, the vehicle controller can obtain the data of the wheel speed sensor, calculate the wheel-end driving force based on the data of the wheel speed sensor, and then send the wheel-end driving force to the transmission controller.
[0091] For another example, if the controller is a VCU, the VCU can obtain the current accelerator pedal opening in an indirect manner. In a specific implementation, the VCU can output the corresponding accelerator pedal opening value according to the different voltages collected by the accelerator pedal.
[0092] For another example, if the controller is a VCU, the VCU can indirectly obtain whether the vehicle is in the gear shifting process at the current moment. In a specific implementation, when the vehicle reaches the set gear shifting speed, the electronic control system will issue a gear shifting instruction. The VCU can determine whether the vehicle is in the gear shifting process at the current moment based on the received gear shifting instruction.
[0093] It should be noted that different controllers in the vehicle can exchange data and signals through network communication protocols. For example, the VCU can send the calculated wheel-end driving force to the transmission controller through the Controller Area Network (CAN).
[0094] The vehicle weight estimation conditions include: the slope is less than the first preset value, the lateral acceleration is less than the second preset value, the longitudinal acceleration is greater than the third preset value, the accelerator pedal opening is greater than the fourth preset value, the entire wheel end driving force is greater than the fifth preset value, and the vehicle is in a non-shifting process.
[0095] When the slope is less than a first preset value and the lateral acceleration is less than a second preset value, changes in the power distribution of the vehicle during uphill, downhill or turning can be reduced, thereby reducing the impact on the dynamic performance of the vehicle.
[0096] When the longitudinal acceleration is greater than the third preset value, the accelerator pedal opening is greater than the fourth preset value, and the wheel end driving force is greater than the fifth preset value, the vehicle is in a straight-line acceleration state. In addition, ensuring that the vehicle is not in the gear shifting process can ensure the stability of the power transmission chain, thereby improving the accuracy of vehicle weight estimation based on the power output of the vehicle.
[0097] Optionally, the first preset value, the second preset value, the third preset value, the fourth preset value, and the fifth preset value may be determined based on an analysis of the dynamic performance and operating status of the vehicle.
[0098] For example, the first preset value, i.e., the preset value α of the slope c 3%, the second preset value is the preset value of the lateral acceleration Accy c 0.35m / s 2 The third preset value is the preset value of the longitudinal acceleration Accx c 0.2m / s 2 The fourth preset value is the preset value APS of the accelerator pedal opening c The fifth preset value is the preset value F of the entire wheel end driving force. c It is 5000N.
[0099] Specifically, the slope can be calculated by formula (5):
[0100] α slope=tansin -1 (AccX-Acc Veh ) Formula (5)
[0101] In formula (5), α slope is the slope, AccX is the filtered longitudinal acceleration of the sensor, Acc Veh is the acceleration of the vehicle. Among them, AccX is also the acceleration value of the X axis AccX flt .
[0102] For example, the controller may determine the weight of the vehicle based on the processed acceleration value and the acquired vehicle condition data, after determining that a preset vehicle weight estimation condition is met.
[0103] In the embodiment of the present application, the controller can obtain the original acceleration value collected by the three-axis acceleration sensor of the vehicle, and perform Kalman filtering on the original acceleration value to obtain the processed acceleration value. After determining that the preset vehicle weight estimation conditions are met based on the acceleration value and the vehicle condition data, the weight of the vehicle can be determined by the acceleration value. In the above process, the Kalman filtering process can be used to reduce noise and errors, thereby improving the accuracy of the acceleration data and ensuring the accuracy of the vehicle weight calculation.
[0104] Furthermore, in the embodiment of the present application, the vehicle weight can be determined after the acceleration value and the vehicle condition data are used to determine whether the preset vehicle weight estimation conditions are met, thereby ensuring that the vehicle weight is calculated under the optimal conditions, thereby reducing the impact of external factors on the calculation results and improving the reliability of the determined vehicle weight.
[0105] exist Figure 2 Based on the embodiment shown below, combined with Figure 3 , the method for determining the above vehicle weight is further described in detail.
[0106] Figure 3 This is a flow chart of the second embodiment of the method for determining vehicle weight provided in this application. Figure 3 , the method may include:
[0107] S301. Obtain original acceleration values collected by a three-axis acceleration sensor of the vehicle.
[0108] For example, the controller can obtain the original acceleration value AccX of the vehicle's X axis at the current moment. int , the original value of the acceleration on the Y axis AccY int , and the original value of the acceleration of the Z axis AccZ int .
[0109] S302: Perform Kalman filtering on the original acceleration value to obtain a processed acceleration value.
[0110] It should be noted that the execution process of step S302 can refer to the execution process of step S202, which will not be repeated here.
[0111] S303: Perform installation error calibration on the processed acceleration value based on the calibration model to obtain a calibrated acceleration value.
[0112] In this step, a calibration model can be constructed to calibrate the acceleration value after Kalman filtering, and obtain the calibrated acceleration value. The calibration model is determined according to the axis rotation angle between the three-axis acceleration sensor and the corresponding dimension of the vehicle coordinate system.
[0113] Optionally, in the application of a three-axis acceleration sensor, it is usually necessary to measure acceleration data based on the vehicle coordinate system, which requires that the directions of the sensing axes of the acceleration sensor (including the X-axis, Y-axis, and Z-axis) are consistent with the vehicle coordinate system. However, due to the influence of the installation process, during the installation of the three-axis acceleration sensor, there is usually an error between the sensing axis direction of the acceleration sensor and the ideal sensing axis direction (also the direction of the three axes in the vehicle coordinate system). The installation error has a key impact on the measurement accuracy of the vehicle status data, so the installation error needs to be calibrated.
[0114] Figure 4 This is a schematic diagram of the installation position of the three-axis acceleration sensor provided in the embodiment of the present application. Figure 4 The vehicle coordinate system includes the coordinate origin O1, the longitudinal axis U axis, the transverse axis V axis, and the vertical axis W axis. The U axis points to the front of the vehicle, the V axis points to the right side of the vehicle, and the W axis points to the top of the vehicle. The three-axis acceleration sensor A includes the origin O2, the longitudinal axis X axis, the transverse axis Y axis, and the vertical axis Z axis. During the installation of the three-axis acceleration sensor A, there may be a rotation angle α between the X axis and the U axis, a rotation angle β between the Y axis and the V axis, and a rotation angle θ between the Z axis and the W axis. The rotation angle α, the rotation angle β, and the rotation angle θ have a key impact on the measurement accuracy of the vehicle's acceleration value, and the installation error needs to be calibrated.
[0115] Optionally, a calibration model M may be constructed according to the rotation angle α, the rotation angle β, and the rotation angle θ.
[0116]
[0117] The processed acceleration value is calibrated for installation error by the calibration model M to obtain the calibrated acceleration value. Specifically, the calculation formula can be shown as formula (6):
[0118]
[0119] In formula (6), M is the calibration matrix, α is the rotation angle around the U axis, β is the rotation angle around the V axis, θ is the rotation angle around the W axis, AccX is the calibrated X-axis acceleration, AccY is the calibrated Y-axis acceleration, AccZ is the calibrated Z-axis acceleration, AccX flt is the filtered X-axis acceleration, AccY flt is the filtered Y-axis acceleration, AccZ flt is the filtered Z-axis acceleration.
[0120] S304: Determine the slope of the vehicle according to the entire vehicle acceleration and the longitudinal acceleration in the calibrated acceleration value.
[0121] In this step, the vehicle slope can be determined based on the whole vehicle acceleration and the longitudinal acceleration in the calibrated acceleration value, that is, the calibrated X-axis acceleration.
[0122] Specifically, the slope can be calculated by formula (5):
[0123] α slope =tansin -1 (AccX-Acc Veh )
[0124] At this time, in formula (5), AccX is the longitudinal acceleration of the sensor after filtering and installation error calibration, and is also the acceleration value AccX of the X-axis.
[0125] Optionally, the vehicle acceleration can be obtained by differentiating the vehicle speed at the current moment and performing Kalman filtering.
[0126] S305: Determine whether vehicle weight estimation conditions are met based on the calibrated acceleration value, slope and vehicle condition data.
[0127] In this step, it can be determined whether the vehicle weight estimation condition is met based on the calibrated acceleration value, the slope determined by the longitudinal acceleration in the calibrated acceleration value, and the vehicle condition data.
[0128] Optionally, it can be determined that the vehicle weight estimation conditions are met at the current moment based on the fact that the slope is less than a first preset value, the calibrated lateral acceleration is less than a second preset value, the calibrated longitudinal acceleration is greater than a third preset value, the accelerator pedal opening is greater than a fourth preset value, the entire wheel-end driving force is greater than a fifth preset value, and the vehicle is in a non-shifting process.
[0129] It should be noted that the slope being less than the first preset value means that the absolute value of the slope is less than the first preset value, and the absolute value indicates that no matter whether the slope is uphill or downhill, only the numerical value is considered, and the direction is not considered.
[0130] Optionally, if the slope is less than a first preset value, the lateral acceleration is less than a second preset value, the longitudinal acceleration is greater than a third preset value, the accelerator pedal opening is greater than a fourth preset value, the entire wheel-end driving force is greater than a fifth preset value, and the vehicle is in a non-shifting process, at least one of the following conditions is not met, then it can be determined that the vehicle weight estimation conditions are not met at the current moment.
[0131] S306: Construct a vehicle weight estimation model according to a vehicle dynamics formula.
[0132] In this step, a vehicle weight estimation model can be constructed based on the vehicle dynamics formula.
[0133] Specifically, the vehicle dynamics formula can be shown as formula (7):
[0134]
[0135] In formula (7), T Em is the total torque of the motor, i0 is the speed ratio of the composite box, i g is the current speed ratio of the gearbox, i ifd is the main reduction ratio, η T is the total efficiency of the transmission system, r is the tire radius, v is the vehicle speed, α is the current slope, M is the vehicle weight, I 总 is the total moment of inertia, f0 is the speed fitting constant term in the rolling resistance coefficient of the whole vehicle, f1 is the first-order term coefficient in the rolling resistance coefficient of the whole vehicle, and f2 is the second-order term coefficient of the speed in the air resistance coefficient. is the acceleration and g is the acceleration due to gravity.
[0136] Optionally, the speed fitting constant term f0 in the rolling resistance coefficient of the whole vehicle, the first-order term coefficient f1 in the rolling resistance coefficient of the whole vehicle, and the second-order term coefficient f2 of the speed in the air resistance coefficient can be obtained in the following way.
[0137] Perform sliding resistance tests on the same vehicle model under different loads, and obtain the corresponding f0, f1 and f2 of the vehicle under different loads based on the sliding resistance test.
[0138] Furthermore, a calculation model that conforms to the least squares form can be constructed based on the acceleration value of the three-axis acceleration sensor and the vehicle dynamics formula. The specific calculation is shown in formula (8) to formula (12):
[0139]
[0140] AccZ=gcos(α) Formula (9)
[0141]
[0142] Among them, the parameters in formula (7) can be replaced by formula (8) to formula (11) to obtain formula (12).
[0143] Optionally, the vehicle weight estimation model can be constructed using a least squares format with a forgetting factor.
[0144] In formula (12), M is the vehicle weight to be determined, and the rest are known items. Formula (12) can be further transformed to obtain formula (13).
[0145]
[0146] in,
[0147] Furthermore, the vehicle weight estimation model in the least square format with the forgetting factor can be expressed as follows:
[0148]
[0149] in, For the current moment The transpose of .
[0150] Specifically, in formula (14), K k is the Kalman gain at time k, which can be calculated by formula (15):
[0151]
[0152] In formula (15), λ is the forgetting factor, where the value of λ can be 0.9 to 1.0.
[0153] Specifically, in formula (15), P k is the system covariance at time k, which can be calculated by formula (16):
[0154]
[0155] S307: Input the acceleration value into a vehicle weight estimation model to calculate the weight of the vehicle.
[0156] In this step, the calibrated acceleration value may be applied to the vehicle weight estimation model to calculate the vehicle weight.
[0157] For example, according to the calibrated X-axis acceleration value AccX and the vehicle acceleration AccVeh , the calculated slope is less than the first preset value α c , and the calibrated Y-axis acceleration AccY is less than the second preset value Accy c , the calibrated longitudinal acceleration AccX is greater than the third preset value Accx c , the accelerator pedal opening is greater than the fourth preset value APS c , the wheel end driving force is greater than the fifth preset value APS c , and the vehicle is in a non-shifting process, after determining that the vehicle weight estimation condition is met at the current moment, the calibrated X-axis acceleration AccX and the calibrated Y-axis acceleration AccY can be input into the vehicle weight estimation model to calculate the vehicle weight.
[0158] In an embodiment of the present application, after the controller performs Kalman filtering on the original acceleration value, the acceleration value can be calibrated based on the calibration model to obtain a calibrated acceleration value. The vehicle slope is determined based on the whole vehicle acceleration and the calibrated longitudinal acceleration. It is determined whether the vehicle weight estimation conditions are met based on the calibrated acceleration value, slope and vehicle condition data. After determining that the vehicle weight estimation conditions are met, a vehicle weight estimation model can be constructed based on the vehicle dynamics formula, and the acceleration value can be input into the model to calculate the vehicle weight. In the above process, the original acceleration value is processed by Kalman filtering, which can effectively reduce noise and errors. The acceleration value is calibrated based on the calibration model, which can compensate for installation errors and improve the accuracy of the acceleration data, thereby ensuring the accuracy of the vehicle weight calculation.
[0159] Furthermore, in the embodiment of the present application, the slope can be determined by the calibrated longitudinal acceleration and the acceleration of the whole vehicle, and the vehicle condition data, longitudinal acceleration, and lateral acceleration can be combined to determine whether the preset vehicle weight estimation conditions are met at the current moment. After determining that the vehicle weight estimation conditions are met, the vehicle weight is calculated, which can ensure that the vehicle weight calculation is performed under the optimal conditions, thereby improving the accuracy of the vehicle weight to be determined.
[0160] Figure 5 This is a flow chart of the third embodiment of the method for determining vehicle weight provided in this application. Figure 5 Based on the above embodiment, the method may further include:
[0161] S501. Determine whether the original acceleration value is valid according to the vehicle speed and the acceleration value collected in real time by the three-axis acceleration sensor.
[0162] In this step, the controller can determine whether the original acceleration value obtained is valid based on the obtained vehicle speed and the acceleration value collected by the three-axis acceleration sensor in real time. In a specific implementation, if the vehicle speed is greater than the preset speed and the acceleration value collected by the three-axis acceleration sensor does not change within the preset time, the original acceleration value is determined to be invalid; otherwise, the original acceleration value is determined to be valid.
[0163] Optionally, the preset speed and the preset duration can be set according to the specific needs and characteristics of the vehicle. For example, the preset speed is 2 kilometers per hour (2km / h) and the preset duration is 60 seconds (s).
[0164] Optionally, the acceleration value does not change within the preset time length, which means that the acceleration value collected by the three-axis acceleration sensor, including the original acceleration values of the three axes, does not change within the preset time length. If at least one of the original acceleration values of the three axes changes within the preset time length, it means that the acceleration value has changed within the preset time length.
[0165] For example, the controller can obtain a vehicle speed of 10 km / h, which is greater than the preset vehicle speed of 2 km / h, and the original acceleration value AccX of the X-axis in the acceleration value collected by the three-axis acceleration sensor int If a change occurs, it can be determined that the original acceleration value is valid.
[0166] In an optional embodiment, when the controller obtains the original acceleration value collected by the three-axis acceleration sensor of the vehicle, it will also obtain the status signal sent by the three-axis acceleration sensor. The controller can determine whether the three-axis acceleration sensor fails according to the received status signal. If the three-axis acceleration sensor fails, it can be determined that the original acceleration value is invalid. That is, when the sensor fails, the vehicle speed and the acceleration value collected by the three-axis acceleration sensor in real time are no longer used to determine whether the original acceleration value is valid.
[0167] For example, the controller may receive a status signal 0X00 from the three-axis acceleration sensor, where the status signal 0X00 is used to indicate that a failure has occurred in the three-axis acceleration sensor. It may then be determined that the acquired original acceleration value is invalid.
[0168] S502: If it is determined that the original acceleration value is valid, perform Kalman filtering on the original acceleration value to obtain a processed acceleration value.
[0169] In this step, after determining that the original acceleration value is valid, the obtained original acceleration value may be subjected to Kalman filtering to eliminate interference and noise in the original acceleration value and obtain a processed acceleration value.
[0170] The process of performing Kalman filtering on the original acceleration value can be referred to step S201, which will not be described in detail here.
[0171] S503: If it is determined that the original acceleration value is invalid, output a preset vehicle weight.
[0172] In this step, after determining that the original acceleration value is invalid based on the vehicle speed and the acceleration value collected by the three-axis acceleration sensor does not change within a preset time, the preset vehicle weight can be directly output. The preset vehicle weight can be a standard weight pre-set by the manufacturer according to the specifications and configuration of the vehicle during the vehicle design and manufacturing process.
[0173] In an embodiment of the present application, the controller can determine the validity of the original acceleration value based on the vehicle speed and the acceleration data collected in real time by the three-axis acceleration sensor. If the original acceleration value is determined to be valid, Kalman filtering is performed on it to obtain the processed acceleration value; if the original acceleration value is determined to be invalid, the preset vehicle weight is output. In the above process, by judging the validity of the original acceleration value in real time and performing Kalman filtering, the accuracy of the acceleration data and the reliability of the system can be significantly improved; when the data is invalid, the preset vehicle weight is output to ensure that the system can still provide reasonable output under abnormal conditions.
[0174] Figure 6 This is a flow chart of an example of a method for determining vehicle weight provided in this application. Figure 6 , the method may include:
[0175] S601, read the original value of the three-axis acceleration sensor in the TCU.
[0176] For example, the controller may obtain the original acceleration value collected by a three-axis acceleration sensor disposed in the TCU.
[0177] S602: Check whether the original value of the sensor is abnormal.
[0178] For example, the controller may determine that the original acceleration value is invalid based on the fact that the vehicle speed is greater than a preset speed and the acceleration value collected by the three-axis acceleration sensor does not change within a preset time period; otherwise, the controller determines that the original acceleration value is valid.
[0179] S603, Kalman filtering eliminates disturbance and noise.
[0180] After determining that the original acceleration value is valid, Kalman filtering can be performed on the original acceleration value to eliminate interference and noise in the original acceleration value and obtain a processed acceleration value.
[0181] S604: Output the default vehicle weight.
[0182] After determining that the original value of the acceleration is invalid, the default vehicle weight can be output.
[0183] S605, calibrate installation position error.
[0184] Optionally, after performing Kalman filtering on the original acceleration value to obtain the processed acceleration value, the processed acceleration value may be calibrated for installation errors based on the calibration model to obtain a calibrated acceleration value.
[0185] S606. Slope estimation.
[0186] In this step, the slope of the vehicle can be determined based on the whole vehicle acceleration and the longitudinal acceleration in the calibrated acceleration value.
[0187] S607: Whether vehicle weight estimation conditions are met.
[0188] In this step, after determining the slope of the vehicle, it is possible to determine whether the preset vehicle weight estimation conditions are met based on the longitudinal acceleration, lateral acceleration, and vehicle condition data in the calibrated acceleration values. If so, execute step S608, if not, execute step S609.
[0189] S608: Estimate vehicle weight based on the least squares method.
[0190] In this step, the weight of the vehicle at the current moment may be determined based on the least square method, according to the acceleration value and the vehicle dynamics formula.
[0191] S609: The vehicle weight is maintained at the previous value.
[0192] S610: Whether the vehicle weight difference from the previous moment is greater than a set threshold.
[0193] Optionally, since the vehicle weight calculation is performed in real time, the vehicle weight may fluctuate slightly between adjacent moments. In order to avoid such slight fluctuations and ensure the stability of the output vehicle weight, a preset difference threshold can be set. In a specific implementation, the difference between the vehicle weight at the current moment and the vehicle weight at the previous moment can be calculated. If the difference is greater than or equal to the preset difference threshold, step S610 is executed to output the current estimated vehicle weight; if the difference is less than the preset difference threshold, step S609 is executed, and the vehicle weight maintains the value at the previous moment.
[0194] Likewise, the difference threshold can be set according to the specific needs and characteristics of the vehicle. For example, the preset difference threshold is 500 kilograms (kg).
[0195] For example, the difference threshold is 500kg, the current vehicle weight is 20050kg, and the previous vehicle weight is 20000kg. Since the difference between the current vehicle weight of 20050kg and the previous vehicle weight of 20000kg is 50kg, which is less than the preset difference threshold of 500kg, it can be determined that the difference between the current vehicle weight and the previous vehicle weight is less than the set threshold, and step S609 can be executed, and the vehicle weight maintains the value of the previous moment, that is, the vehicle weight of 20000kg at the previous moment is output.
[0196] S611. Output the current estimated vehicle weight.
[0197] The example of the method for determining vehicle weight provided in the present application, the working process of which when applied can refer to the process shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0198] Figure 7 This is a schematic diagram of the structure of the first embodiment of the vehicle weight determination device provided by this application. Figure 7 The vehicle weight determination device 10 may be arranged in the controller, and includes:
[0199] The acquisition module 11 is used to acquire the original acceleration value collected by the three-axis acceleration sensor of the vehicle;
[0200] A first processing module 12 is used to perform Kalman filtering on the original acceleration value to obtain a processed acceleration value;
[0201] The second processing module 13 is used to determine the weight of the vehicle according to the acceleration value after determining that a preset vehicle weight estimation condition is met according to the acceleration value and the vehicle condition data.
[0202] The vehicle weight determination device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0203] In a possible implementation manner, the vehicle condition data includes: accelerator pedal opening, full wheel end driving force, and gear shifting status;
[0204] The vehicle weight estimation conditions include: the slope is less than a first preset value, the lateral acceleration is less than a second preset value, the longitudinal acceleration is greater than a third preset value, the accelerator pedal opening is greater than a fourth preset value, the entire wheel end driving force is greater than a fifth preset value, and the vehicle is in a non-shifting process.
[0205] In a possible implementation manner, the first processing module 12 is further configured to:
[0206] Performing installation error calibration on the processed acceleration value based on a calibration model to obtain a calibrated acceleration value, wherein the calibration model is determined according to an axis rotation angle between the three-axis acceleration sensor and a corresponding dimension of a vehicle coordinate system;
[0207] Determining the slope of the vehicle according to the whole vehicle acceleration and the longitudinal acceleration in the calibrated acceleration value;
[0208] It is determined whether the vehicle weight estimation condition is met according to the calibrated acceleration value, the slope and the vehicle condition data.
[0209] Figure 8 This is a schematic diagram of the structure of the second embodiment of the vehicle weight determination device provided by this application. Figure 8 The vehicle weight determination device 10 further includes a judgment module 14, wherein the judgment module 14 is used to:
[0210] Determining whether the original acceleration value is valid according to the vehicle speed and the acceleration value collected in real time by the three-axis acceleration sensor;
[0211] Accordingly, the first processing module 12 is specifically used for:
[0212] If it is determined that the original acceleration value is valid, Kalman filtering is performed on the original acceleration value to obtain a processed acceleration value.
[0213] In a possible implementation manner, the first processing module 12 is specifically configured to:
[0214] If it is determined that the acceleration raw value is invalid, a preset vehicle weight is output.
[0215] In a possible implementation manner, the determination module 14 is specifically configured to:
[0216] If the speed of the vehicle is greater than a preset speed, and the acceleration value collected by the three-axis acceleration sensor does not change within a preset time period, then determining that the original acceleration value is invalid;
[0217] Otherwise, it is determined that the acceleration raw value is valid.
[0218] In a possible implementation manner, the second processing module 13 is specifically configured to:
[0219] According to the vehicle dynamics formula, a vehicle weight estimation model is constructed;
[0220] The acceleration value is input into the vehicle weight estimation model to calculate the weight of the vehicle.
[0221] The vehicle weight determination device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0222] Fig. 9 This is a schematic diagram of the structure of the controller provided in the embodiment of the present application. Fig. 9 The controller 20 may include a processor 21, a memory 22 and a communication interface 24. Exemplarily, the processor 21, the memory 22 and the communication interface 24 are interconnected via a bus 23.
[0223] The memory 22 stores computer-executable instructions;
[0224] The processor 21 executes the computer-executable instructions stored in the memory 22, so that the processor 21 executes the method for determining the vehicle weight provided in the above method embodiment.
[0225] The controller provided in the embodiment of the present application can be any one of a VCU, a cockpit domain controller, and a transmission controller, and can be set in a vehicle to execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.
[0226] Fig.10 This is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application. Fig.10 The vehicle 30 may include: a vehicle body 31, a three-axis acceleration sensor 32 disposed in the vehicle body, and Fig. 9 The controller 33 is shown.
[0227] The controller 33 is used to implement the method for determining the vehicle weight in any of the above method embodiments.
[0228] Optionally, the three-axis acceleration sensor 32 provided in the embodiment of the present application can be set in the vehicle body 31 or in the controller 33. The present application does not limit the setting position of the three-axis acceleration sensor 32.
[0229] Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method for determining the vehicle weight described in the above method embodiment.
[0230] Accordingly, an embodiment of the present application may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the method for determining the vehicle weight described in the above method embodiment.
[0231] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0232] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for determining vehicle weight, It is characterized in that The method comprises: Obtain the original acceleration value collected by the vehicle's three-axis acceleration sensor; Performing Kalman filtering on the original acceleration value to obtain a processed acceleration value; After determining that a preset vehicle weight estimation condition is met according to the acceleration value and the vehicle condition data, the weight of the vehicle is determined according to the acceleration value.
2. The method according to claim 1, It is characterized in that The vehicle condition data includes: accelerator pedal opening, wheel end driving force, and gear shifting status; The vehicle weight estimation conditions include: the slope is less than a first preset value, the lateral acceleration is less than a second preset value, the longitudinal acceleration is greater than a third preset value, the accelerator pedal opening is greater than a fourth preset value, the entire wheel end driving force is greater than a fifth preset value, and the vehicle is in a non-shifting process.
3. The method according to claim 1 or 2, It is characterized in that After performing Kalman filtering on the original acceleration value to obtain the processed acceleration value, the method further includes: Performing installation error calibration on the processed acceleration value based on a calibration model to obtain a calibrated acceleration value, wherein the calibration model is determined according to an axis rotation angle between the three-axis acceleration sensor and a corresponding dimension of a vehicle coordinate system; Determining the slope of the vehicle according to the whole vehicle acceleration and the longitudinal acceleration in the calibrated acceleration value; It is determined whether the vehicle weight estimation condition is met according to the calibrated acceleration value, the slope and the vehicle condition data.
4. The method according to claim 1 or 2, It is characterized in that Before performing Kalman filtering on the original acceleration value to obtain the processed acceleration value, the method further includes: Determining whether the original acceleration value is valid according to the vehicle speed and the acceleration value collected in real time by the three-axis acceleration sensor; Accordingly, performing Kalman filtering on the original acceleration value to obtain the processed acceleration value includes: If it is determined that the original acceleration value is valid, Kalman filtering is performed on the original acceleration value to obtain a processed acceleration value.
5. The method according to claim 4, It is characterized in that The method further comprises: If it is determined that the acceleration raw value is invalid, a preset vehicle weight is output.
6. The method according to claim 4, It is characterized in that The determining whether the original acceleration value is valid according to the vehicle speed and the acceleration value collected in real time by the three-axis acceleration sensor includes: If the speed of the vehicle is greater than a preset speed, and the acceleration value collected by the three-axis acceleration sensor does not change within a preset time period, then determining that the original acceleration value is invalid; Otherwise, it is determined that the acceleration raw value is valid.
7. The method according to claim 1 or 2, It is characterized in that Determining the weight of the vehicle according to the acceleration value includes: According to the vehicle dynamics formula, a vehicle weight estimation model is constructed; The acceleration value is input into the vehicle weight estimation model to calculate the weight of the vehicle.
8. A device for determining vehicle weight, It is characterized in that The device comprises: An acquisition module is used to acquire the original acceleration value collected by the three-axis acceleration sensor of the vehicle; A first processing module, used for performing Kalman filtering on the original acceleration value to obtain a processed acceleration value; The second processing module is used to determine the weight of the vehicle according to the acceleration value after determining that a preset vehicle weight estimation condition is met according to the acceleration value and the vehicle condition data.
9. A controller, It is characterized in that include: Processor, memory and communication interface; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method for determining the vehicle weight according to any one of claims 1 to 7.
10. A vehicle, It is characterized in that include: A vehicle body, a three-axis acceleration sensor provided in the vehicle body, and a controller as claimed in claim 9.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for determining the vehicle weight as described in any one of claims 1 to 7.
