Vehicle window position determination method, vehicle window Anti-pinch control method and related apparatus
By filtering and counting the ripple of the window motor current signal, the problems of high cost and poor stability of existing window anti-pinch systems are solved, and the accurate determination of the window position and the reliability of the anti-pinch function are improved.
Patent Information
- Application Number
- PCT/CN2024/137206
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-24
- Filing Date
- 2024-12-05
- Publication Date
- 2025-10-30
Smart Images

Figure CN2024137206_30102025_PF_FP_ABST
Abstract
Description
Methods for determining the position of vehicle windows, methods for controlling anti-pinch of vehicle windows, and related devices
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202410497115.X, filed on April 24, 2024, entitled "Method for Determining the Position of a Vehicle Window, Method for Controlling Anti-Pinch of a Vehicle Window and Related Device", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of automotive electrical control technology, and in particular to a method for determining the position of a vehicle window, a method for preventing vehicle window pinching, and related devices. Background Technology
[0004] Most cars on the market today use power windows, which are opened and closed by a motor. To ensure the safety of the windows and prevent injuries from being pinched, the window must be able to detect when it encounters an object or person obstructing it, and control the motor to reverse its operation, automatically stopping the window's movement and opening the window. This function is called the anti-pinch function.
[0005] Existing anti-pinch controls for car windows are mainly based on Hall effect anti-pinch systems or ripple effect anti-pinch systems. Hall effect anti-pinch systems use Hall sensors installed inside the motor to obtain pulse signals related to the motor's movement, and then extract the window's speed and position based on these pulse signals. However, Hall effect anti-pinch systems require additional Hall sensors and corresponding control circuitry, resulting in higher costs. Therefore, how to reduce costs while more accurately determining the window's position has become a pressing technical problem to be solved. Summary of the Invention
[0006] The main objective of this application is to propose a method for determining the position of a vehicle window, a method for controlling the anti-pinch function of a vehicle window, and related devices, aiming to improve the accuracy of ripple signal acquisition so as to accurately determine the position of the vehicle window.
[0007] To achieve the above objectives, a first aspect of this application provides a method for determining the position of a vehicle window, the method comprising:
[0008] Obtain the raw current signal of the car window motor;
[0009] The original current signal is subjected to signal filtering processing to obtain the ripple signal;
[0010] The original current signal is subjected to current filtering to obtain the mean current signal;
[0011] The target number of ripples is obtained by performing rising and falling ripple counting processing on the ripple signal and the mean current signal.
[0012] The actual position of the car window is obtained based on the target ripple number.
[0013] In some embodiments, the moment when the ripple signal equals the average current signal is the equalization moment;
[0014] The step of performing rising and falling ripple counting processing based on the ripple signal and the average current signal to obtain the target ripple number includes:
[0015] When the window is in the rising phase, the number of rising peaks is determined based on the number of equal moments within the interval where the ripple signal changes from the trough value to the next adjacent peak value.
[0016] When the car window is in the lowering phase, the number of troughs is determined based on the number of equal moments in the interval where the ripple signal changes from the peak value to the next adjacent trough value.
[0017] The target ripple number is adjusted based on the number of rising peaks or the number of falling troughs.
[0018] In some embodiments, after determining the number of rising peaks based on the number of equal moments within the interval of the ripple signal changing from a trough to the next adjacent peak, the method further includes:
[0019] Record the time interval between every two adjacent equal moments in the number of rising wave peaks;
[0020] When the interval time meets the first preset condition, the number of rising wave peaks remains unchanged;
[0021] If the interval time does not meet the first preset condition, update the number of rising peaks.
[0022] In some embodiments, the step of performing signal filtering processing on the original current signal to obtain a ripple signal includes:
[0023] The original current signal is subjected to an arithmetic mean filter to obtain a first processed signal;
[0024] The first processed signal is first subjected to median average filtering with a preset number of processing windows, and then subjected to sliding average filtering according to the number of processing windows to obtain the second processed signal.
[0025] The ripple signal is obtained by performing a first-order hysteresis filter on the second processed signal.
[0026] In some embodiments, the step of performing current filtering on the original current signal to obtain a mean current signal includes:
[0027] The original current signal is subjected to sliding mean filtering to obtain the third processed signal;
[0028] The mean current signal is obtained by performing a first-order hysteresis filter on the third processed signal.
[0029] To achieve the above objectives, a second aspect of this application provides a method for preventing vehicle window pinching, the method comprising:
[0030] The method for determining the position of a vehicle window according to the embodiments of this application determines the actual position of the vehicle window.
[0031] When the actual position of the window reflects that the window has entered the anti-pinch zone, the average current signal is detected to see if it exceeds the preset stall current threshold.
[0032] When the average current signal exceeds the stall current threshold, the window motor is controlled to reverse and the window is lowered.
[0033] In some embodiments, before detecting whether the average current signal exceeds a preset stall current threshold when the actual position of the window reflects that the window has entered the anti-pinch zone, the method further includes presetting the stall current threshold, specifically including:
[0034] The peak value of the average current signal during the window-raising phase is recorded and determined as the upper limit current value.
[0035] The valley value of the average current signal when the car window stalls is recorded and determined as the stall current value;
[0036] The upper limit threshold is calculated based on the upper limit current value and the stall current value to obtain the calculation result value, and the stall current threshold is preset based on the calculation result value.
[0037] To achieve the above objectives, a third aspect of this application provides a vehicle window anti-pinch control device, the device comprising:
[0038] The signal acquisition module is used to acquire the raw current signal of the window motor;
[0039] The first filtering module is used to perform signal filtering processing on the original current signal to obtain a ripple signal;
[0040] The second filtering module is used to perform current filtering processing on the original current signal to obtain the mean current signal;
[0041] The ripple counting module is used to perform rising and falling ripple counting processing based on the ripple signal and the average current signal to obtain the target number of ripples.
[0042] The window position determination module is used to obtain the actual position of the window based on the target ripple number;
[0043] The window anti-pinch detection module is used to detect whether the actual position of the window reflects that the window has entered the anti-pinch area, and to detect whether the average current signal exceeds the preset stall current threshold.
[0044] The anti-pinch actuator module for the car window is used to control the car window motor to reverse and lower the car window when the average current signal exceeds the stall current threshold.
[0045] To achieve the above objectives, a fourth aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the window position determination method described in the first aspect, or to implement the window anti-pinch control method described in the second aspect.
[0046] To achieve the above objectives, a fifth aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the window position determination method described in the first aspect, or the window anti-pinch control method described in the second aspect.
[0047] The method for determining the position of a vehicle window, the method for controlling the anti-pinch function of a vehicle window, and related devices proposed in this application acquire the original current signal of the vehicle window motor, perform signal filtering on the original current signal to obtain a ripple signal, and then perform current filtering on the original current signal to obtain an average current signal, thus obtaining a clean ripple signal and an average current signal. Then, based on the ripple signal and the average current signal, rising and falling ripple counting is performed to obtain a precise target ripple number. Finally, the actual position of the vehicle window is obtained based on the target ripple number. Therefore, this application ensures the accuracy of ripple signal acquisition by performing signal filtering and current filtering on the original current signal separately to obtain the ripple signal and the average current signal respectively, and obtains a precise target ripple number by performing rising and falling ripple counting on the ripple signal and the average current signal, thereby accurately determining the actual position of the vehicle window. Attached Figure Description
[0048] Figure 1 is a flowchart of the method for determining the position of a vehicle window provided in an embodiment of this application;
[0049] Figure 2 is a schematic diagram of the analog signals of ripple signal and average current signal provided in the embodiments of this application;
[0050] Figure 3 is a detailed schematic diagram of some of the analog signals in Figure 2;
[0051] Figure 4 is a flowchart of step S102 in Figure 1;
[0052] Figure 5 is a flowchart of step S103 in Figure 1;
[0053] Figure 6 is a flowchart of step S104 in Figure 1;
[0054] Figure 7 is a flowchart following step S401 in Figure 1;
[0055] Figure 8 is a schematic diagram of the time interval of the equivalent moments provided in the embodiments of this application;
[0056] Figure 9 is a schematic diagram of experimental data regarding the target ripple number provided in an embodiment of this application;
[0057] Figure 10 is a flowchart of the anti-pinch control method for vehicle windows provided in an embodiment of this application;
[0058] Figure 11 is a flowchart before step S602 in Figure 10;
[0059] Figure 12 is a schematic diagram of the anti-pinch control device for car windows provided in an embodiment of this application;
[0060] Figure 13 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application. Detailed Implementation
[0061] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0062] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0064] In related technologies, anti-pinch control for car windows is mainly based on Hall effect anti-pinch systems or ripple effect anti-pinch systems. Hall effect anti-pinch systems obtain pulse signals related to motor movement by installing Hall sensors inside the motor, and then extract the speed and position of the window movement based on these pulse signals. However, Hall effect anti-pinch systems require additional Hall sensors and corresponding control circuitry, resulting in higher costs.
[0065] The ripple anti-pinch system works by collecting the ripple signal generated by the window drive motor and determining the motor's position based on the ripple signal, thereby determining the window's position. However, current ripple anti-pinch systems suffer from stability issues. This deficiency is not only due to the inherent characteristics of ripple but also includes signal loss during the window's start-up and stop processes, interference from internal harmonics and amplitude variations caused by component aging, etc. These defects affect the ripple count during the window's raising and lowering processes, impacting the determination of the window's position and the execution of the anti-pinch function, thus creating safety hazards.
[0066] Based on this, embodiments of this application provide a method for determining the position of a vehicle window, a method for controlling the anti-pinch function of a vehicle window, and related devices, aiming to improve the accuracy of ripple signal acquisition so as to accurately determine the position of the vehicle window.
[0067] The window position determination method, window anti-pinch control method and related device provided in this application are specifically described through the following embodiments. First, the window position determination method in this application embodiment is described.
[0068] Figure 1 is an optional flowchart of a method for determining the position of a vehicle window provided in an embodiment of this application. The method in Figure 1 may include, but is not limited to, steps S101 to S105.
[0069] Step S101: Obtain the raw current signal of the window motor;
[0070] Step S102: Perform signal filtering on the original current signal to obtain the ripple signal;
[0071] Step S103: Perform current filtering on the original current signal to obtain the mean current signal;
[0072] Step S104: Perform rising and falling ripple counting processing based on the ripple signal and the average current signal to obtain the target number of ripples;
[0073] Step S105: Obtain the actual position of the window based on the target ripple number.
[0074] Steps S101 to S105 of this embodiment involve acquiring the original current signal of the window motor, filtering the original current signal to obtain a ripple signal. The original current signal refers to the current signal of the motor controlling the movement of the window. Current filtering is applied to the original current signal to obtain an average current signal, thus yielding a clean ripple signal and an average current signal. Then, rising and falling ripple counting is performed based on the ripple signal and the average current signal to obtain a precise target ripple count. Finally, the actual position of the window is determined based on the target ripple count. Therefore, this application ensures the accuracy of ripple signal acquisition by performing signal filtering and current filtering on the original current signal separately to obtain the ripple signal and the average current signal, and by performing rising and falling ripple counting on the ripple signal and the average current signal to obtain a precise target ripple count, thereby accurately determining the actual position of the window.
[0075] In steps S101 to S103 of some embodiments, the current signal of the motor controlling the movement of the vehicle window is acquired as the raw current signal. The raw current signal is then filtered to obtain a ripple signal, and further filtered to obtain an average current signal. The average current signal reflects the current value of the vehicle window motor.
[0076] Since both the average current signal and the ripple signal are derived from the same original current signal, they exhibit a high correlation. Even when the window motor stalls, is just starting up or closing, or is aging, and the original current signal of the window motor is highly unstable, the trends in the ripple signal and the average current signal remain the same. Refer to Figure 2 for a schematic diagram of the analog signals of the ripple signal and the average current signal. Figure 3 shows a detailed schematic diagram of some of the analog signals in Figure 2. The two analog signals, the ripple signal and the average current signal, always closely follow each other. This ensures that when performing rising and falling ripple counting based on the ripple signal and the average current signal, the target ripple count can be obtained stably and accurately, without the loss of ripple signals or the inability to count. A stalled window motor refers to a situation where the vehicle's window motor encounters resistance during operation, causing the motor to be unable to rotate normally or its rotation to be obstructed.
[0077] Please refer to Figure 4. In some embodiments, step S102 may include, but is not limited to, steps S201 to S203.
[0078] Step S201: Perform arithmetic mean filtering on the original current signal to obtain the first processed signal;
[0079] Step S202: The first processed signal is first subjected to median average filtering with a preset number of processing windows, and then subjected to sliding average filtering according to the number of processing windows to obtain the second processed signal.
[0080] Step S203: Perform first-order hysteresis filtering on the second processed signal to obtain the ripple signal;
[0081] In steps S201 to S203 of some embodiments, the original current signal is subjected to arithmetic mean filtering to obtain a first processed signal; and a preset number of processing windows is used as the size of the sliding window. The first processed signal is processed using the sliding window as the processing unit, first by median average filtering, and then by moving average filtering to obtain a second processed signal. Finally, the second processed signal is subjected to first-order hysteresis filtering to obtain a ripple signal.
[0082] Through steps S201 to S203, the original current signal undergoes arithmetic mean filtering to obtain a first processed signal. This reduces noise, makes the signal smoother, and clearly shows the overall trend of the ripple. Then, median mean filtering is performed first, followed by moving average filtering, using a preset number of processing windows to obtain a second processed signal. This further reduces noise and outlier values in the second processed signal, increasing its purity and making the ripple trend more pronounced. Finally, a first-order hysteresis filter is applied to the second processed signal to obtain the ripple signal, preserving its dynamic trend.
[0083] Please refer to Figure 5. In some embodiments, step S103 may include, but is not limited to, steps S301 to S302.
[0084] Step S301: Perform sliding mean filtering on the original current signal to obtain the third processed signal;
[0085] Step S302: Perform first-order hysteresis filtering on the third processed signal to obtain the mean current signal.
[0086] In steps S301 to S302 of some embodiments, the original current signal is subjected to moving average filtering to obtain a third processed signal. Then, the third processed signal is subjected to first-order hysteresis filtering to obtain an average current signal. In this case, the number of processing windows used in the moving average filtering of the original current signal to obtain the third processed signal is larger than the number of processing windows in step S202. Using a larger number of processing windows for moving average filtering can cover more data points, provide a better smoothing effect, and suppress periodic noise to a certain extent, resulting in a more stable and smooth third processed signal.
[0087] In steps S104 to S105 of some embodiments, rising and falling ripple counting is performed based on the ripple signal and the average current signal to obtain a target ripple number. The actual position of the window is then determined based on the target ripple number. The target ripple number is the number of ripples collected from the ripple signal that can be used to determine the actual position of the window. The actual position of the window is used to represent the actual position of the window.
[0088] Please refer to Figure 6. In some embodiments, the moment when the ripple signal is equal to the average current signal is the equalization moment. Step S104 may include, but is not limited to, steps S401 to S403.
[0089] Step S401: When the window is in the rising phase, determine the number of rising peaks based on the number of equal moments within the interval where the ripple signal changes from the trough value to the next adjacent peak value.
[0090] Step S402: When the window is in the lowering phase, the number of troughs is determined based on the number of equal moments in the interval where the ripple signal changes from the peak value to the next adjacent trough value.
[0091] Step S403: Adjust the target ripple number based on the number of rising peaks or falling troughs.
[0092] In step S401 of some embodiments, when the window motor controls the window to rise, the number of rising peaks is determined based on the number of equal-value moments within the interval where the ripple signal changes from a trough value to the next adjacent peak value. The equal-value moment represents the moment when the ripple signal and the average current signal are equal, and the number of rising peaks stores the number of equal-value moments within the interval where the ripple signal changes from a trough value to the next adjacent peak value. Referring to Figure 3, the equal-value moment can be considered as the moment when the two analog signals, the ripple signal and the average current signal, intersect. When the window rises, the number of intersection points between the ripple signal from the trough to the peak interval and the average current signal is recorded and determined as the number of rising peaks.
[0093] In step S402 of some embodiments, when the window motor controls the window to descend, the number of descending troughs is determined based on the number of equal-value moments within the interval where the ripple signal changes from its peak value to the next nearest trough value. The descending trough value is used to store the number of equal-value moments within the interval where the ripple signal changes from its peak value to the next nearest trough value. Similarly, when the window descends, the number of intersections between the ripple signal from its peak to its trough and the average current signal can be recorded and determined as the number of descending troughs.
[0094] In step S403 of some embodiments, the target ripple number is adjusted based on the number of rising peaks or falling troughs. In some embodiments, the upward direction of the window can be set as positive, and the downward direction as negative. For example, when the window is at the bottom, the window is controlled to rise. The number of rising peaks is determined according to step S401, and the target ripple number is added to the number of rising peaks. The window is then controlled to fall. The number of falling troughs is determined according to step S402, and the target ripple number is subtracted from the number of falling troughs. If the target ripple number is negative, an absolute value calculation is performed when determining the actual position of the window.
[0095] It should be noted that when the window rises to the top or falls to the bottom, the target ripple count is reset to zero. This allows the target ripple count to be recalculated the next time the window moves. If errors or mistakes occur during the counting process, these errors or mistakes can be cleared when the window reaches the top or bottom because the target ripple count is reset to zero, thus preventing any impact on the next counting.
[0096] In some embodiments, this application can also determine the target ripple number by calculating the number of peaks or troughs of the ripple signal. When the window is in the rising phase, the number of peaks of the ripple signal relative to the average current signal is calculated and determined as the number of rising peaks. When the window is in the falling phase, the number of troughs of the ripple signal relative to the average current signal is calculated and determined as the number of falling troughs. Finally, the target ripple number is adjusted based on the number of rising peaks and the number of falling troughs. It should be noted that this embodiment differs from related technologies. In related technologies, when the window motor starts and closes or after the window motor ages, the ripple characteristics change, causing ripple loss and preventing normal ripple acquisition. Consequently, the accurate target ripple number cannot be obtained, resulting in an inaccurate determination of the actual window position. Therefore, in related technologies, the window motor is required to maintain a stable state when counting ripple signals. The ripple counting in this application is based on the relationship between the ripple signal and the average current signal. The ripple signal and the average current signal have a high correlation. Even when the window motor is starting and closing or when the window motor is aging and in an unstable state, the analog signal of the ripple signal and the analog signal of the average current signal can stably follow each other and produce intersections and peaks and valleys. This allows for a stable and accurate target ripple count, and precise determination of the window position.
[0097] On the other hand, it should be noted that the ripple counting processing in this embodiment is based on the motion state of the window and motor, as well as the principle of ripple generation. During the window's upward or downward movement, the motor drives the pulley to move the window. Based on the force analysis of the window and actual test results, it can be concluded that during the upward movement, the window's force needs to simultaneously counteract the window's gravity and the friction of the mounting bracket, resulting in a longer upward time, greater window torque, and a larger current in the window motor. Therefore, the current stability is better, and in this case, the waveform at the peak is better than the waveform at the trough. During the downward movement, the window's force and the friction of the mounting bracket jointly counteract the window's gravity, resulting in a shorter downward time, smaller window torque, and a smaller current in the window motor. Therefore, the current stability is relatively poor, and in this case, the waveform at the trough is better than the waveform at the peak. Considering the sampling frequency and motion characteristics, it is known that the upward movement of the window has a large number of effective data points at the average current, while the downward movement has a large number of effective data points at the average current. Therefore, peak counting is chosen for the upward movement of the window, and trough counting is chosen for the downward movement.
[0098] Through steps S401 and S402, different strategies are adopted for the rising and falling phases of the window to collect effective ripples, obtaining the number of rising peaks or falling troughs, thereby determining the target ripple count. This improves the accuracy of the target ripple count and allows for more precise determination of the actual window position.
[0099] Please refer to Figure 7. In some embodiments, step S401 may be followed by steps S501 to S503, including but not limited to.
[0100] Step S501: Record the time interval between every two adjacent equal time points in the number of rising wave peaks;
[0101] Step S502: When the interval time meets the first preset condition, the number of rising wave peaks remains unchanged;
[0102] Step S503: If the interval time does not meet the first preset condition, update the number of rising peaks.
[0103] In steps S501 to S503 of some embodiments, the interval between every two adjacent equal-value moments in the number of rising peaks is recorded. When the interval meets a first preset condition, it indicates that the two equal-value moments corresponding to the interval meet the requirements, and the number of rising peaks remains unchanged. The first preset condition is used to require the time length between every two adjacent equal-value moments. Those skilled in the art can set reasonable constraints based on the period of the ripple signal to confirm the interval, ensuring that the interval between two equal-value moments conforms to the normal period of the ripple signal. When the interval does not meet the first preset condition, it can be considered that the two equal-value moments are very close together and do not conform to the periodicity of the normal ripple signal. They may be equal-value moments formed by noise such as clutter or harmonics. In this case, the number of rising peaks is updated to eliminate the error. The average of the two equal-value moments caused by the error can be used as a new equal-value moment to replace the previous one. In some exemplary embodiments, the first preset condition can be set to half the period of the normal ripple signal. Referring to Figure 8, the intervals t1 and t2 of the equal moments in the number of rising peaks are obtained. The length of interval t1 is greater than half the period of the normal ripple signal, and can be considered as the intersection point obtained by the normal ripple signal and the average current signal. The length of interval t2 is very short, does not meet the first preset condition, and does not conform to the periodicity of the normal ripple signal. Therefore, it can be considered as the equal moment formed by noise such as clutter and harmonics. Therefore, the average of the two equal moments corresponding to interval t2 is taken to obtain a new equal moment for replacement.
[0104] In some embodiments, this application can also determine the target ripple number by calculating the number of peaks or troughs in the ripple signal. When the window is in the rising phase, the time interval during which the ripple signal is greater than the average current signal is recorded and determined as the peak signal time. When the peak signal time meets a first preset condition, the peak of the ripple signal relative to the average current signal is included in the number of rising peaks. When the peak signal time does not meet the first preset condition, i.e., the peak signal time is too short, it may be a peak formed by noise such as clutter and harmonics in the ripple signal, and therefore the peak of the ripple signal relative to the average current signal is not included in the number of rising peaks. Similarly, when the window is in the falling phase, the time interval during which the ripple signal is lower than the average current signal is recorded and determined as the trough signal time. When the trough signal time meets the first preset condition, the trough of the ripple signal relative to the average current signal is included in the number of falling troughs. When the trough signal time does not meet the first preset condition, that is, the trough signal time is too short, it may be a trough formed by noise such as clutter and harmonics in the ripple signal. Therefore, the trough of the ripple signal relative to the average current signal is not included in the number of falling troughs.
[0105] In some exemplary embodiments, referring to Figure 9, Figure 9 shows 15 sets of ripple counts obtained through rise and fall ripple counting processing. Series 1 represents the ripple count obtained after the window completes one rise, which is the target ripple count. Series 2 represents the ripple count obtained after the window completes one fall (target ripple count). It can be seen that the error between the target ripple counts obtained by the rise and fall ripple counting processing of this application and the target ripple counts obtained by the window rise and fall does not exceed 5 ripples. This demonstrates that the target ripple count obtained by the rise and fall ripple counting processing of this application has a very small error and high accuracy, thus enabling precise determination of the actual position of the window.
[0106] Through steps S501 to S503, when the window is in the rising phase, the error value is filtered for the equal time in the number of rising wave peaks by the first preset condition. Similarly, when the window is in the falling phase, the equal time in the number of falling wave troughs can also be filtered by the first preset condition. This can further prevent noise, harmonics and other interference from affecting the target ripple count and improve the accuracy of the target ripple count.
[0107] Please refer to Figure 10. This application embodiment also provides a method for controlling the anti-pinch function of a vehicle window. The method in Figure 9 may include, but is not limited to, steps S601 to S603.
[0108] Step S601, the method for determining the position of the vehicle window in this embodiment of the application, determines the actual position of the vehicle window;
[0109] Step S602: When the actual position of the window reflects that the window has entered the anti-pinch zone, detect whether the average current signal exceeds the preset stall current threshold.
[0110] Step S603: When the average current signal exceeds the stall current threshold, control the window motor to reverse and lower the window.
[0111] In steps S601 to S602 of some embodiments, the actual position of the vehicle window is obtained using the window position determination method proposed in the first aspect of this application. When the actual window position reflects that the window has entered a set anti-pinch zone, the change in the average current signal is detected, and whether the value of the average current signal exceeds a preset stall current threshold. The anti-pinch zone is generally set to be within a range of 4 to 200 mm from the top of the window. The stall current threshold is used to indicate the magnitude of the current required to determine if the window motor stalls. When the window is stalled, the motor is usually subjected to a large load, which leads to an increase in the value of the original current signal of the window.
[0112] In step S603 of some embodiments, when the actual position of the window reflects that the window is in the anti-pinch area and the average current signal exceeds the stall current threshold, it is considered that the window is obstructed during movement, causing the window motor to stall. The window triggers the anti-pinch function, controls the window motor to reverse, and lowers the window.
[0113] Through steps S601 to S603, the accurate actual position of the vehicle window is obtained using the window position determination method. Based on the actual window position, it is determined whether the window has entered the anti-pinch zone. The triggering of the anti-pinch function is then determined by comparing the average current signal with the stall current threshold. Improving the accuracy of the actual window position determination method ensures the accurate raising of the window to the anti-pinch zone, reducing the deviation in the anti-pinch zone's determination and thus guaranteeing the stability and reliability of the anti-pinch function, thereby improving vehicle window safety.
[0114] Please refer to Figure 11. In some embodiments, the method further includes presetting a stall current threshold, and steps S701 to S703 may be included before step S602.
[0115] Step S701: Record the peak value of the average current signal during the window rising phase and determine it as the upper limit current value;
[0116] Step S702: Record the valley value of the average current signal when the window stalls, and determine it as the stall current value;
[0117] Step S703: Calculate the upper limit threshold based on the upper limit current value and the stall current value, obtain the calculation result value, and preset the stall current threshold based on the calculation result value.
[0118] In step S701 of some embodiments, the average current signal of different window motors and window motors under different conditions is different. Therefore, it is necessary to calculate and determine a reasonable stall current threshold based on the actual situation. The peak value of the average current signal when the window is raised under normal conditions is recorded, which is the maximum value of the average current signal, and is determined as the upper limit current value.
[0119] In steps S702 to S703 of some embodiments, the valley value, i.e., the minimum value, of the average current signal when the window motor stalls is recorded and determined as the stall current value. An upper limit threshold is calculated based on the upper limit current value and the stall current value, using the following formula (1): S l =S t -A*(S t -S n (1)
[0120] Among them, S l For the calculated result value, S tS is the stall current value. n Here, A is the upper limit current value, and A is a constant parameter. After obtaining the calculated value, the stall current threshold is preset based on the calculated value. When presetting the stall current threshold, it can be calculated based on the average current signal when the stall occurs in the most recent few times. This can yield a more reasonable stall current threshold and also allow for adaptive changes as the window motor situation changes. Specifically, data on window motor stall can be collected using the average current data when the window is raised to the top or lowered to the bottom. When the window is raised to the top or lowered to the bottom, the window motor will be obstructed, resulting in stall. However, since the window is not within the anti-pinch area, the anti-pinch function will not be triggered. Those skilled in the art can set reasonable constant parameters based on experimental experience or adjust them based on the collected average current signal data when the window motor stalls. In this embodiment, the constant parameter is set to 0.6. In an exemplary embodiment, when the window motor stalls, the average current signal value is 1300-1420, so 1300 is used as the stall current value. When the car window is raised normally, the average current signal value is 600-800, so 800 is taken as the upper limit current value. The calculated result value is obtained by formula (1) = 1300 - 0.6 * (1300 - 800) = 1000. Therefore, the stall current threshold can be preset to 1000.
[0121] In some embodiments, when the window is in the rising or falling phase, if the average current signal exceeds a preset stall current threshold, the rising / falling ripple counting process is stopped, and the target ripple count is saved. This is because when the window motor stalls, the window does not move, but the original current signal value of the window motor usually increases due to a large load, and ripple signals can still be generated. Therefore, to avoid errors caused by collecting ripple signals for the target ripple count even when the window motor stalls and the window stops moving, this embodiment stops the rising / falling ripple counting process when the average current signal exceeds the preset stall current threshold, saving the target ripple count, thereby avoiding the collection of erroneous counts and ensuring the accuracy of the target ripple count.
[0122] This application embodiment acquires the raw current signal of the window motor, performs signal filtering on the raw current signal to obtain a ripple signal, and then performs current filtering on the raw current signal to obtain an average current signal, thus obtaining a clean ripple signal and an average current signal. Then, rising and falling ripple counting is performed on the ripple signal and the average current signal to obtain a precise target ripple count. Finally, the actual position of the window is determined based on the target ripple count. Therefore, this application ensures the accuracy of ripple signal acquisition by performing signal filtering and current filtering on the raw current signal separately to obtain the ripple signal and the average current signal respectively, and obtains a precise target ripple count by performing rising and falling ripple counting on the ripple signal and the average current signal, thereby accurately determining the actual position of the window.
[0123] Please refer to Figure 12. This application embodiment also provides a vehicle window anti-pinch control device, which can implement the above-described vehicle window position determination method or the above-described vehicle window anti-pinch control method. The device includes:
[0124] The signal acquisition module is used to acquire the raw current signal of the window motor;
[0125] The first filtering module is used to perform signal filtering on the original current signal to obtain the ripple signal;
[0126] The second filtering module is used to perform current filtering on the original current signal to obtain the mean current signal;
[0127] The ripple counting module is used to perform rising and falling ripple counting processing based on the ripple signal and the average current signal to obtain the target number of ripples.
[0128] The window position determination module is used to determine the actual position of the window based on the target ripple number.
[0129] The window anti-pinch detection module is used to detect whether the actual position of the window reflects that the window has entered the anti-pinch zone, and to detect whether the average current signal exceeds the preset stall current threshold.
[0130] The anti-pinch actuator module for car windows is used to control the window motor to reverse and lower the window when the average current signal exceeds the stall current threshold.
[0131] The specific implementation method of the anti-pinch control device for the car window is basically the same as the specific embodiments of the above-mentioned method for determining the position of the car window and the method for controlling the anti-pinch control of the car window, and will not be described again here.
[0132] In some embodiments, the signal acquisition module can be a bridge driver chip, and the first and second filtering modules can be microcontroller units (MCUs). The bridge driver chip can acquire the raw current signal of the window motor and transmit it to the MCU for filtering to obtain the ripple signal and the average current signal. In related technologies, the acquisition and processing of ripple signals in common window ripple anti-pinch systems are performed through external operational amplifier circuits and filtering circuits, and may even be achieved through multi-channel acquisition, which results in higher costs. This application only requires the bridge driver chip to acquire the ripple signal, without the need for additional components, thus reducing costs.
[0133] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described window position determination method or the above-described window anti-pinch control method. This electronic device can be any smart terminal, including a tablet computer or an in-vehicle computer.
[0134] Please refer to Figure 13, which illustrates the hardware structure of an electronic device according to another embodiment. The electronic device includes:
[0135] The processor 1301 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.
[0136] The memory 1302 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 1302 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1302, and the processor 1301 calls and executes the window position determination method or window anti-pinch control method of the embodiments of this application.
[0137] The input / output interface 1303 is used to implement information input and output;
[0138] The communication interface 1304 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0139] Bus 1305 transmits information between various components of the device (e.g., processor 1301, memory 1302, input / output interface 1303, and communication interface 1304);
[0140] The processor 1301, memory 1302, input / output interface 1303 and communication interface 1304 are connected to each other within the device via bus 1305.
[0141] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described window position determination method or the window anti-pinch control method.
[0142] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0143] The window position determination method, window anti-pinch control method, and related device provided in this application acquire the original current signal of the window motor, perform signal filtering on the original current signal to obtain a ripple signal, and then perform current filtering on the original current signal to obtain an average current signal, thereby obtaining a clean ripple signal and an average current signal. Then, rising and falling ripple counting processing is performed on the ripple signal and the average current signal to obtain a precise target ripple number. Finally, the actual position of the window is obtained based on the target ripple number. Therefore, this application ensures the accuracy of ripple signal acquisition by performing signal filtering and current filtering on the original current signal separately to obtain the ripple signal and the average current signal respectively, and obtains a precise target ripple number by performing rising and falling ripple counting processing on the ripple signal and the average current signal, thus accurately determining the actual position of the window.
[0144] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0145] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0146] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0147] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0148] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0149] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0150] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. The coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, or indirect coupling or communication connection between the apparatus or units, and may be electrical, mechanical, or other forms.
[0151] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0152] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0153] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0154] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A method for determining the position of a vehicle window, wherein, The method includes: Acquire the original current signal of the window motor, wherein the original current signal refers to the current signal of the motor that controls the movement of the window; The original current signal is subjected to signal filtering processing to obtain the ripple signal; The original current signal is subjected to current filtering to obtain the mean current signal; The target number of ripples is obtained by performing rising and falling ripple counting processing on the ripple signal and the mean current signal. The actual position of the car window is obtained based on the target ripple number.
2. The method according to claim 1, wherein, The moment when the ripple signal equals the mean current signal is the moment of equality. The step of performing rising and falling ripple counting processing based on the ripple signal and the average current signal to obtain the target ripple number includes: When the window is in the rising phase, the number of rising peaks is determined based on the number of equal moments within the interval where the ripple signal changes from the trough value to the next adjacent peak value. When the car window is in the lowering phase, the number of troughs is determined based on the number of equal moments in the interval where the ripple signal changes from the peak value to the next adjacent trough value. The target ripple number is adjusted based on the number of rising peaks or the number of falling troughs.
3. The method according to claim 1, wherein, The step of performing rising and falling ripple counting processing based on the ripple signal and the average current signal to obtain the target ripple number includes: When the car window is in the rising stage, the number of peaks of the ripple signal relative to the mean current signal is calculated and determined as the number of rising peaks. When the car window is in the lowering phase, the number of troughs of the ripple signal relative to the mean current signal is calculated and determined as the number of troughs during the descent. The target ripple number is adjusted based on the number of rising peaks or the number of falling troughs.
4. The method according to claim 2 or 3, wherein, When the car window is raised to the top or lowered to the bottom, the target ripple count is reset to zero.
5. The method according to claim 2, wherein, After determining the number of rising peaks based on the number of equal moments within the interval where the ripple signal changes from a trough to the next adjacent peak, the method further includes: Record the time interval between every two adjacent equal moments in the number of rising wave peaks; When the interval time meets the first preset condition, the number of rising wave peaks remains unchanged; If the interval time does not meet the first preset condition, update the number of rising peaks.
6. The method according to claim 1, wherein, The step of performing signal filtering processing on the original current signal to obtain the ripple signal includes: The original current signal is subjected to an arithmetic mean filter to obtain a first processed signal; The first processed signal is first subjected to median average filtering with a preset number of processing windows, and then subjected to sliding average filtering according to the number of processing windows to obtain the second processed signal. The ripple signal is obtained by performing a first-order hysteresis filter on the second processed signal.
7. The method according to claim 1, wherein, The step of performing current filtering on the original current signal to obtain the mean current signal includes: The original current signal is subjected to sliding mean filtering to obtain the third processed signal; The mean current signal is obtained by performing a first-order hysteresis filter on the third processed signal.
8. The method according to claim 1, wherein, The number of processing windows set for obtaining the mean current signal by current filtering of the original current signal is larger than the number of processing windows set for obtaining the ripple signal by signal filtering of the original current signal.
9. A method for controlling anti-pinch of vehicle windows, wherein, include: The method for determining the position of a vehicle window according to any one of claims 1 to 8 is used to determine the actual position of the vehicle window; When the actual position of the window reflects that the window has entered the anti-pinch zone, the average current signal is detected to see if it exceeds the preset stall current threshold. When the average current signal exceeds the stall current threshold, the window motor is controlled to reverse and the window is lowered.
10. The method according to claim 9, wherein, Before detecting whether the average current signal exceeds a preset stall current threshold when the actual position of the window reflects that the window has entered the anti-pinch zone, the method further includes presetting the stall current threshold, specifically including: The peak value of the average current signal during the window-raising phase is recorded and determined as the upper limit current value. The valley value of the average current signal when the car window stalls is recorded and determined as the stall current value; The upper limit threshold is calculated based on the upper limit current value and the stall current value to obtain the calculation result value, and the stall current threshold is preset based on the calculation result value.
11. The method according to claim 10, wherein, When the window is in the rising or falling phase, if the average current signal is greater than the preset stall current threshold, the rising and falling ripple counting process will be stopped and the target ripple number will be saved.
12. A vehicle window anti-pinch control device, wherein, The device includes: The signal acquisition module is used to acquire the original current signal of the window motor, which refers to the current signal of the motor that controls the movement of the window. The first filtering module is used to perform signal filtering processing on the original current signal to obtain a ripple signal; The second filtering module is used to perform current filtering processing on the original current signal to obtain the mean current signal; The ripple counting module is used to perform rising and falling ripple counting processing based on the ripple signal and the average current signal to obtain the target number of ripples. The window position determination module is used to obtain the actual position of the window based on the target ripple number. The window anti-pinch detection module is used to detect whether the actual position of the window reflects that the window has entered the anti-pinch area, and to detect whether the average current signal exceeds the preset stall current threshold. The anti-pinch actuator module for the car window is used to control the car window motor to reverse and lower the car window when the average current signal exceeds the stall current threshold.
13. The anti-pinch control device for vehicle windows according to claim 12, wherein, The signal acquisition module is a bridge driver chip.
14. An electronic device, wherein, The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the window position determination method according to any one of claims 1 to 8, or implements the window anti-pinch control method according to any one of claims 9 to 11.
15. A computer-readable storage medium storing a computer program, wherein, When the computer program is executed by the processor, it implements the window position determination method according to any one of claims 1 to 8, or implements the window anti-pinch control method according to any one of claims 9 to 11.
Citation Information
Patent Citations
Ripple counting filtering and peak detection method and system
CN111293934A
Window position judgment method and device, vehicle, equipment and medium
CN111350437A
Vehicle window starting stage anti-pinch method and device, vehicle and medium
CN112096211A
Automobile window anti-pinch control method and system
CN115788210A
Power window current ripple anti-pinch control method based on software filtering
CN115826456A