A power window anti-pinch method and system
By calculating the current slope through real-time data processing and least squares curve fitting, and adjusting the threshold according to the bumpy conditions, the problem of false triggering of the electric window anti-pinch algorithm in bumpy environments was solved, thus improving safety and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SAIC GM WULING AUTOMOBILE CO LTD
- Filing Date
- 2023-12-11
- Publication Date
- 2026-04-24
AI Technical Summary
Existing anti-pinch algorithms for electric windows are prone to false triggering in bumpy environments, leading to safety hazards. Furthermore, existing methods suffer from problems such as large data volume, high memory consumption, and complex user operations.
Real-time data collection and preprocessing are employed, the current slope is calculated using the least squares curve fitting principle, the threshold is adjusted in conjunction with vehicle vibration, and the anti-pinch area is determined and the anti-pinch mechanism is triggered by Hall pulse.
This improves the safety and reliability of electric windows, reduces the risk of accidental triggering of the anti-pinch mechanism, lowers costs, and enhances the user experience.
Smart Images

Figure CN117823002B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of anti-pinch technology for electric vehicle windows, specifically to an anti-pinch method and system for electric vehicle windows. Background Technology
[0002] Power windows make operation convenient for drivers and passengers, but the rapid upward movement and significant force during this process pose a safety hazard, increasing the risk of pinching injuries. Therefore, many countries have strict requirements for power windows, and my country explicitly mandates that anti-pinch functionality be a standard feature of all power windows in automobiles.
[0003] There are many elements that enable the anti-pinch algorithm for car windows. Among them, motor current and motor speed are the most common and important elements. The magnitude of motor current changes with the resistance of the car window. Based on this principle, motor current anti-pinch methods include absolute amplitude method, slope method, and current storage type anti-pinch algorithm.
[0004] Absolute amplitude method:
[0005] 1. Anti-pinch methods based on absolute current amplitude are prone to excessive fluctuations in anti-pinch force, failure of anti-pinch, or false anti-pinch due to irreversible changes in current caused by external environmental factors such as bumps, aging of rubber strips, and voltage changes.
[0006] Current storage anti-pinch algorithm:
[0007] 1. The current storage-type anti-pinch algorithm needs to record the current during the normal operation of the window throughout its entire stroke as reference data. It also needs to save data under various environmental conditions such as voltage and temperature, resulting in a large amount of data, high memory consumption, and increased memory costs.
[0008] 2. When the data volume is large, the storage time will be relatively long during power outages, requiring a larger capacitor to meet the storage time requirements, which will also increase costs.
[0009] 3. The storage algorithm and some self-learning algorithms require users to perform complex initialization operations to enable the anti-pinch function, which is inconvenient for customers to use. Summary of the Invention
[0010] In view of the above-mentioned problems, the present invention is proposed.
[0011] Therefore, the technical problem solved by this invention is: how to accurately determine the anti-pinch area, and how to automatically adjust the threshold when the vehicle is bumpy to reduce false triggering of the anti-pinch mechanism.
[0012] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a method for preventing electric window pinching, comprising the following steps: starting a motor to collect data information in real time and performing data preprocessing; calculating the travel length of the electric window and determining whether the window is in the anti-pinch zone; using the least squares method to fit a curve and obtaining the latest current slope during motor operation; determining the slope magnitude, recording and controlling the current difference; and further determining whether the electric window anti-pinch mechanism is triggered based on the current difference magnitude.
[0013] As a preferred embodiment of the electric window anti-pinch method of the present invention, the data information is a Hall pulse generated by the operation of the motor;
[0014] The data preprocessing involves denoising the collected state data, removing missing values, outliers, and invalid data with incorrect formats, converting the original format data into the format required for requirements analysis, and normalizing the data to complete the data preprocessing.
[0015] In a preferred embodiment of the electric window anti-pinch method of the present invention, the data information is used to determine the window's operating position, operating direction, and operating speed.
[0016] The direction of operation is determined by the increase or decrease of the data information, the speed of operation is determined by the magnitude of the increase or decrease of the data information, and the position of operation is determined by the count of the data information.
[0017] In a preferred embodiment of the electric window anti-pinch method of the present invention, as the window moves from closed to fully open, the data information increases from 0 to a maximum value according to a preset increment; as the window moves from fully open to closed, the data information decreases from the maximum value to 0 according to a preset increment, further determining whether the electric window is currently in the anti-pinch zone. If the window is in the anti-pinch zone, it detects whether the anti-pinch mechanism is triggered. If the anti-pinch mechanism is triggered, the anti-pinch reversal program is executed; if the window is not in the anti-pinch zone, the process stops at a soft stop point.
[0018] The anti-pinch reversal program first sets the anti-pinch retraction distance, then drives the motor to run in the opposite direction and determines whether the retraction distance is greater than or equal to the set retraction distance, then stops the motor and ends the anti-pinch reversal program.
[0019] As a preferred embodiment of the electric window anti-pinch method of the present invention, the detection of whether anti-pinch occurs is based on the principle of least squares curve fitting, which fits the latest current slope of the motor during operation, and the expression is:
[0020]
[0021]
[0022] Where m is the current slope, c is the intercept, and t is the current slope. i It is the i-th time point, I i This is the i-th current data point, and NUM is the total number of current data points.
[0023] As a preferred embodiment of the electric window anti-pinch method of the present invention, when the latest current slope during motor operation is calculated, the magnitude of the current slope is determined. If the slope is less than a preset slope threshold, the current difference is cleared and monitoring continues to check whether the electric window is in the anti-pinch area. If the slope is greater than the preset slope threshold, the current difference is further calculated. If the current difference is greater than the preset current difference threshold, the anti-pinch mechanism is triggered. Otherwise, monitoring continues to check whether the electric window is in the anti-pinch area.
[0024] In a preferred embodiment of the electric vehicle window anti-pinch method described in this invention, when the current slope is greater than a preset slope threshold, it is determined whether the vehicle is running on a bumpy road. If bumps occur, the preset slope threshold is adjusted, and the latest current slope during motor operation is re-evaluated. The margin expression for adjusting the slope threshold is:
[0025] Where a and b are constants, L is the travel length of the window, V0 and U0 are the reference vehicle speed and reference voltage, e is the base of the natural logarithm, V and U are the current vehicle speed and battery voltage, and A is the threshold adjustment amount.
[0026] If the real-time measured vehicle speed V is greater than the reference vehicle speed V0, the threshold is increased to prevent false triggering of the anti-pinch mechanism. If the real-time measured battery voltage U is less than the reference battery voltage U0, the threshold is decreased to ensure the normal operation of the anti-pinch mechanism.
[0027] In a preferred embodiment of the electric window anti-pinch method described in this invention, the bump conditions are divided into three levels: slight bumps, moderate bumps, and severe bumps, and the expressions for the margin of the adjustment slope threshold are as follows:
[0028]
[0029]
[0030]
[0031] Among them, c1, c2, These are the adjustment constants for mild turbulence, moderate turbulence, and severe turbulence, respectively. A1, A2, and A3 are the margins of the adjustment slope thresholds for mild, moderate, and severe turbulence, respectively.
[0032] As a preferred embodiment of the electric window anti-pinch method of the present invention, the slope threshold for bumpy road sections is obtained by adding the margin of the adjusted slope threshold to the original slope threshold. If the current slope is greater than the slope threshold for bumpy road sections, the current difference is further calculated and the magnitude of the current difference is determined. If the current difference threshold is reached, it is considered that anti-pinch has occurred; otherwise, the detection continues until the anti-pinch condition is met or the electric window moves to the designated position.
[0033] Another objective of this invention is to provide an anti-pinch system for electric windows. This system collects Hall pulses generated by the motor in real time and calculates the current slope using the least squares curve fitting principle, thereby accurately determining the magnitude of the current difference and triggering the anti-pinch mechanism. Simultaneously, this system can automatically adjust the threshold value according to the severity of vehicle bumps, ensuring the anti-pinch mechanism functions properly under different road conditions. This solves the problem of false triggering of the anti-pinch mechanism due to bumps in existing technologies, improving the safety and reliability of electric windows.
[0034] To solve the above-mentioned technical problems, the present invention provides the following technical solution: an anti-pinch system for electric windows, comprising: a data collection and preprocessing module, a judgment module, a calculation module, an adjustment module, and a reversal program module.
[0035] The data collection and preprocessing module collects real-time measurement data of Hall pulses generated by motor operation, vehicle speed, and battery voltage, and performs noise reduction, missing value processing, outlier processing, data format conversion, and data normalization on the collected data.
[0036] The judgment module calculates the travel length of the electric window based on the number of Hall pulses to determine whether the current electric window is in the anti-pinch zone.
[0037] The calculation module uses the least squares method to fit the curve to calculate the current slope, and then calculates the current difference based on the current slope.
[0038] The adjustment module determines whether the vehicle is traveling on a bumpy road and adjusts the slope threshold accordingly.
[0039] The reversal program module determines whether to trigger the anti-pinch mechanism based on the current difference.
[0040] A computer device includes a memory and a processor, the memory storing a computer program, characterized in that the processor executes the computer program to implement the steps of the electric window anti-pinch method described above.
[0041] A computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the electric window anti-pinch method described above.
[0042] The beneficial effects of this invention are as follows: By collecting Hall pulses generated during motor operation in real time and calculating the current slope using the least squares curve fitting principle, this invention accurately determines the magnitude of the current difference and triggers the anti-pinch mechanism, thus improving the safety of power windows. Simultaneously, it automatically adjusts the threshold value according to the severity of vehicle bumps, ensuring the normal operation of the anti-pinch mechanism under different road conditions, solving the problem of false triggering of the anti-pinch mechanism due to bumps in existing technologies. This method and system are easy to implement, do not require complex equipment or high costs, and can be widely applied to various power window systems, thereby improving the reliability of power windows, reducing the risk of window damage caused by false triggering of the anti-pinch mechanism, enhancing the user's driving experience, and increasing user satisfaction with the power window system. Attached Figure Description
[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0044] Figure 1 This is an overall flowchart of a method for preventing electric window pinching provided in the first embodiment of the present invention;
[0045] Figure 2 This is a structural diagram of an anti-pinch system for electric windows provided in the second embodiment of the present invention. Detailed Implementation
[0046] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.
[0047] Example 1
[0048] Reference Figure 1 As an embodiment of the present invention, a method for preventing electric window pinching is provided, characterized in that:
[0049] The system collects data in real time by starting the motor and performs data preprocessing; it calculates the travel length of the electric window to determine whether the window is in the anti-pinch zone; it uses the least squares curve fitting principle to fit the latest current slope during motor operation; it records and controls the current difference based on the magnitude of the slope; and it further determines whether the electric vehicle's anti-pinch mechanism is triggered based on the magnitude of the current difference.
[0050] The collected data is the Hall pulses generated by the motor, which can be used to obtain the operating position, direction, and speed parameters of the electric window.
[0051] The data preprocessing involves denoising the collected state data, removing missing values, outliers, and invalid data with incorrect formats, converting the original format data into the format required for requirements analysis, and normalizing the data to complete the data preprocessing.
[0052] The data information increases from 0 to the maximum value according to a preset increment; when the window is closed from fully open, the data information decreases from the maximum value to 0 according to a preset increment, and it is further determined whether the current electric window is in the anti-pinch zone. If the window is in the anti-pinch zone, it is detected whether the anti-pinch mechanism is triggered. If the anti-pinch mechanism is triggered, the anti-pinch reversal program is executed; if the window is not in the anti-pinch zone, it runs to the soft stop point and stops.
[0053] The anti-pinch reversal program first sets the anti-pinch retraction distance, then drives the motor to run in the opposite direction and determines whether the retraction distance is greater than or equal to the set retraction distance, then stops the motor and ends the anti-pinch reversal program.
[0054] The travel length of the electric window is represented by the total number of Hall pulses generated during the total travel of the electric window. It is stipulated that the Hall pulse count (HallPosCount) is 0 when the window is fully closed. During the window opening process, HallPosCount is incremented by 1 for each Hall pulse captured, reaching its maximum value when the window is fully open. During the window closing process, HallPosCount is decremented by 1 for each Hall pulse captured, reaching 0 when the window is fully closed. The travel length of the electric window is calculated from this information.
[0055] It should be further explained that the preset increment can be any natural number. The present invention selects 1 as the base unit because it is selected based on the main frequency of the device.
[0056] Determine if the current power window is in the anti-pinch zone. If it is, check if anti-pinch has occurred. If anti-pinch has occurred, execute the anti-pinch reverse procedure. If it is not in the anti-pinch zone, proceed to the soft stop point and stop.
[0057] The detection of whether anti-pinch occurs is based on the principle of least squares curve fitting, which obtains the latest current slope during motor operation. The expression is:
[0058]
[0059]
[0060] Where m is the current slope, c is the intercept, and t is the current slope. i It is the i-th time point, I iThis is the i-th current data point, and NUM is the total number of current data points.
[0061] When the latest current slope of the motor is calculated, the magnitude of the current slope is judged. If the slope is less than the preset slope threshold, the current difference is cleared and the monitoring of whether the electric window is in the anti-pinch zone is continued. If the slope is greater than the preset slope threshold, the current difference is further calculated. If the current difference is greater than the preset current difference threshold, the anti-pinch mechanism is triggered. Otherwise, the monitoring of whether the electric window is in the anti-pinch zone continues.
[0062] When the current slope is greater than a preset slope threshold, it is determined whether the vehicle is running on a bumpy road. If a bumpy road is encountered, the preset slope threshold is adjusted, and the latest current slope during motor operation is re-evaluated. The margin expression for adjusting the slope threshold is:
[0063]
[0064] Where a and b are constants, L is the travel length of the window, V0 and U0 are the reference vehicle speed and reference voltage, e is the base of the natural logarithm, V and U are the current vehicle speed and battery voltage, and A is the threshold adjustment amount.
[0065] If the real-time measured vehicle speed V is greater than the reference vehicle speed V0, the threshold is increased to prevent false triggering of the anti-pinch mechanism; if the real-time measured battery voltage U is less than the reference battery voltage U0, the threshold is decreased to ensure the normal operation of the anti-pinch mechanism.
[0066] The turbulence is categorized into three levels: mild, moderate, and severe. The expressions for the margin of the slope threshold adjustment are as follows:
[0067]
[0068]
[0069]
[0070] Among them, c1, c2, These are the adjustment constants for mild turbulence, moderate turbulence, and severe turbulence, respectively. A1, A2, and A3 are the margins of the adjustment slope thresholds for mild, moderate, and severe turbulence, respectively.
[0071] Under slight bumps, the vehicle's movement will not be greatly affected, so we can make a small threshold adjustment to ensure the sensitivity of the anti-pinch mechanism.
[0072] Under moderate bumps, vehicle movement will be affected to some extent, but not excessively. Therefore, a moderate threshold adjustment is needed to ensure the accuracy of the anti-pinch mechanism. The logarithmic function (log) is chosen because its growth rate is relatively slow; its curve grows faster when the input value is small and slower when the input value is large. This property allows the logarithmic function to provide a moderate adjustment amount under different input values, thus better adapting to moderate bumps. This property of the logarithmic function allows us to provide appropriate adjustments under different bump levels, avoiding over-adjustment that could lead to false triggering of the anti-pinch mechanism.
[0073] Under severe bumpy conditions, vehicle movement is significantly affected. Therefore, a larger threshold adjustment is needed to ensure the stability of the anti-pinch mechanism. The square function is chosen because it grows rapidly; its curve grows slowly with small input values and quickly with large input values. This property allows the square function to provide a larger adjustment range under different input values, thus better adapting to severe bumpy conditions. This property of the square function allows us to provide appropriate adjustments under different bump levels, avoiding over-adjustment that could lead to false triggering of the anti-pinch mechanism.
[0074] The slope threshold for bumpy road sections is obtained by adding the margin of the adjusted slope threshold to the original slope threshold. If the current slope is greater than the slope threshold for bumpy road sections, the current difference is further calculated and the magnitude of the current difference is judged. If the current difference threshold is reached, it is considered that anti-pinch has occurred; otherwise, the detection continues until the anti-pinch condition is met or the electric window moves to the designated position.
[0075] Example 2
[0076] Reference Figure 2 As an embodiment of the present invention, a system for an anti-pinch method for electric window is provided, characterized in that it includes a data collection and preprocessing module, a judgment module, a calculation module, an adjustment module, and a reversal program module.
[0077] The data collection and preprocessing module collects real-time measurement data of Hall pulses generated by motor operation, vehicle speed, and battery voltage. It performs noise reduction, missing value processing, outlier processing, data format conversion, and data normalization on the collected data.
[0078] The judgment module calculates the travel length of the electric window based on the number of Hall pulses and determines whether the current electric window is in the anti-pinch zone.
[0079] The calculation module uses the least squares method to fit the curve to calculate the current slope, and then calculates the current difference based on the current slope.
[0080] The adjustment module determines whether the vehicle is traveling on a bumpy road and adjusts the slope threshold accordingly.
[0081] The reversal program module determines whether to trigger the anti-pinch mechanism based on the current difference.
[0082] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion 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 several 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 described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0083] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0084] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0085] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0086] Example 3
[0087] In this embodiment, to verify the beneficial effects of the present invention, scientific demonstration is conducted through economic benefit calculations and simulation experiments. This embodiment presents experiments comparing both existing conventional methods and the method of this embodiment.
[0088] This patent has undergone real-vehicle testing of the algorithm. Table 1 below shows the anti-pinch force test data for 5 test points. The total travel of the electric window is 50cm, the anti-pinch area is set to the area 10cm away from the top of the window, and the number of Hall pulses generated by the motor is 100, with each Hall pulse representing a movement of 0.5cm in the electric window.
[0089] The number of Hall effect sensors (HallPosCount) is 0 when the car windows are completely closed.
[0090] During the opening of the car window, HallPosCount increments by 1 for each Hall pulse captured, reaching a maximum value of 100 when the window is fully open.
[0091] During the window closing process, HallPosCount is decremented by 1 for each Hall pulse captured, returning to 0 when fully closed. Assume the normal operating speed of the electric window is 2 Hall pulses per second.
[0092] During the upward movement of the power window, when it enters the anti-pinch zone, if there are no obstructions and the current slope is less than the preset current slope threshold, the power window will rise normally to the top. If there are obstructions, the current slope will be greater than the preset current slope threshold, and the current difference will also be greater than the preset current difference threshold, triggering the anti-pinch mechanism. The power window will stop rising and begin to descend to prevent damage to the obstruction. If the vehicle enters a bumpy road section, the preset current slope threshold and current difference threshold will be adjusted according to the level of bumpiness to ensure the safety of the power window on bumpy roads and prevent the anti-pinch mechanism from being accidentally triggered due to bumps.
[0093] Margin for adjusting slope values under slight bumps:
[0094]
[0095] Substituting the data into the calculation, we get:
[0096]
[0097] Margin for adjusting the slope threshold under moderate turbulence:
[0098]
[0099] Substituting the data into the calculation, we get:
[0100]
[0101] Margin for adjusting the slope threshold under severe turbulence conditions:
[0102]
[0103] Substituting the data into the calculation, we get:
[0104]
[0105] Next, the calculated margin of the adjusted slope threshold is added to the original slope threshold to obtain the slope threshold for bumpy road sections. Then, it is compared with the current slope to determine whether the anti-pinch mechanism is triggered.
[0106] Assume the original slope threshold is 0.2 A / s and the current slope is 1 A / s.
[0107] The slope threshold under slight bumps is:
[0108] S1 = 0.2 + 3.3 = 3.5
[0109] Since the current slope of 1A / s is less than the slope threshold of 3.5A / s, the anti-pinch mechanism is not triggered.
[0110] 2. The slope threshold under moderate turbulence conditions is:
[0111] S² = 0.2 + 3.9 = 4.1
[0112] Since the current slope of 1A / s is less than the slope threshold of 4.1A / s, the anti-pinch mechanism is not triggered.
[0113] 3. The slope threshold under severe turbulence conditions is:
[0114] S3 = 0.2 + 6.2 = 6.4
[0115] Since the current slope of 1A / s is less than the slope threshold of 6.4A / s, the anti-pinch mechanism is not triggered.
[0116] Therefore, in this example, the anti-pinch mechanism will not be triggered under conditions of slight, moderate, or severe bumps.
[0117] Table 1 Anti-pinch force data at different points on the car window
[0118]
[0119] As can be seen from the anti-pinch force test data in Table 1, the variation of the anti-pinch force at different points is all within (80±5) N.
[0120] The design requirement of anti-pinch force less than 100N was met, verifying the safety of the algorithm.
[0121] The anti-pinch function of the power windows was tested under various adverse road conditions, and the test results are shown in the table below.
[0122] Table 2 Test of Anti-pinch Function of Vehicle Windows under Harsh Road Conditions
[0123]
[0124] As shown in Table 2, the test results indicate that the anti-pinch function of the electric window works normally under the above adverse road conditions, with a false anti-pinch rate of 0%, which verifies the reliability of the algorithm.
[0125] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for preventing electric window pinching, characterized in that, include: The starter motor collects data in real time and performs data preprocessing; Calculate the travel length of the electric window to determine if the window is in the anti-pinch zone; Using the least squares method to fit curves, the latest current slope during motor operation is obtained. Determine the magnitude of the slope, record it, and control the current difference; Further, based on the magnitude of the current difference, it can be determined whether the anti-pinch mechanism of the electric vehicle is triggered; When the latest current slope of the motor is calculated, the magnitude of the current slope is judged. If the slope is less than the preset slope threshold, the current difference is cleared and the monitoring of whether the electric window is in the anti-pinch zone is continued. If the slope is greater than the preset slope threshold, the current difference is further calculated. If the current difference is greater than the preset current difference threshold, the anti-pinch mechanism is triggered. Otherwise, the monitoring of whether the electric window is in the anti-pinch zone continues.
2. The method for preventing electric window pinching as described in claim 1, characterized in that: The data information is the Hall pulses generated by the motor operation; The data preprocessing involves denoising the collected state data, removing outliers and invalid data with incorrect formats, converting the original format data into the format required for requirements analysis, and normalizing the data to complete the data preprocessing.
3. The method for preventing electric window pinching as described in claim 2, characterized in that: The data information is used to determine the window's operating position, direction, and speed; The direction of operation is determined by the increase or decrease of the data information, the speed of operation is determined by the magnitude of the increase or decrease of the data information, and the position of operation is determined by the count of the data information.
4. The method for preventing electric window pinching as described in claim 3, characterized in that: When the window is opened from closed to fully open, the data information increases from 0 to the maximum value according to a preset increment; when the window is closed from fully open to closed, the data information decreases from the maximum value to 0 according to a preset increment. It is then determined whether the current electric window is in the anti-pinch zone. If the window is in the anti-pinch zone, it is checked whether the anti-pinch mechanism is triggered. If the anti-pinch mechanism is triggered, the anti-pinch reversal program is executed; if the window is not in the anti-pinch zone, it stops at the soft stop point. The anti-pinch reversal program first sets the anti-pinch retraction distance, then drives the motor to run in the opposite direction and determines whether the retraction distance is greater than or equal to the set retraction distance, then stops the motor and ends the anti-pinch reversal program.
5. The method for preventing electric window pinching as described in claim 4, characterized in that: The detection of whether anti-pinch occurs is based on the principle of least squares curve fitting, which obtains the latest current slope during motor operation. The expression is: , in, It is the current slope. It is the intercept. It is the first At a certain point in time, It is the first Current data, This is the total number of current data points.
6. The method for preventing electric window pinching as described in claim 5, characterized in that: When the current slope is greater than a preset slope threshold, it is determined whether the vehicle is running on a bumpy road. If a bumpy road is encountered, the preset slope threshold is adjusted, and the latest current slope during motor operation is re-evaluated. The margin expression for adjusting the slope threshold is: , in, and It is a constant. It refers to the travel length of the car window. and These are reference vehicle speed and reference voltage. It is the base of the natural logarithm. and It is the current vehicle speed and battery voltage. It is the threshold adjustment amount; If the vehicle speed is measured in real time Greater than the reference speed Add a threshold to prevent false triggering of the anti-pinch mechanism, and measure the battery voltage in real time. Less than the reference battery voltage Reducing the threshold ensures the normal operation of the anti-pinch mechanism.
7. The method for preventing electric window pinching as described in claim 6, characterized in that: The turbulence is categorized into three levels: mild turbulence, moderate turbulence, and severe turbulence. The expressions for the margin of the slope threshold adjustment are as follows: , , , in, These are the adjustment constants for mild turbulence, moderate turbulence, and severe turbulence, respectively. , , These are the margins for adjusting the slope threshold for mild, moderate, and severe turbulence, respectively.
8. The method for preventing electric window pinching as described in claim 7, characterized in that: The slope threshold for bumpy road sections is obtained by adding the margin of the adjusted slope threshold to the original slope threshold. If the current slope is greater than the slope threshold for bumpy road sections, the current difference is further calculated and the magnitude of the current difference is judged. If the current difference threshold is reached, it is considered that anti-pinch has occurred; otherwise, the detection continues until the anti-pinch condition is met or the electric window moves to the designated position.
9. A system employing the anti-pinch method for electric window as described in any one of claims 1 to 8, characterized in that: It includes a data collection and preprocessing module, a judgment module, a calculation module, an adjustment module, and a reversal program module; The data collection and preprocessing module collects real-time measurement data of Hall pulses generated by motor operation, vehicle speed, and battery voltage, and performs noise reduction, missing value processing, outlier processing, data format conversion, and data normalization on the collected data. The judgment module calculates the travel length of the electric window based on the number of Hall pulses to determine whether the current electric window is in the anti-pinch zone. The calculation module uses the least squares method to fit the curve to calculate the current slope, and then calculates the current difference based on the current slope. The adjustment module determines whether the vehicle is running on a bumpy road and adjusts the slope threshold according to the bumpiness. The reversal program module determines whether to trigger the anti-pinch mechanism based on the current difference.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the electric window anti-pinch method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the electric window anti-pinch method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Controlling method for DC motor
JP1986069391A
Power window switching device
JP1998025964A