A control method and device for preventing pinching of a vehicle window and a vehicle
By using capacitive sensing technology, the charging and discharging time of obstacles is detected by the first and second capacitor wires. This solves the problems of pain and blind spot pinching caused by contact recognition in existing anti-pinch technology for car windows, and realizes non-contact safety anti-pinch prediction and adaptive protection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHEJIANG GEELY HLDG GRP CO LTD
- Filing Date
- 2026-06-26
- Publication Date
- 2026-07-24
AI Technical Summary
Existing anti-pinch technology for car windows relies on physical contact to identify obstacles, which carries the risk of squeezing pain and pinching injury from the top blind spot. It cannot achieve non-contact anti-pinch prediction and has low safety.
The system uses a first capacitor wire and a second capacitor wire to detect obstacles. It determines the presence of obstacles by detecting the charging and discharging time. It uses the principle of capacitive induction to complete the identification before the obstacle comes into contact with the glass. It also adaptively adjusts the anti-pinch action of the window based on environmental and obstacle parameters.
It achieves non-contact obstacle recognition, avoiding the pain of squeezing and the risk of pinching, and improving the safety and protection of window raising and lowering.
Smart Images

Figure CN122446958A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control, and specifically to a control method, device, and vehicle for preventing window pinching. Background Technology
[0002] Currently, most automatic window lift anti-pinch functions in automobiles use a contact-based anti-pinch solution. This type of anti-pinch method requires the upper edge of the window glass to physically contact and press against an obstacle. It then detects an increase in the current or a decrease in the speed of the lift motor to determine the pinching situation and trigger the anti-pinch action.
[0003] However, this anti-pinch method requires physical compression to identify obstacles, which can easily cause squeezing pain to the human body; at the same time, in order to avoid misjudging when the window is closed, the top of the upper frame of the window usually retains an anti-pinch shielding area, but there is still a safety hazard of pinching pain and injury when small objects such as children's fingers are inserted at extreme angles.
[0004] In addition, existing anti-pinch technologies for car windows generally only support contact recognition, and cannot complete the prediction and recognition before the obstacle touches the glass, so they cannot achieve non-contact anti-pinch and have low protection safety. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a control method, device and vehicle for preventing vehicle windows from being pinched, in order to solve the problems of existing vehicle window anti-pinch technology relying on physical contact to identify obstacles, which has the problems of squeezing pain, risk of pinching injury in the top blind spot and inability to achieve non-contact anti-pinch prediction.
[0006] In a first aspect, embodiments of the present invention provide a control method for preventing vehicle window pinching, the method comprising: The detection measures the first and second time intervals from the completion of discharge to the charging of the first and second capacitor wires to a preset voltage threshold, respectively. The first capacitor wire is disposed on a vehicle body structural component above the closed position of the window, and the second capacitor wire is disposed on the window glass and moves together with the window glass. If either the first duration or the second duration is greater than or equal to the corresponding time threshold, it is determined that there is an obstacle on the upward path of the window, and the window is controlled to perform an anti-pinch protection action.
[0007] Furthermore, the method also includes: The real-time height of the vehicle window is detected during its rising process; Obtain the relative positional relationship between the real-time height of the vehicle window and the non-contact anti-pinch height, wherein the non-contact anti-pinch height is the critical distance to avoid the vehicle sheet metal affecting the capacitance parameters of the second capacitor wire; Select a target duration that fits the relative positional relationship from the first duration and the second duration, and use the target duration to perform obstacle detection to obtain the detection result; The corresponding window control operation will be performed based on the detection results.
[0008] Furthermore, if the relative positional relationship is such that the real-time height of the window is less than the non-contact anti-pinch height, then the target duration is a first duration, or a first duration and a second duration. The obstacle detection using the target duration to obtain the detection result includes: Comparing the first duration with a first time threshold, if the first duration is greater than or equal to the first time threshold, the detection result is that an obstacle exists on the rising path of the window; or, if the first duration is less than the first time threshold, the detection result is that no obstacle exists on the rising path of the window; or... Comparing the first duration with a first time threshold, if the first duration is greater than or equal to the first time threshold, then comparing the second duration with a second time threshold; if the second duration is greater than or equal to the second time threshold, then the detection result is that there is an obstacle on the upward path of the window; or, if the first duration is less than the first time threshold, or if the first duration is greater than or equal to the first time threshold and the second duration is less than the second time threshold, then the detection result is that there is no obstacle on the upward path of the window.
[0009] Furthermore, if the relative positional relationship is such that the real-time height of the window is greater than or equal to the non-contact anti-pinch height, then the target duration is the second duration; The obstacle detection using the target duration to obtain the detection result includes: Compare the second duration with the second time threshold; If the second duration is greater than or equal to the second time threshold, the detection result is that there is an obstacle on the upward path of the window; or, if the second duration is less than the second time threshold, the detection result is that there is no obstacle on the upward path of the window.
[0010] Furthermore, based on the detection results, corresponding window control operations are performed, including: If the detection result indicates the presence of an obstacle, then the window is controlled to perform an anti-pinch protection action; or, If the detection result indicates that there is no obstacle, the window will continue to rise.
[0011] Furthermore, the method for determining the first time threshold includes: Obtain the first average charging time corresponding to the first capacitor wire, wherein the first average charging time is calculated by collecting the charging time from the completion of the self-discharge of the first capacitor wire to the charging reaching the preset voltage threshold when the window is raised to the closed position without any obstacles. The ambient temperature and the wear condition of the corresponding sealing strip of the vehicle window are obtained; The first average charging time is adjusted using the ambient temperature and the wear condition to obtain the first time threshold.
[0012] Furthermore, the method for determining the second time threshold includes: The second average charging time corresponding to the second capacitor wire is obtained, wherein the second average charging time is calculated by collecting the charging time from the completion of the self-discharge of the second capacitor wire to the charging reaching the preset voltage threshold under the condition that the window is raised to the closed position without any obstacles and without sheet metal interference. The ambient temperature and the degree of dirt on the surface of the vehicle window were obtained. The second average charging time is adjusted using the ambient temperature and the degree of surface dirt to obtain the second time threshold.
[0013] Furthermore, controlling the window to perform the anti-pinch protection action includes: The system acquires real-time environmental parameters of the vehicle's surroundings and collects obstacle parameters of the obstacles. The window's drop distance is adaptively adjusted using the real-time environmental parameters and obstacle parameters.
[0014] Secondly, embodiments of the present invention provide a control device for preventing vehicle window pinching, the device comprising: The detection module is used to detect the first time and the second time from the completion of discharge to the charging to a preset voltage threshold of the first capacitor wire and the second capacitor wire, respectively. The first capacitor wire is disposed on the vehicle body structure above the closed position of the window, and the second capacitor wire is disposed on the window glass and moves together with the window glass. The execution module is used to determine that there is an obstacle on the upward path of the window if either the first duration or the second duration is greater than or equal to the corresponding time threshold, and to control the window to perform an anti-pinch protection action.
[0015] Thirdly, embodiments of the present invention provide a computer device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method described in the first aspect or any corresponding embodiment thereof.
[0016] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment thereof.
[0017] Fifthly, embodiments of the present invention provide a vehicle, including: a controller, a window, and a window lifting mechanism. The controller includes: a memory and a processor, which are communicatively connected. The memory stores computer instructions, and the processor executes the computer instructions to perform the method described in the first aspect or any corresponding embodiment.
[0018] This invention uses a first capacitor wire and a second capacitor wire that moves with the window to collect charging and discharging time. Relying on the principle of capacitive sensing, it can complete the perception and identification of obstacles before they make physical contact with the glass, thus overcoming the limitation of traditional methods that require squeezing and contact to determine the obstacle. The first capacitor wire is deployed at the position of the window frame when it is closed, which can achieve full coverage monitoring of the original anti-pinch shielding area at the top of the window, effectively avoiding the risk of pinching injuries caused by small objects. Then, by comparing the actual charging and discharging time with a preset time threshold, the presence or absence of an obstacle can be quickly determined. The identification process does not rely on changes in operating parameters such as motor current and speed, achieving non-contact advance prediction. Finally, based on the determination result, the window can be stopped from rising in time and the anti-pinch action can be activated, improving the safety of window raising and lowering. Attached Figure Description
[0019] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating a control method for preventing window pinching according to some embodiments of the present invention; Figure 2 This is a schematic diagram showing the deployment positions of the capacitor wires according to some embodiments of the present invention; Figure 3 This is a flowchart illustrating another control method for preventing window pinching according to some embodiments of the present invention; Figure 4 This is a flowchart illustrating another control method for preventing window pinching according to some embodiments of the present invention; Figure 5 This is a flowchart illustrating another control method for preventing window pinching according to some embodiments of the present invention; Figure 6This is a structural block diagram of a control device for preventing window pinching according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] According to embodiments of the present invention, a control method, device, and vehicle for preventing window pinching are provided. It should be noted that the steps shown in the flowcharts in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0023] This embodiment provides a control method for preventing window pinching. Figure 1 This is a flowchart of a control method for preventing window pinching according to an embodiment of the present invention, as shown below. Figure 1 As shown, the process includes the following steps: Step S101: Detect the first time and the second time from the completion of discharge to the charging to the preset voltage threshold of the first capacitor wire and the second capacitor wire, respectively. The first capacitor wire is disposed on the vehicle body structure above the closed position of the window, and the second capacitor wire is disposed on the window glass and moves with the window glass.
[0024] In this embodiment, the controller first performs charging and discharging operations on the first capacitor wire and the second capacitor wire according to a preset cycle. First, it controls the two capacitor wires to complete the discharge and reset. Then, it charges the two capacitor wires simultaneously with a constant voltage. During the charging process, the circuit voltage is collected in real time, and the time from the time the first capacitor wire and the second capacitor wire complete the discharge to the time when the voltage reaches the preset voltage threshold is recorded respectively to obtain the first duration and the second duration.
[0025] It should be noted that the capacitor wire completes two stages sequentially: discharging and charging, within each charge-discharge cycle. At the beginning stage, the controller first discharges the capacitor wire to release any remaining charge. After discharging, the constant-voltage charging stage is initiated, and the charging circuit voltage data is collected in real time until the voltage reaches the preset value.
[0026] Understandably, the discharge + charging phase from a single discharge to the next discharge operation constitutes a complete charge-discharge cycle. The charging time of the capacitor wire from the completion of discharge to the voltage rising to the preset voltage threshold is in the millisecond range. A single charge-discharge process is extremely short, capable of completing hundreds or thousands of complete charge-discharge cycles per second. This allows for high-frequency, uninterrupted acquisition of the charging time of the first and second capacitor wires, ensuring the real-time performance and response speed of obstacle detection during window lifting. For example, a single charge-discharge cycle is only 1 millisecond, and 1000 complete charge-discharge cycles can be stably completed per second, enabling high-frequency, uninterrupted acquisition of the charging time of the first and second capacitor wires.
[0027] The preset voltage threshold is a fixed voltage judgment benchmark value that has been pre-calibrated and stored. During the constant voltage charging stage of the capacitor wire, the controller continuously monitors the real-time voltage across the capacitor wire. When the voltage gradually rises from the low potential after discharge to zero and reaches the preset voltage threshold, the controller stops timing and records the time taken from the completion of discharge to reaching the voltage benchmark as the charging time of the corresponding capacitor wire.
[0028] In this embodiment, the first capacitor wire is disposed on the vehicle body fixed structure above the fully closed position of the window. There are multiple options for the installation position. It can be arranged on the upper frame of the window, or extended to the inner side of the roof, the upper section of the A-pillar, or other vehicle body structural components above the closed area of the window. The installation position must meet the constraint that the first capacitor wire does not follow the window up and down and is located above the closed position of the window.
[0029] The second capacitor wire is fixed on the car window glass body and can move up and down synchronously with the car window glass. There are multiple options for the installation position. It can be attached to the top edge of the top of the car window glass, or it can be set in an area a distance below the top edge of the top of the car window. It can be laid completely along the horizontal direction of the glass or set in sections.
[0030] As an example, such as Figure 2 As shown, a first capacitor wire a is installed inside the upper frame of the window, and a second capacitor wire b is installed on the upper edge of the top of the window glass. The second capacitor wire b moves with the window glass. Both the first capacitor wire a and the second capacitor wire b are connected to the controller at the bottom of the door. When the window rises, the controller periodically charges and discharges the two capacitor wires, monitoring the time change from the completion of discharge to charging to the preset voltage threshold. When an obstacle enters the sensing area of the capacitor wire, it will cause the charging time to increase. The controller can identify the obstacle and trigger the anti-pinch protection accordingly, realizing non-contact protection of the window's rising path. In addition, the cooperation of the two capacitor wires can effectively distinguish between sheet metal interference and real obstacles.
[0031] As you can understand, the capacitor wires (a and b) are like one plate of a capacitor, and the surrounding people / objects or other obstacles are the other plate. The closer they are, the greater the capacitance. The greater the capacitance, the longer it takes to fully charge. The controller determines whether an obstacle is approaching by monitoring the charging time.
[0032] Step S102: If either the first duration or the second duration is greater than or equal to the corresponding time threshold, it is determined that there is an obstacle on the upward path of the window, and the window is controlled to perform an anti-pinch protection action.
[0033] In this embodiment of the application, the controller retrieves a first time threshold and a second time threshold, and compares the collected first duration and second duration with the corresponding thresholds. If the first duration is greater than or equal to the first time threshold, or the second duration is greater than or equal to the second time threshold, it is determined that there is an obstacle in the window rising path.
[0034] It should be noted that the capacitor wire can be considered as one of the plates of a capacitor, and the obstacle can be considered as the other plate of the capacitor. The two form a coupling capacitor. When the obstacle approaches the capacitor wire, the equivalent distance between the two plates decreases, and the capacitance of the overall coupling capacitor increases accordingly. In the detection circuit of the controller's constant voltage charging, the larger the capacitance, the longer the charging time required to raise the voltage to the preset voltage threshold. The charging time collected when there is no obstacle is compensated and adjusted to form the corresponding time threshold. Once the obstacle causes the actual charging time of the capacitor wire to become longer and exceed the threshold, it is determined that there is an obstacle in the window's rising path.
[0035] In addition, the charging time is in the millisecond range, and hundreds of sampling judgments can be completed per second. The entire process of obstacle recognition, threshold comparison and anti-pinch command output has an extremely fast response speed. Therefore, obstacle recognition and protective actions can be completed before the car window generates mechanical clamping force and causes pinching injury.
[0036] Once an obstacle is identified, different levels of anti-pinch protection actions can be executed: ①If the first duration of the first capacitor wire or the second duration of the second capacitor wire only slightly exceeds the preset time threshold, resulting in only a slight capacitor fluctuation, the controller will only send a stop command to the window motor to keep the window in its current position.
[0037] For example, if the first duration is 1.1 milliseconds, which only slightly exceeds the threshold (1 millisecond) and the capacitance fluctuation is weak, it means that only a small obstacle is approaching and is not close to the window glass. At this time, the controller only sends a stop command to the window motor, directly cuts off the upward power, and keeps the window at the current height without performing the lowering operation.
[0038] ②If the first duration of the first capacitor wire or the second duration of the second capacitor wire significantly exceeds the preset time threshold, and the obstacle is close to the window glass, the controller will first send a stop signal to cut off the upward drive, and then output a reverse drive signal to control the window to fall down the corresponding distance.
[0039] For example, if the first duration is 2 milliseconds, which greatly exceeds the threshold (1 millisecond), and the capacitance fluctuation is large, it means that only a large obstacle is approaching and about to touch the window glass. At this time, the controller only sends a stop command to the window motor and then outputs a reverse drive signal to control the window to fall down the corresponding distance.
[0040] In one embodiment of this application, controlling the window to perform an anti-pinch protection action includes: acquiring real-time environmental parameters of the vehicle's environment and collecting obstacle parameters of obstacles; and adaptively adjusting the window's drop distance using the real-time environmental parameters and obstacle parameters.
[0041] Specifically, the controller uses various sensors installed in the vehicle to obtain real-time environmental parameters of the vehicle's environment. For example, it collects real-time temperature and humidity data from the outside world through high-precision temperature and humidity sensors, obtains ambient light intensity values through light sensors, determines the current rain or snow weather conditions by combining with rain sensors, and then links with the vehicle posture sensors to collect the degree of road bumps and the amplitude of driving vibrations, etc.
[0042] Meanwhile, the controller utilizes the induced electric field constructed by the first capacitor wire and the second capacitor wire that moves with the vehicle to continuously monitor the real-time changes in the charging and discharging durations of the two sets of capacitor wires as the window rises, thereby completing the acquisition of various obstacle parameters. For example, when an external object enters the induced electric field, the volume of the obstacle is determined by the magnitude of the overall offset of the charging and discharging duration; the relative moving speed of the object approaching the rising area of the window is calculated by the rate of change of the duration value per unit time; and the specific location of the obstacle, such as the upper center, left, or right side of the window, can be determined by the order and difference of the duration changes of the first and second capacitor wires, thus comprehensively acquiring parameters such as the size, approaching speed, and spatial position of the obstacle.
[0043] Then, the controller first matches the real-time environmental parameters that have been collected with the corresponding environmental impact conversion formulas one by one. Based on the temperature, humidity, weather conditions, and road surface stability, it calculates the corresponding environmental adjustment weight values. Then, it substitutes the obstacle parameters such as the obstacle volume, contact speed, and contact force that have been collected into the obstacle impact calculation formula to obtain the anti-collision adjustment base value corresponding to the obstacle.
[0044] The environmental adjustment weight value and the anti-collision adjustment base value are weighted and summed to obtain a comprehensive adjustment coefficient. Then, the base drop-off distance is multiplied by the comprehensive adjustment coefficient to complete the numerical conversion, ultimately yielding a new window drop-off distance adapted to the current scenario. Specifically, when the environment is harsh, the vibration amplitude is large, and the obstacle approaches at a high speed, the calculated comprehensive adjustment coefficient is larger, automatically increasing the window drop-off distance to improve the protective effect; when the environment is stable and the obstacle contact force is light, the comprehensive adjustment coefficient is smaller, automatically reducing the drop-off distance to improve ease of use.
[0045] Figure 3 This is a flowchart of a control method for preventing window pinching according to an embodiment of the present invention, as shown below. Figure 3 As shown, the process includes the following steps: Step S201: Detect the real-time height of the window during the rising process.
[0046] In this embodiment, the controller uses the Hall position sensor built into the window motor to collect the number of rotation pulses and speed signal of the motor rotor in real time. Combined with the transmission ratio parameters of the window lifting mechanism, the controller calculates the current real-time height of the window glass. The controller uses the position where the window glass is fully lowered as the zero point reference, converts the number of motor rotation pulses into linear height coordinates within the window's upward stroke, and filters the pulse signal to eliminate measurement errors caused by electromagnetic interference and mechanical clearance, thus obtaining the real-time height data of the window.
[0047] Step S202: Obtain the relative positional relationship between the real-time height of the vehicle window and the non-contact anti-pinch height, wherein the non-contact anti-pinch height is the critical distance to avoid the vehicle sheet metal affecting the capacitance parameters of the second capacitor wire.
[0048] In this embodiment, the controller reads a pre-calibrated and stored non-contact anti-pinch height. This parameter is a critical distance determined based on the vehicle's sheet metal structure and the sensing characteristics of the second capacitive wire, used to distinguish between areas without sheet metal interference and areas with sheet metal interference. Then, the real-time height is compared with the non-contact anti-pinch height. If the real-time height is less than the critical value, the window is determined to be in a sheet metal interference area near the roof; if the real-time height is greater than or equal to the critical value, the window is determined to be in an interference-free area away from the sheet metal.
[0049] As an example, the critical height d for non-contact anti-pinch is pre-calibrated. The travel range of 0 to d mm between the top of the window glass and the roof sheet metal is the sheet metal interference zone. In this zone, the roof sheet metal a is too close to the second capacitor wire b. The metal sheet metal will directly disturb the inherent capacitance value of the second capacitor wire b, causing the charging time sampling data to be distorted and leading to misjudgment of obstacles. The travel range of d to 200 mm between the top of the window glass is the no-sheet metal interference zone. In this range, the distance between the top of the window glass and the roof sheet metal a exceeds the critical distance d, and the interference of the sheet metal on the capacitance value of the second capacitor wire b is basically eliminated.
[0050] It should be noted that the non-contact anti-pinch height refers to the critical distance between the top of the window glass and the vehicle's sheet metal. This critical distance is set to prevent the sheet metal from interfering with the capacitance parameters of the second capacitor wire. Understandably, if the actual distance between the top of the window glass and the sheet metal is less than this critical distance, the sheet metal is within the effective sensing range of the second capacitor wire, thus altering the inherent capacitance value of the second capacitor wire, causing distortion in the capacitor charging and discharging sampling data, and triggering a false anti-pinch detection. When the distance between the top of the window glass and the sheet metal reaches or exceeds this critical distance, the sheet metal is outside the effective sensing range of the second capacitor wire, and the capacitance parameters of the second capacitor wire are unaffected by the sheet metal.
[0051] In other words, as the window rises, its real-time height continuously increases. Once the real-time height of the window glass reaches or exceeds the non-contact anti-pinch height, the second capacitor wire will no longer be affected by the vehicle's sheet metal.
[0052] The non-contact anti-pinch height is determined by the controller based on the layout of the vehicle's sheet metal, the location of various metal components, and the actual electric field sensing range of the second capacitor wire that moves synchronously with the window. The vehicle's sheet metal includes the body sheet metal, door sheet metal, and other metal sheet metal components throughout the vehicle. The critical height value was determined through repeated real-vehicle tests in multiple scenarios. This value is uniformly set as the zero point for the entire height measurement when the window is fully lowered to its lowest limit position, defining the boundary standard for the entire upward stroke of the window.
[0053] During the window's upward movement, the controller compares the actual window height collected in real time with the non-contact anti-pinch height. When the window's real-time upward height is less than the non-contact anti-pinch height, it is determined that the window has entered the sheet metal interference zone. At this time, the window is close to various metal sheet metal structures on the roof. The metal components will block and interfere with the induced electric field of the second capacitor wire, directly changing the capacitor's own electrical parameters, causing deviations in the charging and discharging time data, which can easily lead to misidentification problems.
[0054] When the real-time rise height of the window is greater than or equal to the non-contact anti-pinch height, the window is determined to be in a zone free from sheet metal interference. At this time, the second capacitor wire is far away from all metal components of the vehicle body, and there is no sheet metal medium in the surrounding area to affect the capacitor sensing state, so the duration data collection can be completed in a stable environment.
[0055] Based on this, the system divides the operating area into two main zones: a sheet metal interference zone and a sheet metal non-interference zone, according to the critical height. The system automatically switches the corresponding time comparison and obstacle judgment strategy according to different zones, effectively isolating the detection interference caused by the vehicle's sheet metal and improving the overall accuracy and stability of anti-pinch recognition.
[0056] Step S203: Select a target duration that is suitable for the relative position relationship from the first duration and the second duration, and use the target duration to perform obstacle detection to obtain the detection result.
[0057] In this embodiment of the application, if the relative positional relationship is that the real-time height of the window is less than the height of the non-contact anti-pinch device, then the target duration is a first duration, or a first duration and a second duration; obstacle detection is performed using the target duration to obtain the detection result, including: Case ①: Compare the first duration with the first time threshold. If the first duration is greater than or equal to the first time threshold, the detection result is that there is an obstacle on the upward path of the window; or, if the first duration is less than the first time threshold, the detection result is that there is no obstacle on the upward path of the window.
[0058] Specifically, when the real-time height of the window is less than the height of the non-contact anti-pinch device, the vehicle's sheet metal will interfere with the second capacitor wire, causing abnormal charging time detection data. This can easily lead to a false alarm for anti-pinch protection even when there are no obstacles. In this case, a first duration is selected as the target duration for obstacle detection. The first duration is compared with a first time threshold. If the first duration is greater than or equal to the first time threshold, it is determined that there is an obstacle in the window's upward path. If the first duration is less than the first time threshold, it is determined that there is no obstacle in the window's upward path.
[0059] In case ②, compare the first duration with the first time threshold. If the first duration is greater than or equal to the first time threshold, then compare the second duration with the second time threshold. If the second duration is greater than or equal to the second time threshold, the detection result is that there is an obstacle on the upward path of the car window. Alternatively, if the first duration is less than the first time threshold, or if the first duration is greater than or equal to the first time threshold and the second duration is less than the second time threshold, the detection result is that there is no obstacle on the upward path of the car window.
[0060] Specifically, although the second capacitor wire is susceptible to interference from sheet metal, to leverage its advantages of being closer to the window, having a shorter sensing distance, and higher obstacle detection sensitivity, the controller also utilizes the first capacitor wire, which is unaffected by sheet metal, for verification. This distinguishes between anomalies caused by the vehicle's sheet metal and genuine obstacles. Therefore, the controller selects both the first and second durations as target durations for detection and judgment. In the actual detection process, the first duration is first compared with a first time threshold. Only if the first duration is greater than or equal to the first time threshold is the second duration compared with the second time threshold. Only when both durations reach their corresponding thresholds can it be determined that there is an obstacle in the window's rising path; otherwise, it is determined that there is no obstacle.
[0061] The reason for adopting the dual-capacitor wire joint step-by-step judgment method is that the second capacitor wire in this area is severely affected by sheet metal interference, which reduces the reliability of the detection data. Relying on the first capacitor wire, which is fixed in position and unaffected by sheet metal, for pre-verification can effectively offset the detection error caused by sheet metal, reduce the probability of false identification caused by sheet metal interference, and ensure the authenticity and reliability of anti-pinch judgment in the sheet metal interference area.
[0062] In this embodiment of the application, if the relative positional relationship is that the real-time height of the window is greater than or equal to the non-contact anti-pinch height, then the target duration is the second duration; obstacle detection is performed using the target duration to obtain the detection result, including: comparing the second duration with a second time threshold; if the second duration is greater than or equal to the second time threshold, then the detection result is that there is an obstacle on the upward path of the window; or, if the second duration is less than the second time threshold, then the detection result is that there is no obstacle on the upward path of the window.
[0063] Specifically, when the real-time height of the car window is greater than or equal to the height of the non-contact anti-pinch system, the car window is in a zone free from sheet metal interference. At this time, the sheet metal will not cause electric field interference or capacitance effects on the second capacitor wire that moves with the car window. The charging time data collected by the second capacitor wire can accurately reflect whether there are obstacles in the surrounding area. The detection data is highly accurate and stable.
[0064] Therefore, the controller only selects the second duration as the target duration for obstacle detection, directly comparing the second duration with the second time threshold. If the duration reaches the threshold, an obstacle is determined to exist; otherwise, no obstacle is determined to exist. The detection environment in this area is clean and free from external metal interference, eliminating the need for auxiliary verification with the first capacitor wire. This simplified judgment process not only reduces the controller's data processing load but also accelerates obstacle recognition response speed.
[0065] Step S204: Perform the corresponding window control operation based on the detection results.
[0066] In this embodiment of the application, the window control operation is performed according to the detection result, including: if the detection result indicates that there is an obstacle, the window is controlled to stop rising and the window is controlled to perform an anti-pinch protection action; or, if the detection result indicates that there is no obstacle, the window is controlled to continue rising.
[0067] Specifically, upon detecting an obstacle, different levels of anti-pinch protection actions can be executed. If the actual charging time of the capacitor wire only slightly exceeds the preset time threshold, resulting in only a slight capacitance fluctuation, the controller will only send a stop command to the window motor, keeping the window in its current position. If the actual charging time of the capacitor wire significantly exceeds the preset time threshold, and the obstacle is close to the window glass, the controller will first send a stop signal to cut off the upward drive, and then output a reverse drive signal to control the window to fall down the corresponding distance.
[0068] If it is determined that there are no obstacles in the upward path, the controller will continue to output the original upward control command, keep the window drive motor running normally in the positive direction, and drive the window to smoothly and continuously complete the remaining upward stroke until it reaches the top closing limit position and then automatically stops.
[0069] In this embodiment of the application, controlling the window to perform anti-pinch protection action includes: acquiring real-time environmental parameters of the vehicle's environment and collecting obstacle parameters of obstacles; and adaptively adjusting the window's drop distance using the real-time environmental parameters and obstacle parameters.
[0070] Specifically, the controller uses various sensors installed in the vehicle to obtain real-time environmental parameters of the vehicle's environment. For example, it collects real-time temperature and humidity data from the outside world through temperature and humidity sensors, obtains ambient light intensity values through light sensors, determines the current rain or snow weather conditions by combining with rain sensors, and then links with the vehicle posture sensors to collect the degree of road bumps and the amplitude of driving vibrations, etc.
[0071] Meanwhile, the controller uses a dual-capacitor wire sensing structure to collect obstacle-related parameters in real time. This includes capturing the amplitude of capacitance change, the rate of charge change, and the duration of continuous sensing when an obstacle approaches the capacitor wires. It also records obstacle parameters such as the obstacle's size and approach speed. In essence, during the window's upward movement, the controller continuously collects capacitance change data from both sets of capacitor wires. The magnitude of this capacitance change determines the overall size of the obstacle; a larger change indicates a wider contact area between the obstacle and the sensing area of the capacitor wires, suggesting a larger obstacle, while a smaller change indicates a smaller obstacle. Furthermore, the controller records the time difference between the two sets of capacitor wires when the same obstacle contacts them. Combined with the fixed travel distance of the window's constant upward movement, the approach speed of the obstacle relative to the window can be calculated by dividing the travel distance by the time difference.
[0072] Then, the controller first matches the real-time environmental parameters that have been collected with the corresponding environmental impact conversion formulas one by one. Based on the temperature, humidity, weather conditions, and road surface stability, it calculates the corresponding environmental adjustment weight values. Then, it substitutes the obstacle parameters such as the obstacle volume, contact speed, and contact force that have been collected into the obstacle impact calculation formula to obtain the anti-collision adjustment base value corresponding to the obstacle.
[0073] The environmental adjustment weight value and the anti-collision adjustment base value are weighted and summed to obtain a comprehensive adjustment coefficient. Then, the base drop-off distance is multiplied by the comprehensive adjustment coefficient to complete the numerical conversion, ultimately yielding a new window drop-off distance adapted to the current scenario. Specifically, when the environment is harsh, the vibration amplitude is large, and the obstacle approaches at a high speed, the calculated comprehensive adjustment coefficient is larger, automatically increasing the window drop-off distance to improve the protective effect; when the environment is stable and the obstacle contact force is light, the comprehensive adjustment coefficient is smaller, automatically reducing the drop-off distance to improve ease of use.
[0074] In the embodiments of this application, the method for determining the first time threshold is as follows: Figure 4 As shown, it includes: Step S401: Obtain the first average charging time corresponding to the first capacitor wire. The first average charging time is calculated by collecting the charging time from the completion of the self-discharge of the first capacitor wire to the charging reaching the preset voltage threshold when the window is raised to the closed position without any obstacles.
[0075] In this embodiment, after the vehicle wakes up from hibernation and completes power-on initialization, the controller will actively trigger a complete sampling process. During this process, if there are no obstacles, the controller will control the windows to rise to the closed position. During this process, the controller will collect the charging time of the first capacitor wire from the completion of discharge to the voltage rise to the preset voltage threshold for each cycle. After collecting sufficient effective sampling data, abnormal outliers caused by waveform jumps and electromagnetic interference will be removed. Then, the arithmetic mean of the remaining effective samples will be calculated and the first average charging time recorded in the storage unit will be refreshed.
[0076] For example, when the vehicle wakes up from hibernation and completes power-on initialization, the control window smoothly rises to the fully closed position under unobstructed conditions. The controller collects the original charging time data from the completion of the discharge clearing of the first capacitor wire to the voltage rise to the preset voltage threshold. Then, the controller automatically removes m sets of abnormal jump outliers caused by electromagnetic interference and voltage fluctuations, and calculates the arithmetic mean of the remaining n sets of valid charging time samples to obtain the first average charging time.
[0077] In addition, during the daily use of the vehicle, every time the window performs an upward movement, the controller will collect multiple sets of charging and discharging sampling data in real time within the unobstructed section of the entire upward movement. The newly collected effective charging time samples are integrated into the historical benchmark average using a weighted iterative algorithm, and the first average charging time is continuously iterated and corrected. This allows the controller to adapt to the basic capacitor offset caused by the slow aging of vehicle parts over a long period of time, and to update autonomously based on the vehicle's own operating data.
[0078] For example, every time the window is raised during normal driving, the controller will simultaneously collect multiple sets of charging time data corresponding to the charging and discharging of the first capacitor wire within the unobstructed operating range of the window. Using a weighted iterative algorithm with a weight of 10%, the average value of the newly collected samples is superimposed with a 10% weight to the stored historical first average charging time, and the numerical iterative update is completed to obtain a new first average charging time.
[0079] In addition, the vehicle can also upload the collected data to the cloud server. The cloud server uses a large amount of vehicle operating data to generate correction parameters that are adapted to different environments and aging levels, and remotely sends them to the vehicle controller to help adjust the first average charging time.
[0080] Step S402: Obtain the ambient temperature and the wear condition of the corresponding sealing strip of the window.
[0081] In this embodiment, ambient temperature data is collected in real time by temperature sensors arranged around the door sheet metal or windows. The controller reads the ambient temperature before each window raising action. In low-temperature environments, the resistivity of the capacitor wire metal circuit and the surrounding body sheet metal will change, and the equivalent basic capacitance will decrease accordingly, and the charging time will be shortened under the same conditions. In high-temperature environments, the stray capacitance of the circuit will increase, and the basic charging time under no-load conditions will be extended. Ambient temperature fluctuations will directly cause distortion of the fixed threshold judgment. Therefore, it is necessary to obtain the ambient temperature in real time as a basis for compensation.
[0082] The wear condition of the sealing strip is determined by the controller based on the long-term accumulated window operation data. Every time the vehicle is closed under no-load conditions and every time the window is raised, the window running resistance, motor operating current, and window closing position deviation are recorded. By comparing the initial factory calibration parameters over a long period of time, when the frictional resistance of the sealing strip continues to increase and the closing position deviation exceeds the preset range, the controller will classify the wear degree into three levels: light wear, moderate wear, and heavy wear according to the deviation. After the sealing strip shows different levels of wear, it will change the actual relative distance between the window glass and the surrounding sheet metal and capacitor wire, thereby changing the coupling capacitance of the capacitor wire under the condition of no foreign objects.
[0083] Step S403: Adjust the first average charging time using ambient temperature and wear conditions to obtain a first time threshold.
[0084] In this embodiment, the controller adjusts the first average charging time by retrieving compensation coefficients corresponding to ambient temperature and the wear condition of the sealing strip. The compensation coefficient corresponding to ambient temperature is used to offset the changes in the electrical characteristics of the capacitor wire and the body sheet metal caused by temperature changes, thus solving the problem of charging time deviation caused by temperature fluctuations. The compensation coefficient corresponding to the wear condition is used to compensate for the coupling capacitance deviation caused by the change in the relative distance between the window and the capacitor wire and the sheet metal after the sealing strip wears. The final corrected charging time is the first time threshold.
[0085] This application embodiment employs a dual mechanism of vehicle sleep-wake-up power-on no-load sampling calibration and daily window-raising weighted iterative updates to optimize the first average charging time in real time. This effectively filters out sampling anomalies caused by electromagnetic interference and adapts to capacitance shifts caused by long-term aging of vehicle components, eliminating the need for manual calibration. Simultaneously, it combines real-time ambient temperature and quantitatively graded seal wear levels for dual-coefficient compensation correction, offsetting electrical characteristic deviations caused by temperature fluctuations and coupling capacitance shifts caused by seal wear. This dynamically generates a first time threshold adapted to all operating conditions, ensuring the detection accuracy of the first capacitor wire.
[0086] In the embodiments of this application, the method for determining the second time threshold is as follows: Figure 5 As shown, it includes: Step S501: Obtain the second average charging time corresponding to the second capacitor wire. The second average charging time is calculated by collecting the charging time from the completion of the self-discharge of the second capacitor wire to the charging reaching the preset voltage threshold under the condition that the window is raised to the closed position without any obstacles and there is no sheet metal interference.
[0087] In this embodiment, whenever the vehicle wakes up from hibernation and completes the power-on initialization process, the controller will actively and autonomously initiate a complete sampling process. During the process of the window rising to the closed position without any obstacles, when the window moves to the range without sheet metal interference, the controller continuously collects the charging time corresponding to the completion of each round of discharge clearing of the second capacitor wire until the voltage rises to the preset voltage threshold. After collecting sufficient effective sampling data, abnormal outliers caused by waveform jumps and electromagnetic interference are removed, and the arithmetic mean of the remaining effective samples is calculated to calculate and refresh the second average charging time recorded in the storage unit.
[0088] In addition, during daily use of the vehicle, every time the window is raised, the controller will extract multiple sets of valid charging and discharging sampling data from the unobstructed and sheet metal interference range of the entire window raising process. Through a preset weighted iterative algorithm, the newly collected charging time samples are integrated into the historical benchmark average. The second average charging time is continuously iterated and corrected. It can adapt to the coupling capacitance shift caused by the slow aging of the window glass and the second capacitor wire circuit in the long term, and autonomously complete the dynamic update of the benchmark time based on the data collected by the vehicle itself during daily operation.
[0089] It should be noted that the no-sheet metal interference range is the range from the non-contact anti-pinch height d to the effective maximum sensing stroke height of the second capacitor wire.
[0090] In addition, the vehicle can also upload the collected data to the cloud server. The cloud server uses a large amount of vehicle operating data to generate correction parameters that are adapted to different environments and aging levels, and remotely sends them to the vehicle controller to help adjust the second average charging time.
[0091] Step S502: Obtain the ambient temperature and the degree of dirt on the surface of the car window.
[0092] In this embodiment, ambient temperature data is collected in real time by temperature sensors arranged around the door sheet metal or windows. The controller reads the ambient temperature before each window raising action. In low-temperature environments, the resistivity of the capacitor wire metal circuit and the surrounding body sheet metal will change, and the equivalent basic capacitance will decrease accordingly, and the charging time will be shortened under the same conditions. In high-temperature environments, the stray capacitance of the circuit will increase, and the basic charging time under no-load conditions will be extended. Ambient temperature fluctuations will directly cause distortion of the fixed threshold judgment. Therefore, it is necessary to obtain the ambient temperature in real time as a basis for compensation.
[0093] The degree of dirt on the car window surface is obtained through image acquisition and recognition. The vehicle-mounted image acquisition module, which is placed around the car door or window, regularly captures images of the outer and inner surfaces of the car window glass. The controller, relying on the built-in image recognition algorithm, compares the images with the standard clean window image samples stored when the vehicle leaves the factory to identify dirt, mud, water stains and other stains on the window surface. Based on the area covered by the stains and the thickness of the accumulation, the stains are classified into different levels such as no dirt, light dirt, moderate dirt and heavy dirt.
[0094] Step S503: Adjust the second average charging time using ambient temperature and surface dirt level to obtain a second time threshold.
[0095] In this embodiment, the controller adjusts the second average charging time by retrieving compensation coefficients corresponding to ambient temperature and surface dirt level. The compensation coefficient corresponding to ambient temperature is used to offset changes in the electrical characteristics of the capacitor wires and body sheet metal caused by temperature variations, thus resolving the charging time deviation problem caused by temperature fluctuations. The compensation coefficient corresponding to the surface dirt level is used to compensate for the no-load charging time deviation caused by changes in the dielectric constant of the substrate due to surface dirt on the window glass and an increase in the basic coupling capacitance of the second capacitor wire. The final corrected charging time is the second time threshold.
[0096] This application embodiment updates the second average charging time through dual updates of whole-vehicle power-on sampling and daily window-raising weighted iterations. This eliminates abnormal data caused by electromagnetic interference and continuously adapts to coupling capacitance drift caused by wiring and glass aging, eliminating the need for manual calibration. Simultaneously, it collects ambient temperature data via a temperature sensor and quantifies the glass dirt level using onboard image recognition, matching corresponding compensation coefficients to correct the baseline charging time. This offsets detection deviations caused by temperature-induced fluctuations in electrical characteristics and changes in the dielectric constant due to dirt, dynamically generating a second time threshold adapted to real-time operating conditions. This adaptive threshold fully leverages the high-sensitivity, close-range detection advantage of the second capacitor wire, effectively avoiding false or missed detections of obstacles caused by temperature and glass dirt accumulation, and improving the accuracy of dual-wire joint anti-pinch detection in sheet metal interference areas.
[0097] This embodiment also provides a control device for preventing window pinching, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0098] This embodiment provides a control device for preventing window pinching, such as... Figure 6 As shown, it includes: The detection module 601 is used to detect the first time and the second time from the completion of discharge to the charging to a preset voltage threshold of the first capacitor wire and the second capacitor wire, respectively. The first capacitor wire is disposed on the vehicle body structure above the closed position of the window, and the second capacitor wire is disposed on the window glass and moves with the window glass. The execution module 602 is used to determine that there is an obstacle on the upward path of the window if either the first duration or the second duration is greater than or equal to the corresponding time threshold, and to control the window to perform an anti-pinch protection action.
[0099] In this embodiment, the device further includes: a control module, used to detect the real-time height of the window during its upward movement; obtain the relative positional relationship between the real-time window height and the non-contact anti-pinch height, wherein the non-contact anti-pinch height is the critical distance to avoid the vehicle sheet metal affecting the capacitance parameters of the second capacitor wire; select a target duration adapted to the relative positional relationship from a first duration and a second duration, and use the target duration to perform obstacle detection to obtain a detection result; and execute corresponding window control operations based on the detection result.
[0100] In this embodiment of the application, if the relative positional relationship is that the real-time height of the car window is less than the height of the non-contact anti-pinch device, then the target duration is the first duration, or the first duration and the second duration. In this embodiment, the control module is used to compare a first duration with a first time threshold. If the first duration is greater than or equal to the first time threshold, the detection result is that an obstacle exists on the upward path of the window; or, if the first duration is less than the first time threshold, the detection result is that no obstacle exists on the upward path of the window; or... The control module is used to compare a first duration with a first time threshold. If the first duration is greater than or equal to the first time threshold, then it compares a second duration with a second time threshold. If the second duration is greater than or equal to the second time threshold, the detection result is that there is an obstacle on the upward path of the window. Alternatively, if the first duration is less than the first time threshold, or if the first duration is greater than or equal to the first time threshold and the second duration is less than the second time threshold, the detection result is that there is no obstacle on the upward path of the window.
[0101] In this embodiment of the application, if the relative positional relationship is that the real-time height of the window is greater than or equal to the non-contact anti-pinch height, then the target duration is the second duration; In this embodiment of the application, the control module is used to compare a second duration with a second time threshold; if the second duration is greater than or equal to the second time threshold, the detection result is that there is an obstacle on the upward path of the window; or, if the second duration is less than the second time threshold, the detection result is that there is no obstacle on the upward path of the window.
[0102] In this embodiment of the application, the control module is used to control the window to stop rising and perform anti-pinch protection action if the detection result is that there is an obstacle; or, if the detection result is that there is no obstacle, control the window to continue rising.
[0103] In this embodiment of the application, it further includes: a first calibration module, used to obtain a first average charging time corresponding to the first capacitor wire, wherein the first average charging time is calculated by collecting the charging time from the completion of self-discharge of the first capacitor wire to the charging reaching a preset voltage threshold when the window is raised to the closed position without any obstacles; obtaining the ambient temperature and the wear condition of the sealing strip corresponding to the window; and adjusting the first average charging time using the ambient temperature and the wear condition to obtain a first time threshold.
[0104] In this embodiment of the application, a second calibration module is further included for determining the second time threshold, comprising: acquiring the second average charging time corresponding to the second capacitor wire, wherein the second average charging time is calculated by collecting at least one charging time from the completion of self-discharge of the second capacitor wire to the charging reaching a preset voltage threshold under the condition that the window is raised to the closed position without obstacles and without sheet metal interference; acquiring the ambient temperature and the degree of surface dirt of the window; and adjusting the second average charging time using the ambient temperature and the degree of surface dirt to obtain the second time threshold.
[0105] In this embodiment of the application, the execution module 502 is used to obtain real-time environmental parameters of the vehicle's environment and collect obstacle parameters of obstacles; and adaptively adjust the drop distance of the window using the real-time environmental parameters and obstacle parameters.
[0106] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 7 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system).
[0107] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0108] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0109] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 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 alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device 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.
[0110] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0111] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0112] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0113] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A control method for preventing car windows from being pinched, characterized in that, The method includes: The detection measures the first and second time intervals from the completion of discharge to the charging of the first and second capacitor wires to a preset voltage threshold, respectively. The first capacitor wire is disposed on a vehicle body structural component above the closed position of the window, and the second capacitor wire is disposed on the window glass and moves together with the window glass. If either the first duration or the second duration is greater than or equal to the corresponding time threshold, it is determined that there is an obstacle on the upward path of the window, and the window is controlled to perform an anti-pinch protection action.
2. The method according to claim 1, characterized in that, The method further includes: The real-time height of the vehicle window is detected during its rising process; Obtain the relative positional relationship between the real-time height of the vehicle window and the non-contact anti-pinch height, wherein the non-contact anti-pinch height is the critical distance to avoid the vehicle sheet metal affecting the capacitance parameters of the second capacitor wire; Select a target duration that fits the relative positional relationship from the first duration and the second duration, and use the target duration to perform obstacle detection to obtain the detection result; The corresponding window control operation will be performed based on the detection results.
3. The method according to claim 2, characterized in that, If the relative positional relationship is such that the real-time height of the window is less than the non-contact anti-pinch height, then the target duration is a first duration, or a first duration and a second duration. The obstacle detection using the target duration to obtain the detection result includes: Comparing the first duration with a first time threshold, if the first duration is greater than or equal to the first time threshold, the detection result is that an obstacle exists on the rising path of the window; or, if the first duration is less than the first time threshold, the detection result is that no obstacle exists on the rising path of the window; or... Comparing the first duration with a first time threshold, if the first duration is greater than or equal to the first time threshold, then comparing the second duration with a second time threshold; if the second duration is greater than or equal to the second time threshold, then the detection result is that there is an obstacle on the upward path of the window; or, if the first duration is less than the first time threshold, or if the first duration is greater than or equal to the first time threshold and the second duration is less than the second time threshold, then the detection result is that there is no obstacle on the upward path of the window.
4. The method according to claim 2, characterized in that, If the relative positional relationship is such that the real-time height of the window is greater than or equal to the non-contact anti-pinch height, then the target duration is the second duration; The obstacle detection using the target duration to obtain the detection result includes: Compare the second duration with the second time threshold; If the second duration is greater than or equal to the second time threshold, the detection result is that there is an obstacle on the upward path of the window; or, if the second duration is less than the second time threshold, the detection result is that there is no obstacle on the upward path of the window.
5. The method according to claim 2, characterized in that, Based on the detection results, perform corresponding window control operations, including: If the detection result indicates the presence of an obstacle, then the window is controlled to perform an anti-pinch protection action; or, If the detection result indicates that there is no obstacle, the window will continue to rise.
6. The method according to claim 3, characterized in that, The method for determining the first time threshold includes: Obtain the first average charging time corresponding to the first capacitor wire, wherein the first average charging time is calculated by collecting the charging time from the completion of the self-discharge of the first capacitor wire to the charging reaching the preset voltage threshold when the window is raised to the closed position without any obstacles. The ambient temperature and the wear condition of the corresponding sealing strip of the vehicle window are obtained; The first average charging time is adjusted using the ambient temperature and the wear condition to obtain the first time threshold.
7. The method according to claim 3 or 4, characterized in that, The method for determining the second time threshold includes: The second average charging time corresponding to the second capacitor wire is obtained, wherein the second average charging time is calculated by collecting the charging time from the completion of the self-discharge of the second capacitor wire to the charging reaching the preset voltage threshold under the condition that the window is raised to the closed position without any obstacles and without sheet metal interference. The ambient temperature and the degree of dirt on the surface of the vehicle window were obtained. The second average charging time is adjusted using the ambient temperature and the degree of surface dirt to obtain the second time threshold.
8. The method according to claim 1, characterized in that, The control of the window to perform anti-pinch protection includes: The system acquires real-time environmental parameters of the vehicle's surroundings and collects obstacle parameters of the obstacles. The window's drop distance is adaptively adjusted using the real-time environmental parameters and obstacle parameters.
9. A control device for preventing vehicle window pinching, characterized in that, The device includes: The detection module is used to detect the first time and the second time from the completion of discharge to the charging to a preset voltage threshold of the first capacitor wire and the second capacitor wire, respectively. The first capacitor wire is disposed on the vehicle body structure above the closed position of the window, and the second capacitor wire is disposed on the window glass and moves together with the window glass. The execution module is used to determine that there is an obstacle on the upward path of the window if either the first duration or the second duration is greater than or equal to the corresponding time threshold, and to control the window to perform an anti-pinch protection action.
10. A vehicle, characterized in that, include: A controller, a window, and a window lifting mechanism, wherein the controller includes a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method of any one of claims 1 to 8.