Method, device and vehicle for determining window opening

By receiving the ripple signal of the window drive motor and determining the target processing strategy according to the current working conditions, the problem of wave loss in ripple signal processing is solved, the accuracy of the window opening is improved, and a solution is provided for the window anti-pinch control. Reliable data support.

CN114531068BActive Publication Date: 2024-10-11BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011193713.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-10-11
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

When using ripple signals to determine the position of the window drive motor, the phenomenon of wave loss often occurs, resulting in inaccurate window opening and unable to provide reliable data basis for window anti-pinch control.

Method used

By receiving the ripple signal generated by the window drive motor, the current working conditions are obtained, and the target ripple processing strategy is determined from multiple ripple processing strategies. The ripple signal is processed according to the strategy to obtain the window status parameters, thereby determining the vehicle window status parameters. Window opening.

Benefits of technology

It improves the accuracy of window opening, provides reliable data basis for window anti-pinch control, and reduces wave loss in ripple signal processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114531068B_ABST
    Figure CN114531068B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device and vehicle for determining the window opening, wherein the method receives a ripple signal generated by a window drive motor; obtains the current working condition of the window drive motor; determines a target ripple processing strategy corresponding to the current working condition from a plurality of ripple processing strategies; processes the ripple signal according to the target ripple processing strategy to obtain a window state parameter corresponding to the ripple signal; and determines the window opening of the vehicle according to the window state parameter. In this way, the target ripple processing strategy for processing the ripple signal under the current working condition can be determined according to the current working condition of the window drive motor, and the ripple signal under the current working condition can be processed using the target ripple processing strategy, so that accurate window state parameters can be obtained, which helps to improve the accuracy of the window opening, thereby providing a reliable data basis for window anti-pinch control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular, to a method and device for determining a window opening, and a vehicle. Background Art

[0002] There are usually two methods to obtain the motor position. One is to determine the motor position through a Hall position sensor; the other is to determine the motor position based on a ripple signal. Determining the motor position based on a ripple signal is to indirectly obtain the motor position by collecting the ripple signal generated by the current fluctuation of the DC brush motor. This is a sensorless detection technology, so it can effectively reduce the motor manufacturing cost and is therefore favored by many users.

[0003] When using a ripple signal to determine the position of a window drive motor and then determining the window opening based on the position of the window drive motor, it is usually necessary to determine the number of rotations of the motor based on the number of ripple signals generated by the window drive motor, and then determine the window opening based on the number of rotations. However, currently, when counting the number of ripple signals, wave loss often occurs, making it impossible to accurately count the number of ripple signals of the window drive motor. As a result, the obtained window opening will be inaccurate, and a reliable data basis cannot be provided for window anti-pinch control. Summary of the invention

[0004] The purpose of the present disclosure is to provide a method, device and vehicle for determining the opening of a vehicle window.

[0005] In a first aspect of the present disclosure, a method for determining a window opening is provided, which is applied to a vehicle, wherein the vehicle includes a window drive motor, and the method includes:

[0006] receiving a ripple signal generated by a window driving motor;

[0007] Acquiring the current working condition of the window drive motor;

[0008] Determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing strategies;

[0009] Processing the ripple signal according to the target ripple processing strategy to obtain a vehicle window state parameter corresponding to the ripple signal;

[0010] The window opening of the vehicle is determined according to the window state parameter.

[0011] Optionally, the current operating condition may be any one of a motor starting condition, a motor steady-state operating condition, a motor midway power-off condition, and a motor stall condition, and determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing models includes:

[0012] In the case where it is determined that the current operating condition is the motor starting condition or the motor stalling condition, the target ripple processing strategy includes a first ripple processing strategy, which includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to a first preset amplitude threshold, adjusting the amplitude of the current sampling point to a first target amplitude; when the amplitude difference is less than the first preset amplitude threshold, adjusting the amplitude of the current sampling point to a second target amplitude, the amplitude difference being the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the mth sampling point before the current sampling point in the ripple signal; wherein m is a positive integer; or,

[0013] In the case where it is determined that the current operating condition is the steady-state operating condition of the motor, the target ripple processing strategy includes a second ripple processing strategy, and the second ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a third target amplitude, and when the amplitude difference is less than the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fourth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n; or,

[0014] In the case where it is determined that the current working condition is the motor power-off working condition, the target ripple processing strategy includes a third ripple processing strategy, and the third ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fifth target amplitude, and when the amplitude difference is less than the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a sixth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n;

[0015] Among them, the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold are all different.

[0016] Optionally, determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing models includes:

[0017] When it is determined that the current operating condition is the motor startup operating condition or the motor power-off operating condition, the target ripple processing strategy further includes a fourth ripple processing strategy, and the fourth ripple processing strategy includes:

[0018] When the absolute value of the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the seventh target amplitude; when the absolute value of the amplitude difference is less than the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the eighth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal, wherein n is a positive integer, and m is greater than n.

[0019] Wherein, the fourth preset amplitude threshold is greater than the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold;

[0020] The step of processing the ripple signal according to the target ripple processing strategy to obtain a window state parameter corresponding to the ripple signal includes:

[0021] When it is determined that the current operating condition is the motor starting condition, obtaining a window state parameter corresponding to the ripple signal by using the first ripple processing strategy and the fourth ripple processing strategy;

[0022] When it is determined that the current operating condition is a condition in which the motor is powered off midway, the window state parameter corresponding to the ripple signal is obtained through the third ripple processing strategy and the fourth ripple processing strategy.

[0023] Optionally, the vehicle window state parameter is a square wave signal, and obtaining the vehicle window state parameter corresponding to the ripple signal by using the first ripple processing strategy and the fourth ripple processing strategy includes:

[0024] When it is determined that the current operating condition is the motor starting condition, the first square wave signal obtained by the first ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps in the first square wave signal and the second square wave signal to obtain a full square wave signal under the motor starting condition.

[0025] Optionally, obtaining the window state parameter corresponding to the ripple signal by using the third ripple processing strategy and the fourth ripple processing strategy includes:

[0026] When it is determined that the current operating condition is the motor power-off condition, the third square wave signal obtained by the third ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps of the third square wave signal and the second square wave signal to obtain a full square wave signal under the power-off condition.

[0027] Optionally, the square wave signal includes a forward square wave signal corresponding to the forward rotation of the window drive motor and a reverse square wave signal corresponding to the reverse rotation of the window drive motor, and determining the window opening of the vehicle according to the window state parameter includes:

[0028] Determine a first number of cycles included in the forward square wave signal;

[0029] Determine the second number of cycles contained in the reverse square wave signal;

[0030] Obtaining a difference between the first cycle number and the second cycle number;

[0031] Obtain the preset window opening step value corresponding to each square wave cycle;

[0032] The window opening is determined according to the difference and the preset window opening step value.

[0033] In a second aspect of the present disclosure, there is provided a device for determining a window opening, which is applied to a vehicle, wherein the vehicle includes a window drive motor, and the device includes:

[0034] A receiving module, used for receiving a ripple signal generated by a window driving motor;

[0035] An acquisition module, used for acquiring the current working condition of the window drive motor;

[0036] A first determination module, configured to determine a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing strategies;

[0037] A second determination module, configured to process the ripple signal according to the target ripple processing strategy to obtain a vehicle window state parameter corresponding to the ripple signal;

[0038] The third determination module is used to determine the window opening of the vehicle according to the window state parameter.

[0039] Optionally, the current operating condition may be any one of a motor starting condition, a motor steady-state operating condition, a motor mid-power-off condition, and a motor stall condition, and the first determining module is used to:

[0040] In the case where it is determined that the current operating condition is the motor starting condition or the motor stalling condition, the target ripple processing strategy includes a first ripple processing strategy, which includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to a first preset amplitude threshold, adjusting the amplitude of the current sampling point to a first target amplitude; when the amplitude difference is less than the first preset amplitude threshold, adjusting the amplitude of the current sampling point to a second target amplitude, the amplitude difference being the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the mth sampling point before the current sampling point in the ripple signal; wherein m is a positive integer; or,

[0041] In the case where it is determined that the current operating condition is the steady-state operating condition of the motor, the target ripple processing strategy includes a second ripple processing strategy, and the second ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a third target amplitude, and when the amplitude difference is less than the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fourth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n; or,

[0042] In the case where it is determined that the current working condition is the motor power-off working condition, the target ripple processing strategy includes a third ripple processing strategy, and the third ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fifth target amplitude, and when the amplitude difference is less than the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a sixth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n;

[0043] Among them, the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold are all different.

[0044] Optionally, the first determining module is used to:

[0045] When it is determined that the current operating condition is the motor startup operating condition or the motor power-off operating condition, the target ripple processing strategy further includes a fourth ripple processing strategy, and the fourth ripple processing strategy includes:

[0046] When the absolute value of the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the seventh target amplitude; when the absolute value of the amplitude difference is less than the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the eighth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal, wherein n is a positive integer, and m is greater than n.

[0047] Wherein, the fourth preset amplitude threshold is greater than the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold;

[0048] The second determining module is used to:

[0049] When it is determined that the current operating condition is the motor starting condition, obtaining a window state parameter corresponding to the ripple signal by using the first ripple processing strategy and the fourth ripple processing strategy;

[0050] When it is determined that the current operating condition is a condition in which the motor is powered off midway, the window state parameter corresponding to the ripple signal is obtained through the third ripple processing strategy and the fourth ripple processing strategy.

[0051] Optionally, the window state parameter is a square wave signal, and the second determination module is used to:

[0052] When it is determined that the current operating condition is the motor starting condition, the first square wave signal obtained by the first ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps in the first square wave signal and the second square wave signal to obtain a full square wave signal under the motor starting condition.

[0053] Optionally, the second determining module is further configured to:

[0054] When it is determined that the current operating condition is the motor power-off condition, the third square wave signal obtained by the third ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps of the third square wave signal and the second square wave signal to obtain a full square wave signal under the power-off condition.

[0055] Optionally, the square wave signal includes a forward square wave signal corresponding to the forward rotation of the window drive motor and a reverse square wave signal corresponding to the reverse rotation of the window drive motor, and the third determination module is used to:

[0056] Determine a first number of cycles contained in the forward square wave signal; determine a second number of cycles contained in the reverse square wave signal; obtain a difference between the first number of cycles and the second number of cycles; obtain a preset window opening step value corresponding to each square wave cycle; and determine the window opening according to the difference and the preset window opening step value.

[0057] In a third aspect of the present disclosure, a vehicle is provided, comprising the device for determining the window opening as described in the second aspect above.

[0058] The above technical solution receives the ripple signal generated by the window drive motor; obtains the current working condition of the window drive motor; determines the target ripple processing strategy corresponding to the current working condition from multiple ripple processing strategies; processes the ripple signal according to the target ripple processing strategy to obtain the window state parameter corresponding to the ripple signal; and determines the window opening of the vehicle according to the window state parameter. In this way, the target ripple processing strategy for processing the ripple signal under the current working condition can be determined according to the current working condition of the window drive motor, and the ripple signal under the current working condition is processed using the target ripple processing strategy, so that accurate window state parameters can be obtained, which helps to improve the accuracy of the window opening, thereby providing a reliable data basis for window anti-pinch control.

[0059] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0061] Figure 1 is a flow chart of a method for determining a vehicle window opening according to an exemplary embodiment of the present disclosure;

[0062] Figure 2 is a schematic diagram of a ripple signal processing result under a motor starting condition shown in an exemplary embodiment of the present disclosure;

[0063] Figure 3 is a schematic diagram of a ripple signal processing result under a steady-state operation condition of a motor shown in an exemplary embodiment of the present disclosure;

[0064] Figure 4is a schematic diagram of a ripple signal processing result under a motor power failure condition shown in an exemplary embodiment of the present disclosure;

[0065] Figure 5 It is a schematic diagram of a square wave correction and leakage repair processing result under a motor power failure condition provided in an exemplary embodiment of the present disclosure;

[0066] Figure 6 The block diagram of a device for determining a window opening is shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0067] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0068] First of all, before introducing the specific implementation methods of the present disclosure in detail, the application scenarios of the present disclosure are first described as follows. The present disclosure can be applied to vehicle window control scenarios, especially vehicle window anti-pinch control scenarios. Vehicle window anti-pinch control means that when the vehicle window opening is less than a preset opening range, if the vehicle window encounters resistance during the rising process, the vehicle window drive motor will be reversed, so that the vehicle window will drop a preset distance after encountering resistance during the rising process, so as to avoid pinching fingers, clothes or other objects during the closing process of the vehicle window, thereby avoiding personal or property damage to the vehicle user. Usually, during the window anti-pinch control process, it is necessary to obtain the position of the window drive motor and then obtain the window opening. Since the motor position is determined based on the ripple signal, the ripple signal generated by the DC brush motor due to current fluctuations is collected to indirectly obtain the motor position. This is a sensorless detection technology and has a wider application prospect. When using the ripple signal to determine the motor position, it is usually necessary to determine the number of motor rotations based on the number of ripple signals generated by the window drive motor, and then determine the window opening based on the number of rotations. In order to accurately count the number of ripple signals, the ripple signal needs to be processed. However, in the related technology, when counting the number of ripple signals, the ripple signal cannot be effectively processed, so the wave loss phenomenon often occurs. Therefore, the accurate number of ripple signals cannot be obtained, the accurate motor position cannot be obtained, and the window opening cannot be accurately determined, and a reliable data basis cannot be provided for window anti-pinch control.

[0069] In order to overcome the technical problems existing in the related art, the present disclosure provides a method, device and vehicle for determining the window opening, wherein the method receives a ripple signal generated by a window drive motor; obtains the current working condition of the window drive motor; determines a target ripple processing strategy corresponding to the current working condition from multiple ripple processing strategies; processes the ripple signal according to the target ripple processing strategy to obtain a window state parameter corresponding to the ripple signal; and determines the window opening of the vehicle according to the window state parameter. In this way, the target ripple processing strategy for processing the ripple signal under the current working condition can be determined according to the current working condition of the window drive motor, and the ripple signal under the current working condition can be processed using the target ripple processing strategy, so that accurate window state parameters can be obtained, which helps to improve the accuracy of the window opening, thereby providing a reliable data basis for window anti-pinch control.

[0070] Figure 1 is a flow chart of a method for determining a vehicle window opening according to an exemplary embodiment of the present disclosure; see Figure 1 The method for determining the window opening is applied to a vehicle, the vehicle including a window drive motor, and the method may include the following steps:

[0071] Step 101, receiving a ripple signal generated by a window driving motor.

[0072] Among them, the ripple signal is the reverse electromotive force component generated when the internal coil of the window drive motor rotates in the magnetic flux, which can be expressed as the current fluctuation flowing through the window drive motor. For example, when the carbon brush in the window drive motor switches between multiple armatures, it will be connected to different connectors in the commutator. In the process of replacing the commutator connector, the current flowing through the window drive motor will fluctuate under the influence of the ripple. The ripple signal can be obtained by collecting the current flowing through the window drive motor and filtering it. In this step, the ripple signal can be a ripple signal under multiple motor working conditions, for example, it can be a ripple signal generated under the motor starting condition, the motor steady-state operation condition, the motor midway power failure condition, and the motor stall condition.

[0073] Step 102, obtaining the current working condition of the window drive motor.

[0074] The current operating condition may be any one of a motor starting condition, a motor steady-state operating condition, a motor power failure condition, and a motor stall condition.

[0075] It should be noted that the motor starting condition refers to the process in which the window drive motor starts to rotate until it reaches a stable speed. The motor condition within the first specified time period after the window drive motor is powered on (for example, 100ms under normal temperature 12V power supply voltage condition or 400ms under low temperature 10V power supply voltage condition) can be determined as the motor starting condition, or the motor condition before the window drive motor receives a first preset number of ripple signals (for example, 60 ripple signals) after the window drive motor is powered on can be determined as the motor starting condition; the motor stall condition refers to the motor condition in which the net number of revolutions of the window drive motor (the difference between the forward number of revolutions and the reverse number of revolutions) is greater than or equal to the preset number of revolutions threshold. Usually, under the motor stall condition, the window opening is zero (or the window opening is 1); the motor midway power-off condition refers to the condition in which the window drive motor rotates In the process (the forward or reverse process before reaching the motor stall condition), the motor operating condition of the rotation suspension (forward pause or reverse pause) is achieved by cutting off the power supply of the window drive motor. The motor operating condition of the window drive motor within a second specified time period (for example, 20ms or 30ms) before reaching the motor stall condition and after the power is cut off can be determined as the motor mid-power-off condition. The motor operating condition of the window drive motor before receiving a second preset number of ripple signals (for example, 10 ripple signals) after the power is cut off before reaching the motor stall condition can also be determined as the motor mid-power-off condition. The motor steady-state operating condition refers to the motor operating condition of the window drive motor before entering the motor mid-power-off condition or the motor stall condition after passing the motor starting condition.

[0076] Among them, the motor starting condition can be the starting condition when the window drive motor is about to rotate forward, and it can also be the starting condition when the window drive motor is about to rotate reversely. The motor steady-state operating condition, the motor midway power-off condition, and the motor stalled condition can also be the motor conditions that occur during the forward rotation of the window drive motor, and can also be the motor conditions that occur during the reverse rotation of the window drive motor.

[0077] Step 103: determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing strategies.

[0078] A possible implementation method of this step is: when it is determined that the current operating condition is the motor starting condition or the motor stalling condition, the target ripple processing strategy includes a first ripple processing strategy; when it is determined that the current operating condition is the motor steady-state operating condition, the target ripple processing strategy includes a second ripple processing strategy; when it is determined that the current operating condition is the motor mid-power-off condition, the target ripple processing strategy includes a third ripple processing strategy.

[0079] Among them, the first ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the first preset amplitude threshold, the amplitude of the current sampling point is adjusted to the first target amplitude; when the amplitude difference is less than the first preset amplitude threshold, the amplitude of the current sampling point is adjusted to the second target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the mth sampling point before the current sampling point in the ripple signal; wherein m is a positive integer.

[0080] It should be noted that the first preset amplitude threshold may be the half-wave power amplitude of the ripple signal under the motor starting condition or the motor stall condition, and m may be the minimum value of the number of sampling points contained in the half-wave of the ripple signal under the motor starting condition or the motor stall condition, wherein the first preset amplitude threshold may also be calculated according to the collected ripple signal in the following manner: obtaining the corresponding step value between adjacent sampling points, and determining m step values ​​as the first preset amplitude threshold A1, and the first target amplitude and the second target amplitude may be preset values, for example, the first target amplitude is 1.5, and the second target amplitude is 0. Since the parameters of the ripple signal corresponding to the motor stall condition and the motor starting condition are similar, for example, the number of sampling points, the step value and the amplitude contained in the unilateral amplitude are similar, the same ripple processing strategy as that of the motor starting condition may be adopted.

[0081] For example, Figure 2 As shown, Figure 2 : is a schematic diagram of a ripple signal processing result under a motor starting condition shown in an exemplary embodiment of the present invention. The number of sampling points included in the single-sided amplitude corresponding to the ripple signal is 12 to 24 (including multiple single-sided amplitudes, some single-sided amplitudes include 12 acquisition points, and some single-sided amplitudes include more than 12 and less than 24 acquisition points, where the single-sided amplitude of the first wave includes 24 sampling points), the amplitude is 1, and the corresponding step value of adjacent sampling points is 0.04. In order to capture all ripples in the ripple signal, the first preset amplitude threshold value and the number of sampling points can be 12, A1=0.04×12 can be approximately 0.5. In order not to miss any ripple signal, the m can take the minimum value of 12, then the Figure 2 The corresponding first ripple processing strategy can be expressed as: A=Y(N)-Y(N-12). When A≥A1, Y(N) takes the first target amplitude (for example, the value is 1). When A<A1, Y(N) takes the second target amplitude (for example, the value is 0).

[0082] The second ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the second preset amplitude threshold, adjusting the amplitude of the current sampling point to a third target amplitude; when the amplitude difference is less than the second preset amplitude threshold, adjusting the amplitude of the current sampling point to a fourth target amplitude, the amplitude difference being the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n.

[0083] Among them, the second preset amplitude threshold can be the half-wave power amplitude of the ripple signal under the steady-state operation condition of the motor, and n can be the minimum number of sampling points contained in the half-wave of the ripple signal under the steady-state operation condition of the motor. Among them, the second preset amplitude threshold can also be calculated according to the collected ripple signal in the following way: obtain the corresponding step value between adjacent sampling points, so as to determine n step values ​​as the second preset amplitude threshold A2, the third target amplitude and the fourth target amplitude can be preset values, for example, the third target amplitude is 1, and the fourth target amplitude is 0, wherein the third target amplitude can be the same as the first target amplitude or different, and the second target amplitude can be the same as the fourth target amplitude or different, and the present disclosure does not limit this.

[0084] For example, Figure 3 As shown, Figure 3 : is a schematic diagram of a ripple signal processing result under a steady-state operation condition of a motor shown in an exemplary embodiment of the present disclosure. Under the steady-state operation condition of the motor, the single-sided amplitude acquisition point N is basically 6, so n can be 6, the amplitude is approximately equal to 1, the second preset amplitude threshold A2 can be preset to a half-wave power amplitude of 0.6, the Figure 3 The corresponding second ripple processing strategy can be expressed as: A = Y (N) - Y (N-6), when A ≥ A2, Y (N) is set to the third target amplitude (the Figure 3 When A<A2, Y(N) takes the fourth target amplitude ( Figure 3 The value is 0).

[0085] The third ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the third preset amplitude threshold, adjusting the amplitude of the current sampling point to a fifth target amplitude; when the amplitude difference is less than the third preset amplitude threshold, adjusting the amplitude of the current sampling point to a sixth target amplitude, the amplitude difference being the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n;

[0086] Among them, the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold are all different, the third preset amplitude threshold can be the half-wave power amplitude of the ripple signal under the condition of motor power failure, and n can be the minimum number of sampling points contained in the half-wave of the ripple signal under the condition of motor power failure, wherein the second preset amplitude threshold can also be calculated according to the collected ripple signal in the following way: obtain the corresponding step value between adjacent sampling points, and determine n step values ​​as the third preset amplitude threshold A3, the fifth target amplitude and the sixth target amplitude can be preset values, for example, the fifth target amplitude is 1.5, and the sixth target amplitude is 0, wherein the fifth target amplitude can be the same as the third target amplitude and the first target amplitude, or it can be different, the sixth target amplitude can be the same as the second target amplitude and the fourth target amplitude, or it can be different, and the present disclosure does not limit this.

[0087] For example, Figure 4 As shown, Figure 4 : is a schematic diagram of a ripple signal processing result under a motor power-off condition shown in an exemplary embodiment of the present disclosure. Under the motor power-off condition, the unilateral amplitude acquisition point N is also basically 6. Therefore, n can be 6, the amplitude is approximately equal to 1, and the third preset amplitude threshold A3 can be preset to a half-wave power amplitude of 0.3. Figure 4 The corresponding third ripple processing strategy can be expressed as: A = Y (N) - Y (N-6), when A ≥ A3, Y (N) is set to the fifth target amplitude (the Figure 4 When A<A3, Y(N) takes the sixth target amplitude ( Figure 4 The value is 0).

[0088] In another possible implementation, when it is determined that the current operating condition is a motor starting condition, the target ripple processing strategy includes a first ripple processing strategy and a fourth ripple processing strategy; when it is determined that the current operating condition is a motor power-off condition, the target ripple processing strategy includes a third ripple processing strategy and a fourth ripple processing strategy; wherein the fourth ripple processing strategy includes:

[0089] When the absolute value of the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the seventh target amplitude; when the absolute value of the amplitude difference is less than the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the eighth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal, wherein n is a positive integer, and m is greater than n.

[0090] Among them, the fourth preset amplitude threshold is greater than the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold.

[0091] Taking into account that the motor is prone to wave loss under both the starting condition and the motor power-off condition, in order to improve the reliability of the ripple signal processing results, when the current condition is the motor starting condition, the ripple signal processed by the first ripple processing strategy can be calibrated using the fourth ripple processing strategy; when the current condition is the motor power-off condition, the ripple signal processed by the third ripple processing strategy can be calibrated using the fourth ripple processing strategy, thereby improving the reliability of the processing results.

[0092] For example, Figure 5 As shown, Figure 5 is a schematic diagram of a square wave correction and leakage repair processing result under a motor power failure condition provided in an exemplary embodiment of the present disclosure, in which Figure 5 In the third ripple processing strategy, the fifth target amplitude is 1, the sixth target amplitude is 0, the third preset amplitude threshold A3 is 0.3, the seventh target amplitude is 1.5, the eighth target amplitude is 0, the fourth preset amplitude threshold A4 is preset to the half-wave power amplitude 6, the n value is 6, and the fourth ripple processing strategy can be expressed as: A=Y(N)-Y(N-6), when A≥A4, Y(N) is taken as the seventh target amplitude (the Figure 5 When A<A4, Y(N) takes the eighth target amplitude ( Figure 5 The value is 0).

[0093] Step 104 , processing the ripple signal according to the target ripple processing strategy to obtain a vehicle window state parameter corresponding to the ripple signal.

[0094] The vehicle window state parameter may be a square wave signal obtained after the ripple signal is processed by the target ripple processing strategy, or may be the number of square wave cycles obtained by continuing to perform statistics on the obtained square wave signal.

[0095] A possible implementation method of this step is: processing the ripple signals under the motor starting condition and the motor stall condition by the first ripple processing strategy to obtain the window state parameters under the motor starting condition; processing the ripple signal under the motor steady-state operating condition by the second ripple processing strategy to obtain the window state parameters under the motor steady-state operating condition; processing the ripple signal under the motor mid-power-off condition by the third ripple processing strategy to obtain the window state parameters under the motor mid-power-off condition; processing the ripple signal under the motor stall condition by the first ripple processing strategy to obtain the window state parameters under the motor stall condition.

[0096] Furthermore, the ripple signal under the motor starting condition can be processed by the first ripple processing strategy and the fourth ripple processing strategy to obtain the window state parameters under the motor starting condition; the ripple signal under the motor mid-power off condition can be processed by the third ripple processing strategy and the fourth ripple processing strategy to obtain the window state parameters under the motor mid-power off condition.

[0097] Among them, when it is determined that the current operating condition is the motor starting condition, the first square wave signal obtained by the first ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated and processed based on time to achieve correction and leakage repair of the first square wave signal and the second square wave signal to obtain a full square wave signal under the motor starting condition; when it is determined that the current operating condition is the motor power-off condition, the third ripple signal obtained by the third ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated and processed based on time to achieve correction and leakage repair of the third ripple signal and the second square wave signal to obtain a full square wave signal under the power-off condition.

[0098] It should be noted that the correction and leak filling can be based on the accumulation processing of time alignment, that is, the amplitude at the same time point is taken as the larger one of the two, so as to obtain a square wave on the time axis.

[0099] For example, Figure 5 Take an example to illustrate, wherein a square wave waveform with an amplitude of 1 is obtained after being processed by the third ripple processing strategy, and a square wave waveform with an amplitude of 1.5 is obtained after the ripple signal is processed by the fourth ripple processing strategy. The square wave waveform with an amplitude of 1.5 is used as a time reference, and the square wave waveform with an amplitude of 1 obtained after being processed by the third ripple processing strategy is corrected and supplemented to obtain a new waveform (the following three square wave signals with an amplitude of 1.5 are added to the square wave waveform with an amplitude of 1). When the number of ripple signals is counted based on the new waveform, a more accurate statistical result can be obtained, thereby providing a reliable data basis for obtaining the accurate motor position.

[0100] Step 105, determining the window opening of the vehicle according to the window state parameter.

[0101] The square wave signal may include a positive square wave signal corresponding to the positive rotation (ie, forward rotation) of the window drive motor and a reverse square wave signal corresponding to the reverse rotation (ie, reverse rotation) of the window drive motor.

[0102] In this step, the first number of cycles contained in the forward square wave signal can be determined; the second number of cycles contained in the reverse square wave signal can be determined; the difference between the first number of cycles and the second number of cycles can be obtained; the preset window opening step value corresponding to each square wave cycle can be obtained; and the window opening can be determined based on the difference and the preset window opening step value.

[0103] Among them, the current directions of the forward rotating window drive motor and the reverse rotating window drive motor are different. The square wave signal corresponding to the ripple signal generated when the window drive motor rotates forward is a forward square wave signal, and the square wave signal corresponding to the ripple signal generated when the window drive motor rotates reversely is a reverse square wave signal. The window opening can be the ratio of the distance the window moves upward to the entire window height.

[0104] For example, during a window control process, a positive square wave signal containing 8 cycles and a reverse square wave signal containing 12 cycles are generated. The preset window opening step value is 1 cm. In this control process, the window drops 4 cm. If the entire window height is 25, the window opening is 16%. The above example is only used to illustrate the method of determining the window position and is not used to limit the specific protection scope.

[0105] The above technical scheme can determine the target ripple processing strategy for processing the ripple signal under the current working condition according to the current working condition of the window drive motor, and adopt the target ripple processing strategy to process the ripple signal under the current working condition, so as to obtain accurate window state parameters, which helps to improve the accuracy of the window opening, thereby providing a reliable data basis for window anti-pinch control.

[0106] Figure 6 is a block diagram of a device for determining a window opening according to an exemplary embodiment of the present disclosure; see Figure 6 , applied to a vehicle, the vehicle comprising a window drive motor, the device may include:

[0107] A receiving module 601 is used to receive a ripple signal generated by a window driving motor;

[0108] An acquisition module 602 is used to acquire the current working condition of the window drive motor;

[0109] A first determination module 603, configured to determine a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing strategies;

[0110] A second determination module 604 is used to process the ripple signal according to the target ripple processing strategy to obtain a vehicle window state parameter corresponding to the ripple signal;

[0111] The third determination module 605 is used to determine the window opening of the vehicle according to the window state parameter.

[0112] The above technical scheme can determine the target ripple processing strategy for processing the ripple signal under the current working condition according to the current working condition of the window drive motor, and adopt the target ripple processing strategy to process the ripple signal under the current working condition, so as to obtain accurate window state parameters, which helps to improve the accuracy of the window opening, thereby providing a reliable data basis for window anti-pinch control.

[0113] Optionally, the current operating condition may be any one of a motor starting condition, a motor steady-state operating condition, a motor midway power failure condition, and a motor stall condition. The first determining module 603 is used to:

[0114] When it is determined that the current operating condition is the motor starting condition or the motor stalling condition, the target ripple processing strategy includes a first ripple processing strategy, and the first ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the first preset amplitude threshold, adjusting the amplitude of the current sampling point to the first target amplitude; when the amplitude difference is less than the first preset amplitude threshold, adjusting the amplitude of the current sampling point to the second target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the mth sampling point before the current sampling point in the ripple signal; wherein m is a positive integer; or,

[0115] In the case where it is determined that the current operating condition is a steady-state operating condition of the motor, the target ripple processing strategy includes a second ripple processing strategy, and the second ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a third target amplitude, and when the amplitude difference is less than the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fourth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n; or,

[0116] In the case where it is determined that the current working condition is a motor power-off condition, the target ripple processing strategy includes a third ripple processing strategy, and the third ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the third preset amplitude threshold, adjusting the amplitude of the current sampling point to a fifth target amplitude, and when the amplitude difference is less than the third preset amplitude threshold, adjusting the amplitude of the current sampling point to a sixth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n;

[0117] Among them, the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold are all different.

[0118] Optionally, the first determining module 603 is configured to:

[0119] When it is determined that the current working condition is a motor starting working condition or a motor power-off working condition, the target ripple processing strategy further includes a fourth ripple processing strategy, and the fourth ripple processing strategy includes:

[0120] When the absolute value of the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the seventh target amplitude; when the absolute value of the amplitude difference is less than the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the eighth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal, wherein n is a positive integer, and m is greater than n.

[0121] Wherein, the fourth preset amplitude threshold is greater than the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold;

[0122] The second determining module 604 is used to:

[0123] When it is determined that the current working condition is a motor starting working condition, a vehicle window state parameter corresponding to the ripple signal is obtained by using the first ripple processing strategy and the fourth ripple processing strategy;

[0124] When it is determined that the current operating condition is a condition in which the motor is powered off, the window state parameter corresponding to the ripple signal is obtained through the third ripple processing strategy and the fourth ripple processing strategy.

[0125] Optionally, the vehicle window state parameter is a square wave signal, and the second determination module 604 is used to:

[0126] When it is determined that the current operating condition is a motor starting condition, the first square wave signal obtained by the first ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps in the first square wave signal and the second square wave signal to obtain a full square wave signal under the motor starting condition.

[0127] Optionally, the second determining module 604 is further configured to:

[0128] When it is determined that the current operating condition is a motor power-off condition, the third square wave signal obtained by the third ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps in the third square wave signal and the second square wave signal to obtain a full square wave signal under the power-off condition.

[0129] Optionally, the square wave signal includes a forward square wave signal corresponding to the forward rotation of the window drive motor and a reverse square wave signal corresponding to the reverse rotation of the window drive motor. The third determination module 605 is used to:

[0130] Determine a first number of cycles included in the forward square wave signal; determine a second number of cycles included in the reverse square wave signal; obtain a difference between the first number of cycles and the second number of cycles; obtain a preset window opening step value corresponding to each square wave cycle; and determine the window opening according to the difference and the preset window opening step value.

[0131] In another exemplary embodiment of the present disclosure, a vehicle is provided, comprising the above Figure 6 The device for determining the window opening is shown.

[0132] The above technical scheme can determine the target ripple processing strategy for processing the ripple signal under the current working condition according to the current working condition of the window drive motor, and adopt the target ripple processing strategy to process the ripple signal under the current working condition, so as to obtain accurate window state parameters, which helps to improve the accuracy of the window opening, thereby providing a reliable data basis for window anti-pinch control.

[0133] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0134] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0135] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0136] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A method for determining the window opening, It is characterized in that Applied to a vehicle, the vehicle includes a window drive motor, the method includes: receiving a ripple signal generated by a window driving motor; Acquiring the current working condition of the window drive motor; Determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing strategies; Processing the ripple signal according to the target ripple processing strategy to obtain a vehicle window state parameter corresponding to the ripple signal; Determining a window opening of the vehicle according to the window state parameter; The current operating condition is any one of a motor starting condition, a motor steady-state operating condition, a motor midway power failure condition, and a motor stall condition, and determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing models includes: When it is determined that the current operating condition is the motor starting condition or the motor stalling condition, the target ripple processing strategy includes a first ripple processing strategy, which includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to a first preset amplitude threshold, adjusting the amplitude of the current sampling point to a first target amplitude; when the amplitude difference is less than the first preset amplitude threshold, adjusting the amplitude of the current sampling point to a second target amplitude, the amplitude difference being the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the mth sampling point before the current sampling point in the ripple signal; wherein m is a positive integer.

2. The method according to claim 1, It is characterized in that The current operating condition is any one of a motor starting condition, a motor steady-state operating condition, a motor midway power failure condition, and a motor stall condition, and determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing models includes: In the case where it is determined that the current operating condition is the steady-state operating condition of the motor, the target ripple processing strategy includes a second ripple processing strategy, and the second ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a third target amplitude, and when the amplitude difference is less than the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fourth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n; or, In the case where it is determined that the current working condition is the motor power-off working condition, the target ripple processing strategy includes a third ripple processing strategy, and the third ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fifth target amplitude, and when the amplitude difference is less than the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a sixth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n; Among them, the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold are all different.

3. The method according to claim 2, It is characterized in that The determining a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing models includes: When it is determined that the current operating condition is a motor starting condition or a motor power-off condition, the target ripple processing strategy further includes a fourth ripple processing strategy, and the fourth ripple processing strategy includes: When the absolute value of the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the seventh target amplitude; when the absolute value of the amplitude difference is less than the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the eighth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal, wherein n is a positive integer, and m is greater than n. Wherein, the fourth preset amplitude threshold is greater than the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold; The step of processing the ripple signal according to the target ripple processing strategy to obtain a window state parameter corresponding to the ripple signal includes: When it is determined that the current operating condition is the motor starting condition, obtaining a window state parameter corresponding to the ripple signal by using the first ripple processing strategy and the fourth ripple processing strategy; When it is determined that the current operating condition is a condition in which the motor is powered off midway, the window state parameter corresponding to the ripple signal is obtained through the third ripple processing strategy and the fourth ripple processing strategy.

4. The method according to claim 3, It is characterized in that The vehicle window state parameter is a square wave signal, and obtaining the vehicle window state parameter corresponding to the ripple signal by using the first ripple processing strategy and the fourth ripple processing strategy includes: When it is determined that the current operating condition is the motor starting condition, the first square wave signal obtained by the first ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps in the first square wave signal and the second square wave signal to obtain a full square wave signal under the motor starting condition.

5. The method according to claim 4, It is characterized in that The obtaining of the window state parameter corresponding to the ripple signal by the third ripple processing strategy and the fourth ripple processing strategy includes: When it is determined that the current operating condition is the motor power-off condition, the third square wave signal obtained by the third ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps of the third square wave signal and the second square wave signal to obtain a full square wave signal under the power-off condition.

6. The method according to claim 3, It is characterized in that The vehicle window state parameter is a square wave signal, and the square wave signal includes a positive square wave signal corresponding to the positive rotation of the vehicle window drive motor and a reverse square wave signal corresponding to the reverse rotation of the vehicle window drive motor. The determining of the vehicle window opening according to the vehicle window state parameter includes: Determine a first number of cycles included in the forward square wave signal; Determine the second number of cycles contained in the reverse square wave signal; Obtaining a difference between the first cycle number and the second cycle number; Obtain the preset window opening step value corresponding to each square wave cycle; The window opening is determined according to the difference and the preset window opening step value.

7. A device for determining the opening of a vehicle window, It is characterized in that Applied to a vehicle, the vehicle includes a window drive motor, and the device includes: A receiving module, used for receiving a ripple signal generated by a window driving motor; An acquisition module, used for acquiring the current working condition of the window drive motor; A first determination module, configured to determine a target ripple processing strategy corresponding to the current operating condition from a plurality of ripple processing strategies; A second determination module, configured to process the ripple signal according to the target ripple processing strategy to obtain a vehicle window state parameter corresponding to the ripple signal; a third determination module, configured to determine a window opening of the vehicle according to the window state parameter; The current operating condition is any one of a motor starting condition, a motor steady-state operating condition, a motor mid-power-off condition, and a motor stall condition, and the first determining module is used to: When it is determined that the current operating condition is the motor starting condition or the motor stalling condition, the target ripple processing strategy includes a first ripple processing strategy, which includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to a first preset amplitude threshold, adjusting the amplitude of the current sampling point to a first target amplitude; when the amplitude difference is less than the first preset amplitude threshold, adjusting the amplitude of the current sampling point to a second target amplitude, the amplitude difference being the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the mth sampling point before the current sampling point in the ripple signal; wherein m is a positive integer.

8. The device according to claim 7, It is characterized in that The current operating condition is any one of a motor starting condition, a motor steady-state operating condition, a motor mid-power-off condition, and a motor stall condition, and the first determining module is used to: In the case where it is determined that the current operating condition is the steady-state operating condition of the motor, the target ripple processing strategy includes a second ripple processing strategy, and the second ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a third target amplitude, and when the amplitude difference is less than the second preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fourth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n; or, In the case where it is determined that the current working condition is the motor power-off working condition, the target ripple processing strategy includes a third ripple processing strategy, and the third ripple processing strategy includes: when the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a fifth target amplitude, and when the amplitude difference is less than the third preset amplitude threshold, the amplitude of the current sampling point is adjusted to a sixth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal; wherein n is a positive integer, and m is greater than n; Among them, the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold are all different.

9. The device according to claim 8, It is characterized in that The first determining module is used to: When it is determined that the current operating condition is the motor startup operating condition or the motor power-off operating condition, the target ripple processing strategy further includes a fourth ripple processing strategy, and the fourth ripple processing strategy includes: When the absolute value of the amplitude difference corresponding to the current sampling point in the ripple signal is greater than or equal to the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the seventh target amplitude; when the absolute value of the amplitude difference is less than the fourth preset amplitude threshold, the amplitude corresponding to the current sampling point is adjusted to the eighth target amplitude, and the amplitude difference is the difference between the amplitude corresponding to the current sampling point and the amplitude corresponding to the nth sampling point before the current sampling point in the ripple signal, wherein n is a positive integer, and m is greater than n. Wherein, the fourth preset amplitude threshold is greater than the first preset amplitude threshold, the second preset amplitude threshold and the third preset amplitude threshold; The second determining module is used to: When it is determined that the current operating condition is the motor starting condition, obtaining a window state parameter corresponding to the ripple signal by using the first ripple processing strategy and the fourth ripple processing strategy; When it is determined that the current operating condition is a condition in which the motor is powered off midway, the window state parameter corresponding to the ripple signal is obtained through the third ripple processing strategy and the fourth ripple processing strategy.

10. The device according to claim 9, It is characterized in that The vehicle window state parameter is a square wave signal, and the second determination module is used to: When it is determined that the current operating condition is the motor starting condition, the first square wave signal obtained by the first ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to correct and fill in the gaps in the first square wave signal and the second square wave signal to obtain a full square wave signal under the motor starting condition.

11. The device according to claim 10, It is characterized in that The second determining module is further used for: When it is determined that the current operating condition is the motor power-off condition, the third square wave signal obtained by the third ripple processing strategy, the second square wave signal obtained by the second ripple processing strategy, and the fourth square wave signal obtained by the fourth ripple processing strategy are accumulated based on time to obtain a full square wave signal under the power-off condition.

12. The device according to claim 9, It is characterized in that The window state parameter is a square wave signal, and the square wave signal includes a positive square wave signal corresponding to the positive rotation of the window drive motor and a reverse square wave signal corresponding to the reverse rotation of the window drive motor. The third determination module is used to: Determine a first number of cycles contained in the forward square wave signal; determine a second number of cycles contained in the reverse square wave signal; obtain a difference between the first number of cycles and the second number of cycles; obtain a preset window opening step value corresponding to each square wave cycle; and determine the window opening according to the difference and the preset window opening step value.

13. A vehicle, It is characterized in that A device for determining the opening degree of a vehicle window comprising any one of claims 7 to 12.